Interface SubscriptionPricingService
- All Known Implementing Classes:
DefaultSubscriptionPricingService
public interface SubscriptionPricingService
Defines a service that handles subscription pricing operations on a
Cart.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.CartpriceSubscriptionItems(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) After having gathered/applied all PriceList & Offer-based pricing considerations, consult SubscriptionOperationServices to determine how to apply these prices relative to recurring billing.
-
Method Details
-
priceSubscriptionItems
com.broadleafcommerce.cart.client.domain.Cart priceSubscriptionItems(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) After having gathered/applied all PriceList & Offer-based pricing considerations, consult SubscriptionOperationServices to determine how to apply these prices relative to recurring billing. This is especially applicable for declaring charges that are due now vs in future billing cycles.- Parameters:
cart- the cart whose subscription item prices are being evaluated & updatedcontextInfo- context surrounding sandboxing and multitenant state- Returns:
- the cart with updated subscription pricing
-