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

Replace the legacy Order API with the new Order API. #1496

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

dcr-stripe
Copy link
Contributor

@dcr-stripe dcr-stripe commented Jul 18, 2022

Changelog

  • ⚠️ Replace the legacy Order API with the new Order API.
    • Resource modified: Order.
      • Add new fields: AmountSubtotal, AmountTotal, AutomaticTax, BillingDetails, ClientSecret, Description, Discounts, IpAddress, LineItems, Payment, ShippingCost, ShippingDetails, TaxDetails, and TotalDetails
      • Remove deprecated fields: Amount, AmountReturned, Charge, Email, ExternalCouponCode, Items, Returns, SelectedShippingMethod, Shipping, ShippingMethods, StatusTransitions, Updated, and UpstreamId
      • Change Order.Application to be expandable
      • Add new methods: Cancel, ListLineItems, Reopen, and Submit
      • Remove deprecated methods: Pay and Return
    • Remove deprecated resources: OrderItem and OrderReturn
    • Remove Charge.order field, which was a reference to legacy Order
    • Remove deprecated events order.payment_succeeded, order.updated and order_return.created

@dcr-stripe dcr-stripe marked this pull request as ready for review July 18, 2022 15:55
@dcr-stripe dcr-stripe merged commit 3f0eba7 into sdk-release/next-major Jul 18, 2022
@dcr-stripe dcr-stripe deleted the dcr-orders branch July 18, 2022 19:58
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