From b21fdce7258dd9c0f56547616485d38ac0d47942 Mon Sep 17 00:00:00 2001 From: Till Hellmund Date: Thu, 7 Dec 2023 10:12:34 -0500 Subject: [PATCH] Update API --- payments-core/api/payments-core.api | 20 +++++++++++++++++++ paymentsheet/api/paymentsheet.api | 6 +++++- .../android/paymentsheet/PaymentSheet.kt | 3 +-- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/payments-core/api/payments-core.api b/payments-core/api/payments-core.api index 169a2636225..f3e92c7326b 100644 --- a/payments-core/api/payments-core.api +++ b/payments-core/api/payments-core.api @@ -4096,6 +4096,7 @@ public final class com/stripe/android/model/PaymentMethodCreateParams$Card$Build public final fun setCvc (Ljava/lang/String;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Builder; public final fun setExpiryMonth (Ljava/lang/Integer;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Builder; public final fun setExpiryYear (Ljava/lang/Integer;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Builder; + public final fun setNetworks (Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Networks;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Builder; public final fun setNumber (Ljava/lang/String;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Builder; } @@ -4111,6 +4112,22 @@ public final class com/stripe/android/model/PaymentMethodCreateParams$Card$Creat public synthetic fun newArray (I)[Ljava/lang/Object; } +public final class com/stripe/android/model/PaymentMethodCreateParams$Card$Networks : android/os/Parcelable, com/stripe/android/model/StripeParamsModel { + public static final field $stable I + public static final field CREATOR Landroid/os/Parcelable$Creator; + public static final field PARAM_PREFERRED Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public synthetic fun (Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun describeContents ()I + public fun equals (Ljava/lang/Object;)Z + public final fun getPreferred ()Ljava/lang/String; + public fun hashCode ()I + public fun toParamMap ()Ljava/util/Map; + public fun toString ()Ljava/lang/String; + public fun writeToParcel (Landroid/os/Parcel;I)V +} + public final class com/stripe/android/model/PaymentMethodCreateParams$Card$Networks$Creator : android/os/Parcelable$Creator { public fun ()V public final fun createFromParcel (Landroid/os/Parcel;)Lcom/stripe/android/model/PaymentMethodCreateParams$Card$Networks; @@ -7267,6 +7284,7 @@ public final class com/stripe/android/view/CardFormView : android/widget/LinearL public final fun getPaymentMethodCreateParams ()Lcom/stripe/android/model/PaymentMethodCreateParams; public final fun setCardValidCallback (Lcom/stripe/android/view/CardValidCallback;)V public fun setEnabled (Z)V + public final fun setPreferredNetworks (Ljava/util/List;)V } public abstract interface class com/stripe/android/view/CardInputListener { @@ -7316,6 +7334,7 @@ public final class com/stripe/android/view/CardInputWidget : android/widget/Line public final fun setPostalCodeEnabled (Z)V public final fun setPostalCodeRequired (Z)V public fun setPostalCodeTextWatcher (Landroid/text/TextWatcher;)V + public final fun setPreferredNetworks (Ljava/util/List;)V public final fun setUsZipCodeRequired (Z)V } @@ -7350,6 +7369,7 @@ public final class com/stripe/android/view/CardMultilineWidget : android/widget/ public fun setExpiryDateTextWatcher (Landroid/text/TextWatcher;)V public final fun setPostalCodeRequired (Z)V public fun setPostalCodeTextWatcher (Landroid/text/TextWatcher;)V + public final fun setPreferredNetworks (Ljava/util/List;)V public final fun setShouldShowPostalCode (Z)V public final fun setUsZipCodeRequired (Z)V public final fun validateAllFields ()Z diff --git a/paymentsheet/api/paymentsheet.api b/paymentsheet/api/paymentsheet.api index a0a17ef4bb9..9cf40ac6506 100644 --- a/paymentsheet/api/paymentsheet.api +++ b/paymentsheet/api/paymentsheet.api @@ -96,6 +96,7 @@ public final class com/stripe/android/customersheet/CustomerSheet$Configuration public final fun getGooglePayEnabled ()Z public final fun getHeaderTextForSelectionScreen ()Ljava/lang/String; public final fun getMerchantDisplayName ()Ljava/lang/String; + public final fun getPreferredNetworks ()Ljava/util/List; public final fun newBuilder ()Lcom/stripe/android/customersheet/CustomerSheet$Configuration$Builder; } @@ -107,6 +108,7 @@ public final class com/stripe/android/customersheet/CustomerSheet$Configuration$ public final fun defaultBillingDetails (Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;)Lcom/stripe/android/customersheet/CustomerSheet$Configuration$Builder; public final fun googlePayEnabled (Z)Lcom/stripe/android/customersheet/CustomerSheet$Configuration$Builder; public final fun headerTextForSelectionScreen (Ljava/lang/String;)Lcom/stripe/android/customersheet/CustomerSheet$Configuration$Builder; + public final fun preferredNetworks (Ljava/util/List;)Lcom/stripe/android/customersheet/CustomerSheet$Configuration$Builder; } public final class com/stripe/android/customersheet/CustomerSheet$Configuration$Companion { @@ -549,7 +551,8 @@ public final class com/stripe/android/paymentsheet/PaymentSheet$Configuration : public fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;)V public fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;)V public fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;)V - public synthetic fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;Ljava/util/List;)V + public synthetic fun (Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$CustomerConfiguration;Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;Landroid/content/res/ColorStateList;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;ZZLcom/stripe/android/paymentsheet/PaymentSheet$Appearance;Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ljava/lang/String; public final fun component10 ()Ljava/lang/String; public final fun component11 ()Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetailsCollectionConfiguration; @@ -595,6 +598,7 @@ public final class com/stripe/android/paymentsheet/PaymentSheet$Configuration$Bu public final fun defaultBillingDetails (Lcom/stripe/android/paymentsheet/PaymentSheet$BillingDetails;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; public final fun googlePay (Lcom/stripe/android/paymentsheet/PaymentSheet$GooglePayConfiguration;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; public final fun merchantDisplayName (Ljava/lang/String;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; + public final fun preferredNetworks (Ljava/util/List;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; public final fun primaryButtonColor (Landroid/content/res/ColorStateList;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; public final fun primaryButtonLabel (Ljava/lang/String;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; public final fun shippingDetails (Lcom/stripe/android/paymentsheet/addresselement/AddressDetails;)Lcom/stripe/android/paymentsheet/PaymentSheet$Configuration$Builder; diff --git a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt index 7da18b357a1..c88b6c847cb 100644 --- a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt +++ b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt @@ -6,7 +6,6 @@ import android.os.Parcelable import androidx.activity.ComponentActivity import androidx.annotation.ColorInt import androidx.annotation.FontRes -import androidx.annotation.RestrictTo import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import androidx.fragment.app.Fragment @@ -321,7 +320,7 @@ class PaymentSheet internal constructor( /** Configuration for [PaymentSheet] **/ @Parcelize - data class Configuration( + data class Configuration @JvmOverloads constructor( /** * Your customer-facing business name. *