diff --git a/stripe/src/main/java/com/stripe/android/ApiVersion.kt b/stripe/src/main/java/com/stripe/android/ApiVersion.kt index 9e7cf693b4d..e2d9eedcdc3 100644 --- a/stripe/src/main/java/com/stripe/android/ApiVersion.kt +++ b/stripe/src/main/java/com/stripe/android/ApiVersion.kt @@ -9,7 +9,7 @@ package com.stripe.android * See [https://stripe.com/docs/upgrades](https://stripe.com/docs/upgrades) for latest * API changes. */ -internal data class ApiVersion constructor(val code: String) { +internal data class ApiVersion private constructor(val code: String) { override fun toString(): String { return code diff --git a/stripe/src/main/java/com/stripe/android/AppInfo.kt b/stripe/src/main/java/com/stripe/android/AppInfo.kt index 7d2e5cf6ec7..b63d5024e24 100644 --- a/stripe/src/main/java/com/stripe/android/AppInfo.kt +++ b/stripe/src/main/java/com/stripe/android/AppInfo.kt @@ -13,7 +13,7 @@ import org.json.JSONObject * @param url Website for your application (e.g. "https://myawesomeapp.info") * @param partnerId Your Stripe Partner ID (e.g. "pp_partner_1234") */ -data class AppInfo internal constructor( +data class AppInfo private constructor( private val name: String, private val version: String?, private val url: String?, diff --git a/stripe/src/main/java/com/stripe/android/PaymentRelayStarter.kt b/stripe/src/main/java/com/stripe/android/PaymentRelayStarter.kt index 20c023fc1e0..c683e8fe479 100644 --- a/stripe/src/main/java/com/stripe/android/PaymentRelayStarter.kt +++ b/stripe/src/main/java/com/stripe/android/PaymentRelayStarter.kt @@ -23,7 +23,7 @@ internal open class PaymentRelayStarter( host.startActivityForResult(PaymentRelayActivity::class.java, extras, requestCode) } - internal data class Data constructor( + internal data class Data private constructor( val stripeIntent: StripeIntent? = null, val exception: Exception? = null ) { diff --git a/stripe/src/main/java/com/stripe/android/PaymentSessionConfig.kt b/stripe/src/main/java/com/stripe/android/PaymentSessionConfig.kt index a7d9df094d3..d94de88b667 100644 --- a/stripe/src/main/java/com/stripe/android/PaymentSessionConfig.kt +++ b/stripe/src/main/java/com/stripe/android/PaymentSessionConfig.kt @@ -12,7 +12,7 @@ import kotlinx.android.parcel.Parcelize * Configuration for [PaymentSession]. */ @Parcelize -data class PaymentSessionConfig internal constructor( +data class PaymentSessionConfig private constructor( val hiddenShippingInfoFields: List = emptyList(), val optionalShippingInfoFields: List = emptyList(), val prepopulatedShippingInfo: ShippingInformation? = null, diff --git a/stripe/src/main/java/com/stripe/android/ResultWrapper.kt b/stripe/src/main/java/com/stripe/android/ResultWrapper.kt index de3644d615a..98a90148adc 100644 --- a/stripe/src/main/java/com/stripe/android/ResultWrapper.kt +++ b/stripe/src/main/java/com/stripe/android/ResultWrapper.kt @@ -1,6 +1,6 @@ package com.stripe.android -internal data class ResultWrapper constructor( +internal data class ResultWrapper private constructor( val result: ResultType? = null, val error: Exception? = null ) { diff --git a/stripe/src/main/java/com/stripe/android/StripeUid.kt b/stripe/src/main/java/com/stripe/android/StripeUid.kt index b704f952911..237eb6db2d6 100644 --- a/stripe/src/main/java/com/stripe/android/StripeUid.kt +++ b/stripe/src/main/java/com/stripe/android/StripeUid.kt @@ -1,6 +1,6 @@ package com.stripe.android -internal data class StripeUid constructor(val value: String) { +internal data class StripeUid private constructor(val value: String) { companion object { @JvmStatic fun create(uid: String): StripeUid { diff --git a/stripe/src/main/java/com/stripe/android/model/AccountParams.kt b/stripe/src/main/java/com/stripe/android/model/AccountParams.kt index 74212ba9d34..a7646f27a6e 100644 --- a/stripe/src/main/java/com/stripe/android/model/AccountParams.kt +++ b/stripe/src/main/java/com/stripe/android/model/AccountParams.kt @@ -3,7 +3,7 @@ package com.stripe.android.model /** * Represents a grouping of parameters needed to create a Token for a Connect account on the server. */ -data class AccountParams internal constructor( +data class AccountParams private constructor( private val businessType: BusinessType?, private val businessData: Map?, private val tosShownAndAccepted: Boolean diff --git a/stripe/src/main/java/com/stripe/android/model/Address.kt b/stripe/src/main/java/com/stripe/android/model/Address.kt index c371edb9810..d9ce375d187 100644 --- a/stripe/src/main/java/com/stripe/android/model/Address.kt +++ b/stripe/src/main/java/com/stripe/android/model/Address.kt @@ -12,7 +12,7 @@ import org.json.JSONObject * object in the Source api. */ @Parcelize -data class Address internal constructor( +data class Address private constructor( val city: String?, val country: String?, val line1: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/Card.kt b/stripe/src/main/java/com/stripe/android/model/Card.kt index cc87a614569..1bb840a9197 100644 --- a/stripe/src/main/java/com/stripe/android/model/Card.kt +++ b/stripe/src/main/java/com/stripe/android/model/Card.kt @@ -19,7 +19,7 @@ import org.json.JSONObject /** * A model object representing a Card in the Android SDK. */ -data class Card internal constructor( +data class Card private constructor( /** * @return the [number] of this card diff --git a/stripe/src/main/java/com/stripe/android/model/ConfirmPaymentIntentParams.kt b/stripe/src/main/java/com/stripe/android/model/ConfirmPaymentIntentParams.kt index cd48892e181..b5af19e2291 100644 --- a/stripe/src/main/java/com/stripe/android/model/ConfirmPaymentIntentParams.kt +++ b/stripe/src/main/java/com/stripe/android/model/ConfirmPaymentIntentParams.kt @@ -5,7 +5,7 @@ import com.stripe.android.ObjectBuilder import com.stripe.android.model.ConfirmStripeIntentParams.Companion.API_PARAM_CLIENT_SECRET import com.stripe.android.model.ConfirmStripeIntentParams.Companion.API_PARAM_USE_STRIPE_SDK -data class ConfirmPaymentIntentParams internal constructor( +data class ConfirmPaymentIntentParams private constructor( val paymentMethodCreateParams: PaymentMethodCreateParams?, val paymentMethodId: String?, val sourceParams: SourceParams?, @@ -81,25 +81,24 @@ data class ConfirmPaymentIntentParams internal constructor( } } - @VisibleForTesting - internal class Builder /** * Sets the client secret that is used to authenticate actions on this PaymentIntent * @param clientSecret client secret associated with this PaymentIntent */ - internal constructor( + @VisibleForTesting + internal class Builder internal constructor( internal val clientSecret: String ) : ObjectBuilder { - internal var paymentMethodCreateParams: PaymentMethodCreateParams? = null - internal var paymentMethodId: String? = null - internal var sourceParams: SourceParams? = null - internal var sourceId: String? = null + private var paymentMethodCreateParams: PaymentMethodCreateParams? = null + private var paymentMethodId: String? = null + private var sourceParams: SourceParams? = null + private var sourceId: String? = null - internal var extraParams: Map? = null - internal var returnUrl: String? = null + private var extraParams: Map? = null + private var returnUrl: String? = null - internal var savePaymentMethod: Boolean = false - internal var shouldUseSdk: Boolean = false + private var savePaymentMethod: Boolean = false + private var shouldUseSdk: Boolean = false /** * Sets the PaymentMethod data that will be included with this PaymentIntent diff --git a/stripe/src/main/java/com/stripe/android/model/ConfirmSetupIntentParams.kt b/stripe/src/main/java/com/stripe/android/model/ConfirmSetupIntentParams.kt index 46858f948ad..4a2d4917914 100644 --- a/stripe/src/main/java/com/stripe/android/model/ConfirmSetupIntentParams.kt +++ b/stripe/src/main/java/com/stripe/android/model/ConfirmSetupIntentParams.kt @@ -8,7 +8,7 @@ import com.stripe.android.model.ConfirmStripeIntentParams.Companion.API_PARAM_PA import com.stripe.android.model.ConfirmStripeIntentParams.Companion.API_PARAM_RETURN_URL import com.stripe.android.model.ConfirmStripeIntentParams.Companion.API_PARAM_USE_STRIPE_SDK -data class ConfirmSetupIntentParams internal constructor( +data class ConfirmSetupIntentParams private constructor( override val clientSecret: String, private val paymentMethodId: String?, val paymentMethodCreateParams: PaymentMethodCreateParams?, diff --git a/stripe/src/main/java/com/stripe/android/model/Customer.kt b/stripe/src/main/java/com/stripe/android/model/Customer.kt index 1dca0220a60..66840cc9a68 100644 --- a/stripe/src/main/java/com/stripe/android/model/Customer.kt +++ b/stripe/src/main/java/com/stripe/android/model/Customer.kt @@ -10,7 +10,7 @@ import org.json.JSONObject /** * Model for a Stripe Customer object */ -data class Customer internal constructor( +data class Customer private constructor( val id: String?, val defaultSource: String?, val shippingInformation: ShippingInformation?, diff --git a/stripe/src/main/java/com/stripe/android/model/CustomerSource.kt b/stripe/src/main/java/com/stripe/android/model/CustomerSource.kt index 535d9189d2c..11b53467b7f 100644 --- a/stripe/src/main/java/com/stripe/android/model/CustomerSource.kt +++ b/stripe/src/main/java/com/stripe/android/model/CustomerSource.kt @@ -6,7 +6,7 @@ import org.json.JSONObject /** * Model of the "data" object inside a [Customer] "source" object. */ -data class CustomerSource internal constructor( +data class CustomerSource private constructor( private val stripePaymentSource: StripePaymentSource ) : StripeModel(), StripePaymentSource { diff --git a/stripe/src/main/java/com/stripe/android/model/PaymentIntent.kt b/stripe/src/main/java/com/stripe/android/model/PaymentIntent.kt index fcd9512ce35..8757bd61f18 100644 --- a/stripe/src/main/java/com/stripe/android/model/PaymentIntent.kt +++ b/stripe/src/main/java/com/stripe/android/model/PaymentIntent.kt @@ -15,7 +15,7 @@ import org.json.JSONObject * - [Payment Intents Overview](https://stripe.com/docs/payments/payment-intents) * - [PaymentIntents API](https://stripe.com/docs/api/payment_intents) */ -data class PaymentIntent internal constructor( +data class PaymentIntent private constructor( /** * @return Unique identifier for the object. */ @@ -141,7 +141,9 @@ data class PaymentIntent internal constructor( get() = if (nextAction == null || StripeIntent.NextActionType.UseStripeSdk !== nextActionType) { null } else { - StripeIntent.SdkData(nextAction[StripeIntent.NextActionType.UseStripeSdk.code] as Map) + StripeIntent.SdkData( + nextAction[StripeIntent.NextActionType.UseStripeSdk.code] as Map + ) } override val redirectData: StripeIntent.RedirectData? @@ -184,7 +186,7 @@ data class PaymentIntent internal constructor( * * See [last_payment_error](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-last_payment_error). */ - data class Error internal constructor( + data class Error private constructor( /** * For card errors, the ID of the failed charge. 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 78c14958ac9..4e7038a6644 100644 --- a/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt +++ b/stripe/src/main/java/com/stripe/android/model/PaymentMethodCreateParams.kt @@ -14,7 +14,7 @@ import org.json.JSONObject * * See [PaymentMethod] for API object. */ -data class PaymentMethodCreateParams internal constructor( +data class PaymentMethodCreateParams private constructor( internal val type: Type, private val card: Card? = null, private val ideal: Ideal? = null, @@ -107,7 +107,7 @@ data class PaymentMethodCreateParams internal constructor( SepaDebit("sepa_debit", true) } - data class Card internal constructor( + data class Card private constructor( private val number: String? = null, private val expiryMonth: Int? = null, private val expiryYear: Int? = null, @@ -182,7 +182,7 @@ data class PaymentMethodCreateParams internal constructor( } } - data class Ideal internal constructor(private val bank: String?) : StripeParamsModel { + data class Ideal private constructor(private val bank: String?) : StripeParamsModel { override fun toParamMap(): Map { return bank?.let { mapOf(FIELD_BANK to it) }.orEmpty() } @@ -205,7 +205,7 @@ data class PaymentMethodCreateParams internal constructor( } } - data class Fpx internal constructor(private val bank: String?) : StripeParamsModel { + data class Fpx private constructor(private val bank: String?) : StripeParamsModel { override fun toParamMap(): Map { return bank?.let { mapOf(FIELD_BANK to it) @@ -230,7 +230,7 @@ data class PaymentMethodCreateParams internal constructor( } } - data class SepaDebit internal constructor(private val iban: String?) : StripeParamsModel { + data class SepaDebit private constructor(private val iban: String?) : StripeParamsModel { override fun toParamMap(): Map { return iban?.let { mapOf(FIELD_IBAN to it) diff --git a/stripe/src/main/java/com/stripe/android/model/SetupIntent.kt b/stripe/src/main/java/com/stripe/android/model/SetupIntent.kt index 9430f846be5..1d533391887 100644 --- a/stripe/src/main/java/com/stripe/android/model/SetupIntent.kt +++ b/stripe/src/main/java/com/stripe/android/model/SetupIntent.kt @@ -10,7 +10,7 @@ import org.json.JSONObject * A SetupIntent guides you through the process of setting up a customer's payment credentials for * future payments. */ -data class SetupIntent internal constructor( +data class SetupIntent private constructor( /** * @return Unique identifier for the object. @@ -137,7 +137,7 @@ data class SetupIntent internal constructor( * * See [last_setup_error](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-last_setup_error). */ - data class Error internal constructor( + data class Error private constructor( /** * For some errors that could be handled programmatically, a short string indicating the diff --git a/stripe/src/main/java/com/stripe/android/model/Source.kt b/stripe/src/main/java/com/stripe/android/model/Source.kt index e71f6539393..6d338f87def 100644 --- a/stripe/src/main/java/com/stripe/android/model/Source.kt +++ b/stripe/src/main/java/com/stripe/android/model/Source.kt @@ -13,7 +13,7 @@ import org.json.JSONObject * * See [Sources API Reference](https://stripe.com/docs/api/sources/object). */ -data class Source internal constructor( +data class Source private constructor( override val id: String?, val amount: Long?, val clientSecret: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/SourceCardData.kt b/stripe/src/main/java/com/stripe/android/model/SourceCardData.kt index cdbaeb55bda..4dcf954ac4e 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceCardData.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceCardData.kt @@ -11,7 +11,7 @@ import org.json.JSONObject * Model for data contained in the SourceTypeData of a Card Source. */ @Suppress("MemberVisibilityCanBePrivate") -data class SourceCardData internal constructor( +data class SourceCardData private constructor( val addressLine1Check: String?, val addressZipCheck: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/SourceCodeVerification.kt b/stripe/src/main/java/com/stripe/android/model/SourceCodeVerification.kt index 917167d889d..49f978424a8 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceCodeVerification.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceCodeVerification.kt @@ -10,7 +10,7 @@ import org.json.JSONObject * * *Not* source code verification. */ -data class SourceCodeVerification constructor( +data class SourceCodeVerification private constructor( val attemptsRemaining: Int, @param:Status @field:Status @get:Status val status: String? ) : StripeModel() { diff --git a/stripe/src/main/java/com/stripe/android/model/SourceOwner.kt b/stripe/src/main/java/com/stripe/android/model/SourceOwner.kt index 5d64a35ec8d..9f0a23b1147 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceOwner.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceOwner.kt @@ -8,7 +8,7 @@ import org.json.JSONObject * Model for a [owner](https://stripe.com/docs/api#source_object-owner) object * in the Source api. */ -data class SourceOwner constructor( +data class SourceOwner private constructor( val address: Address?, val email: String?, val name: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/SourceReceiver.kt b/stripe/src/main/java/com/stripe/android/model/SourceReceiver.kt index 4d61623aaeb..a9f39c123db 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceReceiver.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceReceiver.kt @@ -8,7 +8,7 @@ import org.json.JSONObject * [receiver](https://stripe.com/docs/api/sources/object#source_object-receiver) object * in the Sources API. Present if the [Source] is a receiver. */ -data class SourceReceiver constructor( +data class SourceReceiver private constructor( val address: String?, val amountCharged: Long, val amountReceived: Long, diff --git a/stripe/src/main/java/com/stripe/android/model/SourceRedirect.kt b/stripe/src/main/java/com/stripe/android/model/SourceRedirect.kt index 63bb173f6a1..1719f577c50 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceRedirect.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceRedirect.kt @@ -10,7 +10,7 @@ import org.json.JSONObject * Model for a [redirect](https://stripe.com/docs/api/sources/object#source_object-redirect) object * in the Sources API. */ -data class SourceRedirect constructor( +data class SourceRedirect private constructor( val returnUrl: String?, @param:Status @field:Status @get:Status val status: String?, val url: String? diff --git a/stripe/src/main/java/com/stripe/android/model/SourceSepaDebitData.kt b/stripe/src/main/java/com/stripe/android/model/SourceSepaDebitData.kt index 7d1c7287e4c..0cd6ab2cf29 100644 --- a/stripe/src/main/java/com/stripe/android/model/SourceSepaDebitData.kt +++ b/stripe/src/main/java/com/stripe/android/model/SourceSepaDebitData.kt @@ -8,7 +8,7 @@ import org.json.JSONObject /** * Model for the SourceTypeData contained in a SEPA Debit Source object. */ -data class SourceSepaDebitData internal constructor( +data class SourceSepaDebitData private constructor( val bankCode: String?, val branchCode: String?, val country: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/Stripe3ds2AuthResult.kt b/stripe/src/main/java/com/stripe/android/model/Stripe3ds2AuthResult.kt index a49417a073b..b9b19a80efd 100644 --- a/stripe/src/main/java/com/stripe/android/model/Stripe3ds2AuthResult.kt +++ b/stripe/src/main/java/com/stripe/android/model/Stripe3ds2AuthResult.kt @@ -6,7 +6,7 @@ import org.json.JSONArray import org.json.JSONException import org.json.JSONObject -internal data class Stripe3ds2AuthResult constructor( +internal data class Stripe3ds2AuthResult private constructor( val id: String?, private val objectType: String?, val ares: Ares?, @@ -79,7 +79,7 @@ internal data class Stripe3ds2AuthResult constructor( } } - data class Ares constructor( + data class Ares private constructor( val threeDSServerTransId: String?, private val acsChallengeMandated: String?, val acsSignedContent: String?, @@ -218,7 +218,7 @@ internal data class Stripe3ds2AuthResult constructor( } } - data class MessageExtension constructor( + data class MessageExtension private constructor( // The name of the extension data set as defined by the extension owner. val name: String?, @@ -307,7 +307,7 @@ internal data class Stripe3ds2AuthResult constructor( } } - data class ThreeDS2Error constructor( + data class ThreeDS2Error private constructor( val threeDSServerTransId: String?, val acsTransId: String?, val dsTransId: String?, @@ -457,10 +457,11 @@ internal data class Stripe3ds2AuthResult constructor( Ares.fromJson(authResultJson.optJSONObject(FIELD_ARES)) ) .setError( - if (authResultJson.isNull(FIELD_ERROR)) + if (authResultJson.isNull(FIELD_ERROR)) { null - else + } else { ThreeDS2Error.fromJson(authResultJson.optJSONObject(FIELD_ERROR)) + } ) .setFallbackRedirectUrl( if (authResultJson.isNull(FIELD_FALLBACK_REDIRECT_URL)) diff --git a/stripe/src/main/java/com/stripe/android/model/StripeIntent.kt b/stripe/src/main/java/com/stripe/android/model/StripeIntent.kt index 2be6c77427e..d2b7e225621 100644 --- a/stripe/src/main/java/com/stripe/android/model/StripeIntent.kt +++ b/stripe/src/main/java/com/stripe/android/model/StripeIntent.kt @@ -114,7 +114,7 @@ interface StripeIntent { } } - data class RedirectData internal constructor( + data class RedirectData private constructor( /** * See [PaymentIntent.next_action.redirect_to_url.url](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-next_action-redirect_to_url-url) */ diff --git a/stripe/src/main/java/com/stripe/android/model/Token.kt b/stripe/src/main/java/com/stripe/android/model/Token.kt index d7c18e30e55..e1dc13e94f9 100644 --- a/stripe/src/main/java/com/stripe/android/model/Token.kt +++ b/stripe/src/main/java/com/stripe/android/model/Token.kt @@ -11,7 +11,7 @@ import org.json.JSONObject * account details or personally identifiable information (PII), directly from your customers in a * secure manner. A Token representing this information is returned to you to use. */ -data class Token internal constructor( +data class Token private constructor( /** * @return the Token id diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/AmexExpressCheckoutWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/AmexExpressCheckoutWallet.kt index 0556130bdb7..1f15c511e12 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/AmexExpressCheckoutWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/AmexExpressCheckoutWallet.kt @@ -3,7 +3,7 @@ package com.stripe.android.model.wallets import kotlinx.android.parcel.Parcelize @Parcelize -data class AmexExpressCheckoutWallet internal constructor( +data class AmexExpressCheckoutWallet private constructor( val dynamicLast4: String? ) : Wallet(Type.AmexExpressCheckout) { diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/ApplePayWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/ApplePayWallet.kt index 75ee739baeb..434d64dacbe 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/ApplePayWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/ApplePayWallet.kt @@ -3,7 +3,7 @@ package com.stripe.android.model.wallets import kotlinx.android.parcel.Parcelize @Parcelize -data class ApplePayWallet internal constructor( +data class ApplePayWallet private constructor( val dynamicLast4: String? ) : Wallet(Type.ApplePay) { diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/GooglePayWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/GooglePayWallet.kt index b26c358d148..fa360e1d8a6 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/GooglePayWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/GooglePayWallet.kt @@ -4,7 +4,7 @@ import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize -data class GooglePayWallet internal constructor( +data class GooglePayWallet private constructor( val dynamicLast4: String? ) : Wallet(Type.GooglePay), Parcelable { internal class Builder : Wallet.Builder() { diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/MasterpassWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/MasterpassWallet.kt index c92ad85ceb8..99426fe17f2 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/MasterpassWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/MasterpassWallet.kt @@ -5,7 +5,7 @@ import kotlinx.android.parcel.Parcelize import org.json.JSONObject @Parcelize -data class MasterpassWallet internal constructor( +data class MasterpassWallet private constructor( val billingAddress: Address?, val email: String?, val name: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/SamsungPayWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/SamsungPayWallet.kt index 7f622fd1db7..6dd6e7f9ce5 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/SamsungPayWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/SamsungPayWallet.kt @@ -3,7 +3,7 @@ package com.stripe.android.model.wallets import kotlinx.android.parcel.Parcelize @Parcelize -data class SamsungPayWallet internal constructor( +data class SamsungPayWallet private constructor( val dynamicLast4: String? ) : Wallet(Type.SamsungPay) { internal class Builder : Wallet.Builder() { diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/VisaCheckoutWallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/VisaCheckoutWallet.kt index f3ddb84dcce..d943837474c 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/VisaCheckoutWallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/VisaCheckoutWallet.kt @@ -5,7 +5,7 @@ import kotlinx.android.parcel.Parcelize import org.json.JSONObject @Parcelize -data class VisaCheckoutWallet internal constructor( +data class VisaCheckoutWallet private constructor( val billingAddress: Address?, val email: String?, val name: String?, diff --git a/stripe/src/main/java/com/stripe/android/model/wallets/Wallet.kt b/stripe/src/main/java/com/stripe/android/model/wallets/Wallet.kt index 84d3caf62fb..9ccede8e030 100644 --- a/stripe/src/main/java/com/stripe/android/model/wallets/Wallet.kt +++ b/stripe/src/main/java/com/stripe/android/model/wallets/Wallet.kt @@ -37,7 +37,7 @@ abstract class Wallet internal constructor( } @Parcelize - data class Address internal constructor( + data class Address private constructor( val city: String?, val country: String?, val line1: String?, diff --git a/stripe/src/main/java/com/stripe/android/view/AddPaymentMethodActivityStarter.kt b/stripe/src/main/java/com/stripe/android/view/AddPaymentMethodActivityStarter.kt index 3e6087d956c..196c718e0e0 100644 --- a/stripe/src/main/java/com/stripe/android/view/AddPaymentMethodActivityStarter.kt +++ b/stripe/src/main/java/com/stripe/android/view/AddPaymentMethodActivityStarter.kt @@ -27,7 +27,7 @@ class AddPaymentMethodActivityStarter internal constructor( REQUEST_CODE ) { @Parcelize - data class Args internal constructor( + data class Args private constructor( internal val shouldAttachToCustomer: Boolean, internal val shouldRequirePostalCode: Boolean, internal val isPaymentSessionActive: Boolean, diff --git a/stripe/src/main/java/com/stripe/android/view/PaymentFlowActivityStarter.kt b/stripe/src/main/java/com/stripe/android/view/PaymentFlowActivityStarter.kt index 95e995f9483..fca348c44b6 100644 --- a/stripe/src/main/java/com/stripe/android/view/PaymentFlowActivityStarter.kt +++ b/stripe/src/main/java/com/stripe/android/view/PaymentFlowActivityStarter.kt @@ -20,7 +20,7 @@ class PaymentFlowActivityStarter : ) @Parcelize - data class Args internal constructor( + data class Args private constructor( internal val paymentSessionConfig: PaymentSessionConfig, internal val paymentSessionData: PaymentSessionData?, internal val isPaymentSessionActive: Boolean diff --git a/stripe/src/main/java/com/stripe/android/view/PaymentMethodsActivityStarter.kt b/stripe/src/main/java/com/stripe/android/view/PaymentMethodsActivityStarter.kt index b3375a220c8..d346d1f3b83 100644 --- a/stripe/src/main/java/com/stripe/android/view/PaymentMethodsActivityStarter.kt +++ b/stripe/src/main/java/com/stripe/android/view/PaymentMethodsActivityStarter.kt @@ -38,7 +38,7 @@ class PaymentMethodsActivityStarter : ActivityStarter