Class SubscriptionPriceDataEndpoint

java.lang.Object
com.broadleafcommerce.subscription.web.endpoint.SubscriptionPriceDataEndpoint

@FrameworkRestController @FrameworkMapping("/subscriptions/price-data") @DataRouteByKey("billing") public class SubscriptionPriceDataEndpoint extends Object
  • Field Details

  • Constructor Details

    • SubscriptionPriceDataEndpoint

      public SubscriptionPriceDataEndpoint()
  • Method Details

    • readAllSubscriptionOwnerInfosByPriceData

      @FrameworkGetMapping("/{priceDataId}") @Policy(permissionRoots="SUBSCRIPTION") public org.springframework.data.domain.Page<SubscriptionOwnerInfo> readAllSubscriptionOwnerInfosByPriceData(@RequestHeader(value="X-SANDBOX-AWARE",required=false,defaultValue="false") boolean isSandboxAware, @RequestHeader(value="X-APPLICATION-AWARE",required=false,defaultValue="false") boolean isApplicationAware, @PathVariable("priceDataId") String priceDataId, @RequestParam(value="statuses",required=false,defaultValue="ACTIVE") Set<String> statuses, @PageableDefault(sort="tracking.basicAudit.creationTime",direction=DESC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • addPriceDataChanges

      @FrameworkPatchMapping @Policy(permissionRoots="SUBSCRIPTION") public List<String> addPriceDataChanges(@RequestHeader(value="X-SANDBOX-AWARE",required=false,defaultValue="false") boolean isSandboxAware, @RequestBody PriceDataChangeRequest priceDataChangeRequest, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • setSubscriptionService

      @Autowired public void setSubscriptionService(SubscriptionService<Subscription,SubscriptionWithItems> subscriptionService)
    • getSubscriptionService

      protected SubscriptionService<Subscription,SubscriptionWithItems> getSubscriptionService()
    • setParser

      @Autowired public void setParser(com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser)
    • getParser

      protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getParser()