Overview
Summary
Contact
Donate
Imprint
Prompt for the
PaymentMethodView
Please create a React-JS view called "PaymentMethodView" for the fields of the PaymentMethod entity. The PaymentMethodView must contain the following fields: - name: BillingAddress type: LONG - name: CreatedAt type: DATE - name: Customer type: Customer - name: ExpiryMonth type: INT - name: ExpiryYear type: INT - name: HolderName type: STRING - name: IsDefault type: BOOL - name: MaskedNumber type: STRING - name: Type type: STRING - name: UpdatedAt type: DATE The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing PaymentMethod entity should be loaded from the relative URL: "/CustomerService/paymentmethod/{id}" (HTTP-GET) If a new PaymentMethod entity has been created, the new entity should be posted to the relative URL: "/CustomerService/paymentmethod" (HTTP-POST) If an existing PaymentMethod entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/paymentmethod/{id}" (HTTP-PUT) If an existing PaymentMethod entity has to be deleted, the following relative URL should be called: "/CustomerService/paymentmethod/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PaymentTransaction columns: - column: Provider - column: Status - column: CreatedAt - column: CustomerOrder - column: Amount - column: PaymentMethod - column: UpdatedAt - column: Currency - column: ProviderReference The table should have the title "PaymentTransactions" und the data must be loaded from the server with the following relative URL: "/CustomerService/paymenttransaction/paymentmethod/{id}" Add a HTML table to the view with the following CustomerOrder columns: - column: TotalItemsAmount - column: Customer - column: TotalDiscountAmount - column: PaymentMethod - column: BillingAddress - column: OrderNumber - column: ShippingAddress - column: GrandTotal - column: PlacedAt - column: Currency - column: Status - column: TotalTaxAmount - column: TotalShippingAmount The table should have the title "CustomerOrders" und the data must be loaded from the server with the following relative URL: "/CustomerService/customerorder/paymentmethod/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint