Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade stripe from 15.12.0 to 17.1.0 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerds-github
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.1.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


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

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

  • The recommended version was released on 23 days ago.

Release notes
Package name: stripe
  • 17.1.0 - 2024-10-03
    • #2199 Update generated code
      • Remove the support for resource Margin that was accidentally made public in the last release

    See the changelog for more details.

  • 17.0.0 - 2024-10-01
    • #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.

      ⚠️ Breaking changes due to changes in the Stripe API

      • Rename usage_threshold_config to usage_threshold on Billing.AlertCreateParams and Billing.Alert
      • Remove support for filter on Billing.AlertCreateParams and Billing.Alert. Use the filters on the usage_threshold instead
      • Remove support for customer_consent_collected on Terminal.ReaderProcessSetupIntentParams.

      ⚠️ Other Breaking changes in the SDK

      • Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
        • max retries: 1 -> 2
        • max timeout (seconds): 2 -> 5

      Additions

      • Add support for custom_unit_amount on ProductCreateParams.default_price_data
      • Add support for allow_redisplay on Terminal.ReaderProcessPaymentIntentParams.process_config and Terminal.ReaderProcessSetupIntentParams
      • Add support for new value international_transaction on enum Treasury.ReceivedCredit.failure_code
      • Add support for new value 2024-09-30.acacia on enum WebhookEndpointCreateParams.api_version
      • Add support for new Usage Billing APIs Billing.MeterEvent, Billing.MeterEventAdjustments, Billing.MeterEventSession, Billing.MeterEventStream and the new Events API Core.Events in the v2 namespace
      • Add method parseThinEvent() on the Stripe class to parse thin events.
      • Add method rawRequest() on the Stripe class 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

      • Change BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates and BillingPortal.ConfigurationCreateParams.features.subscription_update.products to be optional

    See the changelog for more details.

  • 16.13.0-beta.1 - 2024-09-18
    • #2178 Update generated code for beta
      • Remove support for resource QuotePhase
      • Remove support for list_line_items and retrieve methods on resource QuotePhase
      • Add support for send_money and transfer_balance on AccountSessionCreateParams.components.financial_account.features
      • Add support for new value rechnung on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Change Quote.subscription_data_overrides[].end_behavior to be optional

    See the changelog for more details.

  • 16.12.0 - 2024-09-18
    • #2177 Update generated code
      • Add support for new value international_transaction on enum Treasury.ReceivedDebit.failure_code
    • #2175 Update generated code
      • Add support for new value verification_supportability on enums Account.future_requirements.errors[].code, Account.requirements.errors[].code, BankAccount.future_requirements.errors[].code, and BankAccount.requirements.errors[].code
      • Add support for new value terminal_reader_invalid_location_for_activation 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 payer_details on Charge.payment_method_details.klarna
      • Add support for amazon_pay on Dispute.payment_method_details
      • Add support for new value amazon_pay on enum Dispute.payment_method_details.type
      • Add support for automatically_finalizes_at on Invoice
      • Add support for state_sales_tax on Tax.Registration.country_options.us and Tax.RegistrationCreateParams.country_options.us

    See the changelog for more details.

  • 16.12.0-beta.1 - 2024-09-13
    • #2170 Update generated code for beta
      • Add support for new resources Issuing.DisputeSettlementDetail and Issuing.Settlement
      • Add support for list and retrieve methods on resource DisputeSettlementDetail
      • Remove support for list method on resource QuotePhase
      • Add support for new value rechnung on enum Checkout.SessionCreateParams.payment_method_types[]
      • Add support for new values issuing_dispute_settlement_detail.created, issuing_dispute_settlement_detail.updated, issuing_settlement.created, and issuing_settlement.updated on enum Event.type
      • Add support for settlement on Issuing.TransactionListParams and Issuing.Transaction
      • Add support for new values issuing_dispute_settlement_detail.created, issuing_dispute_settlement_detail.updated, issuing_settlement.created, and issuing_settlement.updated on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

    See the changelog for more details.

  • 16.11.0 - 2024-09-12
    • #2171 Update generated code
      • Add support for new resource InvoiceRenderingTemplate
      • Add support for archive, list, retrieve, and unarchive methods on resource InvoiceRenderingTemplate
      • Add support for required on Checkout.Session.tax_id_collection, Checkout.SessionCreateParams.tax_id_collection, PaymentLink.tax_id_collection, PaymentLinkCreateParams.tax_id_collection, and PaymentLinkUpdateParams.tax_id_collection
      • Add support for template on Customer.invoice_settings.rendering_options, CustomerCreateParams.invoice_settings.rendering_options, CustomerUpdateParams.invoice_settings.rendering_options, Invoice.rendering, InvoiceCreateParams.rendering, and InvoiceUpdateParams.rendering
      • Add support for template_version on Invoice.rendering, InvoiceCreateParams.rendering, and InvoiceUpdateParams.rendering
      • Add support for new value submitted on enum Issuing.Card.shipping.status
      • Change TestHelpers.TestClock.status_details to be required
    • #2172 Null out empty data sent to GET/DELETE APIs

    See the changelog for more details.

  • 16.11.0-beta.1 - 2024-09-05
    • #2162 Update generated code for beta
      • Add support for new resources Billing.MeterErrorReport and Terminal.ReaderCollectedData
      • Add support for retrieve method on resource ReaderCollectedData
      • Add support for recipients on AccountSessionCreateParams.components
      • Add support for new value terminal_reader_collected_data_invalid 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 new value mb_way on enum Checkout.SessionCreateParams.payment_method_types[]
      • Add support for business_name, email, phone, and tax_ids on Checkout.Session.collected_information
      • Add support for new value billing.meter_error_report.triggered on enum Event.type
      • Add support for regulatory_reporting_file on Issuing.CreditUnderwritingRecordCorrectParams, Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams, Issuing.CreditUnderwritingRecordReportDecisionParams, and Issuing.CreditUnderwritingRecord
      • Add support for new value mb_way on enums PaymentLink.payment_method_types[], PaymentLinkCreateParams.payment_method_types[], and PaymentLinkUpdateParams.payment_method_types[]
      • Remove support for rechnung on PaymentMethodUpdateParams
      • Add support for new value billing.meter_error_report.triggered on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

    See the changelog for more details.

  • 16.10.0 - 2024-09-05
    • #2158 Update generated code
      • Add support for subscription_item and subscription on Billing.AlertCreateParams.filter
      • Change Terminal.ReaderProcessSetupIntentParams.customer_consent_collected to be optional

    See the changelog for more details.

  • 16.9.0 - 2024-08-29
    • #2163 Generate SDK for OpenAPI spec version 1230
      • Change AccountLinkCreateParams.collection_options.fields and LineItem.description to be optional
      • Add support for new value hr_oib 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 hr_oib 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 issuing_regulatory_reporting on enums File.purpose and FileListParams.purpose
      • Add support for new value issuing_regulatory_reporting on enum FileCreateParams.purpose
      • Change Issuing.Card.shipping.address_validation to be required
      • Add support for status_details on TestHelpers.TestClock

    See the changelog for more details.

  • 16.9.0-beta.2 - 2024-08-22
    • #2159 Update generated code for beta
      • Add support for mb_way_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for mb_way 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 value mb_way 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 mb_way on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new value mb_way on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Remove support for values accepted, partner_rejected, and submitted from enum Dispute.evidence_details.enhanced_eligibility.visa_compelling_evidence_3.status
      • Add support for new value hr_oib on enums OrderCreateParams.tax_details.tax_ids[].type and OrderUpdateParams.tax_details.tax_ids[].type
      • Add support for new value hr_oib on enum Order.tax_details.tax_ids[].type
      • Remove support for phases on QuoteCreateParams and QuoteUpdateParams
      • Remove support for from_schedule on QuoteCreateParams.subscription_data

    See the changelog for more details.

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

Snyk has created this PR to upgrade stripe from 15.12.0 to 17.1.0.

See this package in npm:
stripe

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/ef708957-d107-4807-bb9b-ffb67ea15337?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Oct 27, 2024

🧙 Sourcery has finished reviewing your pull request!


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

sweep-ai bot commented Oct 27, 2024

Hey @nerds-github, here are examples of how you can ask me to improve this pull request:

@Sweep Fix the CI errors.
@Sweep Add unit tests for the Stripe client initialization and configuration to verify it works correctly with the new version, particularly testing the new default retry and timeout values (max retries: 2, max timeout: 5 seconds).

📖 For more information on how to use Sweep, please read our documentation.

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