feat(deps): update dependency stripe to v12 #42
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==11.6.0
->==12.0.0
Release Notes
stripe/stripe-python (stripe)
v12.0.0
Compare Source
#1463 Support for APIs in the new API version 2025-03-31.basil
This release changes the pinned API version to
2025-03-31.basil
.Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
SubscriptionItemUsageRecordSummary
andSubscriptionItemUsageRecord
create
method on resourceSubscriptionItemUsageRecord
list
method on resourceSubscriptionItemUsageRecordSummary
upcomingLines
andupcoming
methods on resourceInvoice
invoice
onCharge
andPaymentIntent
shipping_details
onCheckoutSession
carrier
,phone
, andtracking_number
onCheckoutSession.CollectedInformation.ShippingDetail
refund
onCreditNote.CreateParams
,CreditNote.PreviewParams
,CreditNotePreviewLines.ListParams
, andCreditNote
tax_amounts
onCreditNoteLineItem
,CreditNote
, andInvoiceLineItem
amount_excluding_tax
andunit_amount_excluding_tax
onCreditNoteLineItem
andInvoiceLineItem
coupon
onCustomer.CreateParams
,Customer.UpdateParams
,Invoice.CreatePreviewParamsScheduleDetailPhase
,Invoice.CreatePreviewParams
,Subscription.CreateParams
,Subscription.UpdateParams
,SubscriptionSchedule.CreateParamsPhase
,SubscriptionSchedule.Phase
, andSubscriptionSchedule.UpdateParamsPhase
promotion_code
onCustomer.CreateParams
,Customer.UpdateParams
,Subscription.CreateParams
, andSubscription.UpdateParams
price
onInvoice.AddLinesParamsLine
,Invoice.UpdateLinesParamsLine
,InvoiceItem.CreateParams
,InvoiceItem.UpdateParams
,InvoiceItem
,InvoiceLineItem.UpdateParams
, andInvoiceLineItem
billing_thresholds
onInvoice.CreatePreviewParamsScheduleDetailPhaseItem
,Invoice.CreatePreviewParamsScheduleDetailPhase
,Invoice.CreatePreviewParamsSubscriptionDetailItem
,Subscription.CreateParamsItem
,Subscription.CreateParams
,Subscription.UpdateParamsItem
,Subscription.UpdateParams
,SubscriptionItem.CreateParams
,SubscriptionItem.UpdateParams
,SubscriptionItem
,SubscriptionSchedule.CreateParamsDefaultSetting
,SubscriptionSchedule.CreateParamsPhaseItem
,SubscriptionSchedule.CreateParamsPhase
,SubscriptionSchedule.DefaultSetting
,SubscriptionSchedule.Phase.Item
,SubscriptionSchedule.Phase
,SubscriptionSchedule.UpdateParamsDefaultSetting
,SubscriptionSchedule.UpdateParamsPhaseItem
,SubscriptionSchedule.UpdateParamsPhase
, andSubscription
application_fee_amount
,charge
,paid_out_of_band
,paid
,payment_intent
,quote
,subscription
,subscription_details
,subscription_proration_date
,tax
,total_tax_amounts
, andtransfer_data
onInvoice
discount
onInvoice
andSubscription
invoice_item
,proration_details
,proration
,tax_rates
, andtype
onInvoiceLineItem
plan
andsubscription_item
onInvoiceItem
andInvoiceLineItem
unit_amount
onInvoiceItem.CreateParams
,InvoiceItem.UpdateParams
, andInvoiceItem
subscription
andunit_amount_decimal
onInvoiceItem
naver_pay
onPaymentMethod.UpdateParams
aggregate_usage
onPlan.CreateParams
,Plan
,Price.CreateParamsRecurring
, andPrice.Recurring
current_period_end
andcurrent_period_start
onSubscription
v2.Event.ListParams
andv2.EventDestination.ListParams
Changes
CheckoutSession.collected_information
to be requiredCheckoutSession.CollectedInformation.shipping_details
to be requiredCheckoutSession.CollectedInformation.ShippingDetail.address
to be requiredCheckoutSession.CollectedInformation.ShippingDetail.name
to be requiredPaymentIntent.ConfirmParamsPaymentMethodOptionWechatPay.client
,PaymentIntent.CreateParamsPaymentMethodOptionWechatPay.client
, andPaymentIntent.UpdateParamsPaymentMethodOptionWechatPay.client
to be optionalpolitical_exposure
on resourcesPerson
andToken
and paramsToken.CreateParams
from string toenum("existing" | "none")
Additions
InvoicePayment
list
andretrieve
methods on resourceInvoicePayment
billie_payments
,nz_bank_account_becs_debit_payments
, andsatispay_payments
onAccount.Capability
,Account.CreateParamsCapability
, andAccount.UpdateParamsCapability
hosted_payment_method_save
onAccount.Setting.Invoice
andAccount.UpdateParamsSettingInvoice
invoices
onAccount.CreateParamsSetting
information_missing
,invalid_signator
,verification_failed_authorizer_authority
, andverification_rejected_ownership_exemption_reason
on enumsAccount.FutureRequirement.Error.code
,Account.Requirement.Error.code
,AccountCapability.FutureRequirement.Error.code
,AccountCapability.Requirement.Error.code
,AccountPerson.FutureRequirement.Error.code
,AccountPerson.Requirement.Error.code
,BankAccount.FutureRequirement.Error.code
, andBankAccount.Requirement.Error.code
forwarding_api_retryable_upstream_error
andsetup_intent_mobile_wallet_unsupported
on enumsInvoice.LastFinalizationError.code
,PaymentIntent.LastPaymentError.code
,SetupAttempt.SetupError.code
,SetupIntent.LastSetupError.code
, andStripeError.code
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.type
last
on enumsBillingMeter.DefaultAggregation.formula
andbilling.Meter.CreateParamsDefaultAggregation.formula
presentment_details
onCharge
,CheckoutSession
,PaymentIntent
, andRefund
billie
andsatispay
onCharge.PaymentMethodDetail
,ConfirmationToken.CreateParamsPaymentMethodDatum
,ConfirmationToken.PaymentMethodPreview
,CustomerPaymentMethod
,PaymentIntent.ConfirmParamsPaymentMethodDatum
,PaymentIntent.CreateParamsPaymentMethodDatum
,PaymentIntent.UpdateParamsPaymentMethodDatum
,PaymentMethod.CreateParams
,PaymentMethodConfiguration.CreateParams
,PaymentMethodConfiguration.UpdateParams
,PaymentMethodConfiguration
,PaymentMethod
,SetupIntent.ConfirmParamsPaymentMethodDatum
,SetupIntent.CreateParamsPaymentMethodDatum
, andSetupIntent.UpdateParamsPaymentMethodDatum
nz_bank_account
onCharge.PaymentMethodDetail
,ConfirmationToken.CreateParamsPaymentMethodDatum
,ConfirmationToken.PaymentMethodPreview
,CustomerPaymentMethod
,Mandate.PaymentMethodDetail
,PaymentIntent.ConfirmParamsPaymentMethodDatum
,PaymentIntent.ConfirmParamsPaymentMethodOption
,PaymentIntent.CreateParamsPaymentMethodDatum
,PaymentIntent.CreateParamsPaymentMethodOption
,PaymentIntent.PaymentMethodOption
,PaymentIntent.UpdateParamsPaymentMethodDatum
,PaymentIntent.UpdateParamsPaymentMethodOption
,PaymentMethod.CreateParams
,PaymentMethodConfiguration.CreateParams
,PaymentMethodConfiguration.UpdateParams
,PaymentMethodConfiguration
,PaymentMethod
,SetupAttempt.PaymentMethodDetail
,SetupIntent.ConfirmParamsPaymentMethodDatum
,SetupIntent.CreateParamsPaymentMethodDatum
, andSetupIntent.UpdateParamsPaymentMethodDatum
optional_items
onCheckoutSession
,PaymentLink.CreateParams
,PaymentLink
, andcheckout.Session.CreateParams
permissions
onCheckoutSession
andcheckout.Session.CreateParams
billie
andsatispay
on enumcheckout.Session.CreateParams.payment_method_types
custom
on enumsCheckoutSession.ui_mode
andcheckout.Session.CreateParams.ui_mode
shipping_options
oncheckout.Session.UpdateParams
billie
,nz_bank_account
, andsatispay
on enumsConfirmationToken.CreateParamsPaymentMethodDatum.type
,PaymentIntent.ConfirmParamsPaymentMethodDatum.type
,PaymentIntent.CreateParamsPaymentMethodDatum.type
,PaymentIntent.UpdateParamsPaymentMethodDatum.type
,SetupIntent.ConfirmParamsPaymentMethodDatum.type
,SetupIntent.CreateParamsPaymentMethodDatum.type
, andSetupIntent.UpdateParamsPaymentMethodDatum.type
buyer_id
onConfirmationToken.PaymentMethodPreview.NaverPay
,CustomerPaymentMethod.NaverPay
, andPaymentMethod.NaverPay
billie
,nz_bank_account
, andsatispay
on enumsConfirmationToken.PaymentMethodPreview.type
,CustomerPaymentMethod.type
, andPaymentMethod.type
refunds
onCreditNote.CreateParams
,CreditNote.PreviewParams
,CreditNotePreviewLines.ListParams
, andCreditNote
total_taxes
onCreditNote
andInvoice
taxes
onCreditNoteLineItem
andInvoiceLineItem
checkout_session
onCustomerBalanceTransaction
checkout_session_subscription_payment_canceled
andcheckout_session_subscription_payment
on enumCustomerBalanceTransaction.type
billie
,nz_bank_account
, andsatispay
on enumsCustomerPaymentMethod.ListParams.type
,PaymentMethod.CreateParams.type
, andPaymentMethod.ListParams.type
invoice.overpaid
on enumEvent.type
klarna
andnz_bank_account
on enumsInvoice.CreateParamsPaymentSetting.payment_method_types
,Invoice.PaymentSetting.payment_method_types
,Invoice.UpdateParamsPaymentSetting.payment_method_types
,Subscription.CreateParamsPaymentSetting.payment_method_types
,Subscription.PaymentSetting.payment_method_types
, andSubscription.UpdateParamsPaymentSetting.payment_method_types
pricing
onInvoice.AddLinesParamsLine
,Invoice.UpdateLinesParamsLine
,InvoiceItem.CreateParams
,InvoiceItem.UpdateParams
,InvoiceItem
,InvoiceLineItem.UpdateParams
, andInvoiceLineItem
taxability_reason
onInvoice.AddLinesParamsLineTaxAmount
,Invoice.UpdateLinesParamsLineTaxAmount
, andInvoiceLineItem.UpdateParamsTaxAmount
jurisdiction_level
onInvoice.AddLinesParamsLineTaxAmountTaxRateDatum
,Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatum
, andInvoiceLineItem.UpdateParamsTaxAmountTaxRateDatum
amount_overpaid
,confirmation_secret
, andpayments
onInvoice
parent
onInvoiceItem
,InvoiceLineItem
, andInvoice
expired
on enumsIssuingAuthorization.status
andissuing.Authorization.ListParams.status
network_fallback
on enumIssuingAuthorization.RequestHistory.reason
naver_pay
onMandate.PaymentMethodDetail
andSetupAttempt.PaymentMethodDetail
setup_future_usage
onPaymentIntent.ConfirmParamsPaymentMethodOptionNaverPay
,PaymentIntent.CreateParamsPaymentMethodOptionNaverPay
,PaymentIntent.PaymentMethodOption.NaverPay
, andPaymentIntent.UpdateParamsPaymentMethodOptionNaverPay
default_value
onPaymentLink.CreateParamsCustomFieldDropdown
,PaymentLink.CreateParamsCustomFieldNumeric
,PaymentLink.CreateParamsCustomFieldText
,PaymentLink.CustomField.Dropdown
,PaymentLink.CustomField.Numeric
,PaymentLink.CustomField.Text
,PaymentLink.UpdateParamsCustomFieldDropdown
,PaymentLink.UpdateParamsCustomFieldNumeric
, andPaymentLink.UpdateParamsCustomFieldText
billie
andsatispay
on enumsPaymentLink.CreateParams.payment_method_types
,PaymentLink.UpdateParams.payment_method_types
, andPaymentLink.payment_method_types
nz_bank_transfer
onRefund.DestinationDetail
canceled
on enumReview.closed_reason
current_period_end
andcurrent_period_start
onSubscriptionItem
wifi
onTerminalConfiguration
,terminal.Configuration.CreateParams
, andterminal.Configuration.UpdateParams
invoice.overpaid
on enumsWebhookEndpoint.CreateParams.enabled_events
andWebhookEndpoint.UpdateParams.enabled_events
2025-03-01.dashboard
and2025-03-31.basil
on enumWebhookEndpoint.CreateParams.api_version
StripeStreamResponseAsync
's.read()
toread_async()
for consistencyStripeStreamResponseAsync.read()
to.read_async()
async
usage.Quote.pdf_async().read()
method. A typechecker will alert you to this change.ThinEvent.related_object.type
ThinEvent.related_object.type_
toThinEvent.related_object.type
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.