Interface Money
public interface Money
An object giving details on currency code and the amount charged.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Money.Builder
builder()
Getting builderThe amount in decimal form.The 3-letter currency code defined in ISO 4217.
-
Method Details
-
getCurrencyCode
String getCurrencyCode()The 3-letter currency code defined in ISO 4217.- Returns:
- currencyCode
-
getAmount
Double getAmount()The amount in decimal form. For example2.00
. There are no guarantees on the precision unless documented by the message origin. The amount cannot be updated and is read-only.- Returns:
- amount
-
builder
Getting builder- Returns:
- New Builder instance
-