Skip to content

Commit

Permalink
feat: iin field (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Cavaletti Alves <[email protected]>
  • Loading branch information
bsalves and Bruno Cavaletti Alves authored Jul 17, 2024
1 parent 3c2d6ea commit 5bca59d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public struct PaymentMethodCard: Codable {
public var threeDSecureUsage: PaymentMethodCardThreeDSecureUsage?
/// If this Card is part of a card wallet, this contains the details of the card wallet.
public var wallet: PaymentMethodCardWallet?
/// The issuer identification number for the card. This is the first six digits of a card number.
public var iin: String?

public init(brand: PaymentMethodDetailsCardBrand? = nil,
checks: PaymentMethodDetailsCardChecks? = nil,
Expand All @@ -145,7 +147,8 @@ public struct PaymentMethodCard: Codable {
last4: String? = nil,
networks: PaymentMethodCardNetworks? = nil,
threeDSecureUsage: PaymentMethodCardThreeDSecureUsage? = nil,
wallet: PaymentMethodCardWallet? = nil) {
wallet: PaymentMethodCardWallet? = nil,
iin: String? = nil) {
self.brand = brand
self.checks = checks
self.country = country
Expand All @@ -158,6 +161,7 @@ public struct PaymentMethodCard: Codable {
self.networks = networks
self.threeDSecureUsage = threeDSecureUsage
self.wallet = wallet
self.iin = iin
}
}

Expand Down

0 comments on commit 5bca59d

Please sign in to comment.