Interface Money


public interface Money
An object giving details on currency code and the amount charged.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Dedicated Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting builder
    The 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 example 2.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

      static Money.Builder builder()
      Getting builder
      Returns:
      New Builder instance