Uses of Class
de.hybris.order.calculation.money.Money
Packages that use Money
Package
Description
-
Uses of Money in de.hybris.order.calculation.domain
Methods in de.hybris.order.calculation.domain that return MoneyModifier and TypeMethodDescriptionprotected MoneyLineItem.calculateCharge(Money currentValue, LineItemCharge charge) protected MoneyLineItem.calculateDiscount(Money currentValue, LineItemDiscount discount) protected MoneyOrder.calculateOrderCharge(Money currentValue, OrderCharge addCharge) protected MoneyOrder.calculateOrderDiscount(Money currentValue, OrderDiscount discount) Calculates order discountprotected MoneyOrder.calculateTaxTotal(Tax tax, double autoTaxCorrectionFactor) LineItem.getBasePrice()Returns the base price of this line item.protected MoneyOrder.getFixedTaxedAdditionalCharges(Map<OrderCharge, Money> aocValues) LineItem.getSubTotal()Calculates the line item sub total.Order.getSubTotal()Calculates the sum of all line item totals (LineItem.getTotal(Order)).Calculates to line item total.Order.getTotal()Calculates the order total.Calculates the total for this charge within the given order context.Called to fetch the taxable total for tax total calculation.LineItem.getTotalCharge()Calculates the total of all line item charges.Order.getTotalCharge()Calculates the total of all charges which apply to the order at a whole.Order.getTotalChargeOfType(AbstractCharge.ChargeType chargeType) Calculates the total of all charges of one specific type which apply to the order at a whole.LineItem.getTotalDiscount()Calculates the total of all line item discounts.Order.getTotalDiscount()Calculates the total of all discounts assigned to this order.Order.getTotalIncludingTaxes()Calculates the order total always including taxes.Order.getTotalTax()Returns the overall sum of taxes within this order.Order.getTotalTaxFor(Tax tax) Calculates the total tax for a specificTaxobject.Methods in de.hybris.order.calculation.domain that return types with arguments of type MoneyModifier and TypeMethodDescriptionMultiLineItemDiscount.getDiscountValues()LineItem.getTotalCharges()Calculates totals of all line item charges separately.Order.getTotalCharges()Calculates totals of all charges assigned to this order separately.LineItem.getTotalDiscounts()Calculates the totals of all line item discounts separately.Order.getTotalDiscounts()Calculates totals of all discounts assigned to this order separately.Order.getTotalTaxes()Calculates total taxes for all assignedTaxobject.Methods in de.hybris.order.calculation.domain with parameters of type MoneyModifier and TypeMethodDescriptionprotected MoneyLineItem.calculateCharge(Money currentValue, LineItemCharge charge) protected MoneyLineItem.calculateDiscount(Money currentValue, LineItemDiscount discount) protected MoneyOrder.calculateOrderCharge(Money currentValue, OrderCharge addCharge) protected MoneyOrder.calculateOrderDiscount(Money currentValue, OrderDiscount discount) Calculates order discountMethod parameters in de.hybris.order.calculation.domain with type arguments of type MoneyModifier and TypeMethodDescriptionprotected MoneyOrder.getFixedTaxedAdditionalCharges(Map<OrderCharge, Money> aocValues) Constructors in de.hybris.order.calculation.domain with parameters of type MoneyModifierConstructorDescriptionCreates a new line item with the given base price and one unit.Creates a new line item with the given base price and number of units.MultiLineItemDiscount(Money amount) -
Uses of Money in de.hybris.order.calculation.money
Methods in de.hybris.order.calculation.money that return MoneyModifier and TypeMethodDescriptionMoney.MoneyExtractor.extractMoney(T object) static final Moneystatic final MoneyMoney.sum(Collection<Money> elements) static final <T> MoneyMoney.sum(Collection<T> elements, Money.MoneyExtractor<T> extractor) protected static final <T> MoneyMoney.sumUnscaled(Collection<T> elements, Money.MoneyExtractor<T> extractor) static MoneyShortcut to obtain commonly used zero money instances.Methods in de.hybris.order.calculation.money that return types with arguments of type MoneyModifier and TypeMethodDescriptionMoney.split(Percentage... percentages) Same assplit(List)but because of the variable parameter list the sum must not be exactly 100%.Money.split(List<Percentage> percentages) Splits the current Money into a list of new Money objects, based on the given list ofPercentageobjects.Creates a list of money objects for a specific currency and any number of long values.Creates a list of money objects for a specific currency and any number of String values.Money.valueOf(Currency curr, BigDecimal... amounts) Creates a list of money objects for a specific currency and any number of BigDecimal values.Methods in de.hybris.order.calculation.money with parameters of type MoneyModifier and TypeMethodDescriptionvoidMoney.assertCurreniesAreEqual(Money other) Checks if the current Currency is equal to given one.static List<Percentage>Money.getPercentages(int scale, Money... moneys) Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.static List<Percentage>Money.getPercentages(Money... moneys) Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.static final MoneyMethod parameters in de.hybris.order.calculation.money with type arguments of type MoneyModifier and TypeMethodDescriptionstatic List<Percentage>Money.getPercentages(List<Money> moneys, int scale) Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.protected static int[]Money.getSortedPositionTable(List<Money> moneyList) static voidMoney.sortAscending(List<Money> elements) protected static <T> List<T>Money.sortByMoney(Map<T, Money> moneyMap, Comparator<Map.Entry<?, Money>> comp) protected static <T> List<T>Money.sortByMoney(Map<T, Money> moneyMap, Comparator<Map.Entry<?, Money>> comp) static <T> List<T>Money.sortByMoneyAscending(Map<T, Money> moneyMap) static <T> List<T>Money.sortByMoneyDescending(Map<T, Money> moneyMap) static voidMoney.sortDescending(List<Money> elements) static final MoneyMoney.sum(Collection<Money> elements) protected static final longMoney.sumUnscaled(Collection<Money> elements) -
Uses of Money in de.hybris.order.calculation.strategies
Methods in de.hybris.order.calculation.strategies that return MoneyModifier and TypeMethodDescriptionRoundingStrategy.divide(Money money, BigDecimal factor) Divide price by factorRoundingStrategy.getPercentValue(Money price, Percentage percent) Returns for the givenPercentageamount the calculated amount inMoney.RoundingStrategy.multiply(Money money, BigDecimal factor) Multiply the given money by given factor.RoundingStrategy.roundToMoney(BigDecimal amount, Currency currency) Creates aMoneyobject based on the given BigDecimal amount.Methods in de.hybris.order.calculation.strategies with parameters of type MoneyModifier and TypeMethodDescriptionRoundingStrategy.divide(Money money, BigDecimal factor) Divide price by factorRoundingStrategy.getPercentValue(Money price, Percentage percent) Returns for the givenPercentageamount the calculated amount inMoney.RoundingStrategy.multiply(Money money, BigDecimal factor) Multiply the given money by given factor. -
Uses of Money in de.hybris.order.calculation.strategies.impl
Methods in de.hybris.order.calculation.strategies.impl that return MoneyModifier and TypeMethodDescriptionprotected MoneyDefaultRoundingStrategy.createMoney(BigDecimal amount, Currency curr) protected MoneyDefaultTaxRoundingStrategy.createMoney(BigDecimal amount, Currency curr) DefaultRoundingStrategy.divide(Money price, BigDecimal divisor) DefaultRoundingStrategy.getPercentValue(Money price, Percentage percent) DefaultRoundingStrategy.multiply(Money price, BigDecimal multiplicant) DefaultRoundingStrategy.roundToMoney(BigDecimal amount, Currency currency) Methods in de.hybris.order.calculation.strategies.impl with parameters of type MoneyModifier and TypeMethodDescriptionDefaultRoundingStrategy.divide(Money price, BigDecimal divisor) DefaultRoundingStrategy.getPercentValue(Money price, Percentage percent) DefaultRoundingStrategy.multiply(Money price, BigDecimal multiplicant) -
Uses of Money in de.hybris.platform.ruleengineservices.calculation
Constructors in de.hybris.platform.ruleengineservices.calculation with parameters of type MoneyModifierConstructorDescriptionNumberedLineItem(Money basePrice) NumberedLineItem(Money basePrice, int numberOfUnits)