Class LegacySubscriptionEndpoint

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

@Deprecated(since="1.0.0") @FrameworkRestController @FrameworkMapping("/") @DataRouteByKey("billing") public class LegacySubscriptionEndpoint extends Object
Deprecated.
This endpoint class was created to retain the API contract that existed before the upgrade. Methods here reflect analogous methods in SubscriptionEndpoint.
  • Field Details

  • Constructor Details

    • LegacySubscriptionEndpoint

      public LegacySubscriptionEndpoint()
      Deprecated.
  • Method Details

    • cancelSubscription

      @Deprecated(since="1.0.0") @FrameworkPostMapping("cancelSubscription") @Policy(permissionRoots="SUBSCRIPTION") public Subscription cancelSubscription(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestBody CancelSubscriptionDTO cancelSubscriptionDTO, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Deprecated.
      Use SubscriptionEndpoint#cancelSubscription(HttpServletRequest, HttpServletResponse, CancelSubscriptionDTO, ContextInfo) instead
    • upgradeSubscription

      @Deprecated(since="1.0.0") @FrameworkPostMapping("upgradeSubscription") @Policy(permissionRoots="SUBSCRIPTION") public Subscription upgradeSubscription(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestBody UpgradeSubscriptionDTO upgradeSubscriptionDTO, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Deprecated.
      Use SubscriptionEndpoint#upgradeSubscription(HttpServletRequest, HttpServletResponse, UpgradeSubscriptionDTO, ContextInfo) instead