Skip to content

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Mar 25, 2025

snyk-top-banner

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.7.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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 46 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Prototype Pollution
SNYK-JS-PARSEGITCONFIG-9403763
67 Proof of Concept
Release notes
Package name: stripe
  • 17.7.0 - 2025-02-24
    • #2256 Update generated code
      • Add support for prices on Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope, Billing.CreditGrant.applicability_config.scope, and Billing.CreditGrantCreateParams.applicability_config.scope
      • Change Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type, Billing.CreditGrant.applicability_config.scope.price_type, and Billing.CreditGrantCreateParams.applicability_config.scope.price_type to be optional
      • Add support for priority on Billing.CreditGrantCreateParams and Billing.CreditGrant
      • Add support for target_date on Checkout.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, and PaymentIntentUpdateParams.payment_method_options.us_bank_account
      • Add support for restrictions on Checkout.Session.payment_method_options.card and Checkout.SessionCreateParams.payment_method_options.card
      • Add support for collected_information on Checkout.SessionUpdateParams and Checkout.Session
      • Change Checkout.Session.discounts, Refund.destination_details.blik.network_decline_code, and Refund.destination_details.swish.network_decline_code to be required
      • Add support for metadata on ProductCreateParams.default_price_data
      • Change type of TokenCreateParams.person.political_exposure from string to enum('existing'|'none')
      • Add support for new value 2025-02-24.acacia on enum WebhookEndpointCreateParams.api_version
    • #2259 Add Next.js App Router webhook example that leverages Route Handlers
    • #2257 Include OPENAPI_VERSION into npm bundle

    See the changelog for more details.

  • 17.7.0-beta.1 - 2025-02-07
    • #2254 Update generated code for beta
      • Add support for rejected_reason on Account.risk_controls
      • Add support for product_tax_code_selector on AccountSessionCreateParams.components
      • Add support for prices on Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope, Billing.CreditGrant.applicability_config.scope, and Billing.CreditGrantCreateParams.applicability_config.scope
      • Change 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, and Checkout.Session.collected_information.tax_ids to be optional
      • Add support for brand_product on Charge.payment_method_details.amazon_pay.funding.card and Charge.payment_method_details.revolut_pay.funding.card
      • Add support for restrictions on Checkout.Session.payment_method_options.card and Checkout.SessionCreateParams.payment_method_options.card
      • Change Checkout.Session.discounts to be required
      • Change type of TokenCreateParams.person.political_exposure from string to enum('existing'|'none')

    See the changelog for more details.

  • 17.6.0 - 2025-01-27
    • #2250 Update generated code
      • Add support for close method on resource Treasury.FinancialAccount
      • Add support for pay_by_bank_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for directorship_declaration and ownership_exemption_reason on Account.company, AccountCreateParams.company, AccountUpdateParams.company, and TokenCreateParams.account.company
      • Add support for proof_of_ultimate_beneficial_ownership on AccountCreateParams.documents and AccountUpdateParams.documents
      • Add support for financial_account on AccountSession.components, AccountSessionCreateParams.components, and Treasury.OutboundTransfer.destination_payment_method_details
      • Add support for financial_account_transactions, issuing_card, and issuing_cards_list on AccountSession.components and AccountSessionCreateParams.components
      • Add support for advice_code on Charge.outcome, Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError
      • Change Billing.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, and PaymentMethod.card.regulated_status to be required
      • Add support for pay_by_bank on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for country on Charge.payment_method_details.paypal, ConfirmationToken.payment_method_preview.paypal, and PaymentMethod.paypal
      • Add support for new value pay_by_bank on enums Checkout.SessionCreateParams.payment_method_types[], CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for new value SD on enums Checkout.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[], and PaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]
      • Add support for discounts on Checkout.Session
      • Add support for new value pay_by_bank on enums ConfirmationTokenCreateParams.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, and SetupIntentUpdateParams.payment_method_data.type
      • Add support for new value pay_by_bank on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new value pay_by_bank on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Add support for phone_number_collection on PaymentLinkUpdateParams
      • Add support for jpy on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
      • Add support for nickname on Treasury.FinancialAccountCreateParams, Treasury.FinancialAccountUpdateParams, and Treasury.FinancialAccount
      • Add support for forwarding_settings on Treasury.FinancialAccountUpdateParams
      • Add support for is_default on Treasury.FinancialAccount
      • Add support for destination_payment_method_data on Treasury.OutboundTransferCreateParams
      • Change type of Treasury.OutboundTransfer.destination_payment_method_details.type from literal('us_bank_account') to enum('financial_account'|'us_bank_account')
      • Add support for new value outbound_transfer on enums Treasury.ReceivedCredit.linked_flows.source_flow_details.type and Treasury.ReceivedCreditListParams.linked_flows.source_flow_type
      • Add support for outbound_transfer on Treasury.ReceivedCredit.linked_flows.source_flow_details
      • Add support for new value 2025-01-27.acacia on enum WebhookEndpointCreateParams.api_version
    • #2249 add justfile, remove coveralls, tweak ESLint
    • #2252 Added CONTRIBUTING.md file
    • #2242 Added pull request template

    See the changelog for more details.

  • 17.6.0-beta.3 - 2025-01-23
    • #2253 Update generated code for beta
      • Change Refund.destination_details.blik.network_decline_code and Refund.destination_details.swish.network_decline_code to be required
      • Remove support for stripe_account on Terminal.Reader.action.collect_payment_method, Terminal.Reader.action.confirm_payment_intent, Terminal.Reader.action.process_payment_intent, and Terminal.Reader.action.refund_payment

    See the changelog for more details.

  • 17.6.0-beta.2 - 2025-01-18
    • #2247 Update generated code for beta
      • Add support for pay_by_bank_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for directorship_declaration on AccountCreateParams.company, AccountUpdateParams.company, and TokenCreateParams.account.company
      • Add support for proof_of_ultimate_beneficial_ownership on AccountCreateParams.documents and AccountUpdateParams.documents
      • Add support for tax_threshold_monitoring on AccountSessionCreateParams.components
      • Add support for financial_account_transactions, financial_account, issuing_card, and issuing_cards_list on AccountSession.components
      • Change Billing.CreditBalanceTransaction.credit.credits_application_invoice_voided to be required
      • Add support for new value always_invoice on enums BillingPortal.Configuration.features.subscription_cancel.proration_behavior, BillingPortal.ConfigurationCreateParams.features.subscription_cancel.proration_behavior, and BillingPortal.ConfigurationUpdateParams.features.subscription_cancel.proration_behavior
      • Add support for pay_by_bank on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for new value pay_by_bank on enum Checkout.SessionCreateParams.payment_method_types[]
      • Add support for new value SD on enums Checkout.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[], and PaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]
      • Add support for discounts on Checkout.Session
      • Add support for new value pay_by_bank on enums ConfirmationTokenCreateParams.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, and SetupIntentUpdateParams.payment_method_data.type
      • Add support for new value pay_by_bank on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new value pay_by_bank on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for new value pay_by_bank on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Add support for jpy on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
      • Add support for new value 2025-01-27.acacia on enum WebhookEndpointCreateParams.api_version

    See the changelog for more details.

  • 17.6.0-beta.1 - 2025-01-09
    • #2239 Update generated code for beta
      • Add support for close method on resource Treasury.FinancialAccount
      • Add support for ownership_exemption_reason on Account.company, AccountCreateParams.company, AccountUpdateParams.company, and TokenCreateParams.account.company
      • Add support for directorship_declaration on Account.company
      • Add support for advice_code on Charge.outcome, Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError
      • Remove support for value always_invoice from enums BillingPortal.Configuration.features.subscription_cancel.proration_behavior, BillingPortal.ConfigurationCreateParams.features.subscription_cancel.proration_behavior, and BillingPortal.ConfigurationUpdateParams.features.subscription_cancel.proration_behavior
      • Add support for brand_product on Card, Source.card_present, Source.card, and Source.three_d_secure
      • Change 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, and PaymentMethod.card.regulated_status to be required
      • Add support for country on Charge.payment_method_details.paypal, ConfirmationToken.payment_method_preview.paypal, and PaymentMethod.paypal
      • Add support for new value al_tin on enums Checkout.Session.collected_information.tax_ids[].type and Order.tax_details.tax_ids[].type
      • Add support for new value al_tin on enums OrderCreateParams.tax_details.tax_ids[].type and OrderUpdateParams.tax_details.tax_ids[].type
      • Add support for phone_number_collection on PaymentLinkUpdateParams
      • Add support for nickname on Treasury.FinancialAccountCreateParams, Treasury.FinancialAccountUpdateParams, and Treasury.FinancialAccount
      • Add support for forwarding_settings on Treasury.FinancialAccountUpdateParams
      • Add support for is_default on Treasury.FinancialAccount
      • Add support for destination_payment_method_data on Treasury.OutboundTransferCreateParams
      • Add support for financial_account on Treasury.OutboundTransfer.destination_payment_method_details
      • Change type of Treasury.OutboundTransfer.destination_payment_method_details.type from literal('us_bank_account') to enum('financial_account'|'us_bank_account')
      • Add support for new value outbound_transfer on enums Treasury.ReceivedCredit.linked_flows.source_flow_details.type and Treasury.ReceivedCreditListParams.linked_flows.source_flow_type
      • Add support for outbound_transfer on Treasury.ReceivedCredit.linked_flows.source_flow_details

    See the changelog for more details.

  • 17.5.0 - 2024-12-18
    • #2237 This release changes the pinned API version to 2024-12-18.acacia.
      • Change Account.business_profile.annual_revenue and Account.business_profile.estimated_worker_count to be optional
      • Add support for network_advice_code and network_decline_code on Charge.outcome, Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError
      • Add support for new values payout_minimum_balance_hold and payout_minimum_balance_release on enum BalanceTransaction.type
      • Add support for credits_application_invoice_voided on Billing.CreditBalanceTransaction.credit
      • Change type of Billing.CreditBalanceTransaction.credit.type from literal('credits_granted') to enum('credits_application_invoice_voided'|'credits_granted')
      • Change BillingPortal.Configuration.features.subscription_update.schedule_at_period_end, Issuing.Authorization.verified_by_fraud_challenge, LineItem.description, and Payout.trace_id to be required
      • Add support for allow_redisplay on Card and Source
      • Add support for regulated_status on Card, Charge.payment_method_details.card, ConfirmationToken.payment_method_preview.card, and PaymentMethod.card
      • Add support for funding on Charge.payment_method_details.amazon_pay and Charge.payment_method_details.revolut_pay
      • Add support for network_transaction_id on Charge.payment_method_details.card
      • Add support for reference_prefix on Checkout.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, and SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
      • Add support for new values al_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, and zw_tin on enums Checkout.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, and TaxId.type
      • Add support for new values al_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, and zw_tin on enums CustomerCreateParams.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, and TaxIdCreateParams.type
      • Add support for visa_compliance on Dispute.evidence.enhanced_evidence, Dispute.evidence_details.enhanced_eligibility, and DisputeUpdateParams.evidence.enhanced_evidence
      • Add support for new value request_signature on enums Forwarding.Request.replacements[] and Forwarding.RequestCreateParams.replacements[]
      • Add support for account_holder_address and bank_address on FundingInstructions.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, and PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin
      • Add support for account_holder_name on FundingInstructions.bank_transfer.financial_addresses[].spei and PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei
      • Add support for disabled_reason on Invoice.automatic_tax, Subscription.automatic_tax, SubscriptionSchedule.default_settings.automatic_tax, and SubscriptionSchedule.phases[].automatic_tax
      • Add support for tax_id on Issuing.Authorization.merchant_data and Issuing.Transaction.merchant_data
      • Change type of LineItem.description from string to string | null
      • Add support for trial_period_days on PaymentLinkUpdateParams.subscription_data
      • Add support for al, am, ao, ba, bb, bs, cd, gn, kh, me, mk, mr, np, pe, sn, sr, tj, ug, uy, zm, and zw on Tax.Registration.country_options and Tax.RegistrationCreateParams.country_options
      • Add support for new value 2024-12-18.acacia on enum WebhookEndpointCreateParams.api_version
    • #2238 add missing key warning to README

    See the changelog for more details.

  • 17.5.0-beta.3 - 2024-12-12
    • #2235 Update generated code for beta
      • Change Account.business_profile.annual_revenue and Account.business_profile.estimated_worker_count to be optional
      • Add support for allow_redisplay on Card and Source
      • Add support for new values 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, and zw_tin on enums Checkout.Session.collected_information.tax_ids[].type and Order.tax_details.tax_ids[].type
      • Add support for new value network_fallback on enum Issuing.Authorization.request_history[].reason
      • Add support for new values 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, and zw_tin on enums OrderCreateParams.tax_details.tax_ids[].type and OrderUpdateParams.tax_details.tax_ids[].type
      • Remove support for amount_refunded on PaymentRecord
      • Add support for account on Terminal.Reader.action.collect_payment_method, Terminal.Reader.action.confirm_payment_intent, Terminal.Reader.action.process_payment_intent, and Terminal.Reader.action.refund_payment

    See the changelog for more details.

  • 17.5.0-beta.2 - 2024-12-05
    • #2232 Update generated code for beta
      • Add support for automatic_indirect_tax on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for new values payout_minimum_balance_hold and payout_minimum_balance_release on enum BalanceTransaction.type
      • Add support for reference_prefix on Checkout.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, Order.payment.settings.payment_method_options.sepa_debit.mandate_options, OrderCreateParams.payment.settings.payment_method_options.sepa_debit.mandate_options, OrderUpdateParams.payment.settings.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, and SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options
      • Add support for disabled_reason on Invoice.automatic_tax, Subscription.automatic_tax, SubscriptionSchedule.default_settings.automatic_tax, and SubscriptionSchedule.phases[].automatic_tax
      • Change Issuing.Authorization.verified_by_fraud_challenge to be required
      • Add support for trial_period_days on PaymentLinkUpdateParams.subscription_data

    See the changelog for more details.

  • 17.5.0-beta.1 - 2024-11-21
    • #2229 Update generated code for beta
      • Add support for network_advice_code and network_decline_code on Charge.outcome, Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError
      • Change BillingPortal.Configuration.features.subscription_update.schedule_at_period_end and LineItem.description to be required
      • Add support for funding on Charge.payment_method_details.amazon_pay and Charge.payment_method_details.revolut_pay
      • Add support for amount_requested and partial_authorization on Charge.payment_method_details.card
      • Add support for metadata on Checkout.SessionCreateParams.line_items[] and LineItem
      • Add support for line_items on Checkout.Session.permissions.update, Checkout.SessionCreateParams.permissions.update, and Checkout.SessionUpdateParams
      • Add support for new value invoice.overpaid on enum Event.type
      • Add support for adjustable_quantity and display on LineItem
      • Change type of LineItem.description from string to string | null
      • Add support for request_partial_authorization on PaymentIntent.payment_method_options.card, PaymentIntentConfirmParams.payment_method_options.card, PaymentIntentCreateParams.payment_method_options.card, and PaymentIntentUpdateParams.payment_method_options.card
      • Add support for payment_method_options on PaymentIntentIncrementAuthorizationParams
      • Add support for new value invoice.overpaid on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

    See the changelog for more details.

  • 17.4.0 - 2024-11-20
  • 17.4.0-beta.3 - 2024-11-15
  • 17.4.0-beta.2 - 2024-11-07
  • 17.4.0-beta.1 - 2024-10-29
  • 17.3.1 - 2024-11-01
  • 17.3.0 - 2024-10-29
  • 17.3.0-beta.1 - 2024-10-18
  • 17.2.1 - 2024-10-18
  • 17.2.0 - 2024-10-09
  • 17.2.0-beta.2 - 2024-10-08
  • 17.2.0-beta.1 - 2024-10-03
  • 17.1.0 - 2024-10-03
  • 17.0.0 - 2024-10-01
  • 16.13.0-beta.1 - 2024-09-18
  • 16.12.0 - 2024-09-18
  • 16.12.0-beta.1 - 2024-09-13
  • 16.11.0 - 2024-09-12
  • 16.11.0-beta.1 - 2024-09-05
  • 16.10.0 - 2024-09-05
  • 16.9.0 - 2024-08-29
  • 16.9.0-beta.2 - 2024-08-22
  • 16.9.0-beta.1 - 2024-08-15
  • 16.8.0 - 2024-08-15
  • 16.8.0-beta.1 - 2024-08-12
  • 16.7.0 - 2024-08-09
  • 16.7.0-beta.1 - 2024-08-01
  • 16.6.0 - 2024-08-01
  • 16.6.0-beta.1 - 2024-07-25
  • 16.5.0 - 2024-07-25
  • 16.4.0 - 2024-07-23
  • 16.4.0-beta.1 - 2024-07-11
  • 16.3.0-beta.1 - 2024-07-05
  • 16.2.0 - 2024-07-05
  • 16.2.0-beta.1 - 2024-06-27
  • 16.1.0 - 2024-06-27
  • 16.0.0 - 2024-06-24
  • 15.12.0 - 2024-06-17
from stripe GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Bug Fixes:

  • Fix a prototype pollution vulnerability (SNYK-JS-PARSEGITCONFIG-9403763).

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.7.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
Copy link

sourcery-ai bot commented Mar 25, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the stripe dependency from version 15.12.0 to 17.7.0. This update includes various new features, bug fixes, and potential breaking changes as outlined in the release notes.

Updated class diagram for Checkout.Session

classDiagram
    class Checkout.Session {
        +collected_information: object
        +discounts: object
        +payment_method_options: object
        +shipping_address_collection: object
    }
    note for Checkout.Session "collected_information added, discounts made required, payment_method_options and shipping_address_collection updated"
Loading

Updated class diagram for PaymentIntent

classDiagram
    class PaymentIntent {
        +payment_method_options: object
    }
    note for PaymentIntent "payment_method_options updated with acss_debit, au_becs_debit, bacs_debit, sepa_debit, us_bank_account"
Loading

Updated class diagram for Treasury.FinancialAccount

classDiagram
    class Treasury.FinancialAccount {
        +nickname: string
        +is_default: boolean
        +close(): void
    }
    note for Treasury.FinancialAccount "Added nickname, is_default, and close() method"
Loading

Updated class diagram for Charge

classDiagram
    class Charge {
        +payment_method_details: object
        +outcome: object
    }
    note for Charge "payment_method_details updated with pay_by_bank and country, outcome updated with advice_code"
Loading

File-Level Changes

Change Details Files
The pull request upgrades the stripe dependency from version 15.12.0 to 17.7.0.
  • Updated the stripe dependency version in package.json.
dashboard/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants