Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerApp
Please create a React-JS application for the CustomerModule. The application has to offer the following views for the user interface: 1. CustomerView 2. CustomerOrderView 3. PaymentMethodView 4. PaymentTransactionView 5. ReviewView 6. ReviewCommentView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 6 views are defined below. 1. The CustomerView must contain the following fields: - name: CreatedAt type: DATE - name: DefaultBillingAddress type: LONG - name: DefaultShippingAddress type: LONG - name: Email type: STRING - name: FirstName type: STRING - name: IsActive type: BOOL - name: LastName type: STRING - name: PasswordHash type: STRING - name: UpdatedAt type: DATE An existing Customer entity should be loaded from the relative URL: "/CustomerService/customer/{id}" (HTTP-GET) If a new Customer entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customer" (HTTP-POST) If an existing Customer entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customer/{id}" (HTTP-PUT) If an existing Customer entity has to be deleted, the following relative URL should be called: "/CustomerService/customer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Question columns: - column: Title - column: CreatedAt - column: Body - column: Product - column: Customer The table should have the title "Questions" und the data must be loaded from the server with the following relative URL: "/ProductService/question/customer/{id}" Add a HTML table to the view with the following Answer columns: - column: Body - column: Customer - column: Question - column: CreatedAt - column: Seller The table should have the title "Answers" und the data must be loaded from the server with the following relative URL: "/ProductService/answer/customer/{id}" 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/customerorder/{id}" Add a HTML table to the view with the following ReturnRequest columns: - column: CreatedAt - column: Reason - column: Status - column: Customer - column: UpdatedAt - column: CustomerOrder The table should have the title "ReturnRequests" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/returnrequest/customer/{id}" Add a HTML table to the view with the following ReturnRequest columns: - column: CreatedAt - column: Reason - column: Status - column: Customer - column: UpdatedAt - column: CustomerOrder The table should have the title "ReturnRequests" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/returnrequest/customerorder/{id}" Add a HTML table to the view with the following BrowseEvent columns: - column: OccurredAt - column: UserAgent - column: SessionId - column: EventType - column: IpAddress - column: Product - column: Customer - column: Offer The table should have the title "BrowseEvents" und the data must be loaded from the server with the following relative URL: "/ProductService/browseevent/customer/{id}" Add a HTML table to the view with the following ShoppingCart columns: - column: Customer - column: CreatedAt - column: UpdatedAt The table should have the title "ShoppingCarts" und the data must be loaded from the server with the following relative URL: "/OfferService/shoppingcart/customer/{id}" Add a HTML table to the view with the following Review columns: - column: Body - column: IsVerifiedPurchase - column: Customer - column: Rating - column: UpdatedAt - column: Product - column: Title - column: CreatedAt The table should have the title "Reviews" und the data must be loaded from the server with the following relative URL: "/CustomerService/review/customer/{id}" Add a HTML table to the view with the following Wishlist columns: - column: IsPublic - column: Customer - column: Name - column: UpdatedAt - column: CreatedAt The table should have the title "Wishlists" und the data must be loaded from the server with the following relative URL: "/WishlistService/wishlist/customer/{id}" Add a HTML table to the view with the following PaymentMethod columns: - column: UpdatedAt - column: BillingAddress - column: Type - column: MaskedNumber - column: IsDefault - column: ExpiryMonth - column: ExpiryYear - column: Customer - column: HolderName - column: CreatedAt The table should have the title "PaymentMethods" und the data must be loaded from the server with the following relative URL: "/CustomerService/paymentmethod/customer/{id}" Add a HTML table to the view with the following Shipment columns: - column: Status - column: CustomerOrder - column: ShippedAt - column: CreatedAt - column: Carrier - column: DeliveredAt - column: TrackingNumber - column: FulfillmentCenter The table should have the title "Shipments" und the data must be loaded from the server with the following relative URL: "/FulfillmentCenterService/shipment/customerorder/{id}" Add a HTML table to the view with the following OrderItem columns: - column: Offer - column: LineTotal - column: UnitPrice - column: Quantity - column: DiscountAmount - column: ProductTitle - column: CustomerOrder - column: TaxAmount The table should have the title "OrderItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/orderitem/customerorder/{id}" Add a HTML table to the view with the following ReviewComment columns: - column: Body - column: CreatedAt - column: Review - column: Customer The table should have the title "ReviewComments" und the data must be loaded from the server with the following relative URL: "/CustomerService/reviewcomment/customer/{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/customer/{id}" 2. The CustomerOrderView must contain the following fields: - name: BillingAddress type: LONG - name: Currency type: STRING - name: Customer type: Customer - name: GrandTotal type: DOUBLE - name: OrderNumber type: STRING - name: PaymentMethod type: PaymentMethod - name: PlacedAt type: DATE - name: ShippingAddress type: LONG - name: Status type: STRING - name: TotalDiscountAmount type: DOUBLE - name: TotalItemsAmount type: DOUBLE - name: TotalShippingAmount type: DOUBLE - name: TotalTaxAmount type: DOUBLE The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [PaymentMethod] select control should be loaded from the relative URL: "/CustomerService/paymentmethod" (HTTP-GET) An existing CustomerOrder entity should be loaded from the relative URL: "/CustomerService/customerorder/{id}" (HTTP-GET) If a new CustomerOrder entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customerorder" (HTTP-POST) If an existing CustomerOrder entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customerorder/{id}" (HTTP-PUT) If an existing CustomerOrder entity has to be deleted, the following relative URL should be called: "/CustomerService/customerorder/{id}" (HTTP-DELETE) 3. 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}" 4. The PaymentTransactionView must contain the following fields: - name: Amount type: DOUBLE - name: CreatedAt type: DATE - name: Currency type: STRING - name: CustomerOrder type: Customer - name: PaymentMethod type: PaymentMethod - name: Provider type: STRING - name: ProviderReference type: STRING - name: Status type: STRING - name: UpdatedAt type: DATE The data source for the [CustomerOrder] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [PaymentMethod] select control should be loaded from the relative URL: "/CustomerService/paymentmethod" (HTTP-GET) An existing PaymentTransaction entity should be loaded from the relative URL: "/CustomerService/paymenttransaction/{id}" (HTTP-GET) If a new PaymentTransaction entity has been created, the new entity should be posted to the relative URL: "/CustomerService/paymenttransaction" (HTTP-POST) If an existing PaymentTransaction entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/paymenttransaction/{id}" (HTTP-PUT) If an existing PaymentTransaction entity has to be deleted, the following relative URL should be called: "/CustomerService/paymenttransaction/{id}" (HTTP-DELETE) 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/paymenttransaction/{id}" 5. The ReviewView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: IsVerifiedPurchase type: BOOL - name: Product type: Product - name: Rating type: INT - name: Title 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 [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing Review entity should be loaded from the relative URL: "/CustomerService/review/{id}" (HTTP-GET) If a new Review entity has been created, the new entity should be posted to the relative URL: "/CustomerService/review" (HTTP-POST) If an existing Review entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/review/{id}" (HTTP-PUT) If an existing Review entity has to be deleted, the following relative URL should be called: "/CustomerService/review/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReviewComment columns: - column: Body - column: CreatedAt - column: Review - column: Customer The table should have the title "ReviewComments" und the data must be loaded from the server with the following relative URL: "/CustomerService/reviewcomment/review/{id}" 6. The ReviewCommentView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: Review type: Review The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Review] select control should be loaded from the relative URL: "/CustomerService/review" (HTTP-GET) An existing ReviewComment entity should be loaded from the relative URL: "/CustomerService/reviewcomment/{id}" (HTTP-GET) If a new ReviewComment entity has been created, the new entity should be posted to the relative URL: "/CustomerService/reviewcomment" (HTTP-POST) If an existing ReviewComment entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/reviewcomment/{id}" (HTTP-PUT) If an existing ReviewComment entity has to be deleted, the following relative URL should be called: "/CustomerService/reviewcomment/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint