Upgrading stripe 4 to 5
Breaking4.2.1 → 5.5.1Breaking9New28Changed15Fixed3Other23
Fetching 29 releases from GitHub…28 / 29
BreakingUpgrade verdict
9 breaking changes.
In plain terms
- A method for creating tax transactions has been removed from the library.
- The financing offer and financing summary features are no longer available in this library.
- Code that lists, marks delivered, or retrieves financing offers will no longer work.
- Code that retrieves financing summaries will no longer work.
Must act Top 3 of 9 that need code or config changes
What you must change
Breaking9
Removes the
create method on the Tax.Transaction resource.Tax.TransactionTax.Transaction.createcreate_from_calculationRemoves support for the Capital.FinancingOffer and Capital.FinancingSummary resources.
Capital.FinancingOfferCapital.FinancingSummaryRemoves the list, mark_delivered, and retrieve methods on the FinancingOffer resource.
FinancingOfferlistmark_deliveredretrieveRemoves the retrieve method on the FinancingSummary resource.
FinancingSummaryretrieveRemoves support for the
list_transactions method on the Tax.Transaction resource.Tax.Transactionlist_transactionsChanges
quote.draft_quote to call POST /v1/quotes/{quote}/mark_draft instead of POST /v1/quotes/{quote}/draft.quote.draft_quoteMoves stripe.TaxCalculation and stripe.TaxTranscation to stripe.tax.Calculation and stripe.tax.Transaction.
stripe.TaxCalculationstripe.TaxTranscationstripe.tax.Calculationstripe.tax.TransactionApplies breaking changes that arose during code generation and were postponed for the next major version.
Next major release changes.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
export Order - removed:
export SKU - added:
export tax
- added:
static method CreditNote.preview_lines(api_key=…, stripe_version=…, stripe_account=…, **params)
- changed:
class CreditNoteLineItem(StripeObject) → class CreditNoteLineItem(ListableAPIResource)
- removed:
class Order(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource) - removed:
field Order.OBJECT_NAME - removed:
method Order.cancel(idempotency_key=…, **params) - removed:
method Order.list_line_items(idempotency_key=…, **params) - removed:
method Order.reopen(idempotency_key=…, **params) - removed:
method Order.submit(idempotency_key=…, **params)
- removed:
class SKU(CreateableAPIResource, DeletableAPIResource, ListableAPIResource, UpdateableAPIResource) - removed:
field SKU.OBJECT_NAME
- added:
method Subscription.resume(idempotency_key=…, **params)
- added:
export Calculation - added:
export Settings - added:
export Transaction
- added:
class Calculation(CreateableAPIResource) - added:
field Calculation.OBJECT_NAME - added:
method Calculation.list_line_items(idempotency_key=…, **params)
- added:
class Settings(SingletonAPIResource, UpdateableAPIResource) - added:
field Settings.OBJECT_NAME - added:
static method Settings.class_url()
- added:
class Transaction(APIResource) - added:
field Transaction.OBJECT_NAME - added:
method Transaction.list_line_items(idempotency_key=…, **params) - added:
static method Transaction.create_from_calculation(api_key=…, stripe_version=…, stripe_account=…, **params) - added:
static method Transaction.create_reversal(api_key=…, stripe_version=…, stripe_account=…, **params)
- added:
method Reader.refund_payment(idempotency_key=…, **params)