stripe 5.52.0 → 5.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4555e15aac2bf452df614b0d95bb03e130c5033fbe36c1321a072f4d57d4bb5d
4
- data.tar.gz: 678111bc76cca09d3f57bd98d80b82a3774073280572a9c692a16c3342968da0
3
+ metadata.gz: 7e81cc3af76a8942f879c1b312bbcc6ad27257cb9b68f9a63df76bd430ff9cf8
4
+ data.tar.gz: c83f7ae353941a10279ba76237f64e700f0e6bce06fe9475250b85308f72d57f
5
5
  SHA512:
6
- metadata.gz: 54798bd1c0f02db07744e05d657f354fa801da8cd4f20083a8e40f99c57168afde243711abd59c6a6477a439b19d7608a03177cea99a6638498f5b619521188d
7
- data.tar.gz: 1fab9e4bc2380ad6ae41c04300ce4a9e789e5a5244487c3e1a3b08fea6e670614820b8e490893f5328c1dad37de18267057585fdb853b3584be0c5ccb99acfd0
6
+ metadata.gz: 4b4aff3650ae5933a0fae274bf1fe1e142f8361fbd0b3734502ce317a82492bda2124e155ff335b311abbda1d9751fdbc15e4a1754c94fe8b6d8a24e206b599e
7
+ data.tar.gz: f23307331d6ded3934361f9fff180a0ecda5df30bb3f5708e359d3b0712ed5262873b2220400d124544b113249a7ff5f1ae885cef381b9a8b3aa6388295527a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.55.0 - 2022-05-05
4
+ * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
5
+ * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
6
+
7
+
8
+ ## 5.54.0 - 2022-05-03
9
+ * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
10
+ * Add support for new resource `CashBalance`
11
+
12
+ ## 5.53.0 - 2022-04-21
13
+ * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
14
+ * Add support for `expire` test helper method on resource `Refund`
15
+
3
16
  ## 5.52.0 - 2022-04-18
4
17
  * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) [#1047](https://github.com/stripe/stripe-ruby/pull/1047) API Updates
5
18
  * Add support for new resources `FundingInstructions` and `Terminal.Configuration`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.52.0
1
+ 5.55.0
@@ -27,6 +27,7 @@ module Stripe
27
27
  BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
28
28
  Capability::OBJECT_NAME => Capability,
29
29
  Card::OBJECT_NAME => Card,
30
+ CashBalance::OBJECT_NAME => CashBalance,
30
31
  Charge::OBJECT_NAME => Charge,
31
32
  Checkout::Session::OBJECT_NAME => Checkout::Session,
32
33
  CountrySpec::OBJECT_NAME => CountrySpec,
@@ -43,6 +44,11 @@ module Stripe
43
44
  File::OBJECT_NAME => File,
44
45
  File::OBJECT_NAME_ALT => File,
45
46
  FileLink::OBJECT_NAME => FileLink,
47
+ FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
48
+ FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
49
+ FinancialConnections::AccountOwnership::OBJECT_NAME =>
50
+ FinancialConnections::AccountOwnership,
51
+ FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
46
52
  FundingInstructions::OBJECT_NAME => FundingInstructions,
47
53
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
48
54
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CashBalance < APIResource
6
+ OBJECT_NAME = "cash_balance"
7
+
8
+ def resource_url
9
+ if !respond_to?(:customer) || customer.nil?
10
+ raise NotImplementedError,
11
+ "Customer Cash Balance cannot be accessed without a customer ID."
12
+ end
13
+ "#{Customer.resource_url}/#{CGI.escape(customer)}/cash_balance"
14
+ end
15
+
16
+ def self.retrieve(_id, _opts = {})
17
+ raise NotImplementedError,
18
+ "Customer Cash Balance cannot be retrieved without a customer ID. " \
19
+ "Retrieve a Customer Cash Balance using `Customer.retrieve_cash_balance('cus_123')`"
20
+ end
21
+ end
22
+ end
@@ -15,6 +15,9 @@ module Stripe
15
15
  custom_method :create_funding_instructions, http_verb: :post, http_path: "funding_instructions"
16
16
  custom_method :list_payment_methods, http_verb: :get, http_path: "payment_methods"
17
17
 
18
+ nested_resource_class_methods :cash_balance,
19
+ operations: %i[retrieve update],
20
+ resource_plural: "cash_balance"
18
21
  nested_resource_class_methods :balance_transaction,
19
22
  operations: %i[create retrieve update list]
20
23
  nested_resource_class_methods :tax_id,
@@ -0,0 +1,31 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class Account < APIResource
7
+ OBJECT_NAME = "financial_connections.account"
8
+
9
+ custom_method :disconnect, http_verb: :post
10
+ custom_method :refresh, http_verb: :post
11
+
12
+ def disconnect(params = {}, opts = {})
13
+ request_stripe_object(
14
+ method: :post,
15
+ path: resource_url + "/disconnect",
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
21
+ def refresh(params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: resource_url + "/refresh",
25
+ params: params,
26
+ opts: opts
27
+ )
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class AccountOwner < StripeObject
7
+ OBJECT_NAME = "financial_connections.account_owner"
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class AccountOwnership < StripeObject
7
+ OBJECT_NAME = "financial_connections.account_ownership"
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class Session < APIResource
7
+ extend Stripe::APIOperations::Create
8
+
9
+ OBJECT_NAME = "financial_connections.session"
10
+ end
11
+ end
12
+ end
@@ -19,5 +19,24 @@ module Stripe
19
19
  opts: opts
20
20
  )
21
21
  end
22
+
23
+ def test_helpers
24
+ TestHelpers.new(self)
25
+ end
26
+
27
+ class TestHelpers < APIResourceTestHelpers
28
+ RESOURCE_CLASS = Refund
29
+
30
+ custom_method :expire, http_verb: :post
31
+
32
+ def expire(params = {}, opts = {})
33
+ @resource.request_stripe_object(
34
+ method: :post,
35
+ path: resource_url + "/expire",
36
+ params: params,
37
+ opts: opts
38
+ )
39
+ end
40
+ end
22
41
  end
23
42
  end
@@ -16,6 +16,7 @@ require "stripe/resources/bitcoin_receiver"
16
16
  require "stripe/resources/bitcoin_transaction"
17
17
  require "stripe/resources/capability"
18
18
  require "stripe/resources/card"
19
+ require "stripe/resources/cash_balance"
19
20
  require "stripe/resources/charge"
20
21
  require "stripe/resources/checkout/session"
21
22
  require "stripe/resources/country_spec"
@@ -31,6 +32,10 @@ require "stripe/resources/event"
31
32
  require "stripe/resources/exchange_rate"
32
33
  require "stripe/resources/file"
33
34
  require "stripe/resources/file_link"
35
+ require "stripe/resources/financial_connections/account"
36
+ require "stripe/resources/financial_connections/account_owner"
37
+ require "stripe/resources/financial_connections/account_ownership"
38
+ require "stripe/resources/financial_connections/session"
34
39
  require "stripe/resources/funding_instructions"
35
40
  require "stripe/resources/identity/verification_report"
36
41
  require "stripe/resources/identity/verification_session"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.52.0"
4
+ VERSION = "5.55.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.52.0
4
+ version: 5.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -64,6 +64,7 @@ files:
64
64
  - lib/stripe/resources/bitcoin_transaction.rb
65
65
  - lib/stripe/resources/capability.rb
66
66
  - lib/stripe/resources/card.rb
67
+ - lib/stripe/resources/cash_balance.rb
67
68
  - lib/stripe/resources/charge.rb
68
69
  - lib/stripe/resources/checkout/session.rb
69
70
  - lib/stripe/resources/country_spec.rb
@@ -79,6 +80,10 @@ files:
79
80
  - lib/stripe/resources/exchange_rate.rb
80
81
  - lib/stripe/resources/file.rb
81
82
  - lib/stripe/resources/file_link.rb
83
+ - lib/stripe/resources/financial_connections/account.rb
84
+ - lib/stripe/resources/financial_connections/account_owner.rb
85
+ - lib/stripe/resources/financial_connections/account_ownership.rb
86
+ - lib/stripe/resources/financial_connections/session.rb
82
87
  - lib/stripe/resources/funding_instructions.rb
83
88
  - lib/stripe/resources/identity/verification_report.rb
84
89
  - lib/stripe/resources/identity/verification_session.rb
@@ -176,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
181
  - !ruby/object:Gem::Version
177
182
  version: '0'
178
183
  requirements: []
179
- rubygems_version: 3.1.2
184
+ rubygems_version: 3.3.7
180
185
  signing_key:
181
186
  specification_version: 4
182
187
  summary: Ruby bindings for the Stripe API