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 Summary
Modifier and TypeMethodDescriptioncreateNewSubscriptions(CreateSubscriptionFromOrderRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Details
-
createNewSubscriptions
List<SWI> createNewSubscriptions(CreateSubscriptionFromOrderRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Given the providedOrderand its items, creates one or moreSubscriptionand relateditems. If the subscription already exists, returns it.- Parameters:
request- Request containing theOrderwithOrderItemsrepresentingSubscriptionsto createcontextInfo- Additional sandbox and multitenant info- Returns:
- the list of the
SubscriptionWithItemscreated.
-