[Snyk] Upgrade stripe from 15.12.0 to 18.2.1 #176
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.
Snyk has created this PR to upgrade stripe from 15.12.0 to 18.2.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 56 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: stripe
POST
rawRequestsrawRequest
incorrectly emits a warning when sending v2 GET requestsSee the changelog for more details.
This release changes the pinned API version to
2025-05-28.basil
.attach_payment
method on resourceInvoice
collect_inputs
method on resourceTerminal.Reader
succeed_input_collection
andtimeout_input_collection
test helper methods on resourceTerminal.Reader
pix_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
disputes_list
andpayment_disputes
onAccountSession.components
andAccountSessionCreateParams.components
refund_and_dispute_prefunding
onBalance
balance_type
onBalanceTransaction
Billing.AlertCreateParams.usage_threshold.meter
to be requiredlocation
andreader
onCharge.payment_method_details.affirm
andCharge.payment_method_details.wechat_pay
payment_method_remove
onCheckout.SessionCreateParams.saved_payment_method_options
setup_future_usage
onCheckout.Session.payment_method_options.naver_pay
ConfirmationToken.payment_method_preview.naver_pay.buyer_id
andPaymentMethod.naver_pay.buyer_id
to be requiredpost_payment_amount
andpre_payment_amount
onCreditNote
mixed
on enumCreditNote.type
invoice_payment.paid
on enumEvent.type
sex
,unparsed_place_of_birth
, andunparsed_sex
onIdentity.VerificationReport.document
andIdentity.VerificationSession.verified_outputs
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
satispay
onPaymentIntent.payment_method_options
,PaymentIntentConfirmParams.payment_method_options
,PaymentIntentCreateParams.payment_method_options
, andPaymentIntentUpdateParams.payment_method_options
capture_method
onPaymentIntent.payment_method_options.billie
kakao_pay
,kr_card
,naver_pay
,payco
, andsamsung_pay
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
network_decline_code
onRefund.destination_details.paypal
metadata
onTax.CalculationCreateParams.line_items[]
andTax.CalculationLineItem
simulated_stripe_s700
on enumsTerminal.Reader.device_type
andTerminal.ReaderListParams.device_type
return_url
onTerminal.Reader.action.process_payment_intent.process_config
andTerminal.ReaderProcessPaymentIntentParams.process_config
collect_inputs
onTerminal.Reader.action
collect_inputs
on enumTerminal.Reader.action.type
invoice_payment.paid
on enumsWebhookEndpointCreateParams.enabled_events
andWebhookEndpointUpdateParams.enabled_events
2025-05-28.basil
on enumWebhookEndpointCreateParams.api_version
InvoicePaymentPaidEvent
with resourceInvoicePayment
forwarding_api_upstream_error
onInvoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
See the changelog for more details.
#2307 Update generated code for beta
This release changes the pinned API version to
2025-04-30.preview
.billing_mode
onCheckout.SessionCreateParams.subscription_data
,InvoiceCreatePreviewParams.schedule_details
,InvoiceCreatePreviewParams.subscription_details
,Quote.subscription_data
,QuoteCreateParams.subscription_data
,QuotePreviewSubscriptionSchedule
,SubscriptionCreateParams
,SubscriptionScheduleCreateParams
,SubscriptionSchedule
, andSubscription
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsCheckout.Session.collected_information.tax_ids[].type
,Order.tax_details.tax_ids[].type
, andQuotePreviewInvoice.customer_tax_ids[].type
Checkout.Session.automatic_tax.provider
,Invoice.automatic_tax.provider
,Quote.automatic_tax.provider
, andQuotePreviewInvoice.automatic_tax.provider
to be requiredaccount_number
onConfirmationToken.payment_method_preview.acss_debit
andPaymentMethod.acss_debit
balance_settings.updated
on enumEvent.type
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsOrderCreateParams.tax_details.tax_ids[].type
andOrderUpdateParams.tax_details.tax_ids[].type
balance_settings.updated
on enumsWebhookEndpointUpdateParams.enabled_events
See the changelog for more details.
host
andstreaming
in request options.See the changelog for more details.
This release changes the pinned API version to
2025-04-30.basil
.minority_owned_business_designation
onAccount.business_profile
,AccountCreateParams.business_profile
, andAccountUpdateParams.business_profile
registration_date
onAccount.company
,AccountCreateParams.company
,AccountUpdateParams.company
, andTokenCreateParams.account.company
us_cfpb_data
onAccountCreatePersonParams
,AccountUpdatePersonParams
,Person
, andTokenCreateParams.person
verification_legal_entity_structure_mismatch
on enumsAccount.future_requirements.errors[].code
,Account.requirements.errors[].code
,BankAccount.future_requirements.errors[].code
,BankAccount.requirements.errors[].code
,Capability.future_requirements.errors[].code
,Capability.requirements.errors[].code
,Person.future_requirements.errors[].code
, andPerson.requirements.errors[].code
tax_id_prohibited
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
tax_id
onCharge.billing_details
,ConfirmationToken.payment_method_preview.billing_details
,ConfirmationTokenCreateParams.testHelpers.payment_method_data.billing_details
,PaymentIntentConfirmParams.payment_method_data.billing_details
,PaymentIntentCreateParams.payment_method_data.billing_details
,PaymentIntentUpdateParams.payment_method_data.billing_details
,PaymentMethod.billing_details
,PaymentMethodCreateParams.billing_details
,PaymentMethodUpdateParams.billing_details
,SetupIntentConfirmParams.payment_method_data.billing_details
,SetupIntentCreateParams.payment_method_data.billing_details
, andSetupIntentUpdateParams.payment_method_data.billing_details
wallet_options
onCheckout.SessionCreateParams
andCheckout.Session
provider
onCheckout.Session.automatic_tax
,Invoice.automatic_tax
, andQuote.automatic_tax
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsCheckout.Session.customer_details.tax_ids[].type
,Invoice.customer_tax_ids[].type
,Tax.Calculation.customer_details.tax_ids[].type
,Tax.Transaction.customer_details.tax_ids[].type
, andTaxId.type
payment_method_options
onConfirmationTokenCreateParams.testHelpers
installments
onConfirmationToken.payment_method_options.card
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsCustomerCreateParams.tax_id_data[].type
,CustomerCreateTaxIdParams.type
,InvoiceCreatePreviewParams.customer_details.tax_ids[].type
,Tax.CalculationCreateParams.customer_details.tax_ids[].type
, andTaxIdCreateParams.type
context
onEvent
affirm
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
InvoiceLineItem.parent.subscription_item_details.subscription
fromstring
tostring | null
billie
onPaymentIntent.payment_method_options
,PaymentIntentConfirmParams.payment_method_options
,PaymentIntentCreateParams.payment_method_options
, andPaymentIntentUpdateParams.payment_method_options
pix
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
klarna
onPaymentMethodDomain
pending_reason
onRefund
Tax.CalculationLineItem.reference
fromstring | null
tostring
aw
,az
,bd
,bf
,bj
,cm
,cv
,et
,in
,kg
,la
, andph
onTax.Registration.country_options
andTax.RegistrationCreateParams.country_options
2025-04-30.basil
on enumWebhookEndpointCreateParams.api_version
See the changelog for more details.
FxQuote
andPaymentIntentAmountDetailsLineItem
create
,list
, andretrieve
methods on resourceFxQuote
attach_payment_intent
method on resourceInvoice
registration_date
onAccount.company
,AccountCreateParams.company
,AccountUpdateParams.company
, andTokenCreateParams.account.company
customer_reference
andorder_reference
onChargeCaptureParams.payment_details
,ChargeUpdateParams.payment_details
,PaymentIntent.payment_details
,PaymentIntentCaptureParams.payment_details
,PaymentIntentConfirmParams.payment_details
,PaymentIntentCreateParams.payment_details
, andPaymentIntentUpdateParams.payment_details
tax_id
onCharge.billing_details
,ConfirmationToken.payment_method_preview.billing_details
,ConfirmationTokenCreateParams.testHelpers.payment_method_data.billing_details
,PaymentIntentConfirmParams.payment_method_data.billing_details
,PaymentIntentCreateParams.payment_method_data.billing_details
,PaymentIntentUpdateParams.payment_method_data.billing_details
,PaymentMethod.billing_details
,PaymentMethodCreateParams.billing_details
,PaymentMethodUpdateParams.billing_details
,SetupIntentConfirmParams.payment_method_data.billing_details
,SetupIntentCreateParams.payment_method_data.billing_details
,SetupIntentUpdateParams.payment_method_data.billing_details
, andTreasury.OutboundPaymentCreateParams.destination_payment_method_data.billing_details
price_data
onCheckout.SessionUpdateParams.line_items[]
Checkout.SessionUpdateParams.line_items[].quantity
fromlongInteger
toemptyable(longInteger)
script
onCouponCreateParams
andCoupon
type
onCoupon
fx_quote.expired
on enumEvent.type
affirm
on enumsInvoice.payment_settings.payment_method_types
,InvoiceCreateParams.payment_settings.payment_method_types
,InvoiceUpdateParams.payment_settings.payment_method_types
,QuotePreviewInvoice.payment_settings.payment_method_types
,Subscription.payment_settings.payment_method_types
,SubscriptionCreateParams.payment_settings.payment_method_types
, andSubscriptionUpdateParams.payment_settings.payment_method_types
fx_quote
onPaymentIntentConfirmParams
,PaymentIntentCreateParams
,PaymentIntentUpdateParams
,PaymentIntent
,TransferCreateParams
, andTransfer
discount_amount
,line_items
,shipping
, andtax
onPaymentIntent.amount_details
pix
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
us_cfpb_data
onPerson
andTokenCreateParams.person
pending_reason
onRefund
aw
,az
,bd
,bj
,et
,kg
,la
, andph
onTax.Registration.country_options
andTax.RegistrationCreateParams.country_options
fx_quote.expired
on enumsWebhookEndpointCreateParams.enabled_events
andWebhookEndpointUpdateParams.enabled_events
FxQuoteExpiredEvent
with resourceFxQuote
See the changelog for more details.
#2298 Update generated code for beta
Breaking changes
V2.MoneyManagement.ReceivedDebit.status_transitions
froman object
toan object | null
bank_accounts.local_uk
,bank_accounts.wire_uk
,cards_uk
, andcrypto_wallets_v2
from enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability
Additions
Privacy.RedactionJobRootObjects
,Privacy.RedactionJobValidationError
, andPrivacy.RedactionJob
cancel
,create
,list
,retrieve
,run
,update
, andvalidate
methods on resourceRedactionJob
list
andretrieve
methods on resourceRedactionJobValidationError
minority_owned_business_designation
onAccount.business_profile
,AccountCreateParams.business_profile
, andAccountUpdateParams.business_profile
verification_legal_entity_structure_mismatch
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
export_tax_transactions
andpayment_disputes
onAccountSessionCreateParams.components
tax_id_prohibited
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,QuotePreviewInvoice.last_finalization_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
fixed_term_loan
on enumCapital.FinancingOffer.type
wallet_options
onCheckout.SessionCreateParams
andCheckout.Session
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumEvent.type
klarna
onPaymentMethodDomain
Tax.CalculationLineItem.reference
fromstring | null
tostring
in
onTax.Registration.country_options
andTax.RegistrationCreateParams.country_options
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumsWebhookEndpointCreateParams.enabled_events
andWebhookEndpointUpdateParams.enabled_events
#2300 Handle external_resource field
external_account
field inExternalAccountsCreateParams
from astring
to a union type.See the changelog for more details.
#2288 Update generated code for beta
This release changes the pinned API version to
2025-03-31.preview
Breaking Changes
amount_overpaid
onInvoicePayment
out_of_band_payment
andpayment_record
from enumInvoicePayment.payment.type
interchange_fees
,net_total
,network_fees
, andtransaction_volume
onIssuing.Settlement
billing_thresholds
onQuotePreviewSubscriptionSchedule.default_settings
,QuotePreviewSubscriptionSchedule.phases[].items[]
, andQuotePreviewSubscriptionSchedule.phases[]
coupon
onQuotePreviewSubscriptionSchedule.phases[]
value
onTerminal.Reader.action.collect_inputs.inputs[].selection.choices[]
,Terminal.Reader.action.collect_inputs.inputs[].selection
, andTerminal.ReaderCollectInputsParams.inputs[].selection.choices[]
Checkout.Session.permissions.update
to be optionalInvoicePayment.is_default
fromboolean | null
toboolean
Invoice.amount_overpaid
andQuotePreviewInvoice.amount_overpaid
to be requiredPaymentAttemptRecord.payment_method_details.type
andPaymentRecord.payment_method_details.type
fromliteral('custom')
tostring
PaymentAttemptRecord.payment_record
fromstring
tostring | null
PaymentAttemptRecord.payment_method_details.custom
andPaymentRecord.payment_method_details.custom
to be optionalPaymentRecordReportPaymentParams.payment_reference
to be optionalPaymentRecord.latest_payment_attempt_record
fromstring
tostring | null
Additions
BalanceSettings
retrieve
andupdate
methods on resourceBalanceSettings
create
,del
,list
,retrieve
, andupdate
methods on a newExternalAccountService
class to access cards and bank accounts made available in the new pathv1/external_accounts
. Access this viaStripeClient.externalAccounts
stripe_balance_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
customer_account
onBilling.CreditBalanceSummaryRetrieveParams
,Billing.CreditBalanceSummary
,Billing.CreditBalanceTransactionListParams
,Billing.CreditGrantCreateParams
,Billing.CreditGrantListParams
,Billing.CreditGrant
,BillingPortal.SessionCreateParams
,BillingPortal.Session
,Checkout.SessionCreateParams
,Checkout.SessionListParams
,Checkout.Session
,ConfirmationToken.payment_method_preview
,CreditNoteListParams
,CreditNote
,CustomerBalanceTransaction
,CustomerCashBalanceTransaction
,CustomerCashBalance
,CustomerPaymentMethod
,CustomerSessionCreateParams
,CustomerSession
,CustomerTaxId.owner
,CustomerTaxId
,Customer
,Discount
,FinancialConnections.Account.account_holder
,FinancialConnections.AccountListParams.account_holder
,FinancialConnections.Session.account_holder
,FinancialConnections.SessionCreateParams.account_holder
,InvoiceCreateParams
,InvoiceCreatePreviewParams
,InvoiceItemCreateParams
,InvoiceItemListParams
,InvoiceItem
,InvoiceListParams
,Invoice
,PaymentIntentCreateParams
,PaymentIntentListParams
,PaymentIntentUpdateParams
,PaymentIntent
,PaymentMethodAttachParams
,PaymentMethod
,PromotionCodeCreateParams
,PromotionCodeListParams
,PromotionCode
,QuoteCreateParams
,QuoteListParams
,QuotePreviewInvoice
,QuotePreviewSubscriptionSchedule
,QuoteUpdateParams
,Quote
,SetupAttempt
,SetupIntentCreateParams
,SetupIntentListParams
,SetupIntentUpdateParams
,SetupIntent
,SubscriptionCreateParams
,SubscriptionListParams
,SubscriptionScheduleCreateParams
,SubscriptionScheduleListParams
,SubscriptionSchedule
,Subscription
,TaxId.owner
,TaxIdCreateParams.owner
,TaxIdListParams.owner
, andTaxId
stripe_balance
onCharge.payment_method_details
,ConfirmationToken.payment_method_preview
,ConfirmationTokenCreateParams.testHelpers.payment_method_data
,CustomerPaymentMethod
,PaymentAttemptRecord.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
,PaymentMethodCreateParams
,PaymentMethod
,PaymentRecord.payment_method_details
,SetupAttempt.payment_method_details
,SetupIntentConfirmParams.payment_method_data
,SetupIntentCreateParams.payment_method_data
, andSetupIntentUpdateParams.payment_method_data
update_line_items
andupdate_shipping_details
onCheckout.Session.permissions
andCheckout.SessionCreateParams.permissions
provider
onCheckout.Session.automatic_tax
,Invoice.automatic_tax
,Quote.automatic_tax
, andQuotePreviewInvoice.automatic_tax
tax_calculation_reference
onCreditNoteLineItem
,CreditNotePreviewLines
,InvoiceLineItem
,LineItem
,PaymentLinkLineItem
,QuoteComputedUpfrontLineItems
,QuoteLineItem
, andSessionLineItem
payment_method_options
onConfirmationTokenCreateParams.testHelpers
installments
onConfirmationToken.payment_method_options.card
context
onEvent
related_customer_account
onIdentity.VerificationSession
,identity.VerificationSessionCreateParams
, andidentity.VerificationSessionListParams
network_data
onIssuing.DisputeSettlementDetail
interchange_fees_amount
,net_total_amount
,network_fees_amount
,other_fees_amount
,other_fees_count
, andtransaction_amount
onIssuing.Settlement
reported_by
onPaymentAttemptRecord
ach_credit_transfer
,ach_debit
,acss_debit
,affirm
,afterpay_clearpay
,alipay
,alma
,amazon_pay
,au_becs_debit
,bacs_debit
,bancontact
,blik
,boleto
,card_present
,card
,cashapp
,customer_balance
,eps
,fpx
,giropay
,gopay
,grabpay
,id_bank_transfer
,ideal
,interac_present
,kakao_pay
,klarna
,konbini
,kr_card
,link
,mb_way
,mobilepay
,multibanco
,naver_pay
,nz_bank_account
,oxxo
,p24
,pay_by_bank
,payco
,paynow
,paypal
,payto
,pix
,promptpay
,qris
,rechnung
,revolut_pay
,samsung_pay
,satispay
,sepa_credit_transfer
,sepa_debit
,shopeepay
,sofort
,stripe_account
,swish
,twint
,us_bank_account
,wechat_pay
,wechat
, andzip
onPaymentAttemptRecord.payment_method_details
andPaymentRecord.payment_method_details
payout_method
onPayoutCreateParams
andPayout
confirmation_secret
,parent
, andtotal_taxes
onQuotePreviewInvoice
forwarding_api_retryable_upstream_error
,setup_intent_mobile_wallet_unsupported
,v2_account_disconnection_unsupported
, andv2_account_missing_configuration
on enumQuotePreviewInvoice.last_finalization_error.code
klarna
,nz_bank_account
, andstripe_balance
on enumQuotePreviewInvoice.payment_settings.payment_method_types
id
andtext
onTerminal.Reader.action.collect_inputs.inputs[].selection.choices[]
,Terminal.Reader.action.collect_inputs.inputs[].selection
, andTerminal.ReaderCollectInputsParams.inputs[].selection.choices[]
New APIs for Money CardManagement
V2.FinancialAddressCreditSimulation
,V2.FinancialAddressGeneratedMicrodeposits
,V2.MoneyManagement.Adjustment
,V2.MoneyManagement.FinancialAccount
,V2.MoneyManagement.FinancialAddress
,V2.MoneyManagement.InboundTransfer
,V2.MoneyManagement.OutboundPaymentQuote
,V2.MoneyManagement.OutboundPayment
,V2.MoneyManagement.OutboundSetupIntent
,V2.MoneyManagement.OutboundTransfer
,V2.MoneyManagement.PayoutMethod
,V2.MoneyManagement.PayoutMethodsBankAccountSpec
,V2.MoneyManagement.ReceivedCredit
,V2.MoneyManagement.ReceivedDebit
,V2.MoneyManagement.TransactionEntry
, andV2.MoneyManagement.Transaction
create
method on resourceV2.MoneyManagement.OutboundPaymentQuote
list
andretrieve
methods on resourcesV2.MoneyManagement.Adjustment
,V2.MoneyManagement.FinancialAccount
,V2.MoneyManagement.ReceivedCredit
,V2.MoneyManagement.ReceivedDebit
,V2.MoneyManagement.TransactionEntry
, andV2.MoneyManagement.Transaction
create
,list
, andretrieve
methods on resourcesV2.MoneyManagement.FinancialAddress
andV2.MoneyManagement.InboundTransfer
cancel
,create
,list
, andretrieve
methods on resourcesV2.MoneyManagement.OutboundPayment
andV2.MoneyManagement.OutboundTransfer
archive
,list
,retrieve
, andunarchive
methods on resourceV2.MoneyManagement.PayoutMethod
cancel
,create
,list
,retrieve
, andupdate
methods on resourceV2.MoneyManagement.OutboundSetupIntent
retrieve
method on resourceV2.MoneyManagement.PayoutMethodsBankAccountSpec
account_number
,fedwire_routing_number
, androuting_number
on enuminvalid_payment_method.invalid_param
V2MoneyManagementFinancialAccountCreatedEvent
with related objectV2.MoneyManagement.FinancialAccount
V2MoneyManagementFinancialAddressActivatedEvent
andV2MoneyManagementFinancialAddressFailedEvent
with related objectV2.MoneyManagement.FinancialAddress
V2MoneyManagementInboundTransferAvailableEvent
,V2MoneyManagementInboundTransferBankDebitFailedEvent
,V2MoneyManagementInboundTransferBankDebitProcessingEvent
,V2MoneyManagementInboundTransferBankDebitQueuedEvent
,V2MoneyManagementInboundTransferBankDebitReturnedEvent
, andV2MoneyManagementInboundTransferBankDebitSucceededEvent
with related objectV2.MoneyManagement.InboundTransfer
V2MoneyManagementOutboundPaymentCanceledEvent
,V2MoneyManagementOutboundPaymentCreatedEvent
,V2MoneyManagementOutboundPaymentFailedEvent
,V2MoneyManagementOutboundPaymentPostedEvent
, andV2MoneyManagementOutboundPaymentReturnedEvent
with related objectV2.MoneyManagement.OutboundPayment
V2MoneyManagementOutboundTransferCanceledEvent
,V2MoneyManagementOutboundTransferCreatedEvent
,V2MoneyManagementOutboundTransferFailedEvent
,V2MoneyManagementOutboundTransferPostedEvent
, andV2MoneyManagementOutboundTransferReturnedEvent
with related objectV2.MoneyManagement.OutboundTransfer
V2MoneyManagementReceivedCreditAvailableEvent
,V2MoneyManagementReceivedCreditFailedEvent
,V2MoneyManagementReceivedCreditReturnedEvent
, andV2MoneyManagementReceivedCreditSucceededEvent
with related objectV2.MoneyManagement.ReceivedCredit
V2MoneyManagementReceivedDebitCanceledEvent
,V2MoneyManagementReceivedDebitFailedEvent
,V2MoneyManagementReceivedDebitPendingEvent
,V2MoneyManagementReceivedDebitSucceededEvent
, andV2MoneyManagementReceivedDebitUpdatedEvent
with related objectV2.MoneyManagement.ReceivedDebit
AlreadyCanceledError
,BlockedByStripeError
,ControlledByDashboardError
,FeatureNotEnabledError
,FinancialAccountNotOpenError
,InsufficientFundsError
,InvalidPayoutMethodError
,NotCancelableError
, andRecipientNotNotifiableError
New APIs for Accounts v2 in private preview
See SaaS platform payments with subscription billing using Accounts v2
V2.Core.AccountLink
,V2.Core.Account
,V2.Core.Person
,V2.Core.Vault.GbBankAccount
,V2.Core.Vault.UsBankAccount
close
,create
,list
,retrieve
, andupdate
methods on resourceV2.Core.Account
create
method on resourceV2.Core.AccountLink
acknowledge_confirmation_of_payee
,archive
,create
,initiate_confirmation_of_payee
, andretrieve
methods on resourceV2.Core.Vault.GbBankAccount
archive
,create
,retrieve
, andupdate
methods on resourceV2.Core.Vault.UsBankAccount
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
,V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
,V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
,V2CoreAccountIncludingIdentityUpdatedEvent
, andV2CoreAccountIncludingRequirementsUpdatedEvent
V2CoreAccountLinkCompletedEvent
with related objectV2.Core.AccountLink
V2CoreAccountPersonCreatedEvent
,V2CoreAccountPersonDeletedEvent
, andV2CoreAccountPersonUpdatedEvent
with related objectV2.Core.Person
Changes
Billing.CreditBalanceSummaryRetrieveParams.customer
,Billing.CreditBalanceTransactionListParams.customer
,Billing.CreditGrantCreateParams.customer
,BillingPortal.SessionCreateParams.customer
,CustomerSessionCreateParams.customer
,InvoiceItemCreateParams.customer
,PaymentMethodAttachParams.customer
, andSubscriptionCreateParams.customer
to be optionalCreditNote.refunds
to be requiredPaymentAttemptRecord.payment_method_details.custom
andPaymentRecord.payment_method_details.custom
fromPaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails | null
toPaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails
OrderCreateParams.payment.settings.payment_method_options.wechat_pay.client
andOrderUpdateParams.payment.settings.payment_method_options.wechat_pay.client
to be optionalSee the changelog for more details.
#2279 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
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_paySummary by Sourcery- Bump stripe dependency in dashboard to version 18.2.1
Enhancements: