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
  • 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 created
      fields - response configuration (list of fields, to be returned in response)
      Returns:
      newly created TmaSubscribedProductWsDto populated 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 product
      fields - 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 system
      billingSubscriptionId - the id of the billing subscription
    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)