Expiry

public struct Expiry : Equatable

Representation of an Expiry data structure for depicting a card expiration date.

Properties

  • mm

    Month specifier, in format MM. e.g. (7 == July).

    Declaration

    Swift

    public var mm: Int
  • Year specifier, in format YYYY. e.g. (2020 == Year 2020).

    Declaration

    Swift

    public var yyyy: Int

Lifecycle

  • Initialize an instance of a Expiry.

    Declaration

    Swift

    public init(mm: Int, yyyy: Int)