Uses of Class
com.broadleafcommerce.cartoperation.domain.Fee
Packages that use Fee
Package
Description
-
Uses of Fee in com.broadleafcommerce.cartoperation.service.pricing
Methods in com.broadleafcommerce.cartoperation.service.pricing with type parameters of type FeeModifier and TypeMethodDescription<T extends Fee>
voidDefaultFeePricingService.applyFeesAfterAdjustments(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends Fee>
voidFeePricingService.applyFeesAfterAdjustments(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends Fee>
voidDefaultFeePricingService.applyFeesBeforeAdjustments(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends Fee>
voidFeePricingService.applyFeesBeforeAdjustments(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends Fee>
voidDefaultFeePricingService.calculateAndApplyFees(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull List<T> feesToBeApplied, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends Fee>
voidFeePricingService.calculateAndApplyFees(com.broadleafcommerce.cart.client.domain.Cart cart, List<T> feesToBeApplied, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Calculates theFeespassed in and applies them to theCartby addingCartItems of typeDefaultCartItemTypes.EXTRA_FEE, which should update theCartPricing.feesTotalwhen totals are calculated for the cart.DefaultFeePricingService.getFeesByApplication(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) FeePricingService.getFeesByApplication(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetches and returns a list ofFeesmatching the passed inContextInfo'sapplication information.Methods in com.broadleafcommerce.cartoperation.service.pricing with parameters of type FeeModifier and TypeMethodDescriptionprotected voidDefaultFeePricingService.addNonZeroFeeCartItem(@NonNull Fee fee, @NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToAdd, @NonNull javax.money.MonetaryAmount multiplier) Creates a newCartItemrepresenting the currentFeethat is being evaluated that is to be added to theCart.protected com.broadleafcommerce.cart.client.domain.CartItemDefaultFeePricingService.buildFeeCartItem(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount multiplier) Build aCartItemthat represents aFee.protected javax.money.MonetaryAmountDefaultFeePricingService.calculateFeeAmount(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount multiplier) protected javax.money.MonetaryAmountDefaultFeePricingService.getFeeMultiplier(@NonNull Fee fee, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart) Gets the multiplier to be used for calculating theFeebased on thefeeCalculationMethod.protected booleanDefaultFeePricingService.isCartItemAMatchingFeeItem(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull javax.money.CurrencyUnit cartCurrency, @NonNull Fee fee) Whether the givenCartItemis a match for the givenFeeby checking the following conditions: the cart item is anDefaultCartItemTypes.EXTRA_FEEitem the cart item matches the givenfeeCodethe fee's currency matches the givenCartcurrencyprotected booleanDefaultFeePricingService.isFeeAmountNonZero(@NonNull Fee fee) protected booleanDefaultFeePricingService.isFeeAmountNonZero(@NonNull Fee fee, @NonNull javax.money.MonetaryAmount feeAmount) Whether theFeeis one of the expected fee types,rateorfixedAmountis a positive amount, and the calculated fee amount is a positive amount.protected booleanDefaultFeePricingService.isFixedAmountFeeNonZero(@NonNull Fee fee) Whether theFeeis a fixed fee and the fixed fee amount is a positive amount.protected booleanDefaultFeePricingService.isRateFeeNonZero(@NonNull Fee fee) Whether theFeeis a rate-based fee and the fee rate is a positive amount.protected voidDefaultFeePricingService.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 theCartItemthat matches the currentFeebeing 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 FeeModifier and TypeMethodDescriptionPricingProvider.retrieveFeesByApplicationId(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list ofFeesthat 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 FeeModifier and TypeMethodDescriptionExternalPricingProvider.getListType()Gets the type reference for a list ofFees.ExternalPricingProvider.retrieveFeesByApplicationId(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)