Money

public struct Money

An amount of money.

  • The ISO 4217 code of the currency.

    Declaration

    Swift

    public let currencyCode: String
  • The amount of money, rounded to max. 2 decimal places.

    Declaration

    Swift

    public let amount: Decimal
  • Declaration

    Swift

    public init(currencyCode: String, amount: Decimal)