-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expose `payments-ui-core` as part of `paymentsheet` * Move `BillingDetailsCollectionConfiguration` to `PaymentSheet` * Tweak internal `BillingDetailsCollectionConfiguration` * Update instrumentation tests * Update changelog * Update more tests * Rename internal config to `CardBillingDetailsCollectionConfiguration` * Update release notes * Fix detekt. * ApiCheck * Ignore failing test in `PaymentMethodEndToEndTest` --------- Co-authored-by: Jay Newstrom <jaynewstrom@stripe.com>
- Loading branch information
1 parent
4f7f1df
commit 831f7b6
Showing
32 changed files
with
366 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 0 additions & 81 deletions
81
...ui-core/src/main/java/com/stripe/android/ui/core/BillingDetailsCollectionConfiguration.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...ore/src/main/java/com/stripe/android/ui/core/CardBillingDetailsCollectionConfiguration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.stripe.android.ui.core | ||
|
||
import android.os.Parcelable | ||
import androidx.annotation.RestrictTo | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) | ||
@Parcelize | ||
data class CardBillingDetailsCollectionConfiguration( | ||
val collectName: Boolean = false, | ||
val collectEmail: Boolean = false, | ||
val collectPhone: Boolean = false, | ||
val address: AddressCollectionMode = AddressCollectionMode.Automatic, | ||
) : Parcelable { | ||
|
||
val collectAddress: Boolean | ||
get() = address != AddressCollectionMode.Never | ||
|
||
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) | ||
enum class AddressCollectionMode { | ||
Automatic, | ||
Never, | ||
Full, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.