Amount

public struct Amount: StringLiteralConvertible

Amount

Amount object stores information about an amount and the corresponding currency for a transaction

  • The currency ISO Code - GBP is default

    Declaration

    Swift

    public var currency: Currency = .GBP
  • The amount to process, to two decimal places

    Declaration

    Swift

    public var amount: NSDecimalNumber
  • Initializer for amount

    Declaration

    Swift

    public init(decimalNumber: NSDecimalNumber, currency: Currency)

    Parameters

    decimalNumber

    a decimal number with the value of an amount to transact

    currency

    the currency of the amount to transact

    Return Value

    an Amount object

  • Initializer for Amount

    Declaration

    Swift

    public init(amountString: String, currency: Currency)

    Parameters

    amountString

    a string with the value of an amount to transact

    currency

    the currency of the amount to transact

    Return Value

    an Amount object

  • Undocumented

    Declaration

    Swift

    public struct Amount: StringLiteralConvertible
  • Undocumented

    Declaration

    Swift

    public struct Amount: StringLiteralConvertible
  • Undocumented

    Declaration

    Swift

    public struct Amount: StringLiteralConvertible