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: BillingCountry type: Country - name: CreatedAt type: STRING - name: ExpiryMonth type: LONG - name: ExpiryYear type: LONG - name: IsDefault type: BOOL - name: LastFour type: STRING - name: Provider type: STRING - name: Type type: STRING - name: User type: User The data source for the [BillingCountry] select control should be loaded from the relative URL: "/TitleService/country" (HTTP-GET) The data source for the [User] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) An existing PaymentMethod entity should be loaded from the relative URL: "/UserService/paymentmethod/{id}" (HTTP-GET) If a new PaymentMethod entity has been created, the new entity should be posted to the relative URL: "/UserService/paymentmethod" (HTTP-POST) If an existing PaymentMethod entity has been updated, the modified entity should be sent to the relative URL: "/UserService/paymentmethod/{id}" (HTTP-PUT) If an existing PaymentMethod entity has to be deleted, the following relative URL should be called: "/UserService/paymentmethod/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Payment columns: - column: Status - column: Amount - column: PaidAt - column: Currency - column: User - column: Subscription - column: Description - column: PaymentMethod The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/UserService/payment/paymentmethod/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint