From bc82b8ef93944a25cee5faf98839f07ed5c2c90f Mon Sep 17 00:00:00 2001 From: Till Hellmund Date: Wed, 14 Sep 2022 10:57:01 -0400 Subject: [PATCH 1/3] Make PaymentMethod networks prop public --- .../src/main/java/com/stripe/android/model/PaymentMethod.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payments-core/src/main/java/com/stripe/android/model/PaymentMethod.kt b/payments-core/src/main/java/com/stripe/android/model/PaymentMethod.kt index 55079a01cfb..759d2cb1652 100644 --- a/payments-core/src/main/java/com/stripe/android/model/PaymentMethod.kt +++ b/payments-core/src/main/java/com/stripe/android/model/PaymentMethod.kt @@ -677,7 +677,7 @@ constructor( @JvmField val wallet: Wallet? = null, @JvmField - internal val networks: Networks? = null + val networks: Networks? = null ) : TypeData() { override val type: Type get() = Type.Card From fc7d83ba9d03c828777ee4fe5539bfc63833e303 Mon Sep 17 00:00:00 2001 From: Till Hellmund Date: Wed, 14 Sep 2022 14:06:12 -0400 Subject: [PATCH 2/3] Update API --- payments-core/api/payments-core.api | 2 ++ 1 file changed, 2 insertions(+) diff --git a/payments-core/api/payments-core.api b/payments-core/api/payments-core.api index f51040111e2..4689fce404d 100644 --- a/payments-core/api/payments-core.api +++ b/payments-core/api/payments-core.api @@ -3567,10 +3567,12 @@ public final class com/stripe/android/model/PaymentMethod$Card : com/stripe/andr public final field fingerprint Ljava/lang/String; public final field funding Ljava/lang/String; public final field last4 Ljava/lang/String; + public final field networks Lcom/stripe/android/model/PaymentMethod$Card$Networks; public final field threeDSecureUsage Lcom/stripe/android/model/PaymentMethod$Card$ThreeDSecureUsage; public final field wallet Lcom/stripe/android/model/wallets/Wallet; public final fun component1 ()Lcom/stripe/android/model/CardBrand; public final fun component10 ()Lcom/stripe/android/model/wallets/Wallet; + public final fun component11 ()Lcom/stripe/android/model/PaymentMethod$Card$Networks; public final fun component2 ()Lcom/stripe/android/model/PaymentMethod$Card$Checks; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/Integer; From db16004f8ff75530c9c463397f7490e4669b745d Mon Sep 17 00:00:00 2001 From: Till Hellmund Date: Wed, 14 Sep 2022 16:25:16 -0400 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ede5227e8f..75d18a3a2ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## X.X.X - 2022-XX-XX +### Payments + +* [CHANGED] [5552](https://github.com/stripe/stripe-android/pull/5552) Make `PaymentMethod.Card.networks` field public. + ## 20.12.0 - 2022-09-13 This release upgrades `compileSdkVersion` to 33, updates Google Pay button to match the new brand guidelines and fixes some bugs in `FlowController`.