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: CreatedAt type: DATE - name: ExpiryMonth type: INT - name: ExpiryYear type: INT - name: HolderName type: STRING - name: IsActive type: BOOL - name: IsDefault type: BOOL - name: MaskedDetails type: STRING - name: Type type: STRING - name: UserAccount type: UserAccount The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing PaymentMethod entity should be loaded from the relative URL: "/UserAccountService/paymentmethod/{id}" (HTTP-GET) If a new PaymentMethod entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/paymentmethod" (HTTP-POST) If an existing PaymentMethod entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/paymentmethod/{id}" (HTTP-PUT) If an existing PaymentMethod entity has to be deleted, the following relative URL should be called: "/UserAccountService/paymentmethod/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Payment columns: - column: Currency - column: Booking - column: Status - column: ProviderReference - column: Amount - column: ProcessedAt - column: CreatedAt - column: PaymentMethod The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/CurrencyService/payment/paymentmethod/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint