Amount

public struct Amount

Describes the amount of a payment.

  • The value of the amount in minor units.

    Declaration

    Swift

    public var value: Int
  • The code of the currency in which the amount’s value is specified.

    Declaration

    Swift

    public var currencyCode: String
  • Initializes an Amount.

    Declaration

    Swift

    public init(value: Int, currencyCode: String)

    Parameters

    value

    The value in minor units.

    currencyCode

    The code of the currency.