Class 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 Detail

      • TmaSubscribedProductController

        public TmaSubscribedProductController()
    • 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 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
                                                                 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 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
                                  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 system
        billingSubscriptionId - the id of the billing subscription
      • initBinder

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