Class TmaBillingAccountController


  • @Controller
    @RequestMapping("/billingAccounts")
    @Secured("ROLE_TRUSTED_CLIENT")
    public class TmaBillingAccountController
    extends BaseController
    Controller exposing operations related to billing accounts.
    Since:
    6.6
    • Constructor Detail

      • TmaBillingAccountController

        public TmaBillingAccountController()
    • Method Detail

      • createBillingAccount

        @RequestMapping(method=POST,
                        consumes={"application/json","application/xml"})
        @ResponseStatus(CREATED)
        @ResponseBody
        public TmaBillingAccountWsDto createBillingAccount​(@RequestBody
                                                           TmaBillingAccountRequestWsDto billingAccountRequestWsDto,
                                                           @RequestParam(defaultValue="DEFAULT")
                                                           java.lang.String fields)
        Creates a new billing account with the details received in the request body.
        Parameters:
        billingAccountRequestWsDto - the TmaBillingAccountRequestWsDto object with details based on which the billing account will be created.
        fields - predefined values to determine what fields to be returned in the response
        Returns:
        TmaBillingAccountWsDto the newly created billing account
        Throws:
        de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException - exception thrown in case the request body fields has failed validation
        de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - exception thrown in case the request body fields required as pre-defined in hybris, cannot be found
      • deleteBillingAccount

        @RequestMapping(value="/{billingSystemId}/{billingAccountId}",
                        method=DELETE)
        @ResponseStatus(NO_CONTENT)
        public void deleteBillingAccount​(@PathVariable
                                         java.lang.String billingSystemId,
                                         @PathVariable
                                         java.lang.String billingAccountId)
        Deletes the Billing Account associated to a given billing account id and a billing system id.
        Parameters:
        billingSystemId - the billing system identifier
        billingAccountId - the billing account identifier from the billing system
      • setTmaBillingAccountFacade

        public void setTmaBillingAccountFacade​(TmaBillingAccountFacade tmaBillingAccountFacade)
      • getBillingAccountValidator

        protected de.hybris.platform.webservicescommons.validators.CompositeValidator getBillingAccountValidator()
      • setBillingAccountValidator

        public void setBillingAccountValidator​(de.hybris.platform.webservicescommons.validators.CompositeValidator billingAccountValidator)
      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)