Interface SubscriptionGenerationService<SWI extends SubscriptionWithItems>

All Known Implementing Classes:
DefaultSubscriptionGenerationService

public interface SubscriptionGenerationService<SWI extends SubscriptionWithItems>
Service used to generate Subscription records based on an Order and its items.
  • Method Details

    • createNewSubscriptions

      List<SWI> createNewSubscriptions(CreateSubscriptionFromOrderRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Given the provided Order and its items, creates one or more Subscription and related items. If the subscription already exists, returns it.
      Parameters:
      request - Request containing the Order with OrderItems representing Subscriptions to create
      contextInfo - Additional sandbox and multitenant info
      Returns:
      the list of the SubscriptionWithItems created.