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

Remove ApiResource.RequestType #899

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

ob-stripe
Copy link
Contributor

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 one File or Stream 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).

Copy link
Contributor

@brandur-stripe brandur-stripe left a 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?

@ob-stripe
Copy link
Contributor Author

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 🤞

@ob-stripe ob-stripe merged commit 4d3c123 into integration-client-refactor Nov 13, 2019
@ob-stripe ob-stripe deleted the ob-remove-request-type branch November 13, 2019 21:05
ob-stripe added a commit that referenced this pull request Nov 15, 2019
ob-stripe added a commit that referenced this pull request Nov 16, 2019
ob-stripe added a commit that referenced this pull request Dec 10, 2019
ob-stripe added a commit that referenced this pull request Dec 23, 2019
ob-stripe added a commit that referenced this pull request Jan 11, 2020
ob-stripe added a commit that referenced this pull request Jan 14, 2020
ob-stripe added a commit that referenced this pull request Jan 14, 2020
ob-stripe added a commit that referenced this pull request Jan 15, 2020
ob-stripe added a commit that referenced this pull request Jan 15, 2020
ob-stripe added a commit that referenced this pull request Jan 15, 2020
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants