CurrencyAmount
public struct CurrencyAmount : Hashable
Representation of a Currency Amount object on the Virtual Cards Service.
-
Currency ISO code of the amount.
Declaration
Swift
public var currency: String
-
Amount of the currency in cents.
100
equals $1.00 if currency isUSD
.Declaration
Swift
public var amount: Int
-
Initialize an instance of
CurrencyAmount
.Declaration
Swift
public init(currency: String, amount: Int)