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 BaseController
Controller 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 -
Method Summary
Modifier and TypeMethodDescriptioncreateSubscribedProduct(TmaSubscribedProductWsDto subscribedProductDto, String fields) Creates a subscribed product.voiddeleteService(String billingSystemId, String billingSubscriptionId) Deletes the subscribed product identified by given billingSystemId and billingSubscriptionId.voidinitBinder(org.springframework.web.bind.WebDataBinder binder) updateSubscribedProduct(String billingSystemId, String billingSubscriptionId, UpdatableTmaSubscribedProductWsDto updatableSubscribedProductWsDto, String fields) Updates the subscribed product identified by given billingSystemId and billingSubscriptionIdMethods inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
getDataMapper, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, validate
-
Constructor Details
-
TmaSubscribedProductController
public TmaSubscribedProductController()
-
-
Method Details
-
createSubscribedProduct
@ResponseBody @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) public TmaSubscribedProductWsDto createSubscribedProduct(@RequestBody TmaSubscribedProductWsDto subscribedProductDto, @RequestParam(defaultValue="DEFAULT") 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 String billingSystemId, @PathVariable String billingSubscriptionId, @RequestBody UpdatableTmaSubscribedProductWsDto updatableSubscribedProductWsDto, @RequestParam(defaultValue="DEFAULT") 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 String billingSystemId, @PathVariable 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)
-