Overview
Summary
Contact
Donate
Imprint
Prompt for the
ReturnRequestApp
Please create a React-JS application for the ReturnRequestModule. The application has to offer the following views for the user interface: 1. OrderItemView 2. RefundView 3. ReturnItemView 4. ReturnRequestView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The OrderItemView must contain the following fields: - name: CustomerOrder type: Customer - name: DiscountAmount type: DOUBLE - name: LineTotal type: DOUBLE - name: Offer type: Offer - name: ProductTitle type: Product - name: Quantity type: LONG - name: TaxAmount type: DOUBLE - name: UnitPrice type: DOUBLE The data source for the [Offer] select control should be loaded from the relative URL: "/OfferService/offer" (HTTP-GET) The data source for the [CustomerOrder] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [ProductTitle] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing OrderItem entity should be loaded from the relative URL: "/ReturnRequestService/orderitem/{id}" (HTTP-GET) If a new OrderItem entity has been created, the new entity should be posted to the relative URL: "/ReturnRequestService/orderitem" (HTTP-POST) If an existing OrderItem entity has been updated, the modified entity should be sent to the relative URL: "/ReturnRequestService/orderitem/{id}" (HTTP-PUT) If an existing OrderItem entity has to be deleted, the following relative URL should be called: "/ReturnRequestService/orderitem/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReturnItem columns: - column: Condition - column: Quantity - column: Resolution - column: ReturnRequest - column: OrderItem The table should have the title "ReturnItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/returnitem/orderitem/{id}" Add a HTML table to the view with the following ShipmentItem columns: - column: Quantity - column: OrderItem - column: Shipment The table should have the title "ShipmentItems" und the data must be loaded from the server with the following relative URL: "/FulfillmentCenterService/shipmentitem/orderitem/{id}" 2. The RefundView must contain the following fields: - name: Amount type: DOUBLE - name: CreatedAt type: DATE - name: Currency type: STRING - name: PaymentTransaction type: PaymentTransaction - name: ReturnRequest type: ReturnRequest The data source for the [PaymentTransaction] select control should be loaded from the relative URL: "/CustomerService/paymenttransaction" (HTTP-GET) The data source for the [ReturnRequest] select control should be loaded from the relative URL: "/ReturnRequestService/returnrequest" (HTTP-GET) An existing Refund entity should be loaded from the relative URL: "/ReturnRequestService/refund/{id}" (HTTP-GET) If a new Refund entity has been created, the new entity should be posted to the relative URL: "/ReturnRequestService/refund" (HTTP-POST) If an existing Refund entity has been updated, the modified entity should be sent to the relative URL: "/ReturnRequestService/refund/{id}" (HTTP-PUT) If an existing Refund entity has to be deleted, the following relative URL should be called: "/ReturnRequestService/refund/{id}" (HTTP-DELETE) 3. The ReturnItemView must contain the following fields: - name: Condition type: STRING - name: OrderItem type: OrderItem - name: Quantity type: LONG - name: Resolution type: STRING - name: ReturnRequest type: ReturnRequest The data source for the [OrderItem] select control should be loaded from the relative URL: "/ReturnRequestService/orderitem" (HTTP-GET) The data source for the [ReturnRequest] select control should be loaded from the relative URL: "/ReturnRequestService/returnrequest" (HTTP-GET) An existing ReturnItem entity should be loaded from the relative URL: "/ReturnRequestService/returnitem/{id}" (HTTP-GET) If a new ReturnItem entity has been created, the new entity should be posted to the relative URL: "/ReturnRequestService/returnitem" (HTTP-POST) If an existing ReturnItem entity has been updated, the modified entity should be sent to the relative URL: "/ReturnRequestService/returnitem/{id}" (HTTP-PUT) If an existing ReturnItem entity has to be deleted, the following relative URL should be called: "/ReturnRequestService/returnitem/{id}" (HTTP-DELETE) 4. The ReturnRequestView must contain the following fields: - name: CreatedAt type: DATE - name: Customer type: Customer - name: CustomerOrder type: Customer - name: Reason type: STRING - name: Status 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) The data source for the [CustomerOrder] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing ReturnRequest entity should be loaded from the relative URL: "/ReturnRequestService/returnrequest/{id}" (HTTP-GET) If a new ReturnRequest entity has been created, the new entity should be posted to the relative URL: "/ReturnRequestService/returnrequest" (HTTP-POST) If an existing ReturnRequest entity has been updated, the modified entity should be sent to the relative URL: "/ReturnRequestService/returnrequest/{id}" (HTTP-PUT) If an existing ReturnRequest entity has to be deleted, the following relative URL should be called: "/ReturnRequestService/returnrequest/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReturnItem columns: - column: Condition - column: Quantity - column: Resolution - column: ReturnRequest - column: OrderItem The table should have the title "ReturnItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/returnitem/returnrequest/{id}" Add a HTML table to the view with the following Refund columns: - column: ReturnRequest - column: Amount - column: CreatedAt - column: PaymentTransaction - column: Currency The table should have the title "Refunds" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/refund/returnrequest/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint