Models

  • Represents an amount of money.

    See more

    Declaration

    Objective-C

    @interface SQRDMoney : NSObject <NSCopying>

    Swift

    class SQRDMoney : NSObject, NSCopying
  • A list of currencies in ISO 4217 format.

    Each numeric value corresponds to the ISO 4217 numeric code for that currency except .unknown and .automatic.

    See more

    Declaration

    Objective-C

    enum SQRDCurrencyCode {}
  • Get the corresponding ISO 4217 currency code from a SQRDCurrencyCode.

    Declaration

    Objective-C

    extern NSString *_Nonnull SQRDCurrencyCodeGetISOCurrencyCode(
        SQRDCurrencyCode currencyCode)

    Parameters

    currencyCode

    A currency code. @returns The corresponding ISO 4217 currency code if currencyCode is not .unknown or .automatic.

  • Make a SQRDCurrencyCode from an ISO 4217 currency code.

    Declaration

    Objective-C

    extern SQRDCurrencyCode SQRDCurrencyCodeMake(NSString *_Nonnull ISOCurrencyCode)

    Parameters

    ISOCurrencyCode

    An ISO 4217 currency code. @returns The corresponding SQRDCurrencyCode if ISOCurrencyCode is a valid ISO currency code; otherwise .unknown.

  • Represents a tender used during the checkout flow.

    See more

    Declaration

    Objective-C

    @interface SQRDTender : NSObject <NSCopying>

    Swift

    class SQRDTender : NSObject, NSCopying
  • Indicates a tender’s type.

    See more

    Declaration

    Objective-C

    enum SQRDTenderType {}

    Swift

    enum SQRDTenderType : Int
  • Represents the details related to a card payment.

    See more

    Declaration

    Objective-C

    @interface SQRDTenderCardDetails : NSObject <NSCopying>

    Swift

    class SQRDTenderCardDetails : NSObject, NSCopying
  • The entry method used to provide a card’s details.

    See more

    Declaration

    Objective-C

    enum SQRDTenderCardDetailsEntryMethod {}

    Swift

    enum SQRDTenderCardDetailsEntryMethod : Int
  • Represents the details related to a cash payment.

    See more

    Declaration

    Objective-C

    @interface SQRDTenderCashDetails : NSObject <NSCopying>

    Swift

    class SQRDTenderCashDetails : NSObject, NSCopying
  • Represents the non-confidential details of a payment card.

    See more

    Declaration

    Objective-C

    @interface SQRDCard : NSObject <NSCopying>

    Swift

    class SQRDCard : NSObject, NSCopying
  • Indicates a card’s brand, such as Visa.

    See more

    Declaration

    Objective-C

    enum SQRDCardBrand {}

    Swift

    enum SQRDCardBrand : Int