Class BillingInvoiceOrderDetailController


  • @Controller
    @RequestMapping("/{baseSiteId}/users/{userId}")
    public class BillingInvoiceOrderDetailController
    extends java.lang.Object
    • Constructor Detail

      • BillingInvoiceOrderDetailController

        public BillingInvoiceOrderDetailController()
    • Method Detail

      • getBillingDocument

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(value="/orders/{code}/billingDocuments/{billingDocId}.pdf",
                        method=GET)
        @ResponseStatus(OK)
        @ResponseBody
        public org.springframework.http.ResponseEntity<byte[]> getBillingDocument​(@PathVariable
                                                                                  java.lang.String code,
                                                                                  @PathVariable
                                                                                  java.lang.String billingDocId,
                                                                                  @RequestParam(required=false,defaultValue="DEFAULT")
                                                                                  java.lang.String fields)
      • getSapOrderCodeForBillingDocument

        protected ExternalSystemBillingDocumentData getSapOrderCodeForBillingDocument​(java.lang.String orderCode,
                                                                                      java.lang.String documentId)
      • validateUserForOrder

        protected void validateUserForOrder​(java.lang.String code)
        Validates if the current user has access to the order
        Parameters:
        code - the order code
        Throws:
        de.hybris.platform.webservicescommons.errors.exceptions.NotFoundException - if current user has no access to the order