stripe 5.53.0 → 6.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a9e7f54ca7cf38cb46699a55f15b82c0973b77934d3f2e9eb94a5c5001a416b
4
- data.tar.gz: 6edcca1ef41890e6139fdc8c32df1e254f44892f873dd250f97bc26c70483c2f
3
+ metadata.gz: 4812cac66d5fbc87584349e386f67fb3b3597307486ecd2e019781e73489e5ae
4
+ data.tar.gz: 53352fe3c35ae28df341bc360caa308684fec099c1595eb381fcf1c83302344f
5
5
  SHA512:
6
- metadata.gz: 490fda5c8549d53225ded73b6349d954baf902d8dce7bccf3cea34df58781f3a5cb312065acca49f6908ba8f130b358da0f32ff5245c65a28495ead622c2b1ee
7
- data.tar.gz: 4dbafc1d54fc90fdb003c77466cabb3c26fffd79d21e5f0774973a153ede061a9f4b1ece5999699e26f82cdf01628bd17e6acf25dff1f0bf5b9dc24433ee24f7
6
+ metadata.gz: d39bb60d0a75ea8a9bcdad463d95b496d8f0c882b5b18f8dc7590468070ebb0e77e8b8bfef77f741d594a1ef57a89d92c8c4bb28caa834c040e1feaa353e9103
7
+ data.tar.gz: 30088d515709b619d85698478b90663810cc14d065cce05d38221d5773d3d530a3a92eea1bfaad6f3cc7c99ff0029422d93dcbc2392f476aa84930b7c22168a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.2.0 - 2022-05-23
4
+ * [#1060](https://github.com/stripe/stripe-ruby/pull/1060) API Updates
5
+ * Add support for new resource `Apps.Secret`
6
+
7
+ ## 6.1.0 - 2022-05-19
8
+ * [#1057](https://github.com/stripe/stripe-ruby/pull/1057) API Updates
9
+ * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
10
+ * Add support for `retrieve_payment_method` method on resource `Customer`
11
+ * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
12
+
13
+
14
+
15
+ ## 6.0.0 - 2022-05-09
16
+ * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
17
+ Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
18
+
19
+ (⚠️ = breaking changes):
20
+ * ⚠️ Replace the legacy `Order` API with the new `Order` API.
21
+ * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
22
+ * Removed methods: `pay` and `return_order`
23
+ * Removed resources: `OrderItem` and `OrderReturn`
24
+ * ⚠️ Rename `FinancialConnections::Account.refresh` to `FinancialConnections::Account.refresh_account
25
+
26
+ ## 5.55.0 - 2022-05-05
27
+ * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
28
+ * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
29
+
30
+
31
+ ## 5.54.0 - 2022-05-03
32
+ * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
33
+ * Add support for new resource `CashBalance`
34
+
3
35
  ## 5.53.0 - 2022-04-21
4
36
  * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
5
37
  * Add support for `expire` test helper method on resource `Refund`
data/OPENAPI_VERSION ADDED
@@ -0,0 +1 @@
1
+ v146
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.53.0
1
+ 6.2.0
@@ -8,6 +8,8 @@ module Stripe
8
8
  # class MyAPIResource < APIResource
9
9
  # class TestHelpers < APIResourceTestHelpers
10
10
  class APIResourceTestHelpers
11
+ include Stripe::APIOperations::Request
12
+
11
13
  def initialize(resource)
12
14
  @resource = resource
13
15
  end
@@ -18,6 +18,7 @@ module Stripe
18
18
  ApplePayDomain::OBJECT_NAME => ApplePayDomain,
19
19
  ApplicationFee::OBJECT_NAME => ApplicationFee,
20
20
  ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
21
+ Apps::Secret::OBJECT_NAME => Apps::Secret,
21
22
  Balance::OBJECT_NAME => Balance,
22
23
  BalanceTransaction::OBJECT_NAME => BalanceTransaction,
23
24
  BankAccount::OBJECT_NAME => BankAccount,
@@ -27,6 +28,7 @@ module Stripe
27
28
  BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
28
29
  Capability::OBJECT_NAME => Capability,
29
30
  Card::OBJECT_NAME => Card,
31
+ CashBalance::OBJECT_NAME => CashBalance,
30
32
  Charge::OBJECT_NAME => Charge,
31
33
  Checkout::Session::OBJECT_NAME => Checkout::Session,
32
34
  CountrySpec::OBJECT_NAME => CountrySpec,
@@ -43,6 +45,11 @@ module Stripe
43
45
  File::OBJECT_NAME => File,
44
46
  File::OBJECT_NAME_ALT => File,
45
47
  FileLink::OBJECT_NAME => FileLink,
48
+ FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
49
+ FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
50
+ FinancialConnections::AccountOwnership::OBJECT_NAME =>
51
+ FinancialConnections::AccountOwnership,
52
+ FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
46
53
  FundingInstructions::OBJECT_NAME => FundingInstructions,
47
54
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
48
55
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
@@ -59,7 +66,6 @@ module Stripe
59
66
  LoginLink::OBJECT_NAME => LoginLink,
60
67
  Mandate::OBJECT_NAME => Mandate,
61
68
  Order::OBJECT_NAME => Order,
62
- OrderReturn::OBJECT_NAME => OrderReturn,
63
69
  PaymentIntent::OBJECT_NAME => PaymentIntent,
64
70
  PaymentLink::OBJECT_NAME => PaymentLink,
65
71
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -102,6 +108,16 @@ module Stripe
102
108
  Token::OBJECT_NAME => Token,
103
109
  Topup::OBJECT_NAME => Topup,
104
110
  Transfer::OBJECT_NAME => Transfer,
111
+ Treasury::CreditReversal::OBJECT_NAME => Treasury::CreditReversal,
112
+ Treasury::DebitReversal::OBJECT_NAME => Treasury::DebitReversal,
113
+ Treasury::FinancialAccount::OBJECT_NAME => Treasury::FinancialAccount,
114
+ Treasury::InboundTransfer::OBJECT_NAME => Treasury::InboundTransfer,
115
+ Treasury::OutboundPayment::OBJECT_NAME => Treasury::OutboundPayment,
116
+ Treasury::OutboundTransfer::OBJECT_NAME => Treasury::OutboundTransfer,
117
+ Treasury::ReceivedCredit::OBJECT_NAME => Treasury::ReceivedCredit,
118
+ Treasury::ReceivedDebit::OBJECT_NAME => Treasury::ReceivedDebit,
119
+ Treasury::Transaction::OBJECT_NAME => Treasury::Transaction,
120
+ Treasury::TransactionEntry::OBJECT_NAME => Treasury::TransactionEntry,
105
121
  UsageRecord::OBJECT_NAME => UsageRecord,
106
122
  UsageRecordSummary::OBJECT_NAME => UsageRecordSummary,
107
123
  WebhookEndpoint::OBJECT_NAME => WebhookEndpoint,
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Apps
6
+ class Secret < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "apps.secret"
11
+
12
+ def self.delete_where(params = {}, opts = {})
13
+ resp, opts = execute_resource_request(
14
+ :post,
15
+ resource_url + "/delete",
16
+ params,
17
+ opts
18
+ )
19
+ Util.convert_to_stripe_object(resp.data, opts)
20
+ end
21
+
22
+ def self.find(params = {}, opts = {})
23
+ resp, opts = execute_resource_request(
24
+ :get,
25
+ resource_url + "/find",
26
+ params,
27
+ opts
28
+ )
29
+ Util.convert_to_stripe_object(resp.data, opts)
30
+ end
31
+ end
32
+ end
33
+ end
@@ -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,
@@ -38,6 +41,30 @@ module Stripe
38
41
  )
39
42
  end
40
43
 
44
+ def retrieve_payment_method(payment_method, params = {}, opts = {})
45
+ request_stripe_object(
46
+ method: :get,
47
+ path: format("/v1/customers/%<customer>s/payment_methods/%<payment_method>s", { customer: CGI.escape(self["id"]), payment_method: CGI.escape(payment_method) }),
48
+ params: params,
49
+ opts: opts
50
+ )
51
+ end
52
+
53
+ def self.retrieve_payment_method(
54
+ customer,
55
+ payment_method,
56
+ params = {},
57
+ opts = {}
58
+ )
59
+ resp, opts = execute_resource_request(
60
+ :get,
61
+ format("/v1/customers/%<customer>s/payment_methods/%<payment_method>s", { customer: CGI.escape(customer), payment_method: CGI.escape(payment_method) }),
62
+ params,
63
+ opts
64
+ )
65
+ Util.convert_to_stripe_object(resp.data, opts)
66
+ end
67
+
41
68
  custom_method :delete_discount, http_verb: :delete, http_path: "discount"
42
69
 
43
70
  save_nested_resource :source
@@ -0,0 +1,43 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class Account < APIResource
7
+ extend Stripe::APIOperations::List
8
+
9
+ OBJECT_NAME = "financial_connections.account"
10
+
11
+ custom_method :disconnect, http_verb: :post
12
+ custom_method :list_owners, http_verb: :get, http_path: "owners"
13
+ custom_method :refresh_account, http_verb: :post, http_path: "refresh"
14
+
15
+ def disconnect(params = {}, opts = {})
16
+ request_stripe_object(
17
+ method: :post,
18
+ path: resource_url + "/disconnect",
19
+ params: params,
20
+ opts: opts
21
+ )
22
+ end
23
+
24
+ def list_owners(params = {}, opts = {})
25
+ request_stripe_object(
26
+ method: :get,
27
+ path: resource_url + "/owners",
28
+ params: params,
29
+ opts: opts
30
+ )
31
+ end
32
+
33
+ def refresh_account(params = {}, opts = {})
34
+ request_stripe_object(
35
+ method: :post,
36
+ path: resource_url + "/refresh",
37
+ params: params,
38
+ opts: opts
39
+ )
40
+ end
41
+ end
42
+ end
43
+ 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
@@ -9,22 +9,42 @@ module Stripe
9
9
 
10
10
  OBJECT_NAME = "order"
11
11
 
12
- custom_method :pay, http_verb: :post
13
- custom_method :return_order, http_verb: :post, http_path: "returns"
12
+ custom_method :cancel, http_verb: :post
13
+ custom_method :list_line_items, http_verb: :get, http_path: "line_items"
14
+ custom_method :reopen, http_verb: :post
15
+ custom_method :submit, http_verb: :post
14
16
 
15
- def pay(params = {}, opts = {})
17
+ def cancel(params = {}, opts = {})
16
18
  request_stripe_object(
17
19
  method: :post,
18
- path: resource_url + "/pay",
20
+ path: resource_url + "/cancel",
19
21
  params: params,
20
22
  opts: opts
21
23
  )
22
24
  end
23
25
 
24
- def return_order(params = {}, opts = {})
26
+ def list_line_items(params = {}, opts = {})
27
+ request_stripe_object(
28
+ method: :get,
29
+ path: resource_url + "/line_items",
30
+ params: params,
31
+ opts: opts
32
+ )
33
+ end
34
+
35
+ def reopen(params = {}, opts = {})
36
+ request_stripe_object(
37
+ method: :post,
38
+ path: resource_url + "/reopen",
39
+ params: params,
40
+ opts: opts
41
+ )
42
+ end
43
+
44
+ def submit(params = {}, opts = {})
25
45
  request_stripe_object(
26
46
  method: :post,
27
- path: resource_url + "/returns",
47
+ path: resource_url + "/submit",
28
48
  params: params,
29
49
  opts: opts
30
50
  )
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class CreditReversal < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "treasury.credit_reversal"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class DebitReversal < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "treasury.debit_reversal"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,35 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class FinancialAccount < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+ include Stripe::APIOperations::Save
10
+
11
+ OBJECT_NAME = "treasury.financial_account"
12
+
13
+ custom_method :retrieve_features, http_verb: :get, http_path: "features"
14
+ custom_method :update_features, http_verb: :post, http_path: "features"
15
+
16
+ def retrieve_features(params = {}, opts = {})
17
+ request_stripe_object(
18
+ method: :get,
19
+ path: resource_url + "/features",
20
+ params: params,
21
+ opts: opts
22
+ )
23
+ end
24
+
25
+ def update_features(params = {}, opts = {})
26
+ request_stripe_object(
27
+ method: :post,
28
+ path: resource_url + "/features",
29
+ params: params,
30
+ opts: opts
31
+ )
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class InboundTransfer < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "treasury.inbound_transfer"
11
+
12
+ custom_method :cancel, http_verb: :post
13
+
14
+ def cancel(params = {}, opts = {})
15
+ request_stripe_object(
16
+ method: :post,
17
+ path: resource_url + "/cancel",
18
+ params: params,
19
+ opts: opts
20
+ )
21
+ end
22
+
23
+ def test_helpers
24
+ TestHelpers.new(self)
25
+ end
26
+
27
+ class TestHelpers < APIResourceTestHelpers
28
+ RESOURCE_CLASS = InboundTransfer
29
+
30
+ custom_method :fail, http_verb: :post
31
+ custom_method :return_inbound_transfer, http_verb: :post, http_path: "return"
32
+ custom_method :succeed, http_verb: :post
33
+
34
+ def fail(params = {}, opts = {})
35
+ @resource.request_stripe_object(
36
+ method: :post,
37
+ path: resource_url + "/fail",
38
+ params: params,
39
+ opts: opts
40
+ )
41
+ end
42
+
43
+ def return_inbound_transfer(params = {}, opts = {})
44
+ @resource.request_stripe_object(
45
+ method: :post,
46
+ path: resource_url + "/return",
47
+ params: params,
48
+ opts: opts
49
+ )
50
+ end
51
+
52
+ def succeed(params = {}, opts = {})
53
+ @resource.request_stripe_object(
54
+ method: :post,
55
+ path: resource_url + "/succeed",
56
+ params: params,
57
+ opts: opts
58
+ )
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class OutboundPayment < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "treasury.outbound_payment"
11
+
12
+ custom_method :cancel, http_verb: :post
13
+
14
+ def cancel(params = {}, opts = {})
15
+ request_stripe_object(
16
+ method: :post,
17
+ path: resource_url + "/cancel",
18
+ params: params,
19
+ opts: opts
20
+ )
21
+ end
22
+
23
+ def test_helpers
24
+ TestHelpers.new(self)
25
+ end
26
+
27
+ class TestHelpers < APIResourceTestHelpers
28
+ RESOURCE_CLASS = OutboundPayment
29
+
30
+ custom_method :fail, http_verb: :post
31
+ custom_method :post, http_verb: :post
32
+ custom_method :return_outbound_payment, http_verb: :post, http_path: "return"
33
+
34
+ def fail(params = {}, opts = {})
35
+ @resource.request_stripe_object(
36
+ method: :post,
37
+ path: resource_url + "/fail",
38
+ params: params,
39
+ opts: opts
40
+ )
41
+ end
42
+
43
+ def post(params = {}, opts = {})
44
+ @resource.request_stripe_object(
45
+ method: :post,
46
+ path: resource_url + "/post",
47
+ params: params,
48
+ opts: opts
49
+ )
50
+ end
51
+
52
+ def return_outbound_payment(params = {}, opts = {})
53
+ @resource.request_stripe_object(
54
+ method: :post,
55
+ path: resource_url + "/return",
56
+ params: params,
57
+ opts: opts
58
+ )
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class OutboundTransfer < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "treasury.outbound_transfer"
11
+
12
+ custom_method :cancel, http_verb: :post
13
+
14
+ def cancel(params = {}, opts = {})
15
+ request_stripe_object(
16
+ method: :post,
17
+ path: resource_url + "/cancel",
18
+ params: params,
19
+ opts: opts
20
+ )
21
+ end
22
+
23
+ def test_helpers
24
+ TestHelpers.new(self)
25
+ end
26
+
27
+ class TestHelpers < APIResourceTestHelpers
28
+ RESOURCE_CLASS = OutboundTransfer
29
+
30
+ custom_method :fail, http_verb: :post
31
+ custom_method :post, http_verb: :post
32
+ custom_method :return_outbound_transfer, http_verb: :post, http_path: "return"
33
+
34
+ def fail(params = {}, opts = {})
35
+ @resource.request_stripe_object(
36
+ method: :post,
37
+ path: resource_url + "/fail",
38
+ params: params,
39
+ opts: opts
40
+ )
41
+ end
42
+
43
+ def post(params = {}, opts = {})
44
+ @resource.request_stripe_object(
45
+ method: :post,
46
+ path: resource_url + "/post",
47
+ params: params,
48
+ opts: opts
49
+ )
50
+ end
51
+
52
+ def return_outbound_transfer(params = {}, opts = {})
53
+ @resource.request_stripe_object(
54
+ method: :post,
55
+ path: resource_url + "/return",
56
+ params: params,
57
+ opts: opts
58
+ )
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,30 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class ReceivedCredit < APIResource
7
+ extend Stripe::APIOperations::List
8
+
9
+ OBJECT_NAME = "treasury.received_credit"
10
+
11
+ def test_helpers
12
+ TestHelpers.new(self)
13
+ end
14
+
15
+ class TestHelpers < APIResourceTestHelpers
16
+ RESOURCE_CLASS = ReceivedCredit
17
+
18
+ def self.create(params = {}, opts = {})
19
+ resp, opts = execute_resource_request(
20
+ :post,
21
+ "/v1/test_helpers/treasury/received_credits",
22
+ params,
23
+ opts
24
+ )
25
+ Util.convert_to_stripe_object(resp.data, opts)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class ReceivedDebit < APIResource
7
+ extend Stripe::APIOperations::List
8
+
9
+ OBJECT_NAME = "treasury.received_debit"
10
+
11
+ def test_helpers
12
+ TestHelpers.new(self)
13
+ end
14
+
15
+ class TestHelpers < APIResourceTestHelpers
16
+ RESOURCE_CLASS = ReceivedDebit
17
+
18
+ def self.create(params = {}, opts = {})
19
+ resp, opts = execute_resource_request(
20
+ :post,
21
+ "/v1/test_helpers/treasury/received_debits",
22
+ params,
23
+ opts
24
+ )
25
+ Util.convert_to_stripe_object(resp.data, opts)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class Transaction < APIResource
7
+ extend Stripe::APIOperations::List
8
+
9
+ OBJECT_NAME = "treasury.transaction"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Treasury
6
+ class TransactionEntry < APIResource
7
+ extend Stripe::APIOperations::List
8
+
9
+ OBJECT_NAME = "treasury.transaction_entry"
10
+
11
+ def self.resource_url
12
+ "/v1/treasury/transaction_entries"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -7,6 +7,7 @@ require "stripe/resources/alipay_account"
7
7
  require "stripe/resources/apple_pay_domain"
8
8
  require "stripe/resources/application_fee"
9
9
  require "stripe/resources/application_fee_refund"
10
+ require "stripe/resources/apps/secret"
10
11
  require "stripe/resources/balance"
11
12
  require "stripe/resources/balance_transaction"
12
13
  require "stripe/resources/bank_account"
@@ -16,6 +17,7 @@ require "stripe/resources/bitcoin_receiver"
16
17
  require "stripe/resources/bitcoin_transaction"
17
18
  require "stripe/resources/capability"
18
19
  require "stripe/resources/card"
20
+ require "stripe/resources/cash_balance"
19
21
  require "stripe/resources/charge"
20
22
  require "stripe/resources/checkout/session"
21
23
  require "stripe/resources/country_spec"
@@ -31,6 +33,10 @@ require "stripe/resources/event"
31
33
  require "stripe/resources/exchange_rate"
32
34
  require "stripe/resources/file"
33
35
  require "stripe/resources/file_link"
36
+ require "stripe/resources/financial_connections/account"
37
+ require "stripe/resources/financial_connections/account_owner"
38
+ require "stripe/resources/financial_connections/account_ownership"
39
+ require "stripe/resources/financial_connections/session"
34
40
  require "stripe/resources/funding_instructions"
35
41
  require "stripe/resources/identity/verification_report"
36
42
  require "stripe/resources/identity/verification_session"
@@ -47,7 +53,6 @@ require "stripe/resources/line_item"
47
53
  require "stripe/resources/login_link"
48
54
  require "stripe/resources/mandate"
49
55
  require "stripe/resources/order"
50
- require "stripe/resources/order_return"
51
56
  require "stripe/resources/payment_intent"
52
57
  require "stripe/resources/payment_link"
53
58
  require "stripe/resources/payment_method"
@@ -90,6 +95,16 @@ require "stripe/resources/three_d_secure"
90
95
  require "stripe/resources/token"
91
96
  require "stripe/resources/topup"
92
97
  require "stripe/resources/transfer"
98
+ require "stripe/resources/treasury/credit_reversal"
99
+ require "stripe/resources/treasury/debit_reversal"
100
+ require "stripe/resources/treasury/financial_account"
101
+ require "stripe/resources/treasury/inbound_transfer"
102
+ require "stripe/resources/treasury/outbound_payment"
103
+ require "stripe/resources/treasury/outbound_transfer"
104
+ require "stripe/resources/treasury/received_credit"
105
+ require "stripe/resources/treasury/received_debit"
106
+ require "stripe/resources/treasury/transaction"
107
+ require "stripe/resources/treasury/transaction_entry"
93
108
  require "stripe/resources/usage_record"
94
109
  require "stripe/resources/usage_record_summary"
95
110
  require "stripe/resources/webhook_endpoint"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.53.0"
4
+ VERSION = "6.2.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.53.0
4
+ version: 6.2.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-21 00:00:00.000000000 Z
11
+ date: 2022-05-23 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.
@@ -25,6 +25,7 @@ files:
25
25
  - History.txt
26
26
  - LICENSE
27
27
  - Makefile
28
+ - OPENAPI_VERSION
28
29
  - README.md
29
30
  - Rakefile
30
31
  - VERSION
@@ -55,6 +56,7 @@ files:
55
56
  - lib/stripe/resources/apple_pay_domain.rb
56
57
  - lib/stripe/resources/application_fee.rb
57
58
  - lib/stripe/resources/application_fee_refund.rb
59
+ - lib/stripe/resources/apps/secret.rb
58
60
  - lib/stripe/resources/balance.rb
59
61
  - lib/stripe/resources/balance_transaction.rb
60
62
  - lib/stripe/resources/bank_account.rb
@@ -64,6 +66,7 @@ files:
64
66
  - lib/stripe/resources/bitcoin_transaction.rb
65
67
  - lib/stripe/resources/capability.rb
66
68
  - lib/stripe/resources/card.rb
69
+ - lib/stripe/resources/cash_balance.rb
67
70
  - lib/stripe/resources/charge.rb
68
71
  - lib/stripe/resources/checkout/session.rb
69
72
  - lib/stripe/resources/country_spec.rb
@@ -79,6 +82,10 @@ files:
79
82
  - lib/stripe/resources/exchange_rate.rb
80
83
  - lib/stripe/resources/file.rb
81
84
  - lib/stripe/resources/file_link.rb
85
+ - lib/stripe/resources/financial_connections/account.rb
86
+ - lib/stripe/resources/financial_connections/account_owner.rb
87
+ - lib/stripe/resources/financial_connections/account_ownership.rb
88
+ - lib/stripe/resources/financial_connections/session.rb
82
89
  - lib/stripe/resources/funding_instructions.rb
83
90
  - lib/stripe/resources/identity/verification_report.rb
84
91
  - lib/stripe/resources/identity/verification_session.rb
@@ -95,7 +102,6 @@ files:
95
102
  - lib/stripe/resources/login_link.rb
96
103
  - lib/stripe/resources/mandate.rb
97
104
  - lib/stripe/resources/order.rb
98
- - lib/stripe/resources/order_return.rb
99
105
  - lib/stripe/resources/payment_intent.rb
100
106
  - lib/stripe/resources/payment_link.rb
101
107
  - lib/stripe/resources/payment_method.rb
@@ -138,6 +144,16 @@ files:
138
144
  - lib/stripe/resources/token.rb
139
145
  - lib/stripe/resources/topup.rb
140
146
  - lib/stripe/resources/transfer.rb
147
+ - lib/stripe/resources/treasury/credit_reversal.rb
148
+ - lib/stripe/resources/treasury/debit_reversal.rb
149
+ - lib/stripe/resources/treasury/financial_account.rb
150
+ - lib/stripe/resources/treasury/inbound_transfer.rb
151
+ - lib/stripe/resources/treasury/outbound_payment.rb
152
+ - lib/stripe/resources/treasury/outbound_transfer.rb
153
+ - lib/stripe/resources/treasury/received_credit.rb
154
+ - lib/stripe/resources/treasury/received_debit.rb
155
+ - lib/stripe/resources/treasury/transaction.rb
156
+ - lib/stripe/resources/treasury/transaction_entry.rb
141
157
  - lib/stripe/resources/usage_record.rb
142
158
  - lib/stripe/resources/usage_record_summary.rb
143
159
  - lib/stripe/resources/webhook_endpoint.rb
@@ -176,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
192
  - !ruby/object:Gem::Version
177
193
  version: '0'
178
194
  requirements: []
179
- rubygems_version: 3.1.2
195
+ rubygems_version: 3.3.7
180
196
  signing_key:
181
197
  specification_version: 4
182
198
  summary: Ruby bindings for the Stripe API
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class OrderReturn < APIResource
6
- extend Stripe::APIOperations::List
7
-
8
- OBJECT_NAME = "order_return"
9
- end
10
- end