forked from Litlyx/litlyx
-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Upgrade stripe from 15.12.0 to 18.1.0 #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nerdy-tech-com-gitub
wants to merge
1
commit into
main
Choose a base branch
from
snyk-upgrade-7c971cb87a885415b6fd4892d2f03ad5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Snyk] Upgrade stripe from 15.12.0 to 18.1.0 #141
nerdy-tech-com-gitub
wants to merge
1
commit into
main
from
snyk-upgrade-7c971cb87a885415b6fd4892d2f03ad5
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Snyk has created this PR to upgrade stripe from 15.12.0 to 18.1.0. See this package in npm: stripe See this project in Snyk: https://app.snyk.io/org/nerds-github/project/ef708957-d107-4807-bb9b-ffb67ea15337?utm_source=github&utm_medium=referral&page=upgrade-pr
Reviewer's GuideThis PR updates the Stripe SDK dependency in the dashboard app from v15.x to v18.x by modifying the package.json entry, ensuring the project uses the latest Stripe API client. Updated Class Diagram for Stripe.Invoice highlighting changes from v15.x to v18.1.0classDiagram
class Stripe.Invoice {
%% --- Illustrative New/Updated Fields in v18.x ---
+String amount_overpaid
+String confirmation_secret
+List~InvoicePayment~ payments
+String parent
+List~Tax~ total_taxes
+AutomaticTax automatic_tax
%% --- Illustrative Removed Fields from v15.x (now absent in v18.x) ---
%% String application_fee_amount (Removed in v18.0.0)
%% String charge (Removed in v18.0.0)
%% String payment_intent (Removed in v18.0.0)
%% String subscription (Removed in v18.0.0)
%% listUpcomingLines() (Removed in v18.0.0)
%% retrieveUpcoming() (Removed in v18.0.0)
}
class AutomaticTax {
+String provider %% New field in v18.1.0
}
Stripe.Invoice --o AutomaticTax : uses
Updated Class Diagram for Stripe.Account highlighting new fields in v18.1.0classDiagram
class Stripe.Account {
%% --- Illustrative New/Updated Fields in v18.1.0 ---
+BusinessProfile business_profile
+Company company
%% Person person (related, Person object now supports us_cfpb_data)
}
class BusinessProfile {
+String minority_owned_business_designation %% New field in v18.1.0
}
class Company {
+String registration_date %% New field in v18.1.0
}
Stripe.Account "1" --o "1" BusinessProfile : has
Stripe.Account "1" --o "1" Company : has
Updated Class Diagram for Stripe.Checkout.Session highlighting changes from v15.x to v18.1.0classDiagram
class Stripe.Checkout.Session {
%% --- Illustrative New/Updated Fields in v18.x ---
+PresentmentDetails presentment_details %% New in v18.0.0
+List~Item~ optional_items %% New in v18.0.0
+Permissions permissions %% New in v18.0.0
+WalletOptions wallet_options %% New in v18.1.0
+AutomaticTax automatic_tax %% Updated in v18.1.0
+CollectedInformation collected_information %% Became required in v18.0.0
%% --- Illustrative Removed Fields from v15.x (now absent in v18.x) ---
%% ShippingDetails shipping_details (Top-level field removed in v18.0.0)
}
class CollectedInformation {
+Address address %% Attribute: became required in v18.0.0
+String name %% Attribute: became required in v18.0.0
%% --- Illustrative Removed Fields from v15.x (now absent in v18.x) ---
%% String carrier (Removed from shipping_details within CollectedInformation in v18.0.0)
%% String phone (Removed from shipping_details within CollectedInformation in v18.0.0)
%% String tracking_number (Removed from shipping_details within CollectedInformation in v18.0.0)
}
class AutomaticTax {
+String provider %% New field in v18.1.0
}
class Permissions {
+boolean update_line_items %% New field in v18.0.0
+boolean update_shipping_details %% New field in v18.0.0
}
Stripe.Checkout.Session --o CollectedInformation
Stripe.Checkout.Session --o AutomaticTax
Stripe.Checkout.Session --o Permissions
Class Diagram: Removed Stripe Resources in v18.0.0classDiagram
class Stripe.SubscriptionItemUsageRecordSummary {
%% Class REMOVED in Stripe SDK v18.0.0
%% Previously had fields like: id, object, period, total_usage
}
class Stripe.SubscriptionItemUsageRecord {
%% Class REMOVED in Stripe SDK v18.0.0
%% Previously had fields like: id, object, quantity, subscription_item, timestamp
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.1.0.
ℹ️ 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 52 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: stripe
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_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
See the changelog for more details.
#2271 Beta SDK updates between Open API versions 1473 and 1505
succeed_input_collection
andtimeout_input_collection
test helper methods on resourceTerminal.Reader
Account.risk_controls.rejected_reason
from enum to enum | nullCheckout.Session.collected_information.shipping_details
andCheckout.Session.collected_information
to be requiredtarget_date
onOrder.payment.settings.payment_method_options.acss_debit
,Order.payment.settings.payment_method_options.sepa_debit
,OrderCreateParams.payment.settings.payment_method_options.acss_debit
,OrderCreateParams.payment.settings.payment_method_options.sepa_debit
,OrderUpdateParams.payment.settings.payment_method_options.acss_debit
, andOrderUpdateParams.payment.settings.payment_method_options.sepa_debit
#2272 Merge master
See the changelog for more details.
prices
onBilling.CreditBalanceSummaryRetrieveParams.filter.applicability_scope
,Billing.CreditGrant.applicability_config.scope
, andBilling.CreditGrantCreateParams.applicability_config.scope
Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type
,Billing.CreditGrant.applicability_config.scope.price_type
, andBilling.CreditGrantCreateParams.applicability_config.scope.price_type
to be optionalpriority
onBilling.CreditGrantCreateParams
andBilling.CreditGrant
target_date
onCheckout.Session.payment_method_options.acss_debit
,Checkout.Session.payment_method_options.au_becs_debit
,Checkout.Session.payment_method_options.bacs_debit
,Checkout.Session.payment_method_options.sepa_debit
,Checkout.Session.payment_method_options.us_bank_account
,Checkout.SessionCreateParams.payment_method_options.acss_debit
,Checkout.SessionCreateParams.payment_method_options.au_becs_debit
,Checkout.SessionCreateParams.payment_method_options.bacs_debit
,Checkout.SessionCreateParams.payment_method_options.sepa_debit
,Checkout.SessionCreateParams.payment_method_options.us_bank_account
,PaymentIntent.payment_method_options.acss_debit
,PaymentIntent.payment_method_options.au_becs_debit
,PaymentIntent.payment_method_options.bacs_debit
,PaymentIntent.payment_method_options.sepa_debit
,PaymentIntent.payment_method_options.us_bank_account
,PaymentIntentConfirmParams.payment_method_options.acss_debit
,PaymentIntentConfirmParams.payment_method_options.au_becs_debit
,PaymentIntentConfirmParams.payment_method_options.bacs_debit
,PaymentIntentConfirmParams.payment_method_options.sepa_debit
,PaymentIntentConfirmParams.payment_method_options.us_bank_account
,PaymentIntentCreateParams.payment_method_options.acss_debit
,PaymentIntentCreateParams.payment_method_options.au_becs_debit
,PaymentIntentCreateParams.payment_method_options.bacs_debit
,PaymentIntentCreateParams.payment_method_options.sepa_debit
,PaymentIntentCreateParams.payment_method_options.us_bank_account
,PaymentIntentUpdateParams.payment_method_options.acss_debit
,PaymentIntentUpdateParams.payment_method_options.au_becs_debit
,PaymentIntentUpdateParams.payment_method_options.bacs_debit
,PaymentIntentUpdateParams.payment_method_options.sepa_debit
, andPaymentIntentUpdateParams.payment_method_options.us_bank_account
restrictions
onCheckout.Session.payment_method_options.card
andCheckout.SessionCreateParams.payment_method_options.card
collected_information
onCheckout.SessionUpdateParams
andCheckout.Session
Checkout.Session.discounts
,Refund.destination_details.blik.network_decline_code
, andRefund.destination_details.swish.network_decline_code
to be requiredmetadata
onProductCreateParams.default_price_data
TokenCreateParams.person.political_exposure
fromstring
toenum('existing'|'none')
2025-02-24.acacia
on enumWebhookEndpointCreateParams.api_version
OPENAPI_VERSION
into npm bundleSee the changelog for more details.
rejected_reason
onAccount.risk_controls
product_tax_code_selector
onAccountSessionCreateParams.components
prices
onBilling.CreditBalanceSummaryRetrieveParams.filter.applicability_scope
,Billing.CreditGrant.applicability_config.scope
, andBilling.CreditGrantCreateParams.applicability_config.scope
Billing.CreditGrant.applicability_config.scope.price_type
,Checkout.Session.collected_information.business_name
,Checkout.Session.collected_information.email
,Checkout.Session.collected_information.phone
,Checkout.Session.collected_information.shipping_details
, andCheckout.Session.collected_information.tax_ids
to be optionalbrand_product
onCharge.payment_method_details.amazon_pay.funding.card
andCharge.payment_method_details.revolut_pay.funding.card
restrictions
onCheckout.Session.payment_method_options.card
andCheckout.SessionCreateParams.payment_method_options.card
Checkout.Session.discounts
to be requiredTokenCreateParams.person.political_exposure
fromstring
toenum('existing'|'none')
See the changelog for more details.
close
method on resourceTreasury.FinancialAccountSummary by Sourcery- Bump the stripe package version from ^15.8.0 to ^18.1.0 in dashboard/package.json
Chores: