BankCard

public struct BankCard : Codable

Bank card data.

  • Bank card number.

    Declaration

    Swift

    public let number: String
  • Validity, year, YYYY.

    Declaration

    Swift

    public let expiryYear: String
  • The validity period of the month, MM.

    Declaration

    Swift

    public let expiryMonth: String
  • csc

    The CVC2 or CVV2 code, 3 or 4 characters, is printed on the back of the card.

    Declaration

    Swift

    public let csc: String
  • The name of the card owner.

    Declaration

    Swift

    public let cardholder: String?
  • Creates instance of BankCard.

    Declaration

    Swift

    public init(number: String,
                expiryYear: String,
                expiryMonth: String,
                csc: String,
                cardholder: String?)

    Parameters

    number

    Bank card number.

    expiryYear

    Validity, year, YYYY.

    expiryMonth

    The validity period of the month, MM.

    csc

    The CVC2 or CVV2 code, 3 or 4 characters, is printed on the back of the card.

    cardholder

    The name of the card owner.

    Return Value

    Instance of BankCard