-
Notifications
You must be signed in to change notification settings - Fork 548
Migration guide for v7
Richard Marmorstein edited this page Jan 12, 2023
·
2 revisions
-
retrieve_cash_balance
andupdate_cash_balance
methods onCustomer
resource no longer requires the second argument to always benil
. The method now takescustomer_id
,params
, andopts
parameters.# change from Stripe::Customer:: update_cash_balance("cus_12345", nil, { /* params */ }, { /* opts */ }) # to Stripe::Customer:: update_cash_balance("cus_12345", { /* params */ }, { /* opts */ })
- Update default bundle of CA certificates to April 26, 2022.
- Deprecate
delete
method onSubscription
resource. Please usecancel
method instead.# change from Stripe::Subscription::delete("sub_12345") # to Stripe::Subscription.cancel("sub_12345")
- Remove
details
method fromIssuing.Card
resource. The method was not supported. - Remove
Issuing.CardDetails
resource. Read more at https://stripe.com/docs/issuing/cards/virtual. - Remove
create
method fromReportType
resource. The method was not supported. - Remove
usage_record_summaries
method fromSubscriptionItem
resource. Please uselist_usage_record_summaries
method instead.# change from Stripe::SubscriptionItem.usage_record_summaries("si_12345") # to Stripe::SubscriptionItem.list_usage_record_summaries("si_12345")
- Remove
AlipayAccount
,BitcoinReceiver
,BitcoinTransaction
,Issuing::CardDetails
,Recipient
,RecipientTransfer
, andThreeDSecure
resources. The resources were deprecated or no longer in use. - Remove ability to list
Card
resource for aRecipient
. - Remove
cancel
method fromTransfer
resource. The method was deprecated.