-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist selected account IDs to
SavedStateHandle
(#8358)
* Persist selected account IDs to `SavedStateHandle` * Update tests * Save list directly
- Loading branch information
1 parent
299f56e
commit a9f7bfd
Showing
18 changed files
with
98 additions
and
76 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package com.stripe.android.financialconnections | ||
|
||
import com.stripe.android.financialconnections.domain.CachedPartnerAccount | ||
import com.stripe.android.financialconnections.model.FinancialConnectionsAccount | ||
import com.stripe.android.financialconnections.model.FinancialConnectionsAccountList | ||
import com.stripe.android.financialconnections.model.FinancialConnectionsAuthorizationSession | ||
|
@@ -114,6 +115,18 @@ internal object ApiKeyFixtures { | |
supportedPaymentMethodTypes = listOf(FinancialConnectionsAccount.SupportedPaymentMethodTypes.US_BANK_ACCOUNT) | ||
) | ||
|
||
fun cachedPartnerAccounts(): List<CachedPartnerAccount> { | ||
return listOf( | ||
CachedPartnerAccount(id = "id_1", linkedAccountId = "linked_id_1"), | ||
CachedPartnerAccount(id = "id_2", linkedAccountId = "linked_id_2"), | ||
) | ||
} | ||
|
||
fun cachedPartnerAccount() = CachedPartnerAccount( | ||
id = "id", | ||
linkedAccountId = "linked_id", | ||
) | ||
|
||
fun consumerSession() = ConsumerSession( | ||
clientSecret = "clientSecret", | ||
emailAddress = "[email protected]", | ||
|
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
Oops, something went wrong.