Update dependency stripe to v18 #34
Open
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:
^8.0.0->^18.0.0Release Notes
stripe/stripe-node (stripe)
v18.0.0Compare Source
#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.
SubscriptionItemUsageRecordSummaryandSubscriptionItemUsageRecordlistUpcomingLinesandretrieveUpcomingmethods on resourceInvoicecreateUsageRecordandlistUsageRecordSummariesmethods on resourceSubscriptionItemsinvoiceonChargeandPaymentIntentshipping_detailsonCheckout.Sessioncarrier,phone, andtracking_numberonCheckout.Session.collected_information.shipping_details. Makenameandaddressrequired instead of optional.refundonCreditNoteCreateParams,CreditNoteListPreviewLineItemsParams,CreditNotePreviewParams, andCreditNotetax_amountsonCreditNoteLineItem,CreditNote, andInvoiceLineItemamount_excluding_taxandunit_amount_excluding_taxonCreditNoteLineItemandInvoiceLineItemcoupononCustomerCreateParams,CustomerUpdateParams,InvoiceCreatePreviewParams.schedule_details.phases[],InvoiceCreatePreviewParams,SubscriptionCreateParams,SubscriptionSchedule.phases[],SubscriptionScheduleCreateParams.phases[],SubscriptionScheduleUpdateParams.phases[], andSubscriptionUpdateParamspromotion_codeonCustomerCreateParams,CustomerUpdateParams,SubscriptionCreateParams, andSubscriptionUpdateParamspriceonInvoiceAddLinesParams.lines[],InvoiceItemCreateParams,InvoiceItemUpdateParams,InvoiceItem,InvoiceLineItemUpdateParams,InvoiceLineItem, andInvoiceUpdateLinesParams.lines[]. Usepricing` instead.billing_thresholdsonInvoiceCreatePreviewParams.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, andSubscriptionapplication_fee_amount,charge,paid_out_of_band,paid,payment_intent,quote,subscription,subscription_details,subscription_proration_date,tax,total_tax_amounts, andtransfer_dataonInvoicediscountonInvoiceandSubscriptioninvoice_item,proration_details,proration,tax_rates, andtypeonInvoiceLineItemplanandsubscription_itemonInvoiceItemandInvoiceLineItemunit_amountonInvoiceItemCreateParams,InvoiceItemUpdateParams, andInvoiceItemsubscriptionandunit_amount_decimalonInvoiceItemnaver_payonPaymentMethodUpdateParamsaggregate_usageonPlanCreateParams,Plan,Price.recurring, andPriceCreateParams.recurringcurrent_period_endandcurrent_period_startonSubscriptionpagehas been removed from all V2 list method params (e.g.EventService.list()); use the auto paginator or thenext_page_urlandprevious_page_urlfields instead (more info)Changes
Checkout.Session.collected_informationto be requiredCheckout.Session.collected_information.shipping_detailsto be requiredCheckout.Session.collected_information.shipping_details.addressto be requiredCheckout.Session.collected_information.shipping_details.nameto be requiredPaymentIntentConfirmParams.payment_method_options.wechat_pay.client,PaymentIntentCreateParams.payment_method_options.wechat_pay.client, andPaymentIntentUpdateParams.payment_method_options.wechat_pay.clientto be optionalpolitical_exposureon resourcesPersonandTokenand paramsToken.CreateParamsfrom string to enum("existing" | "none")Additions
InvoicePaymentlistandretrievemethods on resourceInvoicePaymentbillie_payments,nz_bank_account_becs_debit_payments, andsatispay_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitieshosted_payment_method_saveonAccount.settings.invoicesandAccountUpdateParams.settings.invoicesinvoicesonAccountCreateParams.settingsinformation_missing,invalid_signator,verification_failed_authorizer_authority, andverification_rejected_ownership_exemption_reasonon 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[].codeforwarding_api_retryable_upstream_errorandsetup_intent_mobile_wallet_unsupportedon enumsInvoice.last_finalization_error.code,PaymentIntent.last_payment_error.code,SetupAttempt.setup_error.code,SetupIntent.last_setup_error.code, andStripeError.codestripe_balance_payment_debit_reversalandstripe_balance_payment_debiton enumBalanceTransaction.typelaston enumsBilling.Meter.default_aggregation.formulaandBilling.MeterCreateParams.default_aggregation.formulapresentment_detailsonCharge,Checkout.Session,PaymentIntent, andRefundbillieandsatispayonCharge.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_datanz_bank_accountonCharge.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_dataoptional_itemsonCheckout.SessionCreateParams,Checkout.Session,PaymentLinkCreateParams, andPaymentLinkpermissionsonCheckout.SessionCreateParamsandCheckout.Sessionbillieandsatispayon enumCheckout.SessionCreateParams.payment_method_typescustomon enumsCheckout.Session.ui_modeandCheckout.SessionCreateParams.ui_modeshipping_optionsonCheckout.SessionUpdateParamsbillie,nz_bank_account, andsatispayon 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.typebuyer_idonConfirmationToken.payment_method_preview.naver_pay,CustomerPaymentMethod.naver_pay, andPaymentMethod.naver_paybillie,nz_bank_account, andsatispayon enumsConfirmationToken.payment_method_preview.type,CustomerPaymentMethod.type, andPaymentMethod.typerefundsonCreditNoteCreateParams,CreditNoteListPreviewLineItemsParams,CreditNotePreviewParams, andCreditNotetotal_taxesonCreditNoteandInvoicetaxesonCreditNoteLineItemandInvoiceLineItemcheckout_sessiononCustomerBalanceTransactioncheckout_session_subscription_payment_canceledandcheckout_session_subscription_paymenton enumCustomerBalanceTransaction.typebillie,nz_bank_account, andsatispayon enumsCustomerPaymentMethodListParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typeinvoice.overpaidon enumEvent.typeklarnaandnz_bank_accounton 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_typespricingonInvoiceAddLinesParams.lines[],InvoiceItemCreateParams,InvoiceItemUpdateParams,InvoiceItem,InvoiceLineItemUpdateParams,InvoiceLineItem, andInvoiceUpdateLinesParams.lines[]taxability_reasononInvoiceAddLinesParams.lines[].tax_amounts[],InvoiceLineItemUpdateParams.tax_amounts[], andInvoiceUpdateLinesParams.lines[].tax_amounts[]jurisdiction_levelonInvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data,InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data, andInvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_dataamount_overpaid,confirmation_secret, andpaymentsonInvoiceparentonInvoiceItem,InvoiceLineItem, andInvoiceexpiredon enumsIssuing.Authorization.statusandIssuing.AuthorizationListParams.statusnetwork_fallbackon enumIssuing.Authorization.request_history[].reasonnaver_payonMandate.payment_method_detailsandSetupAttempt.payment_method_detailssetup_future_usageonPaymentIntent.payment_method_options.naver_pay,PaymentIntentConfirmParams.payment_method_options.naver_pay,PaymentIntentCreateParams.payment_method_options.naver_pay, andPaymentIntentUpdateParams.payment_method_options.naver_payexpiredon enumPaymentIntent.cancellation_reasondefault_valueonPaymentLink.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[].textbillieandsatispayon enumsPaymentLink.payment_method_types,PaymentLinkCreateParams.payment_method_types, andPaymentLinkUpdateParams.payment_method_typesnz_bank_transferonRefund.destination_detailscanceledon enumReview.closed_reasoncurrent_period_endandcurrent_period_startonSubscriptionItemwifionTerminal.ConfigurationCreateParams,Terminal.ConfigurationUpdateParams, andTerminal.Configurationinvoice.overpaidon enumsWebhookEndpointCreateParams.enabled_eventsandWebhookEndpointUpdateParams.enabled_events2025-03-01.dashboardand2025-03-31.basilon enumWebhookEndpointCreateParams.api_versionStripe.webhooksandStripe().webhooksare no longer functions (just plain objects)Stripe.webhooks().someMethod(), you should useStripe.webhooks.someMethod()insteadAccountDebitSourcein favor ofAccountCapabilityListParamsin favor ofAccountListCapabilitiesParamsCapabilityRetrieveParamsin favor ofAccountRetrieveCapabilityParamsCapabilityUpdateParamsin favor ofAccountUpdateCapabilityParamsCashBalanceRetrieveParamsin favor ofCustomerRetrieveCashBalanceParamsCashBalanceUpdateParamsin favor ofCustomerUpdateCashBalanceParamsCreditNoteLineItemListParamsin favor ofCreditNoteListLineItemsParamsCustomerBalanceTransactionCreateParamsin favor ofCustomerCreateBalanceTransactionParamsCustomerBalanceTransactionListParamsin favor ofCustomerListBalanceTransactionsParamsCustomerBalanceTransactionRetrieveParamsin favor ofCustomerRetrieveBalanceTransactionParamsCustomerBalanceTransactionUpdateParamsin favor ofCustomerUpdateBalanceTransactionParamsCustomerCashBalanceTransactionListParamsin favor ofCustomerListCashBalanceTransactionsParamsCustomerCashBalanceTransactionRetrieveParamsin favor ofCustomerRetrieveCashBalanceTransactionParamsCustomerSourceCreateParamsin favor ofCustomerCreateSourceParamsCustomerSourceDeleteParamsin favor ofCustomerDeleteSourceParamsCustomerSourceListParamsin favor ofCustomerListSourcesParamsCustomerSourceRetrieveParamsin favor ofCustomerRetrieveSourceParamsCustomerSourceUpdateParamsin favor ofCustomerUpdateSourceParamsCustomerSourceVerifyParamsin favor ofCustomerVerifySourceParamsExternalAccountCreateParamsin favor ofAccountCreateExternalAccountParamsExternalAccountDeleteParamsin favor ofAccountDeleteExternalAccountParamsExternalAccountListParamsin favor ofAccountListExternalAccountsParamsExternalAccountRetrieveParamsin favor ofAccountRetrieveExternalAccountParamsExternalAccountUpdateParamsin favor ofAccountUpdateExternalAccountParamsFeeRefundCreateParamsin favor ofApplicationFeeCreateRefundParamsFeeRefundListParamsin favor ofApplicationFeeListRefundsParamsFeeRefundRetrieveParamsin favor ofApplicationFeeRetrieveRefundParamsFeeRefundUpdateParamsin favor ofApplicationFeeUpdateRefundParamsInvoiceLineItemListParamsin favor ofInvoiceListLineItemsParamsInvoiceLineItemUpdateParamsin favor ofInvoiceUpdateLineItemParamsLoginLinkCreateParamsin favor ofAccountCreateLoginLinkParamsPersonCreateParamsin favor ofAccountCreatePersonParamsPersonDeleteParamsin favor ofAccountDeletePersonParamsPersonListParamsin favor ofAccountListPersonsParamsPersonRetrieveParamsin favor ofAccountRetrievePersonParamsPersonUpdateParamsin favor ofAccountUpdatePersonParamsTransferReversalCreateParamsin favor ofTransferCreateReversalParamsTransferReversalListParamsin favor ofTransferListReversalsParamsTransferReversalRetrieveParamsin favor ofTransferRetrieveReversalParamsTransferReversalUpdateParamsin favor ofTransferUpdateReversalParamsv17.7.0Compare Source
pricesonBilling.CreditBalanceSummaryRetrieveParams.filter.applicability_scope,Billing.CreditGrant.applicability_config.scope, andBilling.CreditGrantCreateParams.applicability_config.scopeBilling.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type,Billing.CreditGrant.applicability_config.scope.price_type, andBilling.CreditGrantCreateParams.applicability_config.scope.price_typeto be optionalpriorityonBilling.CreditGrantCreateParamsandBilling.CreditGranttarget_dateonCheckout.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_accountrestrictionsonCheckout.Session.payment_method_options.cardandCheckout.SessionCreateParams.payment_method_options.cardcollected_informationonCheckout.SessionUpdateParamsandCheckout.SessionCheckout.Session.discounts,Refund.destination_details.blik.network_decline_code, andRefund.destination_details.swish.network_decline_codeto be requiredmetadataonProductCreateParams.default_price_dataTokenCreateParams.person.political_exposurefromstringtoenum('existing'|'none')2025-02-24.acaciaon enumWebhookEndpointCreateParams.api_versionOPENAPI_VERSIONinto npm bundlev17.6.0Compare Source
closemethod on resourceTreasury.FinancialAccountpay_by_bank_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiesdirectorship_declarationandownership_exemption_reasononAccount.company,AccountCreateParams.company,AccountUpdateParams.company, andTokenCreateParams.account.companyproof_of_ultimate_beneficial_ownershiponAccountCreateParams.documentsandAccountUpdateParams.documentsfinancial_accountonAccountSession.components,AccountSessionCreateParams.components, andTreasury.OutboundTransfer.destination_payment_method_detailsfinancial_account_transactions,issuing_card, andissuing_cards_listonAccountSession.componentsandAccountSessionCreateParams.componentsadvice_codeonCharge.outcome,Invoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeErrorBilling.CreditBalanceTransaction.credit.credits_application_invoice_voided,Card.regulated_status,Charge.payment_method_details.card.network_transaction_id,Charge.payment_method_details.card.regulated_status,ConfirmationToken.payment_method_preview.card.regulated_status,CreditNote.pretax_credit_amounts,Invoice.total_pretax_credit_amounts,Issuing.Authorization.merchant_data.tax_id,Issuing.Transaction.merchant_data.tax_id, andPaymentMethod.card.regulated_statusto be requiredpay_by_bankonCharge.payment_method_details,Checkout.SessionCreateParams.payment_method_options,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,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,PaymentMethodUpdateParams,PaymentMethod,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_datacountryonCharge.payment_method_details.paypal,ConfirmationToken.payment_method_preview.paypal, andPaymentMethod.paypalpay_by_bankon enumsCheckout.SessionCreateParams.payment_method_types[],CustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typeSDon enumsCheckout.Session.shipping_address_collection.allowed_countries[],Checkout.SessionCreateParams.shipping_address_collection.allowed_countries[],PaymentLink.shipping_address_collection.allowed_countries[],PaymentLinkCreateParams.shipping_address_collection.allowed_countries[], andPaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]discountsonCheckout.Sessionpay_by_bankon 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.typepay_by_bankon enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typepay_by_bankon enumsPaymentLink.payment_method_types[],PaymentLinkCreateParams.payment_method_types[], andPaymentLinkUpdateParams.payment_method_types[]phone_number_collectiononPaymentLinkUpdateParamsjpyonTerminal.Configuration.tipping,Terminal.ConfigurationCreateParams.tipping, andTerminal.ConfigurationUpdateParams.tippingnicknameonTreasury.FinancialAccountCreateParams,Treasury.FinancialAccountUpdateParams, andTreasury.FinancialAccountforwarding_settingsonTreasury.FinancialAccountUpdateParamsis_defaultonTreasury.FinancialAccountdestination_payment_method_dataonTreasury.OutboundTransferCreateParamsTreasury.OutboundTransfer.destination_payment_method_details.typefromliteral('us_bank_account')toenum('financial_account'|'us_bank_account')outbound_transferon enumsTreasury.ReceivedCredit.linked_flows.source_flow_details.typeandTreasury.ReceivedCreditListParams.linked_flows.source_flow_typeoutbound_transferonTreasury.ReceivedCredit.linked_flows.source_flow_details2025-01-27.acaciaon enumWebhookEndpointCreateParams.api_versionv17.5.0Compare Source
2024-12-18.acacia.Account.business_profile.annual_revenueandAccount.business_profile.estimated_worker_countto be optionalnetwork_advice_codeandnetwork_decline_codeonCharge.outcome,Invoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeErrorpayout_minimum_balance_holdandpayout_minimum_balance_releaseon enumBalanceTransaction.typecredits_application_invoice_voidedonBilling.CreditBalanceTransaction.creditBilling.CreditBalanceTransaction.credit.typefromliteral('credits_granted')toenum('credits_application_invoice_voided'|'credits_granted')BillingPortal.Configuration.features.subscription_update.schedule_at_period_end,Issuing.Authorization.verified_by_fraud_challenge,LineItem.description, andPayout.trace_idto be requiredallow_redisplayonCardandSourceregulated_statusonCard,Charge.payment_method_details.card,ConfirmationToken.payment_method_preview.card, andPaymentMethod.cardfundingonCharge.payment_method_details.amazon_payandCharge.payment_method_details.revolut_paynetwork_transaction_idonCharge.payment_method_details.cardreference_prefixonCheckout.Session.payment_method_options.bacs_debit.mandate_options,Checkout.Session.payment_method_options.sepa_debit.mandate_options,Checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options,Checkout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options,PaymentIntent.payment_method_options.bacs_debit.mandate_options,PaymentIntent.payment_method_options.sepa_debit.mandate_options,PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options,PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options,PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options,PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options,PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options,PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options,SetupIntent.payment_method_options.bacs_debit.mandate_options,SetupIntent.payment_method_options.sepa_debit.mandate_options,SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options,SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options,SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options,SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options,SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options, andSetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_optionsal_tin,am_tin,ao_tin,ba_tin,bb_tin,bs_tin,cd_nif,gn_nif,kh_tin,me_pib,mk_vat,mr_nif,np_pan,sn_ninea,sr_fin,tj_tin,ug_tin,zm_tin, andzw_tinon 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.typeal_tin,am_tin,ao_tin,ba_tin,bb_tin,bs_tin,cd_nif,gn_nif,kh_tin,me_pib,mk_vat,mr_nif,np_pan,sn_ninea,sr_fin,tj_tin,ug_tin,zm_tin, andzw_tinon enumsCustomerCreateParams.tax_id_data[].type,InvoiceCreatePreviewParams.customer_details.tax_ids[].type,InvoiceUpcomingLinesParams.customer_details.tax_ids[].type,InvoiceUpcomingParams.customer_details.tax_ids[].type,Tax.CalculationCreateParams.customer_details.tax_ids[].type, andTaxIdCreateParams.typevisa_complianceonDispute.evidence.enhanced_evidence,Dispute.evidence_details.enhanced_eligibility, andDisputeUpdateParams.evidence.enhanced_evidencerequest_signatureon enumsForwarding.Request.replacements[]andForwarding.RequestCreateParams.replacements[]account_holder_addressandbank_addressonFundingInstructions.bank_transfer.financial_addresses[].iban,FundingInstructions.bank_transfer.financial_addresses[].sort_code,FundingInstructions.bank_transfer.financial_addresses[].spei,FundingInstructions.bank_transfer.financial_addresses[].zengin,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zenginaccount_holder_nameonFundingInstructions.bank_transfer.financial_addresses[].speiandPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].speidisabled_reasononInvoice.automatic_tax,Subscription.automatic_tax,SubscriptionSchedule.default_settings.automatic_tax, andSubscriptionSchedule.phases[].automatic_taxtax_idonIssuing.Authorization.merchant_dataandIssuing.Transaction.merchant_dataLineItem.descriptionfromstringtostring | nulltrial_period_daysonPaymentLinkUpdateParams.subscription_dataal,am,ao,ba,bb,bs,cd,gn,kh,me,mk,mr,np,pe,sn,sr,tj,ug,uy,zm, andzwonTax.Registration.country_optionsandTax.RegistrationCreateParams.country_options2024-12-18.acaciaon enumWebhookEndpointCreateParams.api_versionv17.4.0Compare Source
2024-11-20.acacia.respondtest helper method on resourceIssuing.AuthorizationauthorizeronAccountPersonsParams.relationshipandTokenCreateParams.person.relationshipAccount.future_requirements.disabled_reasonandAccount.requirements.disabled_reasonfromstringtoenumAccountSession.components.account_management.features.disable_stripe_user_authentication,AccountSession.components.account_onboarding.features.disable_stripe_user_authentication,AccountSession.components.balances.features.disable_stripe_user_authentication,AccountSession.components.notification_banner.features.disable_stripe_user_authentication, andAccountSession.components.payouts.features.disable_stripe_user_authenticationto be requiredadaptive_pricingonCheckout.SessionCreateParamsandCheckout.Sessionmandate_optionsonCheckout.Session.payment_method_options.bacs_debit,Checkout.Session.payment_method_options.sepa_debit,Checkout.SessionCreateParams.payment_method_options.bacs_debit, andCheckout.SessionCreateParams.payment_method_options.sepa_debitrequest_extended_authorization,request_incremental_authorization,request_multicapture, andrequest_overcaptureonCheckout.Session.payment_method_options.cardandCheckout.SessionCreateParams.payment_method_options.cardcapture_methodonCheckout.SessionCreateParams.payment_method_options.kakao_pay,Checkout.SessionCreateParams.payment_method_options.kr_card,Checkout.SessionCreateParams.payment_method_options.naver_pay,Checkout.SessionCreateParams.payment_method_options.payco, andCheckout.SessionCreateParams.payment_method_options.samsung_paysubscribeon enumsCheckout.Session.submit_type,Checkout.SessionCreateParams.submit_type,PaymentLink.submit_type, andPaymentLinkCreateParams.submit_typeli_vaton 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.typeli_vaton enumsCustomerCreateParams.tax_id_data[].type,InvoiceCreatePreviewParams.customer_details.tax_ids[].type,InvoiceUpcomingLinesParams.customer_details.tax_ids[].type,InvoiceUpcomingParams.customer_details.tax_ids[].type,Tax.CalculationCreateParams.customer_details.tax_ids[].type, andTaxIdCreateParams.typefinancial_account_statementon enumsFile.purposeandFileListParams.purposeaccount_holder_address,account_holder_name,account_type, andbank_addressonFundingInstructions.bank_transfer.financial_addresses[].aba,FundingInstructions.bank_transfer.financial_addresses[].swift,PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba, andPaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swiftservice_taxon enumsInvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type,InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type,Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type,Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type,Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type,Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type,TaxRate.tax_type,TaxRateCreateParams.tax_type, andTaxRateUpdateParams.tax_typemerchant_amountandmerchant_currencyonIssuing.AuthorizationCreateParams.testHelpersIssuing.AuthorizationCreateParams.testHelpers.amountto be optionalfraud_challengesandverified_by_fraud_challengeonIssuing.Authorizationlinkon enumsPaymentIntent.payment_method_options.card.network,PaymentIntentConfirmParams.payment_method_options.card.network,PaymentIntentCreateParams.payment_method_options.card.network,PaymentIntentUpdateParams.payment_method_options.card.network,SetupIntent.payment_method_options.card.network,SetupIntentConfirmParams.payment_method_options.card.network,SetupIntentCreateParams.payment_method_options.card.network,SetupIntentUpdateParams.payment_method_options.card.network,Subscription.payment_settings.payment_method_options.card.network,SubscriptionCreateParams.payment_settings.payment_method_options.card.network, andSubscriptionUpdateParams.payment_settings.payment_method_options.card.networksubmit_typeonPaymentLinkUpdateParamstrace_idonPayoutnetwork_decline_codeonRefund.destination_details.blikandRefund.destination_details.swishTreasury.InboundTransfer.origin_payment_methodfromstringtostring | null2024-11-20.acaciaon enumWebhookEndpointCreateParams.api_versionStripe.V2.BillingResource,Stripe.V2.CoreResource, andStripe.V2Resourcetypes from the public interface as they are no longer needed. SDK usage will not be affected but any references to these types in your application will need to be removed.v17.3.1Compare Source
latestapiversionwas not updated to2024-10-28.acaciain the last release.v17.3.0Compare Source
2024-10-28.acacia.V2.EventDestinationscreate,retrieve,update,list,del,disable,enableandpingmethods on resourceV2.EventDestinationssubmit_cardtest helper method on resourceIssuing.CardgroupsonAccountCreateParams,AccountUpdateParams, andAccountalma_payments,kakao_pay_payments,kr_card_payments,naver_pay_payments,payco_payments, andsamsung_pay_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiesdisable_stripe_user_authenticationonAccountSession.components.account_management.features,AccountSession.components.account_onboarding.features,AccountSession.components.balances.features,AccountSession.components.notification_banner.features,AccountSession.components.payouts.features,AccountSessionCreateParams.components.account_management.features,AccountSessionCreateParams.components.account_onboarding.features,AccountSessionCreateParams.components.balances.features,AccountSessionCreateParams.components.notification_banner.features, andAccountSessionCreateParams.components.payouts.featuresschedule_at_period_endonBillingPortal.Configuration.features.subscription_update,BillingPortal.ConfigurationCreateParams.features.subscription_update, andBillingPortal.ConfigurationUpdateParams.features.subscription_updateBillingPortal.ConfigurationCreateParams.business_profileandRefund.next_action.display_detailsto be optionalalmaonCharge.payment_method_details,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,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,Refund.destination_details,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_datakakao_payandkr_cardonCharge.payment_method_details,Checkout.Session.payment_method_options,Checkout.SessionCreateParams.payment_method_options,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,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,PaymentMethodCreateParams,PaymentMethod,SetupAttempt.payment_method_details,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_datanaver_payonCharge.payment_method_details,Checkout.Session.payment_method_options,Checkout.SessionCreateParams.payment_method_options,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,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,PaymentMethodUpdateParams,PaymentMethod,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_datapaycoandsamsung_payonCharge.payment_method_details,Checkout.Session.payment_method_options,Checkout.SessionCreateParams.payment_method_options,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,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,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_dataalma,kakao_pay,kr_card,naver_pay,payco, andsamsung_payon enumsCheckout.SessionCreateParams.payment_method_types[],CustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typeby_tin,ma_vat,md_vat,tz_vat,uz_tin, anduz_vaton 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.typealma,kakao_pay,kr_card,naver_pay,payco, andsamsung_payon 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.typealma,kakao_pay,kr_card,naver_pay,payco, andsamsung_payon enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typeautoon enumCustomerUpdateParams.tax.validate_locationby_tin,ma_vat,md_vat,tz_vat,uz_tin, anduz_vaton enumsCustomerCreateParams.tax_id_data[].type,InvoiceCreatePreviewParams.customer_details.tax_ids[].type,InvoiceUpcomingLinesParams.customer_details.tax_ids[].type,InvoiceUpcomingParams.customer_details.tax_ids[].type,Tax.CalculationCreateParams.customer_details.tax_ids[].type, andTaxIdCreateParams.typeenhanced_evidenceonDispute.evidenceandDisputeUpdateParams.evidenceenhanced_eligibility_typesonDisputeenhanced_eligibilityonDispute.evidence_detailsissuing_transaction.purchase_details_receipt_updatedandrefund.failedon enumEvent.typemetadataonForwarding.RequestCreateParamsandForwarding.Requestautomatically_finalizes_atonInvoiceCreateParamsandInvoiceUpdateParamsjp_credit_transfer,kakao_pay,kr_card,naver_pay, andpaycoon 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[]retail_delivery_feeon enumsInvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type,InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type,Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type,Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type,Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type,Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type,TaxRate.tax_type,TaxRateCreateParams.tax_type, andTaxRateUpdateParams.tax_typealmaon enumsPaymentLink.payment_method_types[],PaymentLinkCreateParams.payment_method_types[], andPaymentLinkUpdateParams.payment_method_types[]amazon_payonPaymentMethodDomainRefund.next_action.display_detailsfromRefundNextActionDisplayDetails | nulltoRefundNextActionDisplayDetailsflat_amountandrate_typeonTax.Calculation.tax_breakdown[].tax_rate_detailsandTaxRateby,cr,ec,ma,md,rs,ru,tz, anduzonTax.Registration.country_optionsandTax.RegistrationCreateParams.country_optionsstate_retail_delivery_feeon enumsTax.Registration.country_options.us.typeandTax.RegistrationCreateParams.country_options.us.typeplnonTerminal.Configuration.tipping,Terminal.ConfigurationCreateParams.tipping, andTerminal.ConfigurationUpdateParams.tippingissuing_transaction.purchase_details_receipt_updatedandrefund.failedon enumsWebhookEndpointCreateParams.enabled_events[]andWebhookEndpointUpdateParams.enabled_events[]2024-10-28.acaciaon enumWebhookEndpointCreateParams.api_versionv17.2.1Compare Source
#2210 update object tags for meter-related classes
objectproperty of theMeterEvent,MeterEventAdjustment, andMeterEventSessiondidn't match the server.#2208 Update signature verification docs link
v17.2.0Compare Source
fetchRelatedObjectis added to events retrieved usingstripe.v2.core.eventsand can be used to easily fetch the Stripe object related to a retrieved eventv17.1.0Compare Source
Marginthat was accidentally made public in the last releasev17.0.0Compare Source
#2192 Support for APIs in the new API version 2024-09-30.acacia
This release changes the pinned API version to
2024-09-30.acacia. Please read the API Upgrade Guide and carefully review the API changes before upgrading.usage_threshold_configtousage_thresholdonBilling.AlertCreateParamsandBilling.AlertfilteronBilling.AlertCreateParamsandBilling.Alert. Use the filters on theusage_thresholdinsteadcustomer_consent_collectedonTerminal.ReaderProcessSetupIntentParams.1->22->5Additions
custom_unit_amountonProductCreateParams.default_price_dataallow_redisplayonTerminal.ReaderProcessPaymentIntentParams.process_configandTerminal.ReaderProcessSetupIntentParamsinternational_transactionon enumTreasury.ReceivedCredit.failure_code2024-09-30.acaciaon enumWebhookEndpointCreateParams.api_versionBilling.MeterEvent,Billing.MeterEventAdjustments,Billing.MeterEventSession,Billing.MeterEventStreamand the new Events APICore.Eventsin the v2 namespaceparseThinEvent()on theStripeclass to parse thin events.Stripeclass that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.Changes
BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updatesandBillingPortal.ConfigurationCreateParams.features.subscription_update.productsto be optionalv16.12.0Compare Source
international_transactionon enumTreasury.ReceivedDebit.failure_codeverification_supportabilityon enumsAccount.future_requirements.errors[].code,Account.requirements.errors[].code,BankAccount.future_requirements.errors[].code, andBankAccount.requirements.errors[].codeterminal_reader_invalid_location_for_activationon enumsInvoice.last_finalization_error.code,PaymentIntent.last_payment_error.code,SetupAttempt.setup_error.code,SetupIntent.last_setup_error.code, andStripeError.codepayer_detailsonCharge.payment_method_details.klarnaamazon_payonDispute.payment_method_detailsamazon_payon enumDispute.payment_method_details.typeautomatically_finalizes_atonInvoicestate_sales_taxonTax.Registration.country_options.usandTax.RegistrationCreateParams.country_options.usv16.11.0Compare Source
InvoiceRenderingTemplatearchive,list,retrieve, andunarchivemethods on resourceInvoiceRenderingTemplaterequiredonCheckout.Session.tax_id_collection,Checkout.SessionCreateParams.tax_id_collection,PaymentLink.tax_id_collection,PaymentLinkCreateParams.tax_id_collection, andPaymentLinkUpdateParams.tax_id_collectiontemplateonCustomer.invoice_settings.rendering_options,CustomerCreateParams.invoice_settings.rendering_options,CustomerUpdateParams.invoice_settings.rendering_options,Invoice.rendering,InvoiceCreateParams.rendering, andInvoiceUpdateParams.renderingtemplate_versiononInvoice.rendering,InvoiceCreateParams.rendering, andInvoiceUpdateParams.renderingsubmittedon enumIssuing.Card.shipping.statusConfiguration
📅 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.