| Package | Description |
|---|---|
| org.broadleafcommerce.common.currency.util | |
| org.broadleafcommerce.common.money | |
| org.broadleafcommerce.common.payment.dto | |
| org.broadleafcommerce.common.util |
| Modifier and Type | Method and Description |
|---|---|
static Money |
BroadleafCurrencyUtils.getMoney(BigDecimal amount) |
static Money |
BroadleafCurrencyUtils.getMoney(BigDecimal amount,
BroadleafCurrency currency) |
static Money |
BroadleafCurrencyUtils.getMoney(BroadleafCurrency currency) |
static Money |
BroadleafCurrencyUtils.getUnitAmount(BroadleafCurrency blCurrency)
Returns the unit amount (e.g.
|
static Money |
BroadleafCurrencyUtils.getUnitAmount(Money difference)
Returns the unit amount (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
BroadleafCurrencyUtils.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 Currency |
BroadleafCurrencyUtils.getCurrency(Money money) |
static Money |
BroadleafCurrencyUtils.getUnitAmount(Money difference)
Returns the unit amount (e.g.
|
| Modifier and Type | Field and Description |
|---|---|
static Money |
Money.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.abs() |
static Money |
Money.abs(Money money) |
Money |
Money.add(Money other) |
Money |
CurrencyConversionService.convertCurrency(Money source,
Currency destinationCurrency,
int destinationScale)
Converts the given Money into the destination.
|
Money |
Money.divide(BigDecimal divisor) |
Money |
Money.divide(BigDecimal divisor,
RoundingMode roundingMode) |
Money |
Money.divide(double amount) |
Money |
Money.divide(double amount,
RoundingMode roundingMode) |
Money |
Money.divide(int amount) |
Money |
Money.divide(int amount,
RoundingMode roundingMode) |
Money |
Money.max(Money other) |
static Money |
Money.max(Money left,
Money right) |
Money |
Money.min(Money other) |
static Money |
Money.min(Money left,
Money right) |
Money |
Money.multiply(BigDecimal multiplier) |
Money |
Money.multiply(double amount) |
Money |
Money.multiply(int amount) |
Money |
Money.multiplyWithRounding(int inInt,
RoundingMode roundingMode) |
Money |
Money.negate() |
Money |
Money.subtract(Money other) |
static Money |
Money.trimUnnecessaryScaleToCurrency(Money money) |
Money |
Money.zero() |
static Money |
Money.zero(Currency currency) |
static Money |
Money.zero(String currencyCode) |
| Modifier and Type | Method and Description |
|---|---|
static Money |
Money.abs(Money money) |
Money |
Money.add(Money other) |
int |
Money.compareTo(Money other) |
Money |
CurrencyConversionService.convertCurrency(Money source,
Currency destinationCurrency,
int destinationScale)
Converts the given Money into the destination.
|
boolean |
Money.greaterThan(Money other) |
boolean |
Money.greaterThanOrEqual(Money other) |
boolean |
Money.lessThan(Money other) |
boolean |
Money.lessThanOrEqual(Money other) |
Money |
Money.max(Money other) |
static Money |
Money.max(Money left,
Money right) |
Money |
Money.min(Money other) |
static Money |
Money.min(Money left,
Money right) |
Money |
Money.subtract(Money other) |
static BigDecimal |
Money.toAmount(Money money) |
static Currency |
Money.toCurrency(Money money) |
static Money |
Money.trimUnnecessaryScaleToCurrency(Money money) |
| Modifier and Type | Field and Description |
|---|---|
protected Money |
PaymentResponseDTO.amount
If this was a Transaction request, it will be the amount that was sent back from the gateway
|
| Modifier and Type | Method and Description |
|---|---|
Money |
PaymentResponseDTO.getAmount() |
| Modifier and Type | Method and Description |
|---|---|
PaymentResponseDTO |
PaymentResponseDTO.amount(Money amount) |
| Modifier and Type | Method and Description |
|---|---|
static String |
BLCMoneyFormatUtils.formatPrice(Money price)
Reformats the given price field for front-end display.
|
Copyright © 2022. All rights reserved.