Uses of Class
org.broadleafcommerce.common.money.Money
Packages that use Money
Package
Description
-
Uses of Money in org.broadleafcommerce.common.currency.util
Methods in org.broadleafcommerce.common.currency.util that return MoneyModifier and TypeMethodDescriptionstatic MoneyBroadleafCurrencyUtils.getMoney(BigDecimal amount) static MoneyBroadleafCurrencyUtils.getMoney(BigDecimal amount, BroadleafCurrency currency) static MoneyBroadleafCurrencyUtils.getMoney(BroadleafCurrency currency) static MoneyBroadleafCurrencyUtils.getUnitAmount(BroadleafCurrency blCurrency) Returns the unit amount (e.g.static MoneyBroadleafCurrencyUtils.getUnitAmount(Money difference) Returns the unit amount (e.g.Methods in org.broadleafcommerce.common.currency.util with parameters of type MoneyModifier and TypeMethodDescriptionstatic intBroadleafCurrencyUtils.calculateRemainder(Money totalAmount, int quantity) Returns the remainder amount if the passed in totalAmount was divided by the quantity taking into account the normal unit of the currency (e.g.static CurrencyBroadleafCurrencyUtils.getCurrency(Money money) static MoneyBroadleafCurrencyUtils.getUnitAmount(Money difference) Returns the unit amount (e.g. -
Uses of Money in org.broadleafcommerce.common.money
Fields in org.broadleafcommerce.common.money declared as MoneyMethods in org.broadleafcommerce.common.money that return MoneyModifier and TypeMethodDescriptionMoney.abs()static MoneyCurrencyConversionService.convertCurrency(Money source, Currency destinationCurrency, int destinationScale) Converts the given Money into the destination.Money.divide(double amount) Money.divide(double amount, RoundingMode roundingMode) Money.divide(int amount) Money.divide(int amount, RoundingMode roundingMode) Money.divide(BigDecimal divisor) Money.divide(BigDecimal divisor, RoundingMode roundingMode) static Moneystatic MoneyMoney.multiply(double amount) Money.multiply(int amount) Money.multiply(BigDecimal multiplier) Money.multiply(BigDecimal multiplier, RoundingMode roundingMode) Money.multiplyWithRounding(int inInt, RoundingMode roundingMode) Money.negate()static MoneyMoney.trimUnnecessaryScaleToCurrency(Money money) Money.zero()static Moneystatic MoneyMethods in org.broadleafcommerce.common.money with parameters of type MoneyModifier and TypeMethodDescriptionstatic MoneyintCurrencyConversionService.convertCurrency(Money source, Currency destinationCurrency, int destinationScale) Converts the given Money into the destination.booleanMoney.greaterThan(Money other) booleanMoney.greaterThanOrEqual(Money other) booleanbooleanMoney.lessThanOrEqual(Money other) static Moneystatic Moneystatic BigDecimalstatic CurrencyMoney.toCurrency(Money money) static MoneyMoney.trimUnnecessaryScaleToCurrency(Money money) -
Uses of Money in org.broadleafcommerce.common.payment.dto
Fields in org.broadleafcommerce.common.payment.dto declared as MoneyModifier and TypeFieldDescriptionprotected MoneyPaymentResponseDTO.amountIf this was a Transaction request, it will be the amount that was sent back from the gatewayMethods in org.broadleafcommerce.common.payment.dto that return MoneyMethods in org.broadleafcommerce.common.payment.dto with parameters of type Money -
Uses of Money in org.broadleafcommerce.common.util
Methods in org.broadleafcommerce.common.util with parameters of type MoneyModifier and TypeMethodDescriptionstatic StringBLCMoneyFormatUtils.formatPrice(Money price) Reformats the given price field for front-end display.static StringBLCMoneyFormatUtils.formatPrice(Money price, Map<String, String> localeToChange)