AmountDiscount
public class AmountDiscount : 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.
-
Create amount using minor units.
Declaration
Swift
public init(amount: Int, currency: CCurrency, discountId: String)
-
Create amount using minor units.
Declaration
Swift
public init(amount: Int, currency: CCurrency, exponent: Int, discountId: String) throws
-
Create amount using minor units.
Declaration
Swift
public init(amount: Int64, currency: CCurrency, discountId: String)
-
Create amount using minor units.
Declaration
Swift
public init(amount: Int64, currency: CCurrency, exponent: Int, discountId: String) throws
-
Create amount using major units.
Declaration
Swift
public init(amount: Double, currency: CCurrency, discountId: String)
-
Create amount using major units.
Declaration
Swift
public init(amount: Double, currency: CCurrency, exponent: Int, discountId: String) throws
-
Discount type.
Declaration
Swift
public var discountId: String
-
Textual representation.
Declaration
Swift
override public var description: String { get }