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
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
DEFAULT_FIELD_SET, FULL_FIELD_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBillingAccount(TmaBillingAccountRequestWsDto billingAccountRequestWsDto, String fields) Creates a new billing account with the details received in the request body.voiddeleteBillingAccount(String billingSystemId, String billingAccountId) Deletes the Billing Account associated to a given billing account id and a billing system id.protected de.hybris.platform.webservicescommons.validators.CompositeValidatorprotected TmaBillingAccountFacadevoidinitBinder(org.springframework.web.bind.WebDataBinder binder) voidsetBillingAccountValidator(de.hybris.platform.webservicescommons.validators.CompositeValidator billingAccountValidator) voidsetTmaBillingAccountFacade(TmaBillingAccountFacade tmaBillingAccountFacade) Methods inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
getDataMapper, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, validate
-
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- theTmaBillingAccountRequestWsDtoobject 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:
TmaBillingAccountWsDtothe newly created billing account- Throws:
de.hybris.platform.webservicescommons.errors.exceptions.WebserviceValidationException- exception thrown in case the request body fields has failed validationde.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 identifierbillingAccountId- the billing account identifier from the billing system
-
getTmaBillingAccountFacade
-
setTmaBillingAccountFacade
-
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)
-