Interface Money


public interface Money
A monetary amount with an associated currency code.
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    Getting builder
    The monetary amount as a string to preserve precision.
    The 3-letter currency code defined in ISO 4217.
  • Method Details

    • getCurrencyCode

      String getCurrencyCode()
      The 3-letter currency code defined in ISO 4217.

      Field is required

      Returns:
      currencyCode
    • getAmount

      String getAmount()
      The monetary amount as a string to preserve precision. Supports up to 4 decimal places (e.g., "10.5000", "0.9999").

      Field is required

      Returns:
      amount
    • builder

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