Uses of Class
com.broadleafcommerce.cartoperation.domain.Fee

Packages that use Fee
  • Uses of Fee in com.broadleafcommerce.cartoperation.service.pricing

    Methods in com.broadleafcommerce.cartoperation.service.pricing with type parameters of type Fee
    Modifier and Type
    Method
    Description
    <T extends Fee>
    void
    DefaultFeePricingService.applyFeesAfterAdjustments(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    <T extends Fee>
    void
    FeePricingService.applyFeesAfterAdjustments(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Fetches Fees for the ContextInfo's application, then calculates and applies them to the given Cart.
    <T extends Fee>
    void
    DefaultFeePricingService.applyFeesBeforeAdjustments(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    <T extends Fee>
    void
    FeePricingService.applyFeesBeforeAdjustments(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Fetches Fees for the ContextInfo's application, then calculates and applies them to the given Cart.
    <T extends Fee>
    void
    DefaultFeePricingService.calculateAndApplyFees(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull List<T> feesToBeApplied, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    <T extends Fee>
    void
    FeePricingService.calculateAndApplyFees(com.broadleafcommerce.cart.client.domain.Cart cart, List<T> feesToBeApplied, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Calculates the Fees passed in and applies them to the Cart by adding CartItems of type DefaultCartItemTypes.EXTRA_FEE, which should update the CartPricing.feesTotal when totals are calculated for the cart.
    <T extends Fee>
    List<T>
    DefaultFeePricingService.getFeesByApplication(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    <T extends Fee>
    List<T>
    FeePricingService.getFeesByApplication(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Fetches and returns a list of Fees matching the passed in ContextInfo's application information.
    Methods in com.broadleafcommerce.cartoperation.service.pricing with parameters of type Fee
    Modifier and Type
    Method
    Description
    protected void
    DefaultFeePricingService.addNonZeroFeeCartItem(@NonNull Fee fee, @NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToAdd, @NonNull javax.money.MonetaryAmount multiplier)
    Creates a new CartItem representing the current Fee that is being evaluated that is to be added to the Cart.
    protected com.broadleafcommerce.cart.client.domain.CartItem
    DefaultFeePricingService.buildFeeCartItem(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount multiplier)
    Build a CartItem that represents a Fee.
    protected javax.money.MonetaryAmount
    DefaultFeePricingService.calculateFeeAmount(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount multiplier)
    Represents the calculated Fee amount based on the feeCalculationMethod and feeCalculationOperation.
    protected javax.money.MonetaryAmount
    DefaultFeePricingService.getFeeMultiplier(@NonNull Fee fee, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
    Gets the multiplier to be used for calculating the Fee based on the feeCalculationMethod.
    protected boolean
    DefaultFeePricingService.isCartItemAMatchingFeeItem(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull javax.money.CurrencyUnit cartCurrency, @NonNull Fee fee)
    Whether the given CartItem is a match for the given Fee by checking the following conditions: the cart item is an DefaultCartItemTypes.EXTRA_FEE item the cart item matches the given feeCode the fee's currency matches the given Cart currency
    protected boolean
    DefaultFeePricingService.isFeeAmountNonZero(@NonNull Fee fee)
    Whether the Fee is one of the expected fee types and the rate or fixedAmount is a positive amount.
    protected boolean
    DefaultFeePricingService.isFeeAmountNonZero(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount feeAmount)
    Whether the Fee is one of the expected fee types, rate or fixedAmount is a positive amount, and the calculated fee amount is a positive amount.
    protected boolean
    DefaultFeePricingService.isFixedAmountFeeNonZero(@NonNull Fee fee)
    Whether the Fee is a fixed fee and the fixed fee amount is a positive amount.
    protected boolean
    DefaultFeePricingService.isRateFeeNonZero(@NonNull Fee fee)
    Whether the Fee is a rate-based fee and the fee rate is a positive amount.
    protected void
    DefaultFeePricingService.updateOrRemoveFeeCartItem(@NonNull com.broadleafcommerce.cart.client.domain.CartItem matchingFeeItem, @NonNull Fee fee, @NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToRemove, @NonNull javax.money.MonetaryAmount multiplier)
    Updates or removes the CartItem that matches the current Fee being evaluated depending on whether the fee's amount is now zero, or whether the matching fee cart item's subtotal does not match the expected fee amount.
  • Uses of Fee in com.broadleafcommerce.cartoperation.service.provider

    Methods in com.broadleafcommerce.cartoperation.service.provider that return types with arguments of type Fee
    Modifier and Type
    Method
    Description
    PricingProvider.retrieveFeesByApplicationId(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves a list of Fees that are exist under the application ID in the context.
  • Uses of Fee in com.broadleafcommerce.cartoperation.service.provider.external

    Methods in com.broadleafcommerce.cartoperation.service.provider.external that return types with arguments of type Fee
    Modifier and Type
    Method
    Description
    protected org.springframework.core.ParameterizedTypeReference<List<Fee>>
    ExternalPricingProvider.getListType()
    Gets the type reference for a list of Fees.
    ExternalPricingProvider.retrieveFeesByApplicationId(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)