Skip to content

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Dec 17, 2024

snyk-top-banner

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.4.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 36 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: stripe
  • 17.4.0 - 2024-11-20
    • #2222 This release changes the pinned API version to 2024-11-20.acacia.
      • Add support for respond test helper method on resource Issuing.Authorization
      • Add support for authorizer on AccountPersonsParams.relationship and TokenCreateParams.person.relationship
      • Change type of Account.future_requirements.disabled_reason and Account.requirements.disabled_reason from string to enum
      • Change AccountSession.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, and AccountSession.components.payouts.features.disable_stripe_user_authentication to be required
      • Add support for adaptive_pricing on Checkout.SessionCreateParams and Checkout.Session
      • Add support for mandate_options on Checkout.Session.payment_method_options.bacs_debit, Checkout.Session.payment_method_options.sepa_debit, Checkout.SessionCreateParams.payment_method_options.bacs_debit, and Checkout.SessionCreateParams.payment_method_options.sepa_debit
      • Add support for request_extended_authorization, request_incremental_authorization, request_multicapture, and request_overcapture on Checkout.Session.payment_method_options.card and Checkout.SessionCreateParams.payment_method_options.card
      • Add support for capture_method on Checkout.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, and Checkout.SessionCreateParams.payment_method_options.samsung_pay
      • Add support for new value subscribe on enums Checkout.Session.submit_type, Checkout.SessionCreateParams.submit_type, PaymentLink.submit_type, and PaymentLinkCreateParams.submit_type
      • Add support for new value li_vat 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 value li_vat 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 new value financial_account_statement on enums File.purpose and FileListParams.purpose
      • Add support for account_holder_address, account_holder_name, account_type, and bank_address on FundingInstructions.bank_transfer.financial_addresses[].aba, FundingInstructions.bank_transfer.financial_addresses[].swift, PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba, and PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift
      • Add support for new value service_tax on enums InvoiceAddLinesParams.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, and TaxRateUpdateParams.tax_type
      • Add support for merchant_amount and merchant_currency on Issuing.AuthorizationCreateParams.testHelpers
      • Change Issuing.AuthorizationCreateParams.testHelpers.amount to be optional
      • Add support for fraud_challenges and verified_by_fraud_challenge on Issuing.Authorization
      • Add support for new value link on enums PaymentIntent.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, and SubscriptionUpdateParams.payment_settings.payment_method_options.card.network
      • Add support for submit_type on PaymentLinkUpdateParams
      • Add support for trace_id on Payout
      • Add support for network_decline_code on Refund.destination_details.blik and Refund.destination_details.swish
      • Change type of Treasury.InboundTransfer.origin_payment_method from string to string | null
      • Add support for new value 2024-11-20.acacia on enum WebhookEndpointCreateParams.api_version
    • #2215 Remove empty resources created for service groupings
      • Remove Stripe.V2.BillingResource, Stripe.V2.CoreResource, and Stripe.V2Resource types 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.

    See the changelog for more details.

  • 17.4.0-beta.3 - 2024-11-15
    • #2226 Update generated code for beta
      • 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 new value subscribe on enum PaymentLinkUpdateParams.submit_type
    • #2225 Update generated code for beta
      • Add support for respond test helper method on resource Issuing.Authorization
      • Add support for fraud_challenges and verified_by_fraud_challenge on Issuing.Authorization

    See the changelog for more details.

  • 17.4.0-beta.2 - 2024-11-07
    • #2219 Update generated code for beta
      • Add support for new resources Issuing.FraudLiabilityDebit, PaymentAttemptRecord, and PaymentRecord
      • Add support for list and retrieve methods on resources FraudLiabilityDebit and PaymentAttemptRecord
      • Add support for report_payment_attempt_canceled, report_payment_attempt_failed, report_payment_attempt_guaranteed, report_payment_attempt, report_payment, and retrieve methods on resource PaymentRecord
      • Change type of Account.future_requirements.disabled_reason and Account.requirements.disabled_reason from string to enum
      • Remove support for money_movement on AccountSessionCreateParams.components.financial_account.features
      • Add support for card_management, card_spend_dispute_management, cardholder_management, and spend_control_management on AccountSessionCreateParams.components.issuing_card.features
      • Add support for disable_stripe_user_authentication on AccountSessionCreateParams.components.issuing_cards_list.features
      • Change AccountSession.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, and AccountSession.components.payouts.features.disable_stripe_user_authentication to be required
      • Add support for adaptive_pricing on Checkout.SessionCreateParams and Checkout.Session
      • Add support for mandate_options on Checkout.Session.payment_method_options.bacs_debit, Checkout.Session.payment_method_options.sepa_debit, Checkout.SessionCreateParams.payment_method_options.bacs_debit, and Checkout.SessionCreateParams.payment_method_options.sepa_debit
      • Add support for request_decremental_authorization, request_extended_authorization, request_incremental_authorization, request_multicapture, and request_overcapture on Checkout.Session.payment_method_options.card and Checkout.SessionCreateParams.payment_method_options.card
      • Add support for capture_method on Checkout.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, and Checkout.SessionCreateParams.payment_method_options.samsung_pay
      • Add support for new value li_vat on enums Checkout.Session.collected_information.tax_ids[].type, Checkout.Session.customer_details.tax_ids[].type, Invoice.customer_tax_ids[].type, Order.tax_details.tax_ids[].type, Tax.Calculation.customer_details.tax_ids[].type, Tax.Transaction.customer_details.tax_ids[].type, and TaxId.type
      • Add support for new value li_vat 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, OrderCreateParams.tax_details.tax_ids[].type, OrderUpdateParams.tax_details.tax_ids[].type, Tax.CalculationCreateParams.customer_details.tax_ids[].type, and TaxIdCreateParams.type
      • Add support for new values invoice.payment_attempt_required and issuing_fraud_liability_debit.created on enum Event.type
      • Add support for account_holder_address, account_holder_name, account_type, and bank_address on FundingInstructions.bank_transfer.financial_addresses[].aba, FundingInstructions.bank_transfer.financial_addresses[].swift, PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba, and PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift
      • Add support for new value custom on enums Invoice.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[], and SubscriptionUpdateParams.payment_settings.payment_method_types[]
      • Add support for new value service_tax on enums InvoiceAddLinesParams.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, and TaxRateUpdateParams.tax_type
      • Add support for payment_record_data and payment_record on InvoiceAttachPaymentParams
      • Remove support for out_of_band_payment on InvoiceAttachPaymentParams
      • Add support for amount_overpaid on Invoice
      • Add support for merchant_amount and merchant_currency on Issuing.AuthorizationCreateParams.testHelpers
      • Change Issuing.AuthorizationCreateParams.testHelpers.amount to be optional
      • Add support for new value link on enums PaymentIntent.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, and SubscriptionUpdateParams.payment_settings.payment_method_options.card.network
      • Add support for submit_type on PaymentLinkUpdateParams
      • Change type of Treasury.InboundTransfer.origin_payment_method from string to string | null
      • Add support for new values invoice.payment_attempt_required and issuing_fraud_liability_debit.created on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

    See the changelog for more details.

  • 17.4.0-beta.1 - 2024-10-29
    • #2216 Update generated code for beta
      • Add support for trigger_action method on resource PaymentIntent
      • Add support for id_bank_transfer_payments_bca and id_bank_transfer_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for bank_bca_onboarding on Account.settings, AccountCreateParams.settings, and AccountUpdateParams.settings
      • Add support for send_money on AccountSessionCreateParams.components.recipients.features
      • Remove support for value payout_statement_descriptor_profanity from enums Invoice.last_finalization_error.code, PaymentIntent.last_payment_error.code, SetupAttempt.setup_error.code, SetupIntent.last_setup_error.code, and StripeError.code
      • Add support for id_bank_transfer on Charge.payment_method_details, ConfirmationToken.payment_method_preview, ConfirmationTokenCreateParams.testHelpers.payment_method_data, Invoice.payment_settings.payment_method_options, InvoiceCreateParams.payment_settings.payment_method_options, InvoiceUpdateParams.payment_settings.payment_method_options, 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, SetupAttempt.payment_method_details, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, SetupIntentUpdateParams.payment_method_data, Subscription.payment_settings.payment_method_options, SubscriptionCreateParams.payment_settings.payment_method_options, and SubscriptionUpdateParams.payment_settings.payment_method_options
      • Change Dispute.enhanced_eligibility_types, Dispute.evidence.enhanced_evidence, and Dispute.evidence_details.enhanced_eligibility to be required
      • Add support for gopay, qris, and shopeepay on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, and PaymentMethodConfiguration

    See the changelog for more details.

  • 17.3.1 - 2024-11-01
    • #2218 Fixed a bug where latestapiversion was not updated to 2024-10-28.acacia in the last release.

    See the changelog for more details.

  • 17.3.0 - 2024-10-29
    • #2204 This release changes the pinned API version to 2024-10-28.acacia.
      • Add support for new resource V2.EventDestinations
      • Add support for create, retrieve, update, list, del, disable, enable and ping methods on resource V2.EventDestinations
      • Add support for submit_card test helper method on resource Issuing.Card
      • Add support for groups on AccountCreateParams, AccountUpdateParams, and Account
      • Add support for alma_payments, kakao_pay_payments, kr_card_payments, naver_pay_payments, payco_payments, and samsung_pay_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for disable_stripe_user_authentication on AccountSession.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, and AccountSessionCreateParams.components.payouts.features
      • Add support for schedule_at_period_end on BillingPortal.Configuration.features.subscription_update, BillingPortal.ConfigurationCreateParams.features.subscription_update, and BillingPortal.ConfigurationUpdateParams.features.subscription_update
      • Change BillingPortal.ConfigurationCreateParams.business_profile and Refund.next_action.display_details to be optional
      • Add support for alma on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for kakao_pay and kr_card on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for naver_pay on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for payco and samsung_pay on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for new values alma, kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums Checkout.SessionCreateParams.payment_method_types[], CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat 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 alma, kakao_pay, kr_card, naver_pay, payco, and samsung_pay 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 values alma, kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new value auto on enum CustomerUpdateParams.tax.validate_location
      • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat 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 enhanced_evidence on Dispute.evidence and DisputeUpdateParams.evidence
      • Add support for enhanced_eligibility_types on Dispute
      • Add support for enhanced_eligibility on Dispute.evidence_details
      • Add support for new values issuing_transaction.purchase_details_receipt_updated and refund.failed on enum Event.type
      • Add support for metadata on Forwarding.RequestCreateParams and Forwarding.Request
      • Add support for automatically_finalizes_at on InvoiceCreateParams and InvoiceUpdateParams
      • Add support for new values jp_credit_transfer, kakao_pay, kr_card, naver_pay, and payco on enums Invoice.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[], and SubscriptionUpdateParams.payment_settings.payment_method_types[]
      • Add support for new value retail_delivery_fee on enums InvoiceAddLinesParams.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, and TaxRateUpdateParams.tax_type
      • Add support for new value alma on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Add support for amazon_pay on PaymentMethodDomain
      • Change type of Refund.next_action.display_details from RefundNextActionDisplayDetails | null to RefundNextActionDisplayDetails
      • Add support for flat_amount and rate_type on Tax.Calculation.tax_breakdown[].tax_rate_details and TaxRate
      • Add support for by, cr, ec, ma, md, rs, ru, tz, and uz on Tax.Registration.country_options and Tax.RegistrationCreateParams.country_options
      • Add support for new value state_retail_delivery_fee on enums Tax.Registration.country_options.us.type and Tax.RegistrationCreateParams.country_options.us.type
      • Add support for pln on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
      • Add support for new values issuing_transaction.purchase_details_receipt_updated and refund.failed on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]
      • Add support for new value 2024-10-28.acacia on enum WebhookEndpointCreateParams.api_version

    See the changelog for more details.

  • 17.3.0-beta.1 - 2024-10-18
    • #2206 Update generated code for beta
      • Add support for alma_payments, gopay_payments, kakao_pay_payments, kr_card_payments, naver_pay_payments, payco_payments, qris_payments, samsung_pay_payments, shopeepay_payments, treasury_evolve, treasury_fifth_third, and treasury_goldman_sachs on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for schedule_at_period_end on BillingPortal.Configuration.features.subscription_update, BillingPortal.ConfigurationCreateParams.features.subscription_update, and BillingPortal.ConfigurationUpdateParams.features.subscription_update
      • Change BillingPortal.ConfigurationCreateParams.business_profile to be optional
      • Add support for alma on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for gopay, qris, and shopeepay on Charge.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, PaymentMethodCreateParams, PaymentMethod, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, and SetupIntentUpdateParams.payment_method_data
      • Add support for new values alma, gopay, qris, and shopeepay on enums Checkout.SessionCreateParams.payment_method_types[], CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for new values alma, gopay, qris, and shopeepay 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 values alma, gopay, qris, and shopeepay on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new value auto on enum CustomerUpdateParams.tax.validate_location
      • Add support for metadata on Forwarding.RequestCreateParams
      • Add support for new values jp_credit_transfer, kakao_pay, kr_card, naver_pay, and payco on enums Invoice.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[], and SubscriptionUpdateParams.payment_settings.payment_method_types[]
      • Remove support for value expired from enums Issuing.Authorization.status and Issuing.AuthorizationListParams.status
      • Add support for new values alma, gopay, qris, and shopeepay on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Add support for amazon_pay on PaymentMethodDomain
      • Change Tax.Calculation.tax_breakdown[].tax_rate_details.flat_amount, Tax.Calculation.tax_breakdown[].tax_rate_details.rate_type, TaxRate.flat_amount, and TaxRate.rate_type to be required
      • Add support for external_reference on Tax.Form.payee and Tax.FormListParams.payee
      • Change type of Tax.Form.payee.type and Tax.FormListParams.payee.type from literal('account') to enum('account'|'external_reference')
      • Add support for new values au_serr, ca_mrdp, eu_dac7, gb_mrdp, and nz_mrdp on enums Tax.Form.type and Tax.FormListParams.type
      • Add support for au_serr, ca_mrdp, eu_dac7, gb_mrdp, and nz_mrdp on Tax.Form
      • Add support for pln on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
      • Add support for bank on Treasury.FinancialAccountCreateParams.features.financial_addresses.aba, Treasury.FinancialAccountFeatures.financial_addresses.aba, Treasury.FinancialAccountUpdateFeaturesParams.financial_addresses.aba, and Treasury.FinancialAccountUpdateParams.features.financial_addresses.aba
    • #2209 Ramya/merge node beta

    See the changelog for more details.

  • 17.2.1 - 2024-10-18
    • #2210 update object tags for meter-related classes

      • fixes a bug where the object property of the MeterEvent, MeterEventAdjustment, and MeterEventSession didn't match the server.
    • #2208 Update signature verification docs link

    See the changelog for more details.

  • 17.2.0 - 2024-10-09
    • #2201 Add fetchRelatedObject to V2 Events if needed
      • fetchRelatedObject is added to events retrieved using stripe.v2.core.events and can be used to easily fetch the Stripe object related to a retrieved event

    See the changelog for more details.

  • 17.2.0-beta.2 - 2024-10-08
    • #2180 Update generated code for beta
      • Add support for submit_card test helper method on resource Issuing.Card
      • Add support for groups on AccountCreateParams, AccountUpdateParams, and Account
      • Add support for disable_stripe_user_authentication on AccountSession.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.financial_account.features, AccountSessionCreateParams.components.notification_banner.features, and AccountSessionCreateParams.components.payouts.features
      • Add support for card_spend_dispute_management and spend_control_management on AccountSessionCreateParams.components.issuing_cards_list.features
      • Add support for new value payout_statement_descriptor_profanity on enums Invoice.last_finalization_error.code, PaymentIntent.last_payment_error.code, SetupAttempt.setup_error.code, SetupIntent.last_setup_error.code, and StripeError.code
      • Add support for kakao_pay and kr_card on Charge.payment_method_details, 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, and SetupIntentUpdateParams.payment_method_data
      • Add support for naver_pay on Charge.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, PaymentMethodCreateParams, PaymentMethodUpdateParams, PaymentMethod, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, and SetupIntentUpdateParams.payment_method_data
      • Add support for payco and samsung_pay on Charge.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, PaymentMethodCreateParams, PaymentMethod, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, and SetupIntentUpdateParams.payment_method_data
      • Add support for new values kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums Checkout.SessionCreateParams.payment_method_types[], CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat on enums Checkout.Session.collected_information.tax_ids[].type, Checkout.Session.customer_details.tax_ids[].type, Invoice.customer_tax_ids[].type, Order.tax_details.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 kakao_pay, kr_card, naver_pay, payco, and samsung_pay 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 values kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat 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, OrderCreateParams.tax_details.tax_ids[].type, OrderUpdateParams.tax_details.tax_ids[].type, Tax.CalculationCreateParams.customer_details.tax_ids[].type, and TaxIdCreateParams.type
      • Add support for new value refund.failed on enum Event.type
      • Add support for metadata on Forwarding.Request
      • Add support for new value retail_delivery_fee on enums InvoiceAddLinesParams.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, and TaxRateUpdateParams.tax_type
      • Add support for new value expired on enums Issuing.Authorization.status and Issuing.AuthorizationListParams.status
      • Add support for line_items on Order.payment.settings.payment_method_options.paypal, OrderCreateParams.payment.settings.payment_method_options.paypal, OrderUpdateParams.payment.settings.payment_method_options.paypal, PaymentIntent.payment_method_options.paypal, PaymentIntentConfirmParams.payment_method_options.paypal, PaymentIntentCreateParams.payment_method_options.paypal, and PaymentIntentUpdateParams.payment_method_options.paypal
      • Add support for flat_amount and rate_type on Tax.Calculation.tax_breakdown[].tax_rate_details and TaxRate
      • Add support for by, cr, ec, ma, md, rs, ru, tz, and uz on Tax.Registration.country_options and Tax.RegistrationCreateParams.country_options
      • Add support for new value state_retail_delivery_fee on enums Tax.Registration.country_options.us.type and Tax.RegistrationCreateParams.country_options.us.type
      • Add support for new value refund.failed on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]
    • #2203 Merge into beta using the merge script

    See the changelog for more details.

  • 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.

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

Build:

  • Upgrade Stripe dependency from version 15.8.0 to 17.4.0 in package.json.

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.4.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 Dec 17, 2024

Reviewer's Guide by Sourcery

This PR upgrades the Stripe Node.js SDK from version 15.12.0 to 17.4.0. This is a major version upgrade that includes breaking changes, new features, and API updates. The upgrade spans 36 versions and includes significant changes to the Stripe API version, payment method handling, and various new capabilities.

Class diagram for Stripe Node.js SDK upgrade

classDiagram
    class Stripe {
        +respond()
        +authorizer
        +adaptive_pricing
        +mandate_options
        +request_extended_authorization()
        +request_incremental_authorization()
        +request_multicapture()
        +request_overcapture()
        +capture_method
        +submit_type
        +li_vat
        +financial_account_statement
        +account_holder_address
        +account_holder_name
        +account_type
        +bank_address
        +service_tax
        +merchant_amount
        +merchant_currency
        +fraud_challenges
        +verified_by_fraud_challenge
        +link
        +trace_id
        +network_decline_code
        +origin_payment_method
        +api_version
    }
    note for Stripe "This class represents the updated Stripe SDK with new methods and properties."
Loading

File-Level Changes

Change Details Files
Major version upgrade of Stripe SDK with breaking changes
  • Upgrade from version 15.12.0 to 17.4.0
  • Changes pinned API version to 2024-11-20.acacia
  • Removes empty resources created for service groupings
  • Changes type definitions for several API responses
dashboard/package.json
Addition of new payment method support and features
  • Adds support for new payment methods (Alma, GoPay, QRIS, ShopeePay)
  • Adds support for adaptive pricing in Checkout Sessions
  • Adds support for mandate options for various payment methods
  • Adds support for new card authorization options
dashboard/package.json
Enhanced tax and financial reporting capabilities
  • Adds support for new tax ID types
  • Adds support for new tax rate types and calculations
  • Adds support for financial account statements
  • Adds support for new bank transfer information fields
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.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a 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. You can also use
    this command to specify where the summary should be inserted.

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