diff --git a/Sources/StripeKit/Models/Connect/External Accounts/ExternalAccounts.swift b/Sources/StripeKit/Models/Connect/External Accounts/ExternalAccounts.swift index 254c20ef..16172cfa 100644 --- a/Sources/StripeKit/Models/Connect/External Accounts/ExternalAccounts.swift +++ b/Sources/StripeKit/Models/Connect/External Accounts/ExternalAccounts.swift @@ -28,7 +28,7 @@ public struct StripeExternalAccountsList: StripeModel { public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) object = try container.decode(String.self, forKey: .object) - hasMore = try container.decode(Bool.self, forKey: .hasMore) + hasMore = try container.decodeIfPresent(Bool.self, forKey: .hasMore) url = try container.decodeIfPresent(String.self, forKey: .url) cardAccounts = try container.decodeIfPresent([StripeCard].self, forKey: .data)?.filter{ $0.object == "card" }