Support for APIs in the new API version 2025-03-31.basil #2279
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.
Codegen for openapi v1641.
Changelog
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
listUpcomingLines
andretrieveUpcoming
methods on resourceInvoice
createUsageRecord
andlistUsageRecordSummaries
methods on resourceSubscriptionItems
invoice
onCharge
andPaymentIntent
shipping_details
onCheckout.Session
carrier
,phone
, andtracking_number
onCheckout.Session.collected_information.shipping_details
. Makename
andaddress
required instead of optional.refund
onCreditNoteCreateParams
,CreditNoteListPreviewLineItemsParams
,CreditNotePreviewParams
, andCreditNote
tax_amounts
onCreditNoteLineItem
,CreditNote
, andInvoiceLineItem
amount_excluding_tax
andunit_amount_excluding_tax
onCreditNoteLineItem
andInvoiceLineItem
coupon
onCustomerCreateParams
,CustomerUpdateParams
,InvoiceCreatePreviewParams.schedule_details.phases[]
,InvoiceCreatePreviewParams
,SubscriptionCreateParams
,SubscriptionSchedule.phases[]
,SubscriptionScheduleCreateParams.phases[]
,SubscriptionScheduleUpdateParams.phases[]
, andSubscriptionUpdateParams
promotion_code
onCustomerCreateParams
,CustomerUpdateParams
,SubscriptionCreateParams
, andSubscriptionUpdateParams
price
onInvoiceAddLinesParams.lines[]
,InvoiceItemCreateParams
,InvoiceItemUpdateParams
,InvoiceItem
,InvoiceLineItemUpdateParams
,InvoiceLineItem
, andInvoiceUpdateLinesParams.lines[]. Use
pricing` instead.billing_thresholds
onInvoiceCreatePreviewParams.schedule_details.phases[].items[]
,InvoiceCreatePreviewParams.schedule_details.phases[]
,InvoiceCreatePreviewParams.subscription_details.items[]
,SubscriptionCreateParams.items[]
,SubscriptionCreateParams
,SubscriptionItemCreateParams
,SubscriptionItemUpdateParams
,SubscriptionItem
,SubscriptionSchedule.default_settings
,SubscriptionSchedule.phases[].items[]
,SubscriptionSchedule.phases[]
,SubscriptionScheduleCreateParams.default_settings
,SubscriptionScheduleCreateParams.phases[].items[]
,SubscriptionScheduleCreateParams.phases[]
,SubscriptionScheduleUpdateParams.default_settings
,SubscriptionScheduleUpdateParams.phases[].items[]
,SubscriptionScheduleUpdateParams.phases[]
,SubscriptionUpdateParams.items[]
,SubscriptionUpdateParams
, 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
onInvoiceItemCreateParams
,InvoiceItemUpdateParams
, andInvoiceItem
subscription
andunit_amount_decimal
onInvoiceItem
naver_pay
onPaymentMethodUpdateParams
aggregate_usage
onPlanCreateParams
,Plan
,Price.recurring
, andPriceCreateParams.recurring
current_period_end
andcurrent_period_start
onSubscription
page
has been removed from all V2 list method params (e.g.EventService.list()
); use the auto paginator or thenext_page_url
andprevious_page_url
fields instead (more info)Changes
Checkout.Session.collected_information
to be requiredCheckout.Session.collected_information.shipping_details
to be requiredCheckout.Session.collected_information.shipping_details.address
to be requiredCheckout.Session.collected_information.shipping_details.name
to be requiredPaymentIntentConfirmParams.payment_method_options.wechat_pay.client
,PaymentIntentCreateParams.payment_method_options.wechat_pay.client
, andPaymentIntentUpdateParams.payment_method_options.wechat_pay.client
to be optionalpolitical_exposure
on resourcesPerson
andToken
and paramsToken.CreateParams
from string to enum("existing" | "none")Additions
InvoicePayment
list
andretrieve
methods on resourceInvoicePayment
billie_payments
,nz_bank_account_becs_debit_payments
, andsatispay_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
hosted_payment_method_save
onAccount.settings.invoices
andAccountUpdateParams.settings.invoices
invoices
onAccountCreateParams.settings
information_missing
,invalid_signator
,verification_failed_authorizer_authority
, andverification_rejected_ownership_exemption_reason
on enumsAccount.future_requirements.errors[].code
,Account.requirements.errors[].code
,AccountCapability.future_requirements.errors[].code
,AccountCapability.requirements.errors[].code
,AccountPerson.future_requirements.errors[].code
,AccountPerson.requirements.errors[].code
,BankAccount.future_requirements.errors[].code
, andBankAccount.requirements.errors[].code
forwarding_api_retryable_upstream_error
andsetup_intent_mobile_wallet_unsupported
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.type
last
on enumsBilling.Meter.default_aggregation.formula
andBilling.MeterCreateParams.default_aggregation.formula
presentment_details
onCharge
,Checkout.Session
,PaymentIntent
, andRefund
billie
andsatispay
onCharge.payment_method_details
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.testHelpers.payment_method_data
,CustomerPaymentMethod
,PaymentIntentConfirmParams.payment_method_data
,PaymentIntentCreateParams.payment_method_data
,PaymentIntentUpdateParams.payment_method_data
,PaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
,PaymentMethodConfiguration
,PaymentMethodCreateParams
,PaymentMethod
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
nz_bank_account
onCharge.payment_method_details
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.testHelpers.payment_method_data
,CustomerPaymentMethod
,Mandate.payment_method_details
,PaymentIntent.payment_method_options
,PaymentIntentConfirmParams.payment_method_data
,PaymentIntentConfirmParams.payment_method_options
,PaymentIntentCreateParams.payment_method_data
,PaymentIntentCreateParams.payment_method_options
,PaymentIntentUpdateParams.payment_method_data
,PaymentIntentUpdateParams.payment_method_options
,PaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
,PaymentMethodConfiguration
,PaymentMethodCreateParams
,PaymentMethod
,SetupAttempt.payment_method_details
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
optional_items
onCheckout.SessionCreateParams
,Checkout.Session
,PaymentLinkCreateParams
, andPaymentLink
permissions
onCheckout.SessionCreateParams
andCheckout.Session
billie
andsatispay
on enumCheckout.SessionCreateParams.payment_method_types
custom
on enumsCheckout.Session.ui_mode
andCheckout.SessionCreateParams.ui_mode
shipping_options
onCheckout.SessionUpdateParams
billie
,nz_bank_account
, andsatispay
on enumsConfirmationTokenCreateParams.testHelpers.payment_method_data.type
,PaymentIntentConfirmParams.payment_method_data.type
,PaymentIntentCreateParams.payment_method_data.type
,PaymentIntentUpdateParams.payment_method_data.type
,SetupIntentConfirmParams.payment_method_data.type
,SetupIntentCreateParams.payment_method_data.type
, andSetupIntentUpdateParams.payment_method_data.type
buyer_id
onConfirmationToken.payment_method_preview.naver_pay
,CustomerPaymentMethod.naver_pay
, andPaymentMethod.naver_pay
billie
,nz_bank_account
, andsatispay
on enumsConfirmationToken.payment_method_preview.type
,CustomerPaymentMethod.type
, andPaymentMethod.type
refunds
onCreditNoteCreateParams
,CreditNoteListPreviewLineItemsParams
,CreditNotePreviewParams
, 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 enumsCustomerPaymentMethodListParams.type
,PaymentMethodCreateParams.type
, andPaymentMethodListParams.type
invoice.overpaid
on enumEvent.type
klarna
andnz_bank_account
on enumsInvoice.payment_settings.payment_method_types
,InvoiceCreateParams.payment_settings.payment_method_types
,InvoiceUpdateParams.payment_settings.payment_method_types
,Subscription.payment_settings.payment_method_types
,SubscriptionCreateParams.payment_settings.payment_method_types
, andSubscriptionUpdateParams.payment_settings.payment_method_types
pricing
onInvoiceAddLinesParams.lines[]
,InvoiceItemCreateParams
,InvoiceItemUpdateParams
,InvoiceItem
,InvoiceLineItemUpdateParams
,InvoiceLineItem
, andInvoiceUpdateLinesParams.lines[]
taxability_reason
onInvoiceAddLinesParams.lines[].tax_amounts[]
,InvoiceLineItemUpdateParams.tax_amounts[]
, andInvoiceUpdateLinesParams.lines[].tax_amounts[]
jurisdiction_level
onInvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data
,InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data
, andInvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data
amount_overpaid
,confirmation_secret
, andpayments
onInvoice
parent
onInvoiceItem
,InvoiceLineItem
, andInvoice
expired
on enumsIssuing.Authorization.status
andIssuing.AuthorizationListParams.status
network_fallback
on enumIssuing.Authorization.request_history[].reason
naver_pay
onMandate.payment_method_details
andSetupAttempt.payment_method_details
setup_future_usage
onPaymentIntent.payment_method_options.naver_pay
,PaymentIntentConfirmParams.payment_method_options.naver_pay
,PaymentIntentCreateParams.payment_method_options.naver_pay
, andPaymentIntentUpdateParams.payment_method_options.naver_pay
expired
on enumPaymentIntent.cancellation_reason
default_value
onPaymentLink.custom_fields[].dropdown
,PaymentLink.custom_fields[].numeric
,PaymentLink.custom_fields[].text
,PaymentLinkCreateParams.custom_fields[].dropdown
,PaymentLinkCreateParams.custom_fields[].numeric
,PaymentLinkCreateParams.custom_fields[].text
,PaymentLinkUpdateParams.custom_fields[].dropdown
,PaymentLinkUpdateParams.custom_fields[].numeric
, andPaymentLinkUpdateParams.custom_fields[].text
billie
andsatispay
on enumsPaymentLink.payment_method_types
,PaymentLinkCreateParams.payment_method_types
, andPaymentLinkUpdateParams.payment_method_types
nz_bank_transfer
onRefund.destination_details
canceled
on enumReview.closed_reason
current_period_end
andcurrent_period_start
onSubscriptionItem
wifi
onTerminal.ConfigurationCreateParams
,Terminal.ConfigurationUpdateParams
, andTerminal.Configuration
invoice.overpaid
on enumsWebhookEndpointCreateParams.enabled_events
andWebhookEndpointUpdateParams.enabled_events
2025-03-01.dashboard
and2025-03-31.basil
on enumWebhookEndpointCreateParams.api_version