stripe 5.55.0 → 8.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +122 -2
  3. data/Gemfile +1 -0
  4. data/Makefile +1 -1
  5. data/OPENAPI_VERSION +1 -0
  6. data/README.md +37 -3
  7. data/VERSION +1 -1
  8. data/lib/data/ca-certificates.crt +1241 -1937
  9. data/lib/stripe/api_operations/create.rb +6 -2
  10. data/lib/stripe/api_operations/delete.rb +12 -7
  11. data/lib/stripe/api_operations/list.rb +6 -9
  12. data/lib/stripe/api_operations/nested_resource.rb +62 -34
  13. data/lib/stripe/api_operations/request.rb +10 -0
  14. data/lib/stripe/api_operations/save.rb +11 -3
  15. data/lib/stripe/api_operations/search.rb +6 -9
  16. data/lib/stripe/api_resource.rb +1 -1
  17. data/lib/stripe/api_resource_test_helpers.rb +2 -0
  18. data/lib/stripe/api_version.rb +8 -0
  19. data/lib/stripe/instrumentation.rb +45 -7
  20. data/lib/stripe/object_types.rb +12 -10
  21. data/lib/stripe/resources/account.rb +36 -9
  22. data/lib/stripe/resources/account_link.rb +4 -0
  23. data/lib/stripe/resources/application_fee_refund.rb +5 -0
  24. data/lib/stripe/resources/apps/secret.rb +40 -0
  25. data/lib/stripe/resources/balance.rb +11 -0
  26. data/lib/stripe/resources/balance_transaction.rb +4 -0
  27. data/lib/stripe/resources/bank_account.rb +7 -0
  28. data/lib/stripe/resources/billing_portal/configuration.rb +1 -0
  29. data/lib/stripe/resources/billing_portal/session.rb +14 -0
  30. data/lib/stripe/resources/capability.rb +3 -0
  31. data/lib/stripe/resources/card.rb +6 -3
  32. data/lib/stripe/resources/cash_balance.rb +1 -0
  33. data/lib/stripe/resources/charge.rb +15 -3
  34. data/lib/stripe/resources/checkout/session.rb +41 -5
  35. data/lib/stripe/resources/country_spec.rb +6 -0
  36. data/lib/stripe/resources/coupon.rb +3 -0
  37. data/lib/stripe/resources/credit_note.rb +27 -9
  38. data/lib/stripe/resources/customer.rb +109 -19
  39. data/lib/stripe/resources/customer_balance_transaction.rb +6 -0
  40. data/lib/stripe/resources/customer_cash_balance_transaction.rb +14 -0
  41. data/lib/stripe/resources/discount.rb +4 -0
  42. data/lib/stripe/resources/dispute.rb +17 -3
  43. data/lib/stripe/resources/event.rb +29 -0
  44. data/lib/stripe/resources/exchange_rate.rb +11 -0
  45. data/lib/stripe/resources/file.rb +7 -0
  46. data/lib/stripe/resources/file_link.rb +3 -0
  47. data/lib/stripe/resources/financial_connections/account.rb +42 -6
  48. data/lib/stripe/resources/financial_connections/account_ownership.rb +1 -0
  49. data/lib/stripe/resources/financial_connections/session.rb +1 -0
  50. data/lib/stripe/resources/funding_instructions.rb +5 -0
  51. data/lib/stripe/resources/identity/verification_report.rb +11 -0
  52. data/lib/stripe/resources/identity/verification_session.rb +31 -5
  53. data/lib/stripe/resources/invoice.rb +96 -17
  54. data/lib/stripe/resources/invoice_item.rb +11 -0
  55. data/lib/stripe/resources/issuing/authorization.rb +25 -5
  56. data/lib/stripe/resources/issuing/card.rb +78 -8
  57. data/lib/stripe/resources/issuing/cardholder.rb +3 -0
  58. data/lib/stripe/resources/issuing/dispute.rb +13 -3
  59. data/lib/stripe/resources/issuing/transaction.rb +5 -0
  60. data/lib/stripe/resources/line_item.rb +1 -0
  61. data/lib/stripe/resources/mandate.rb +1 -0
  62. data/lib/stripe/resources/payment_intent.rb +71 -13
  63. data/lib/stripe/resources/payment_link.rb +15 -3
  64. data/lib/stripe/resources/payment_method.rb +25 -5
  65. data/lib/stripe/resources/payout.rb +28 -5
  66. data/lib/stripe/resources/person.rb +6 -0
  67. data/lib/stripe/resources/plan.rb +8 -0
  68. data/lib/stripe/resources/price.rb +6 -0
  69. data/lib/stripe/resources/product.rb +8 -0
  70. data/lib/stripe/resources/promotion_code.rb +2 -0
  71. data/lib/stripe/resources/quote.rb +52 -11
  72. data/lib/stripe/resources/radar/early_fraud_warning.rb +4 -0
  73. data/lib/stripe/resources/radar/value_list.rb +3 -0
  74. data/lib/stripe/resources/radar/value_list_item.rb +3 -0
  75. data/lib/stripe/resources/refund.rb +24 -5
  76. data/lib/stripe/resources/reporting/report_run.rb +8 -0
  77. data/lib/stripe/resources/reporting/report_type.rb +8 -1
  78. data/lib/stripe/resources/reversal.rb +13 -0
  79. data/lib/stripe/resources/review.rb +14 -3
  80. data/lib/stripe/resources/setup_attempt.rb +4 -0
  81. data/lib/stripe/resources/setup_intent.rb +52 -7
  82. data/lib/stripe/resources/shipping_rate.rb +3 -0
  83. data/lib/stripe/resources/sigma/scheduled_query_run.rb +4 -0
  84. data/lib/stripe/resources/source.rb +26 -6
  85. data/lib/stripe/resources/source_transaction.rb +4 -0
  86. data/lib/stripe/resources/subscription.rb +48 -3
  87. data/lib/stripe/resources/subscription_item.rb +2 -7
  88. data/lib/stripe/resources/subscription_schedule.rb +23 -5
  89. data/lib/stripe/resources/tax_code.rb +1 -0
  90. data/lib/stripe/resources/tax_id.rb +4 -0
  91. data/lib/stripe/resources/tax_rate.rb +3 -0
  92. data/lib/stripe/resources/terminal/configuration.rb +1 -0
  93. data/lib/stripe/resources/terminal/connection_token.rb +3 -0
  94. data/lib/stripe/resources/terminal/location.rb +3 -0
  95. data/lib/stripe/resources/terminal/reader.rb +70 -11
  96. data/lib/stripe/resources/test_helpers/test_clock.rb +13 -3
  97. data/lib/stripe/resources/token.rb +22 -0
  98. data/lib/stripe/resources/topup.rb +15 -3
  99. data/lib/stripe/resources/transfer.rb +10 -11
  100. data/lib/stripe/resources/treasury/credit_reversal.rb +14 -0
  101. data/lib/stripe/resources/treasury/debit_reversal.rb +14 -0
  102. data/lib/stripe/resources/treasury/financial_account.rb +52 -0
  103. data/lib/stripe/resources/treasury/inbound_transfer.rb +94 -0
  104. data/lib/stripe/resources/treasury/outbound_payment.rb +96 -0
  105. data/lib/stripe/resources/treasury/outbound_transfer.rb +100 -0
  106. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  107. data/lib/stripe/resources/treasury/received_debit.rb +30 -0
  108. data/lib/stripe/resources/treasury/transaction.rb +13 -0
  109. data/lib/stripe/resources/treasury/transaction_entry.rb +17 -0
  110. data/lib/stripe/resources/usage_record.rb +4 -0
  111. data/lib/stripe/resources/webhook_endpoint.rb +7 -0
  112. data/lib/stripe/resources.rb +12 -10
  113. data/lib/stripe/stripe_client.rb +25 -17
  114. data/lib/stripe/stripe_object.rb +2 -2
  115. data/lib/stripe/util.rb +38 -3
  116. data/lib/stripe/version.rb +1 -1
  117. metadata +17 -11
  118. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  119. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  120. data/lib/stripe/resources/issuing/card_details.rb +0 -10
  121. data/lib/stripe/resources/order.rb +0 -33
  122. data/lib/stripe/resources/order_return.rb +0 -10
  123. data/lib/stripe/resources/recipient.rb +0 -14
  124. data/lib/stripe/resources/sku.rb +0 -13
  125. data/lib/stripe/resources/three_d_secure.rb +0 -14
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.55.0
4
+ version: 8.3.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-05-05 00:00:00.000000000 Z
11
+ date: 2023-02-16 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
@@ -40,6 +41,7 @@ files:
40
41
  - lib/stripe/api_operations/search.rb
41
42
  - lib/stripe/api_resource.rb
42
43
  - lib/stripe/api_resource_test_helpers.rb
44
+ - lib/stripe/api_version.rb
43
45
  - lib/stripe/connection_manager.rb
44
46
  - lib/stripe/error_object.rb
45
47
  - lib/stripe/errors.rb
@@ -55,13 +57,12 @@ files:
55
57
  - lib/stripe/resources/apple_pay_domain.rb
56
58
  - lib/stripe/resources/application_fee.rb
57
59
  - lib/stripe/resources/application_fee_refund.rb
60
+ - lib/stripe/resources/apps/secret.rb
58
61
  - lib/stripe/resources/balance.rb
59
62
  - lib/stripe/resources/balance_transaction.rb
60
63
  - lib/stripe/resources/bank_account.rb
61
64
  - lib/stripe/resources/billing_portal/configuration.rb
62
65
  - lib/stripe/resources/billing_portal/session.rb
63
- - lib/stripe/resources/bitcoin_receiver.rb
64
- - lib/stripe/resources/bitcoin_transaction.rb
65
66
  - lib/stripe/resources/capability.rb
66
67
  - lib/stripe/resources/card.rb
67
68
  - lib/stripe/resources/cash_balance.rb
@@ -73,6 +74,7 @@ files:
73
74
  - lib/stripe/resources/credit_note_line_item.rb
74
75
  - lib/stripe/resources/customer.rb
75
76
  - lib/stripe/resources/customer_balance_transaction.rb
77
+ - lib/stripe/resources/customer_cash_balance_transaction.rb
76
78
  - lib/stripe/resources/discount.rb
77
79
  - lib/stripe/resources/dispute.rb
78
80
  - lib/stripe/resources/ephemeral_key.rb
@@ -92,15 +94,12 @@ files:
92
94
  - lib/stripe/resources/invoice_line_item.rb
93
95
  - lib/stripe/resources/issuing/authorization.rb
94
96
  - lib/stripe/resources/issuing/card.rb
95
- - lib/stripe/resources/issuing/card_details.rb
96
97
  - lib/stripe/resources/issuing/cardholder.rb
97
98
  - lib/stripe/resources/issuing/dispute.rb
98
99
  - lib/stripe/resources/issuing/transaction.rb
99
100
  - lib/stripe/resources/line_item.rb
100
101
  - lib/stripe/resources/login_link.rb
101
102
  - lib/stripe/resources/mandate.rb
102
- - lib/stripe/resources/order.rb
103
- - lib/stripe/resources/order_return.rb
104
103
  - lib/stripe/resources/payment_intent.rb
105
104
  - lib/stripe/resources/payment_link.rb
106
105
  - lib/stripe/resources/payment_method.rb
@@ -114,7 +113,6 @@ files:
114
113
  - lib/stripe/resources/radar/early_fraud_warning.rb
115
114
  - lib/stripe/resources/radar/value_list.rb
116
115
  - lib/stripe/resources/radar/value_list_item.rb
117
- - lib/stripe/resources/recipient.rb
118
116
  - lib/stripe/resources/recipient_transfer.rb
119
117
  - lib/stripe/resources/refund.rb
120
118
  - lib/stripe/resources/reporting/report_run.rb
@@ -125,7 +123,6 @@ files:
125
123
  - lib/stripe/resources/setup_intent.rb
126
124
  - lib/stripe/resources/shipping_rate.rb
127
125
  - lib/stripe/resources/sigma/scheduled_query_run.rb
128
- - lib/stripe/resources/sku.rb
129
126
  - lib/stripe/resources/source.rb
130
127
  - lib/stripe/resources/source_transaction.rb
131
128
  - lib/stripe/resources/subscription.rb
@@ -139,10 +136,19 @@ files:
139
136
  - lib/stripe/resources/terminal/location.rb
140
137
  - lib/stripe/resources/terminal/reader.rb
141
138
  - lib/stripe/resources/test_helpers/test_clock.rb
142
- - lib/stripe/resources/three_d_secure.rb
143
139
  - lib/stripe/resources/token.rb
144
140
  - lib/stripe/resources/topup.rb
145
141
  - lib/stripe/resources/transfer.rb
142
+ - lib/stripe/resources/treasury/credit_reversal.rb
143
+ - lib/stripe/resources/treasury/debit_reversal.rb
144
+ - lib/stripe/resources/treasury/financial_account.rb
145
+ - lib/stripe/resources/treasury/inbound_transfer.rb
146
+ - lib/stripe/resources/treasury/outbound_payment.rb
147
+ - lib/stripe/resources/treasury/outbound_transfer.rb
148
+ - lib/stripe/resources/treasury/received_credit.rb
149
+ - lib/stripe/resources/treasury/received_debit.rb
150
+ - lib/stripe/resources/treasury/transaction.rb
151
+ - lib/stripe/resources/treasury/transaction_entry.rb
146
152
  - lib/stripe/resources/usage_record.rb
147
153
  - lib/stripe/resources/usage_record_summary.rb
148
154
  - lib/stripe/resources/webhook_endpoint.rb
@@ -181,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
187
  - !ruby/object:Gem::Version
182
188
  version: '0'
183
189
  requirements: []
184
- rubygems_version: 3.3.7
190
+ rubygems_version: 3.3.26
185
191
  signing_key:
186
192
  specification_version: 4
187
193
  summary: Ruby bindings for the Stripe API
@@ -1,24 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # Directly creating or retrieving BitcoinReceivers is deprecated. Please use
6
- # the Sources API instead: https://stripe.com/docs/sources/bitcoin
7
- class BitcoinReceiver < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "bitcoin_receiver"
11
-
12
- def self.resource_url
13
- "/v1/bitcoin/receivers"
14
- end
15
-
16
- def resource_url
17
- if respond_to?(:customer) && !customer.nil? && customer != ""
18
- "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
19
- else
20
- "#{self.class.resource_url}/#{CGI.escape(id)}"
21
- end
22
- end
23
- end
24
- end
@@ -1,16 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # Directly retrieving BitcoinTransactions is deprecated. Please use
6
- # the Sources API instead: https://stripe.com/docs/sources/bitcoin
7
- class BitcoinTransaction < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "bitcoin_transaction"
11
-
12
- def self.resource_url
13
- "/v1/bitcoin/transactions"
14
- end
15
- end
16
- end
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Issuing
6
- class CardDetails < StripeObject
7
- OBJECT_NAME = "issuing.card_details"
8
- end
9
- end
10
- end
@@ -1,33 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class Order < APIResource
6
- extend Stripe::APIOperations::Create
7
- extend Stripe::APIOperations::List
8
- include Stripe::APIOperations::Save
9
-
10
- OBJECT_NAME = "order"
11
-
12
- custom_method :pay, http_verb: :post
13
- custom_method :return_order, http_verb: :post, http_path: "returns"
14
-
15
- def pay(params = {}, opts = {})
16
- request_stripe_object(
17
- method: :post,
18
- path: resource_url + "/pay",
19
- params: params,
20
- opts: opts
21
- )
22
- end
23
-
24
- def return_order(params = {}, opts = {})
25
- request_stripe_object(
26
- method: :post,
27
- path: resource_url + "/returns",
28
- params: params,
29
- opts: opts
30
- )
31
- end
32
- end
33
- end
@@ -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
@@ -1,14 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # Recipients objects are deprecated. Please use Stripe Connect instead.
6
- class Recipient < APIResource
7
- extend Stripe::APIOperations::Create
8
- include Stripe::APIOperations::Delete
9
- extend Stripe::APIOperations::List
10
- include Stripe::APIOperations::Save
11
-
12
- OBJECT_NAME = "recipient"
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class SKU < APIResource
6
- extend Stripe::APIOperations::Create
7
- include Stripe::APIOperations::Delete
8
- extend Stripe::APIOperations::List
9
- include Stripe::APIOperations::Save
10
-
11
- OBJECT_NAME = "sku"
12
- end
13
- end
@@ -1,14 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class ThreeDSecure < APIResource
6
- extend Stripe::APIOperations::Create
7
-
8
- OBJECT_NAME = "three_d_secure"
9
-
10
- def self.resource_url
11
- "/v1/3d_secure"
12
- end
13
- end
14
- end