Interface SubscriptionPricingService

All Known Implementing Classes:
DefaultSubscriptionPricingService

public interface SubscriptionPricingService
Service for pricing subscriptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    bulkUpdateSubscriptionPricing(BulkPriceUpdateSubscriptionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Adds a price data change for all qualifying subscriptions.
    priceSubscriptions(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Prices the cart's subscription items, returning SubscriptionPriceResponses describing how much the customer should be charged now, & estimations for how much & when they'll be charged in the future as part of subscription billing.
  • Method Details

    • priceSubscriptions

      List<SubscriptionPriceResponse> priceSubscriptions(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Prices the cart's subscription items, returning SubscriptionPriceResponses describing how much the customer should be charged now, & estimations for how much & when they'll be charged in the future as part of subscription billing.
      Parameters:
      cart - The cart that we are pricing.
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      a list of SubscriptionPriceResponses
    • bulkUpdateSubscriptionPricing

      Set<String> bulkUpdateSubscriptionPricing(BulkPriceUpdateSubscriptionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Adds a price data change for all qualifying subscriptions.
      Parameters:
      request - The request containing the price data ID and the scope of the price change
      contextInfo - Additional sandbox and multitenant info
      Returns:
      The subscription IDs that were updated