From d7428015aca318ad0470c58606c8e59d331b9cb3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Aug 2022 09:02:29 +0000 Subject: [PATCH 1/2] Bump stripe from 5.42.0 to 7.0.0 Bumps [stripe](https://github.com/stripe/stripe-ruby) from 5.42.0 to 7.0.0. - [Release notes](https://github.com/stripe/stripe-ruby/releases) - [Changelog](https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/stripe/stripe-ruby/compare/v5.42.0...v7.0.0) --- updated-dependencies: - dependency-name: stripe dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index ba446a4182..b945a547d6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -630,7 +630,7 @@ GEM activerecord (>= 5.1) state_machines-activemodel (>= 0.8.0) stringex (2.8.5) - stripe (5.42.0) + stripe (7.0.0) temple (0.8.2) test-prof (1.0.9) test-unit (3.5.3) From c8cab8aae560e9a6ed0b4a37232763227a54288a Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 9 Aug 2022 15:13:08 +1000 Subject: [PATCH 2/2] Update mocked responses to get a ListObject --- spec/support/request/stripe_stubs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/request/stripe_stubs.rb b/spec/support/request/stripe_stubs.rb index 53bf241c3b..09033aebe0 100644 --- a/spec/support/request/stripe_stubs.rb +++ b/spec/support/request/stripe_stubs.rb @@ -162,7 +162,7 @@ module StripeStubs def list_customers_response_mock(options) { status: options[:code] || 200, - body: JSON.generate(has_more: false, data: [{ id: "cus_A456" }]) } + body: JSON.generate(object: "list", has_more: false, data: [{ id: "cus_A456" }]) } end def get_customer_payment_methods_response_mock(options) @@ -170,7 +170,7 @@ module StripeStubs fingerprint = options[:fingerprint] || "7890" { status: options[:code] || 200, body: JSON.generate( - has_more: false, data: [{ id: payment_method, card: { fingerprint: fingerprint } }] + object: "list", has_more: false, data: [{ id: payment_method, card: { fingerprint: fingerprint } }] ) } end