@Controller @RequestMapping("/{baseSiteId}/users/{userId}/orders") public class InvoiceController extends BaseCommerceController
  • Constructor Details

    • InvoiceController

      public InvoiceController()
  • Method Details

    • getUserOrderInvoices

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CLIENT","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @GetMapping("/{code}/invoices") @ResponseBody public SAPInvoicesWsDTO getUserOrderInvoices(@PathVariable String code, @RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(required=false) String sort, @RequestParam(defaultValue="DEFAULT") String fields)
    • getUserOrderInvoiceBinary

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CLIENT","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @GetMapping(value="/{code}/invoices/{invoiceId}/download", produces="application/octet-stream") @ResponseBody public org.springframework.http.ResponseEntity<byte[]> getUserOrderInvoiceBinary(@PathVariable String code, @PathVariable String invoiceId, @RequestParam(required=false) String externalSystemId)