-
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.
[Android] Replicate other platforms polling logic across the AuthFlow (…
…#6919) * [skip ci] Start PR * Replicate iOS and Web polling logic. * Updates comments. * Makes options internal * Updates tests. * Allows user retry if polling exceeds max retries. * Adds tests. * Updates tests. * Ktlint. * Updates changelog. * Update CHANGELOG.md Co-authored-by: Till Hellmund <tillh@stripe.com> --------- Co-authored-by: Till Hellmund <tillh@stripe.com>
- Loading branch information
1 parent
950e79a
commit 95f91ed
Showing
13 changed files
with
290 additions
and
139 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
19 changes: 19 additions & 0 deletions
19
...ns/src/main/java/com/stripe/android/financialconnections/domain/FetchNetworkedAccounts.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,19 @@ | ||
package com.stripe.android.financialconnections.domain | ||
|
||
import com.stripe.android.financialconnections.FinancialConnectionsSheet | ||
import com.stripe.android.financialconnections.model.PartnerAccountsList | ||
import com.stripe.android.financialconnections.repository.FinancialConnectionsAccountsRepository | ||
import javax.inject.Inject | ||
|
||
internal class FetchNetworkedAccounts @Inject constructor( | ||
private val repository: FinancialConnectionsAccountsRepository, | ||
private val configuration: FinancialConnectionsSheet.Configuration | ||
) { | ||
|
||
suspend operator fun invoke( | ||
consumerSessionClientSecret: String, | ||
): PartnerAccountsList = repository.getNetworkedAccounts( | ||
clientSecret = configuration.financialConnectionsSessionClientSecret, | ||
consumerSessionClientSecret = consumerSessionClientSecret | ||
) | ||
} |
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
39 changes: 0 additions & 39 deletions
39
...ons/src/main/java/com/stripe/android/financialconnections/domain/PollNetworkedAccounts.kt
This file was deleted.
Oops, something went wrong.
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.