-
Notifications
You must be signed in to change notification settings - Fork 368
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
Remove ApiResource.RequestType
#899
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM.
It looks like some of the Actions are failing with this error:
- Workflows can't be executed on this repository. Please check your payment method or billing status.
I think GitHub was sending us some emails about being on a legacy billing plan, and that might have something to do with it. Do you know off hand?
I'm actually at the GitHub Universe convention today and talked to a GitHub employee (@francisfuzz) about this. They've just launched billing for GitHub Actions and we've apparently hit a bug. Hopefully they fix it soon 🤞 |
* Refactor form encoding * Refactor request telemetry * Move HTTP request methods into new `HttpClient` class * Add `StripeRequest` object * Add `HttpClient` abstract class * Stop disabling the DNS cache * Fix deprecation warnings (#895) * Add HttpContent class (#896) * Add Stopwatch class (#897) * Move all request properties in `StripeRequest` (#898) * Remove ApiResource.RequestType (#899) * Add support for automatic request retries (#900) * Minor fixes (#902) * `StringUtils` class & better API key validation (#928) * Remove support for custom `URLStreamHandler` (#927) * Refactor HTTP headers handling (#931) * Add `CaseInsensitiveMap` class * Add `HttpHeaders` class * Use `HttpHeaders` in `StripeRequest` * Use `HttpHeaders` in `StripeResponse` * Address review comments * Modernize `StripeResponse` (#932) * Add `maxNetworkRetries` as a global and per-request setting (#934) * Add `StreamUtils` class (#935) * Remove support for `count` and `total_count` in list objects (#936) * Codegen for openapi e07de1a (#938) * Update README (#939) Co-authored-by: remi-stripe <[email protected]>
r? @brandur-stripe @richardm-stripe
cc @stripe/api-libraries
Remove
ApiResource.RequestType
. It is no longer useful: we now decide whether a request should be encoded as form-data or multiform based on the parameters. If there is at least oneFile
orStream
value in the parameters, then the request will be encoded as multiform, otherwise it's encoded as form-data.This affects the
StripeResponseGetter
public interface, so it is a breaking change (though it would only affect users providing custom implementations).