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