Skip to content

Coroutines - convert ApiClient tokenize functions to suspend#1533

Merged
saralvasquez merged 7 commits intomainfrom
coroutines-api-client
Feb 24, 2026
Merged

Coroutines - convert ApiClient tokenize functions to suspend#1533
saralvasquez merged 7 commits intomainfrom
coroutines-api-client

Conversation

@saralvasquez
Copy link
Contributor

Summary of changes

  • Converts tokenizeGraphQL and tokenizeREST to suspend functions
  • Adds coroutine calls to CardClient, PayPalInternalClient, VenmoAPI, and VisaCheckoutClient
  • converts relevant unit tests
  • updates MockkApiClientBuilder to return the correct types

Checklist

  • Added a changelog entry
  • Relevant test coverage
  • Tested and confirmed payment flows affected by this change are functioning as expected

Authors

@saralvasquez

@saralvasquez saralvasquez requested a review from a team as a code owner February 19, 2026 01:57
@github-actions
Copy link

github-actions bot commented Feb 19, 2026

Dependency Review

✅ No vulnerabilities found.

Scanned Files

None

error: Exception? = null,
captureRequestBody: CapturingSlot<String>? = null
): Pair<PayPalInternalClient, BraintreeClient> {
): PayPalInternalClient {
Copy link
Contributor

@noguier noguier Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we not need a pair<PayPalInternalClient, BraintreeClient> here anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good eye! It was an unused variable that was throwing lint warnings forever and since I was already in there I decided to just clean it up. If you wanna take a look for yourself you can run the processes in the CI file and see what it says about that test file

@saralvasquez saralvasquez requested a review from tdchow February 23, 2026 17:57
@saralvasquez saralvasquez merged commit 3457300 into main Feb 24, 2026
6 of 12 checks passed
@saralvasquez saralvasquez deleted the coroutines-api-client branch February 24, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants