Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta: RawApiRequest #1717

Merged
merged 16 commits into from
Jan 10, 2024
Merged

Beta: RawApiRequest #1717

merged 16 commits into from
Jan 10, 2024

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jan 9, 2024

PR includes a merge of master into beta.
Review the last couple commits:

Like #1702 but extends the approach to StripeResponseGetter.rawRequest(RawApiRequest request).

Approach

I have chosen to introduce RawApiRequest as a subclass of BaseApiRequest rather than try and add a field rawContent into ApiRequest and give ApiRequest multiple constructors. This is consistent with how rawRequest already takes RawRequestOptions which is a subclass of RequestOptions.

Changelog

  • ⚠️ Changed input parameters of StripeResponseGetter.rawRequest(...) -- new usage is StripeResponseGetter.rawRequest(new RawApiRequest(...))

@richardm-stripe richardm-stripe force-pushed the richardm-beta-apirequest branch from b71d2ad to 32d53e1 Compare January 10, 2024 22:01
@richardm-stripe
Copy link
Contributor Author

Compatibility change:
image

@richardm-stripe richardm-stripe requested review from a team, helenye-stripe and anniel-stripe and removed request for a team January 10, 2024 22:13
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
@richardm-stripe richardm-stripe merged commit d1d323a into beta Jan 10, 2024
10 of 11 checks passed
@richardm-stripe richardm-stripe deleted the richardm-beta-apirequest branch January 10, 2024 22:44
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.

2 participants