BillingCountry

public enum BillingCountry: Int

BillingCountry

BillingCountry enum to simplify identifying a billing country for a given card

  • UK

    United Kingdom

    Declaration

    Swift

    case UK
  • USA

    United States of America

    Declaration

    Swift

    case USA
  • Canada

    Declaration

    Swift

    case Canada
  • Other

    Declaration

    Swift

    case Other
  • Simple helper to receive all values of the struct as an array

    Declaration

    Swift

    public static let allValues = [UK, USA, Canada, Other]
  • Transacting with AMEX required ISO codes instead of Unicode representation of a country

    Declaration

    Swift

    public func ISOCode() -> Int?

    Return Value

    the ISO code as an Int for the receiver

  • Different countries have different names for postal code description. This method returns the receivers version of a string representation

    Declaration

    Swift

    public func titleDescription() -> String

    Return Value

    a String

  • Get a string representation of a title

    Declaration

    Swift

    public func title() -> String

    Return Value

    a String object