Skip to content

Commit

Permalink
feat: iin field
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Cavaletti Alves committed Jul 12, 2024
1 parent 3c2d6ea commit f4f2842
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 f4f2842

Please sign in to comment.