From 7d9686abb74d5bbc9ac00567038b9af1f66f2377 Mon Sep 17 00:00:00 2001 From: Michael Shafrir Date: Wed, 25 Nov 2020 11:48:14 -0500 Subject: [PATCH] Mark some builders in PaymentMethodCreateParams as deprecated --- .../stripe/android/model/PaymentMethodCreateParams.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt b/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt index f99d7f2bb56..45592389bcd 100644 --- a/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt +++ b/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt @@ -280,12 +280,13 @@ data class PaymentMethodCreateParams internal constructor( @Parcelize data class Ideal( - private val bank: String? + var bank: String? ) : StripeParamsModel, Parcelable { override fun toParamMap(): Map { return bank?.let { mapOf(PARAM_BANK to it) }.orEmpty() } + @Deprecated("Ideal#bank is now visible and mutable.") class Builder : ObjectBuilder { internal var bank: String? = null @@ -305,7 +306,7 @@ data class PaymentMethodCreateParams internal constructor( @Parcelize data class Fpx( - private val bank: String? + var bank: String? ) : StripeParamsModel, Parcelable { override fun toParamMap(): Map { return bank?.let { @@ -313,6 +314,7 @@ data class PaymentMethodCreateParams internal constructor( }.orEmpty() } + @Deprecated("Fpx#bank is now visible and mutable.") class Builder : ObjectBuilder { internal var bank: String? = null @@ -347,7 +349,7 @@ data class PaymentMethodCreateParams internal constructor( @Parcelize data class SepaDebit( - private val iban: String? + var iban: String? ) : StripeParamsModel, Parcelable { override fun toParamMap(): Map { return iban?.let { @@ -355,6 +357,7 @@ data class PaymentMethodCreateParams internal constructor( }.orEmpty() } + @Deprecated("SepaDebit#iban is now visible and mutable.") class Builder : ObjectBuilder { private var iban: String? = null