Skip to content

Commit

Permalink
Mark some builders in PaymentMethodCreateParams as deprecated (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshafrir-stripe authored Nov 30, 2020
1 parent ceb4ae9 commit 0dc1713
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Any> {
return bank?.let { mapOf(PARAM_BANK to it) }.orEmpty()
}

@Deprecated("Ideal#bank is now visible and mutable.")
class Builder : ObjectBuilder<Ideal> {
internal var bank: String? = null

Expand All @@ -305,14 +306,15 @@ data class PaymentMethodCreateParams internal constructor(

@Parcelize
data class Fpx(
private val bank: String?
var bank: String?
) : StripeParamsModel, Parcelable {
override fun toParamMap(): Map<String, Any> {
return bank?.let {
mapOf(PARAM_BANK to it)
}.orEmpty()
}

@Deprecated("Fpx#bank is now visible and mutable.")
class Builder : ObjectBuilder<Fpx> {
internal var bank: String? = null

Expand Down Expand Up @@ -347,14 +349,15 @@ data class PaymentMethodCreateParams internal constructor(

@Parcelize
data class SepaDebit(
private val iban: String?
var iban: String?
) : StripeParamsModel, Parcelable {
override fun toParamMap(): Map<String, Any> {
return iban?.let {
mapOf(PARAM_IBAN to it)
}.orEmpty()
}

@Deprecated("SepaDebit#iban is now visible and mutable.")
class Builder : ObjectBuilder<SepaDebit> {
private var iban: String? = null

Expand Down

0 comments on commit 0dc1713

Please sign in to comment.