AmountDcc
public class AmountDcc : Amount
Contains the amount for transactions. The amount can be specified in minor units as integer value or in major units as floating point value. Immutable class.
-
Create DCC amount.
Declaration
Swift
public init(amount: Int64, currency: CCurrency, rate: Int64, rateExponent: Int, markup: Int64?, markupExponent: Int?)
-
Create DCC amount.
Declaration
Swift
public init(amount: Int64, currency: CCurrency, exponent: Int, rate: Int64, rateExponent: Int, markup: Int64?, markupExponent: Int?) throws
-
Create DCC amount.
Declaration
Swift
public init(amount: Double, currency: CCurrency, rate: Int64, rateExponent: Int, markup: Int64?, markupExponent: Int?)
-
Create DCC amount.
Declaration
Swift
public init(amount: Double, currency: CCurrency, exponent: Int, rate: Int64, rateExponent: Int, markup: Int64?, markupExponent: Int?) throws
-
Exchange Rate in minor units as integer value.
Declaration
Swift
public private(set) var rate: Int64
-
Exchange Rate Exponent.
Declaration
Swift
public private(set) var rateExponent: Int
-
Exchange rate in major units as floating point value.
Declaration
Swift
public var rateDecimal: Double { get }
-
Markup applied to the DCC rate by the DCC provider as minor units integer value.
Declaration
Swift
public private(set) var markup: Int64?
-
Exponent of the markup.
Declaration
Swift
public private(set) var markupExponent: Int?
-
Markup applied to the DCC rate by the DCC provider as major units floating point value. \returns nil if markup or markup exponent is nil.
Declaration
Swift
public var markupDecimal: Double? { get }
-
Textual representation.
Declaration
Swift
override public var description: String { get }