Class TmaSubscribedProductController
- java.lang.Object
-
- de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
-
- de.hybris.platform.b2ctelcowebservices.v1.controller.TmaSubscribedProductController
-
@Controller @Secured("ROLE_TRUSTED_CLIENT") @RequestMapping("/subscribedProducts") public class TmaSubscribedProductController extends BaseControllerController exposing operations related to the subscribed product.- 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 TmaSubscribedProductController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmaSubscribedProductWsDtocreateSubscribedProduct(TmaSubscribedProductWsDto subscribedProductDto, java.lang.String fields)Creates a subscribed product.voiddeleteService(java.lang.String billingSystemId, java.lang.String billingSubscriptionId)Deletes the subscribed product identified by given billingSystemId and billingSubscriptionId.voidinitBinder(org.springframework.web.bind.WebDataBinder binder)TmaSubscribedProductWsDtoupdateSubscribedProduct(java.lang.String billingSystemId, java.lang.String billingSubscriptionId, UpdatableTmaSubscribedProductWsDto updatableSubscribedProductWsDto, java.lang.String fields)Updates the subscribed product identified by given billingSystemId and billingSubscriptionId-
Methods inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
getDataMapper, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, validate
-
-
-
-
Method Detail
-
createSubscribedProduct
@ResponseBody @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) public TmaSubscribedProductWsDto createSubscribedProduct(@RequestBody TmaSubscribedProductWsDto subscribedProductDto, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)Creates a subscribed product.- Parameters:
subscribedProductDto- subscribed product which needs to be createdfields- response configuration (list of fields, to be returned in response)- Returns:
- newly created
TmaSubscribedProductWsDtopopulated with the fields given as input
-
updateSubscribedProduct
@RequestMapping(value="{billingSystemId}/{billingSubscriptionId}", method=PUT, consumes={"application/json","application/xml"}) @ResponseStatus(OK) @ResponseBody public TmaSubscribedProductWsDto updateSubscribedProduct(@PathVariable java.lang.String billingSystemId, @PathVariable java.lang.String billingSubscriptionId, @RequestBody UpdatableTmaSubscribedProductWsDto updatableSubscribedProductWsDto, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)Updates the subscribed product identified by given billingSystemId and billingSubscriptionId- Parameters:
updatableSubscribedProductWsDto- data used to update the subscribed product, new values of the subscribed productfields- response configuration (list of fields, to be returned in response)- Returns:
- updated subscribed product
-
deleteService
@RequestMapping(value="/{billingSystemId}/{billingSubscriptionId}", method=DELETE) @ResponseStatus(NO_CONTENT) public void deleteService(@PathVariable java.lang.String billingSystemId, @PathVariable java.lang.String billingSubscriptionId)Deletes the subscribed product identified by given billingSystemId and billingSubscriptionId.- Parameters:
billingSystemId- the id of the billing systembillingSubscriptionId- the id of the billing subscription
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-
-