From f4f2842dd2ebc223404b3196b789c9350ebe0308 Mon Sep 17 00:00:00 2001 From: Bruno Cavaletti Alves Date: Fri, 12 Jul 2024 14:07:11 -0300 Subject: [PATCH] feat: iin field --- .../Payment Methods/PaymentMethods/PaymentMethods.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/StripeKit/Payment Methods/PaymentMethods/PaymentMethods.swift b/Sources/StripeKit/Payment Methods/PaymentMethods/PaymentMethods.swift index 42ddf4e..fd91c30 100644 --- a/Sources/StripeKit/Payment Methods/PaymentMethods/PaymentMethods.swift +++ b/Sources/StripeKit/Payment Methods/PaymentMethods/PaymentMethods.swift @@ -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, @@ -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 @@ -158,6 +161,7 @@ public struct PaymentMethodCard: Codable { self.networks = networks self.threeDSecureUsage = threeDSecureUsage self.wallet = wallet + self.iin = iin } }