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

Bump stripe from 12.5.0 to 13.0.0 #432

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Oct 7, 2024

Bumps stripe from 12.5.0 to 13.0.0.

Release notes

Sourced from stripe's releases.

v13.0.0

  • #1458 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

    Please refer to our migration guide for v13 for more information about the backwards incompatible changes.

    StripeClient and related changes

    • Move StripeClient and requestor logic to APIRequestor.
      • StripeClient#request is still available, but is deprecated and will be removed. We encourage StripeClient#raw_request as a replacement (see other breaking changes for more detail).
    • Repurpose and introduce StripeClient as the the entry-point to the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm. Services are available under the v1 and v2 accessors.
      • No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
      • No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call retrieve before doing an update.
      • No static methods. Much easier mocking.

    Other breaking changes

    • Adjust default values around retries for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
      • max retries: 0 -> 2
      • max retry delay (seconds) 2 -> 5
    • Remove StripeClient#connection_manager. This was a legacy method from years ago.
    • Singleton retrieve method now requires params to be passed as the first argument. Existing calls to singleton retrieve method with only opts argument will have to be updated to account for the addition of params argument.
      params = { expand: ["available"] }
      opts = { stripe_account: "acct_123" }
       No longer works
      Stripe::Balance.retrieve(opts)
       Correct way to call retrieve method
      Stripe::Balance.retrieve(params, opts)

    • Moved the Stripe.raw_request() method that was recently added to StripeClient. This will use the configuration set on the StripeClient instead of the global configuration used before.
    • Remove APIResource.request. Instead, use StripeClient#raw_request now.
      # Instead of
      Stripe::APIResource.request(:get, "/v1/endpoint", params, opts)
      do
      client = Stripe::StripeClient.new(...)
      resp = client.raw_request(:get, "/v1/endpoint", params: params, opts: opts)

    • Add an additional parameter to APIResource.execute_resource_request. However, we discourage use of this in favor of StripeClient#raw_request.
      APIResource.execute_resource_request(method, url, params = {}, opts = {}, usage = [])
      # is now, with base_address being one of [:api, :files, :connect, :meter_events]
      APIResource.execute_resource_request(method, url, base_address = :api, params = {}, opts = {}, usage = [])

... (truncated)

Changelog

Sourced from stripe's changelog.

13.0.0 - 2024-10-01

  • #1458 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

    Please refer to our migration guide for v13 for more information about the backwards incompatible changes.

    StripeClient and related changes

    • Move StripeClient and requestor logic to APIRequestor.
      • StripeClient#request is still available, but is deprecated and will be removed. We encourage StripeClient#raw_request as a replacement (see other breaking changes for more detail).
    • Repurpose and introduce StripeClient as the the entry-point to the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm. Services are available under the v1 and v2 accessors.
      • No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
      • No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call retrieve before doing an update.
      • No static methods. Much easier mocking.

    Other breaking changes

    • Adjust default values around retries for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
      • max retries: 0 -> 2
      • max retry delay (seconds) 2 -> 5
    • Remove StripeClient#connection_manager. This was a legacy method from years ago.
    • Singleton retrieve method now requires params to be passed as the first argument. Existing calls to singleton retrieve method with only opts argument will have to be updated to account for the addition of params argument.
      params = { expand: ["available"] }
      opts = { stripe_account: "acct_123" }
       No longer works
      Stripe::Balance.retrieve(opts)
       Correct way to call retrieve method
      Stripe::Balance.retrieve(params, opts)

    • Moved the Stripe.raw_request() method that was recently added to StripeClient. This will use the configuration set on the StripeClient instead of the global configuration used before.
    • Remove APIResource.request. Instead, use StripeClient#raw_request now.
      # Instead of
      Stripe::APIResource.request(:get, "/v1/endpoint", params, opts)
      do
      client = Stripe::StripeClient.new(...)
      resp = client.raw_request(:get, "/v1/endpoint", params: params, opts: opts)

    • Add an additional parameter to APIResource.execute_resource_request. However, we discourage use of this in favor of StripeClient#raw_request.
      APIResource.execute_resource_request(method, url, params = {}, opts = {}, usage = [])
      # is now, with base_address being one of [:api, :files, :connect, :meter_events]
      APIResource.execute_resource_request(method, url, base_address = :api, params = {}, opts = {}, usage = [])

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Oct 7, 2024
Bumps [stripe](https://github.com/stripe/stripe-ruby) from 12.5.0 to 13.0.0.
- [Release notes](https://github.com/stripe/stripe-ruby/releases)
- [Changelog](https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md)
- [Commits](stripe/stripe-ruby@v12.5.0...v13.0.0)

---
updated-dependencies:
- dependency-name: stripe
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/stripe-13.0.0 branch from 0523971 to 0fd2e23 Compare October 18, 2024 18:29
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11409042210

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.78%

Totals Coverage Status
Change from base Build 11409022448: 0.0%
Covered Lines: 13519
Relevant Lines: 13826

💛 - Coveralls

Copy link
Author

dependabot bot commented on behalf of github Oct 21, 2024

Superseded by #456.

@dependabot dependabot bot closed this Oct 21, 2024
@dependabot dependabot bot deleted the dependabot/bundler/stripe-13.0.0 branch October 21, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant