| Modifier and Type | Method and Description |
|---|---|
Currency |
Order.getCurrency()
Returns the currency which this order is being calculated for.
|
| Constructor and Description |
|---|
Order(Currency currency,
boolean isNet,
CalculationStrategies calculationStrategies)
Creates a new order calculation object based on a specific currency and bet/gross mode.
|
Order(Currency currency,
CalculationStrategies calculationStrategies)
Creates a new gross order calculation object based on a specific currency.
|
| Modifier and Type | Method and Description |
|---|---|
Currency |
Money.getCurrency()
Returns the currency of this money.
|
static Currency |
Currency.valueOf(java.lang.String code,
int digits)
Shortcut for getting commonly used currency instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Money.assertCurreniesAreEqual(Currency curr)
Checks if the current Currency is equal to given one.
|
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.
|
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 Money |
Money.zero(Currency curr)
Shortcut to obtain commonly used zero money instances.
|
| Constructor and Description |
|---|
Money(java.math.BigDecimal amount,
Currency currency)
Creates a Money object.
|
Money(Currency currency)
Creates zero money of the given Currency.
|
Money(long amountInSmallestPieces,
Currency currency)
Creates a new money from a given amount of smallest pieces and a currency.
|
Money(java.lang.String amount,
Currency currency)
Creates a new money from String and currency.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
RoundingStrategy.roundToMoney(java.math.BigDecimal amount,
Currency currency)
Creates a
Money object based on the given BigDecimal amount. |
| Modifier and Type | Method and Description |
|---|---|
protected Money |
DefaultTaxRoundingStrategy.createMoney(java.math.BigDecimal amount,
Currency curr) |
protected Money |
DefaultRoundingStrategy.createMoney(java.math.BigDecimal amount,
Currency curr) |
Money |
DefaultRoundingStrategy.roundToMoney(java.math.BigDecimal amount,
Currency currency) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultRuleEngineCalculationServiceCreationMethodsTest.assertCreateLineItemDiscountAbsolute(LineItem lineItem,
LineItemDiscount createLineItemDiscount,
boolean perUnit,
Currency currency,
java.math.BigDecimal valueOf) |
protected LineItemDiscount |
DefaultRuleEngineCalculationService.validateLineItemDiscount(LineItem lineItem,
boolean absolute,
Currency currency,
LineItemDiscount discount) |
| Modifier and Type | Method and Description |
|---|---|
Currency |
AbstractOrderRaoToCurrencyConverter.convert(AbstractOrderRAO source) |
Currency |
AbstractOrderRaoToCurrencyConverter.convert(AbstractOrderRAO paramSOURCE,
Currency paramTARGET) |
| Modifier and Type | Method and Description |
|---|---|
protected Converter<AbstractOrderRAO,Currency> |
OrderEntryRaoToNumberedLineItemConverter.getAbstractOrderRaoToCurrencyConverter() |
protected Converter<AbstractOrderRAO,Currency> |
AbstractOrderRaoToOrderConverter.getAbstractOrderRaoToCurrencyConverter() |
| Modifier and Type | Method and Description |
|---|---|
Currency |
AbstractOrderRaoToCurrencyConverter.convert(AbstractOrderRAO paramSOURCE,
Currency paramTARGET) |
| Modifier and Type | Method and Description |
|---|---|
void |
OrderEntryRaoToNumberedLineItemConverter.setAbstractOrderRaoToCurrencyConverter(Converter<AbstractOrderRAO,Currency> abstractOrderRaoToCurrencyConverter) |
void |
AbstractOrderRaoToOrderConverter.setAbstractOrderRaoToCurrencyConverter(Converter<AbstractOrderRAO,Currency> abstractOrderRaoToCurrencyConverter) |
| Modifier and Type | Method and Description |
|---|---|
OrderCharge |
OrderUtils.createShippingCharge(Currency currency,
boolean absolute,
java.math.BigDecimal value)
Creates an
OrderCharge of AbstractCharge.ChargeType.SHIPPING for the given values. |
Copyright © 2018 SAP SE. All Rights Reserved.