CurrencyAmount

public struct CurrencyAmount : Hashable

Representation of a Currency Amount object on the Virtual Cards Service.

Properties

  • Currency ISO code of the amount.

    Declaration

    Swift

    public var currency: String
  • Amount of the currency in cents. 100 equals $1.00 if currency is USD.

    Declaration

    Swift

    public var amount: Int

Lifecycle

  • Initialize an instance of CurrencyAmount.

    Declaration

    Swift

    public init(currency: String, amount: Int)