Uses of Class
de.hybris.order.calculation.money.Money
-
-
Uses of Money in de.hybris.order.calculation.domain
Methods in de.hybris.order.calculation.domain that return Money Modifier and Type Method Description protected 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)MoneyLineItem. getBasePrice()Returns the base price of this line item.protected MoneyOrder. getFixedTaxedAdditionalCharges(java.util.Map<OrderCharge,Money> aocValues)MoneyLineItem. getSubTotal()Calculates the line item sub total.MoneyOrder. getSubTotal()Calculates the sum of all line item totals (LineItem.getTotal(Order)).MoneyLineItem. getTotal(Order context)Calculates to line item total.MoneyOrder. getTotal()Calculates the order total.MoneyOrderCharge. getTotal(Order context)Calculates the total for this charge within the given order context.MoneyTaxable. getTotal(Order context)Called to fetch the taxable total for tax total calculation.MoneyLineItem. getTotalCharge()Calculates the total of all line item charges.MoneyOrder. getTotalCharge()Calculates the total of all charges which apply to the order at a whole.MoneyOrder. getTotalChargeOfType(AbstractCharge.ChargeType chargeType)Calculates the total of all charges of one specific type which apply to the order at a whole.MoneyLineItem. getTotalDiscount()Calculates the total of all line item discounts.MoneyOrder. getTotalDiscount()Calculates the total of all discounts assigned to this order.MoneyOrder. getTotalIncludingTaxes()Calculates the order total always including taxes.MoneyOrder. getTotalTax()Returns the overall sum of taxes within this order.MoneyOrder. getTotalTaxFor(Tax tax)Calculates the total tax for a specificTaxobject.Methods in de.hybris.order.calculation.domain that return types with arguments of type Money Modifier and Type Method Description java.util.Map<LineItem,Money>MultiLineItemDiscount. getDiscountValues()java.util.Map<LineItemCharge,Money>LineItem. getTotalCharges()Calculates totals of all line item charges separately.java.util.Map<OrderCharge,Money>Order. getTotalCharges()Calculates totals of all charges assigned to this order separately.java.util.Map<LineItemDiscount,Money>LineItem. getTotalDiscounts()Calculates the totals of all line item discounts separately.java.util.Map<OrderDiscount,Money>Order. getTotalDiscounts()Calculates totals of all discounts assigned to this order separately.java.util.Map<Tax,Money>Order. getTotalTaxes()Calculates total taxes for all assignedTaxobject.Methods in de.hybris.order.calculation.domain with parameters of type Money Modifier and Type Method Description protected 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 Money Modifier and Type Method Description protected MoneyOrder. getFixedTaxedAdditionalCharges(java.util.Map<OrderCharge,Money> aocValues)Constructors in de.hybris.order.calculation.domain with parameters of type Money Constructor Description LineItem(Money basePrice)Creates a new line item with the given base price and one unit.LineItem(Money basePrice, int numberOfUnits)Creates a new line item with the given base price and number of units.MultiLineItemDiscount(Money amount)MultiLineItemDiscount(Money amount, MultiLineItemDiscount.MultiLineDiscountSplitStrategy mldss) -
Uses of Money in de.hybris.order.calculation.money
Methods in de.hybris.order.calculation.money that return Money Modifier and Type Method Description MoneyMoney. add(Money money)MoneyMoney.MoneyExtractor. extractMoney(T object)MoneyMoney. subtract(Money money)static MoneyMoney. sum(Money... money)static MoneyMoney. sum(java.util.Collection<Money> elements)static <T> MoneyMoney. sum(java.util.Collection<T> elements, Money.MoneyExtractor<T> extractor)protected static <T> MoneyMoney. sumUnscaled(java.util.Collection<T> elements, Money.MoneyExtractor<T> extractor)static MoneyMoney. zero(Currency curr)Shortcut to obtain commonly used zero money instances.Methods in de.hybris.order.calculation.money that return types with arguments of type Money Modifier and Type Method Description java.util.List<Money>Money. split(Percentage... percentages)Same assplit(List)but because of the variable parameter list the sum must not be exactly 100%.java.util.List<Money>Money. split(java.util.List<Percentage> percentages)Splits the current Money into a list of new Money objects, based on the given list ofPercentageobjects.static java.util.List<Money>Money. valueOf(Currency curr, long... amounts)Creates a list of money objects for a specific currency and any number of long values.static java.util.List<Money>Money. valueOf(Currency curr, java.lang.String... amounts)Creates a list of money objects for a specific currency and any number of String values.static java.util.List<Money>Money. valueOf(Currency curr, java.math.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 Money Modifier and Type Method Description MoneyMoney. add(Money money)voidMoney. assertCurreniesAreEqual(Money other)Checks if the current Currency is equal to given one.static java.util.List<Percentage>Money. getPercentages(int scale, Money... moneys)Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.static java.util.List<Percentage>Money. getPercentages(Money... moneys)Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.MoneyMoney. subtract(Money money)static MoneyMoney. sum(Money... money)Method parameters in de.hybris.order.calculation.money with type arguments of type Money Modifier and Type Method Description static java.util.List<Percentage>Money. getPercentages(java.util.List<Money> moneys, int scale)Calculates a list ofPercentageobjects reflecting the distribution of money within the given money list.protected static int[]Money. getSortedPositionTable(java.util.List<Money> moneyList)static voidMoney. sortAscending(java.util.List<Money> elements)protected static <T> java.util.List<T>Money. sortByMoney(java.util.Map<T,Money> moneyMap, java.util.Comparator<java.util.Map.Entry<?,Money>> comp)protected static <T> java.util.List<T>Money. sortByMoney(java.util.Map<T,Money> moneyMap, java.util.Comparator<java.util.Map.Entry<?,Money>> comp)static <T> java.util.List<T>Money. sortByMoneyAscending(java.util.Map<T,Money> moneyMap)static <T> java.util.List<T>Money. sortByMoneyDescending(java.util.Map<T,Money> moneyMap)static voidMoney. sortDescending(java.util.List<Money> elements)static MoneyMoney. sum(java.util.Collection<Money> elements)protected static longMoney. sumUnscaled(java.util.Collection<Money> elements) -
Uses of Money in de.hybris.order.calculation.strategies
Methods in de.hybris.order.calculation.strategies that return Money Modifier and Type Method Description MoneyRoundingStrategy. divide(Money money, java.math.BigDecimal factor)Divide price by factorMoneyRoundingStrategy. getPercentValue(Money price, Percentage percent)Returns for the givenPercentageamount the calculated amount inMoney.MoneyRoundingStrategy. multiply(Money money, java.math.BigDecimal factor)Multiply the given money by given factor.MoneyRoundingStrategy. roundToMoney(java.math.BigDecimal amount, Currency currency)Creates aMoneyobject based on the given BigDecimal amount.Methods in de.hybris.order.calculation.strategies with parameters of type Money Modifier and Type Method Description MoneyRoundingStrategy. divide(Money money, java.math.BigDecimal factor)Divide price by factorMoneyRoundingStrategy. getPercentValue(Money price, Percentage percent)Returns for the givenPercentageamount the calculated amount inMoney.MoneyRoundingStrategy. multiply(Money money, java.math.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 Money Modifier and Type Method Description protected MoneyDefaultRoundingStrategy. createMoney(java.math.BigDecimal amount, Currency curr)protected MoneyDefaultTaxRoundingStrategy. createMoney(java.math.BigDecimal amount, Currency curr)MoneyDefaultRoundingStrategy. divide(Money price, java.math.BigDecimal divisor)MoneyDefaultRoundingStrategy. getPercentValue(Money price, Percentage percent)MoneyDefaultRoundingStrategy. multiply(Money price, java.math.BigDecimal multiplicant)MoneyDefaultRoundingStrategy. roundToMoney(java.math.BigDecimal amount, Currency currency)Methods in de.hybris.order.calculation.strategies.impl with parameters of type Money Modifier and Type Method Description MoneyDefaultRoundingStrategy. divide(Money price, java.math.BigDecimal divisor)MoneyDefaultRoundingStrategy. getPercentValue(Money price, Percentage percent)MoneyDefaultRoundingStrategy. multiply(Money price, java.math.BigDecimal multiplicant) -
Uses of Money in de.hybris.platform.ruleengineservices.calculation
Constructors in de.hybris.platform.ruleengineservices.calculation with parameters of type Money Constructor Description NumberedLineItem(Money basePrice)NumberedLineItem(Money basePrice, int numberOfUnits)
-