stripe 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +60 -2
  3. data/Makefile +1 -1
  4. data/OPENAPI_VERSION +1 -0
  5. data/README.md +1 -1
  6. data/VERSION +1 -1
  7. data/lib/data/ca-certificates.crt +1241 -1937
  8. data/lib/stripe/api_operations/create.rb +6 -2
  9. data/lib/stripe/api_operations/delete.rb +12 -7
  10. data/lib/stripe/api_operations/list.rb +6 -9
  11. data/lib/stripe/api_operations/nested_resource.rb +62 -34
  12. data/lib/stripe/api_operations/request.rb +10 -0
  13. data/lib/stripe/api_operations/save.rb +6 -3
  14. data/lib/stripe/api_operations/search.rb +6 -9
  15. data/lib/stripe/api_resource.rb +1 -1
  16. data/lib/stripe/api_resource_test_helpers.rb +2 -0
  17. data/lib/stripe/api_version.rb +8 -0
  18. data/lib/stripe/object_types.rb +11 -7
  19. data/lib/stripe/resources/account.rb +28 -8
  20. data/lib/stripe/resources/apps/secret.rb +31 -0
  21. data/lib/stripe/resources/card.rb +1 -3
  22. data/lib/stripe/resources/charge.rb +10 -3
  23. data/lib/stripe/resources/checkout/session.rb +27 -5
  24. data/lib/stripe/resources/credit_note.rb +24 -9
  25. data/lib/stripe/resources/customer.rb +104 -19
  26. data/lib/stripe/resources/dispute.rb +10 -3
  27. data/lib/stripe/resources/financial_connections/account.rb +40 -5
  28. data/lib/stripe/resources/identity/verification_session.rb +20 -5
  29. data/lib/stripe/resources/invoice.rb +64 -17
  30. data/lib/stripe/resources/issuing/authorization.rb +20 -5
  31. data/lib/stripe/resources/issuing/card.rb +78 -9
  32. data/lib/stripe/resources/issuing/dispute.rb +10 -3
  33. data/lib/stripe/resources/order.rb +40 -9
  34. data/lib/stripe/resources/payment_intent.rb +60 -13
  35. data/lib/stripe/resources/payment_link.rb +10 -3
  36. data/lib/stripe/resources/payment_method.rb +20 -5
  37. data/lib/stripe/resources/payout.rb +20 -5
  38. data/lib/stripe/resources/quote.rb +50 -11
  39. data/lib/stripe/resources/refund.rb +19 -5
  40. data/lib/stripe/resources/reporting/report_type.rb +0 -1
  41. data/lib/stripe/resources/review.rb +10 -3
  42. data/lib/stripe/resources/setup_intent.rb +30 -7
  43. data/lib/stripe/resources/source.rb +16 -6
  44. data/lib/stripe/resources/subscription.rb +52 -3
  45. data/lib/stripe/resources/subscription_item.rb +0 -7
  46. data/lib/stripe/resources/subscription_schedule.rb +20 -5
  47. data/lib/stripe/resources/terminal/reader.rb +49 -11
  48. data/lib/stripe/resources/test_helpers/test_clock.rb +10 -3
  49. data/lib/stripe/resources/topup.rb +10 -3
  50. data/lib/stripe/resources/transfer.rb +0 -11
  51. data/lib/stripe/resources/treasury/credit_reversal.rb +13 -0
  52. data/lib/stripe/resources/treasury/debit_reversal.rb +13 -0
  53. data/lib/stripe/resources/treasury/financial_account.rb +50 -0
  54. data/lib/stripe/resources/treasury/inbound_transfer.rb +93 -0
  55. data/lib/stripe/resources/treasury/outbound_payment.rb +93 -0
  56. data/lib/stripe/resources/treasury/outbound_transfer.rb +97 -0
  57. data/lib/stripe/resources/treasury/received_credit.rb +29 -0
  58. data/lib/stripe/resources/treasury/received_debit.rb +29 -0
  59. data/lib/stripe/resources/treasury/transaction.rb +12 -0
  60. data/lib/stripe/resources/treasury/transaction_entry.rb +16 -0
  61. data/lib/stripe/resources.rb +11 -7
  62. data/lib/stripe/util.rb +38 -3
  63. data/lib/stripe/version.rb +1 -1
  64. metadata +16 -8
  65. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  66. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  67. data/lib/stripe/resources/issuing/card_details.rb +0 -10
  68. data/lib/stripe/resources/recipient.rb +0 -14
  69. data/lib/stripe/resources/three_d_secure.rb +0 -14
@@ -11,15 +11,10 @@ module Stripe
11
11
 
12
12
  OBJECT_NAME = "terminal.reader"
13
13
 
14
- custom_method :cancel_action, http_verb: :post
15
- custom_method :process_payment_intent, http_verb: :post
16
- custom_method :process_setup_intent, http_verb: :post
17
- custom_method :set_reader_display, http_verb: :post
18
-
19
14
  def cancel_action(params = {}, opts = {})
20
15
  request_stripe_object(
21
16
  method: :post,
22
- path: resource_url + "/cancel_action",
17
+ path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(self["id"]) }),
23
18
  params: params,
24
19
  opts: opts
25
20
  )
@@ -28,7 +23,7 @@ module Stripe
28
23
  def process_payment_intent(params = {}, opts = {})
29
24
  request_stripe_object(
30
25
  method: :post,
31
- path: resource_url + "/process_payment_intent",
26
+ path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(self["id"]) }),
32
27
  params: params,
33
28
  opts: opts
34
29
  )
@@ -37,7 +32,7 @@ module Stripe
37
32
  def process_setup_intent(params = {}, opts = {})
38
33
  request_stripe_object(
39
34
  method: :post,
40
- path: resource_url + "/process_setup_intent",
35
+ path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(self["id"]) }),
41
36
  params: params,
42
37
  opts: opts
43
38
  )
@@ -46,7 +41,43 @@ module Stripe
46
41
  def set_reader_display(params = {}, opts = {})
47
42
  request_stripe_object(
48
43
  method: :post,
49
- path: resource_url + "/set_reader_display",
44
+ path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(self["id"]) }),
45
+ params: params,
46
+ opts: opts
47
+ )
48
+ end
49
+
50
+ def self.cancel_action(reader, params = {}, opts = {})
51
+ request_stripe_object(
52
+ method: :post,
53
+ path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(reader) }),
54
+ params: params,
55
+ opts: opts
56
+ )
57
+ end
58
+
59
+ def self.process_payment_intent(reader, params = {}, opts = {})
60
+ request_stripe_object(
61
+ method: :post,
62
+ path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(reader) }),
63
+ params: params,
64
+ opts: opts
65
+ )
66
+ end
67
+
68
+ def self.process_setup_intent(reader, params = {}, opts = {})
69
+ request_stripe_object(
70
+ method: :post,
71
+ path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }),
72
+ params: params,
73
+ opts: opts
74
+ )
75
+ end
76
+
77
+ def self.set_reader_display(reader, params = {}, opts = {})
78
+ request_stripe_object(
79
+ method: :post,
80
+ path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(reader) }),
50
81
  params: params,
51
82
  opts: opts
52
83
  )
@@ -59,12 +90,19 @@ module Stripe
59
90
  class TestHelpers < APIResourceTestHelpers
60
91
  RESOURCE_CLASS = Reader
61
92
 
62
- custom_method :present_payment_method, http_verb: :post
93
+ def self.present_payment_method(reader, params = {}, opts = {})
94
+ request_stripe_object(
95
+ method: :post,
96
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/present_payment_method", { reader: CGI.escape(reader) }),
97
+ params: params,
98
+ opts: opts
99
+ )
100
+ end
63
101
 
64
102
  def present_payment_method(params = {}, opts = {})
65
103
  @resource.request_stripe_object(
66
104
  method: :post,
67
- path: resource_url + "/present_payment_method",
105
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/present_payment_method", { reader: CGI.escape(@resource["id"]) }),
68
106
  params: params,
69
107
  opts: opts
70
108
  )
@@ -10,12 +10,19 @@ module Stripe
10
10
 
11
11
  OBJECT_NAME = "test_helpers.test_clock"
12
12
 
13
- custom_method :advance, http_verb: :post
14
-
15
13
  def advance(params = {}, opts = {})
16
14
  request_stripe_object(
17
15
  method: :post,
18
- path: resource_url + "/advance",
16
+ path: format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(self["id"]) }),
17
+ params: params,
18
+ opts: opts
19
+ )
20
+ end
21
+
22
+ def self.advance(test_clock, params = {}, opts = {})
23
+ request_stripe_object(
24
+ method: :post,
25
+ path: format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(test_clock) }),
19
26
  params: params,
20
27
  opts: opts
21
28
  )
@@ -9,12 +9,19 @@ module Stripe
9
9
 
10
10
  OBJECT_NAME = "topup"
11
11
 
12
- custom_method :cancel, http_verb: :post
13
-
14
12
  def cancel(params = {}, opts = {})
15
13
  request_stripe_object(
16
14
  method: :post,
17
- path: resource_url + "/cancel",
15
+ path: format("/v1/topups/%<topup>s/cancel", { topup: CGI.escape(self["id"]) }),
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
21
+ def self.cancel(topup, params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: format("/v1/topups/%<topup>s/cancel", { topup: CGI.escape(topup) }),
18
25
  params: params,
19
26
  opts: opts
20
27
  )
@@ -10,18 +10,7 @@ module Stripe
10
10
 
11
11
  OBJECT_NAME = "transfer"
12
12
 
13
- custom_method :cancel, http_verb: :post
14
-
15
13
  nested_resource_class_methods :reversal,
16
14
  operations: %i[create retrieve update list]
17
-
18
- def cancel(params = {}, opts = {})
19
- request_stripe_object(
20
- method: :post,
21
- path: resource_url + "/cancel",
22
- params: params,
23
- opts: opts
24
- )
25
- end
26
15
  end
27
16
  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 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,50 @@
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
+ def retrieve_features(params = {}, opts = {})
14
+ request_stripe_object(
15
+ method: :get,
16
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
17
+ params: params,
18
+ opts: opts
19
+ )
20
+ end
21
+
22
+ def update_features(params = {}, opts = {})
23
+ request_stripe_object(
24
+ method: :post,
25
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
26
+ params: params,
27
+ opts: opts
28
+ )
29
+ end
30
+
31
+ def self.retrieve_features(financial_account, params = {}, opts = {})
32
+ request_stripe_object(
33
+ method: :get,
34
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
35
+ params: params,
36
+ opts: opts
37
+ )
38
+ end
39
+
40
+ def self.update_features(financial_account, params = {}, opts = {})
41
+ request_stripe_object(
42
+ method: :post,
43
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
44
+ params: params,
45
+ opts: opts
46
+ )
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,93 @@
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
+ def cancel(params = {}, opts = {})
13
+ request_stripe_object(
14
+ method: :post,
15
+ path: format("/v1/treasury/inbound_transfers/%<inbound_transfer>s/cancel", { inbound_transfer: CGI.escape(self["id"]) }),
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
21
+ def self.cancel(inbound_transfer, params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: format("/v1/treasury/inbound_transfers/%<inbound_transfer>s/cancel", { inbound_transfer: CGI.escape(inbound_transfer) }),
25
+ params: params,
26
+ opts: opts
27
+ )
28
+ end
29
+
30
+ def test_helpers
31
+ TestHelpers.new(self)
32
+ end
33
+
34
+ class TestHelpers < APIResourceTestHelpers
35
+ RESOURCE_CLASS = InboundTransfer
36
+
37
+ def self.fail(id, params = {}, opts = {})
38
+ request_stripe_object(
39
+ method: :post,
40
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(id) }),
41
+ params: params,
42
+ opts: opts
43
+ )
44
+ end
45
+
46
+ def self.return_inbound_transfer(id, params = {}, opts = {})
47
+ request_stripe_object(
48
+ method: :post,
49
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }),
50
+ params: params,
51
+ opts: opts
52
+ )
53
+ end
54
+
55
+ def self.succeed(id, params = {}, opts = {})
56
+ request_stripe_object(
57
+ method: :post,
58
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }),
59
+ params: params,
60
+ opts: opts
61
+ )
62
+ end
63
+
64
+ def fail(params = {}, opts = {})
65
+ @resource.request_stripe_object(
66
+ method: :post,
67
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
68
+ params: params,
69
+ opts: opts
70
+ )
71
+ end
72
+
73
+ def return_inbound_transfer(params = {}, opts = {})
74
+ @resource.request_stripe_object(
75
+ method: :post,
76
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
77
+ params: params,
78
+ opts: opts
79
+ )
80
+ end
81
+
82
+ def succeed(params = {}, opts = {})
83
+ @resource.request_stripe_object(
84
+ method: :post,
85
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(@resource["id"]) }),
86
+ params: params,
87
+ opts: opts
88
+ )
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,93 @@
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
+ def cancel(params = {}, opts = {})
13
+ request_stripe_object(
14
+ method: :post,
15
+ path: format("/v1/treasury/outbound_payments/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
21
+ def self.cancel(id, params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: format("/v1/treasury/outbound_payments/%<id>s/cancel", { id: CGI.escape(id) }),
25
+ params: params,
26
+ opts: opts
27
+ )
28
+ end
29
+
30
+ def test_helpers
31
+ TestHelpers.new(self)
32
+ end
33
+
34
+ class TestHelpers < APIResourceTestHelpers
35
+ RESOURCE_CLASS = OutboundPayment
36
+
37
+ def self.fail(id, params = {}, opts = {})
38
+ request_stripe_object(
39
+ method: :post,
40
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(id) }),
41
+ params: params,
42
+ opts: opts
43
+ )
44
+ end
45
+
46
+ def self.post(id, params = {}, opts = {})
47
+ request_stripe_object(
48
+ method: :post,
49
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(id) }),
50
+ params: params,
51
+ opts: opts
52
+ )
53
+ end
54
+
55
+ def self.return_outbound_payment(id, params = {}, opts = {})
56
+ request_stripe_object(
57
+ method: :post,
58
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(id) }),
59
+ params: params,
60
+ opts: opts
61
+ )
62
+ end
63
+
64
+ def fail(params = {}, opts = {})
65
+ @resource.request_stripe_object(
66
+ method: :post,
67
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
68
+ params: params,
69
+ opts: opts
70
+ )
71
+ end
72
+
73
+ def post(params = {}, opts = {})
74
+ @resource.request_stripe_object(
75
+ method: :post,
76
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(@resource["id"]) }),
77
+ params: params,
78
+ opts: opts
79
+ )
80
+ end
81
+
82
+ def return_outbound_payment(params = {}, opts = {})
83
+ @resource.request_stripe_object(
84
+ method: :post,
85
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
86
+ params: params,
87
+ opts: opts
88
+ )
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,97 @@
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
+ def cancel(params = {}, opts = {})
13
+ request_stripe_object(
14
+ method: :post,
15
+ path: format("/v1/treasury/outbound_transfers/%<outbound_transfer>s/cancel", { outbound_transfer: CGI.escape(self["id"]) }),
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
21
+ def self.cancel(outbound_transfer, params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: format("/v1/treasury/outbound_transfers/%<outbound_transfer>s/cancel", { outbound_transfer: CGI.escape(outbound_transfer) }),
25
+ params: params,
26
+ opts: opts
27
+ )
28
+ end
29
+
30
+ def test_helpers
31
+ TestHelpers.new(self)
32
+ end
33
+
34
+ class TestHelpers < APIResourceTestHelpers
35
+ RESOURCE_CLASS = OutboundTransfer
36
+
37
+ def self.fail(outbound_transfer, params = {}, opts = {})
38
+ request_stripe_object(
39
+ method: :post,
40
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(outbound_transfer) }),
41
+ params: params,
42
+ opts: opts
43
+ )
44
+ end
45
+
46
+ def self.post(outbound_transfer, params = {}, opts = {})
47
+ request_stripe_object(
48
+ method: :post,
49
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(outbound_transfer) }),
50
+ params: params,
51
+ opts: opts
52
+ )
53
+ end
54
+
55
+ def self.return_outbound_transfer(
56
+ outbound_transfer,
57
+ params = {},
58
+ opts = {}
59
+ )
60
+ request_stripe_object(
61
+ method: :post,
62
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(outbound_transfer) }),
63
+ params: params,
64
+ opts: opts
65
+ )
66
+ end
67
+
68
+ def fail(params = {}, opts = {})
69
+ @resource.request_stripe_object(
70
+ method: :post,
71
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(@resource["id"]) }),
72
+ params: params,
73
+ opts: opts
74
+ )
75
+ end
76
+
77
+ def post(params = {}, opts = {})
78
+ @resource.request_stripe_object(
79
+ method: :post,
80
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(@resource["id"]) }),
81
+ params: params,
82
+ opts: opts
83
+ )
84
+ end
85
+
86
+ def return_outbound_transfer(params = {}, opts = {})
87
+ @resource.request_stripe_object(
88
+ method: :post,
89
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(@resource["id"]) }),
90
+ params: params,
91
+ opts: opts
92
+ )
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,29 @@
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
+ request_stripe_object(
20
+ method: :post,
21
+ path: "/v1/test_helpers/treasury/received_credits",
22
+ params: params,
23
+ opts: opts
24
+ )
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
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
+ request_stripe_object(
20
+ method: :post,
21
+ path: "/v1/test_helpers/treasury/received_debits",
22
+ params: params,
23
+ opts: opts
24
+ )
25
+ end
26
+ end
27
+ end
28
+ end
29
+ 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
@@ -3,17 +3,15 @@
3
3
 
4
4
  require "stripe/resources/account"
5
5
  require "stripe/resources/account_link"
6
- require "stripe/resources/alipay_account"
7
6
  require "stripe/resources/apple_pay_domain"
8
7
  require "stripe/resources/application_fee"
9
8
  require "stripe/resources/application_fee_refund"
9
+ require "stripe/resources/apps/secret"
10
10
  require "stripe/resources/balance"
11
11
  require "stripe/resources/balance_transaction"
12
12
  require "stripe/resources/bank_account"
13
13
  require "stripe/resources/billing_portal/configuration"
14
14
  require "stripe/resources/billing_portal/session"
15
- require "stripe/resources/bitcoin_receiver"
16
- require "stripe/resources/bitcoin_transaction"
17
15
  require "stripe/resources/capability"
18
16
  require "stripe/resources/card"
19
17
  require "stripe/resources/cash_balance"
@@ -44,7 +42,6 @@ require "stripe/resources/invoice_item"
44
42
  require "stripe/resources/invoice_line_item"
45
43
  require "stripe/resources/issuing/authorization"
46
44
  require "stripe/resources/issuing/card"
47
- require "stripe/resources/issuing/card_details"
48
45
  require "stripe/resources/issuing/cardholder"
49
46
  require "stripe/resources/issuing/dispute"
50
47
  require "stripe/resources/issuing/transaction"
@@ -65,8 +62,6 @@ require "stripe/resources/quote"
65
62
  require "stripe/resources/radar/early_fraud_warning"
66
63
  require "stripe/resources/radar/value_list"
67
64
  require "stripe/resources/radar/value_list_item"
68
- require "stripe/resources/recipient"
69
- require "stripe/resources/recipient_transfer"
70
65
  require "stripe/resources/refund"
71
66
  require "stripe/resources/reporting/report_run"
72
67
  require "stripe/resources/reporting/report_type"
@@ -90,10 +85,19 @@ require "stripe/resources/terminal/connection_token"
90
85
  require "stripe/resources/terminal/location"
91
86
  require "stripe/resources/terminal/reader"
92
87
  require "stripe/resources/test_helpers/test_clock"
93
- require "stripe/resources/three_d_secure"
94
88
  require "stripe/resources/token"
95
89
  require "stripe/resources/topup"
96
90
  require "stripe/resources/transfer"
91
+ require "stripe/resources/treasury/credit_reversal"
92
+ require "stripe/resources/treasury/debit_reversal"
93
+ require "stripe/resources/treasury/financial_account"
94
+ require "stripe/resources/treasury/inbound_transfer"
95
+ require "stripe/resources/treasury/outbound_payment"
96
+ require "stripe/resources/treasury/outbound_transfer"
97
+ require "stripe/resources/treasury/received_credit"
98
+ require "stripe/resources/treasury/received_debit"
99
+ require "stripe/resources/treasury/transaction"
100
+ require "stripe/resources/treasury/transaction_entry"
97
101
  require "stripe/resources/usage_record"
98
102
  require "stripe/resources/usage_record_summary"
99
103
  require "stripe/resources/webhook_endpoint"