Class TmaBillingAccountController

java.lang.Object
de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
de.hybris.platform.b2ctelcowebservices.v1.controller.TmaBillingAccountController

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

    • TmaBillingAccountController

      public TmaBillingAccountController()
  • Method Details

    • createBillingAccount

      @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) @ResponseBody public TmaBillingAccountWsDto createBillingAccount(@RequestBody TmaBillingAccountRequestWsDto billingAccountRequestWsDto, @RequestParam(defaultValue="DEFAULT") 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 String billingSystemId, @PathVariable 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
    • getTmaBillingAccountFacade

      protected TmaBillingAccountFacade getTmaBillingAccountFacade()
    • 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)