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

API Updates #1415

Merged
merged 3 commits into from
May 9, 2022
Merged

API Updates #1415

merged 3 commits into from
May 9, 2022

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented May 5, 2022

Codegen for openapi 0f6948c.
r? @pakrym-stripe
cc @stripe/api-libraries

Changelog

Major version release. The migration guide contains a detailed list of backwards-incompatible changes with upgrade instructions.

(⚠️ = breaking changes):

  • ⚠️ Replace the legacy Order API with the new Order API.

    • Resource modified: Order.
    • New methods: cancel, list_line_items, reopen, and submit
    • Removed methods: pay and return_order
    • Removed resources: OrderItem and OrderReturn
    • Removed references from other resources: Charge.order
  • Add support for amount_discount, amount_tax, and product on LineItem

  • Change type of Charge.shipping.name, Checkout.Session.shipping.name, Customer.shipping.name, Invoice.customer_shipping.name, PaymentIntent.shipping.name, ShippingDetails.name, and Source.source_order.shipping.name from nullable(string) to string

@pakrym-stripe
Copy link
Contributor

I wonder if we need to add a link to a larger document describing Order changes to the changelog.

@richardm-stripe richardm-stripe merged commit 7cdf066 into master May 9, 2022
pakrym-stripe added a commit that referenced this pull request Jun 8, 2022
* API Updates (#1413)

* Bump version to 8.221.0

* API Updates (#1414)

* Bump version to 8.222.0

* API Updates (#1415)

* feat(http-client): retry closed connection errors (#1336)

* feat(http-client): Retry requests that failed with closed connection

Requests that fail with closed connection errors (ECONNRESET, EPIPE) are
automatically retried.

- `ECONNRESET` (Connection reset by peer): A connection was forcibly
  closed by a peer.closed by a peer. This normally results from a loss
  of the connection on the remote socket due to a timeout or reboot.
  Commonly encountered via the http and net modules.

- `EPIPE` (Broken pipe): A write on a pipe, socket, or FIFO for which
  there is no process to read the data. Commonly encountered at the net
  and http layers, indicative that the remote side of the stream being
  written to has been closed.

Fixes: #1040

* Remove deprecated orders-related events (#1417)

* Bump version to 9.0.0

* API Updates (#1420)

* Codegen for openapi 7789931

* Bump version to 9.1.0

* API Updates (#1422)

* Codegen for openapi 056745c
Co-authored-by: Richard Marmorstein <richardm@stripe.com>
Co-authored-by: Dominic Charley-Roy <dcr@stripe.com>

* Bump version to 9.2.0

* Codegen for openapi v146 (#1430)

* Bump version to 9.3.0

* Codegen for openapi v147 (#1431)

* Bump version to 9.4.0

* docs: Update HttpClient documentation to remove experimental status. (#1432)

* Codegen for openapi v149 (#1434)

* Bump version to 9.5.0

* API Updates (#1439)

* Bump version to 9.6.0

* Update README.md (#1440)

* Codegen for openapi v152 (#1441)

* Add test for cash balance methods. (#1438)

* Bump version to 9.7.0

Co-authored-by: Dominic Charley-Roy <78050200+dcr-stripe@users.noreply.github.com>
Co-authored-by: Dominic Charley-Roy <dcr@stripe.com>
Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
Co-authored-by: Bruno Pinto <brunoferreirapinto@gmail.com>
Co-authored-by: Richard Marmorstein <richardm@stripe.com>
Co-authored-by: Kamil Pajdzik <99290280+kamil-stripe@users.noreply.github.com>
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