CardDate

@objcMembers
public class CardDate : NSObject, Codable
extension CardDate: CustomReflectable

Month and Year for a card date (Start or Expiration) MM/YY

  • Month for a card date MM

    Declaration

    Swift

    public private(set) var month: Int { get }
  • Year for a card date YY

    Declaration

    Swift

    public private(set) var year: Int { get }
  • Initialise a CardDate passing the proper parameters

    Declaration

    Swift

    public init(month: Int, year: Int)

    Parameters

    month

    The month in MM

    year

    The month in YY

  • Used to print the debug content of the object

    Declaration

    Swift

    public var customMirror: Mirror { get }
  • Used to print the debug content of the object

    Declaration

    Swift

    override public var debugDescription: String { get }