Class PaymentController

java.lang.Object
com.mt.ecommerce.product.controller.PaymentController

@RestController @RequestMapping("/payment") public class PaymentController extends Object
Controller for managing payments. Provides endpoints for retrieving payment information.
  • Constructor Details

    • PaymentController

      public PaymentController(PaymentService paymentService)
  • 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