Class PaymentController
java.lang.Object
com.mt.ecommerce.product.controller.PaymentController
Controller for managing payments.
Provides endpoints for retrieving payment information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVendorOrder
(String vendorID) Endpoint to retrieve payments for a specific vendor.
-
Constructor Details
-
PaymentController
-
-
Method Details
-
getVendorOrder
@PreAuthorize("hasAnyAuthority(\'ROLE_VENDOR\', \'ROLE_ADMIN\')") @GetMapping(value="", produces="application/json") public List<PaymentBO> getVendorOrder(@RequestParam(name="vendorId") String vendorID) Endpoint to retrieve payments for a specific vendor. Accessible by users with ROLE_VENDOR or ROLE_ADMIN.- Parameters:
vendorID
- the ID of the vendor whose payments are to be retrieved- Returns:
- a list of PaymentBO objects representing the vendor's payments
-