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 BaseControllerController 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 Constructor Description TmaBillingAccountController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmaBillingAccountWsDtocreateBillingAccount(TmaBillingAccountRequestWsDto billingAccountRequestWsDto, java.lang.String fields)Creates a new billing account with the details received in the request body.voiddeleteBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)Deletes the Billing Account associated to a given billing account id and a billing system id.protected de.hybris.platform.webservicescommons.validators.CompositeValidatorgetBillingAccountValidator()protected TmaBillingAccountFacadegetTmaBillingAccountFacade()voidinitBinder(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
-
-
-
-
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- 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 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 identifierbillingAccountId- 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)
-
-