stripe 5.26.0 → 5.55.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +126 -0
  3. data/Gemfile +0 -1
  4. data/Makefile +7 -0
  5. data/README.md +10 -5
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_operations/request.rb +35 -2
  8. data/lib/stripe/api_operations/search.rb +19 -0
  9. data/lib/stripe/api_resource.rb +10 -17
  10. data/lib/stripe/api_resource_test_helpers.rb +47 -0
  11. data/lib/stripe/connection_manager.rb +51 -10
  12. data/lib/stripe/error_object.rb +2 -3
  13. data/lib/stripe/instrumentation.rb +3 -1
  14. data/lib/stripe/oauth.rb +4 -3
  15. data/lib/stripe/object_types.rb +19 -1
  16. data/lib/stripe/resources/account.rb +3 -8
  17. data/lib/stripe/resources/application_fee_refund.rb +2 -1
  18. data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
  19. data/lib/stripe/resources/bitcoin_transaction.rb +3 -2
  20. data/lib/stripe/resources/capability.rb +2 -1
  21. data/lib/stripe/resources/cash_balance.rb +22 -0
  22. data/lib/stripe/resources/charge.rb +9 -0
  23. data/lib/stripe/resources/checkout/session.rb +11 -0
  24. data/lib/stripe/resources/credit_note_line_item.rb +1 -0
  25. data/lib/stripe/resources/customer.rb +39 -1
  26. data/lib/stripe/resources/customer_balance_transaction.rb +3 -2
  27. data/lib/stripe/resources/discount.rb +1 -0
  28. data/lib/stripe/resources/file.rb +2 -1
  29. data/lib/stripe/resources/financial_connections/account.rb +31 -0
  30. data/lib/stripe/resources/financial_connections/account_owner.rb +10 -0
  31. data/lib/stripe/resources/financial_connections/account_ownership.rb +10 -0
  32. data/lib/stripe/resources/financial_connections/session.rb +12 -0
  33. data/lib/stripe/resources/funding_instructions.rb +16 -0
  34. data/lib/stripe/resources/identity/verification_report.rb +12 -0
  35. data/lib/stripe/resources/identity/verification_session.rb +35 -0
  36. data/lib/stripe/resources/invoice.rb +9 -0
  37. data/lib/stripe/resources/invoice_line_item.rb +1 -0
  38. data/lib/stripe/resources/issuing/card_details.rb +2 -1
  39. data/lib/stripe/resources/line_item.rb +1 -0
  40. data/lib/stripe/resources/login_link.rb +1 -0
  41. data/lib/stripe/resources/payment_intent.rb +39 -0
  42. data/lib/stripe/resources/payment_link.rb +23 -0
  43. data/lib/stripe/resources/payout.rb +10 -0
  44. data/lib/stripe/resources/person.rb +1 -0
  45. data/lib/stripe/resources/price.rb +9 -0
  46. data/lib/stripe/resources/product.rb +9 -0
  47. data/lib/stripe/resources/quote.rb +105 -0
  48. data/lib/stripe/resources/refund.rb +30 -0
  49. data/lib/stripe/resources/reversal.rb +3 -2
  50. data/lib/stripe/resources/setup_intent.rb +10 -0
  51. data/lib/stripe/resources/shipping_rate.rb +12 -0
  52. data/lib/stripe/resources/source_transaction.rb +1 -0
  53. data/lib/stripe/resources/subscription.rb +9 -0
  54. data/lib/stripe/resources/tax_code.rb +10 -0
  55. data/lib/stripe/resources/tax_id.rb +1 -0
  56. data/lib/stripe/resources/terminal/configuration.rb +15 -0
  57. data/lib/stripe/resources/terminal/reader.rb +60 -0
  58. data/lib/stripe/resources/test_helpers/test_clock.rb +25 -0
  59. data/lib/stripe/resources/usage_record.rb +1 -0
  60. data/lib/stripe/resources/usage_record_summary.rb +1 -0
  61. data/lib/stripe/resources.rb +16 -0
  62. data/lib/stripe/search_result_object.rb +86 -0
  63. data/lib/stripe/stripe_client.rb +252 -114
  64. data/lib/stripe/stripe_configuration.rb +35 -8
  65. data/lib/stripe/stripe_object.rb +23 -0
  66. data/lib/stripe/stripe_response.rb +80 -52
  67. data/lib/stripe/util.rb +62 -7
  68. data/lib/stripe/version.rb +1 -1
  69. data/lib/stripe.rb +27 -22
  70. data/stripe.gemspec +12 -5
  71. metadata +26 -196
  72. data/.editorconfig +0 -10
  73. data/.gitattributes +0 -4
  74. data/.github/ISSUE_TEMPLATE.md +0 -5
  75. data/.gitignore +0 -8
  76. data/.rubocop.yml +0 -80
  77. data/.rubocop_todo.yml +0 -33
  78. data/.travis.yml +0 -38
  79. data/.vscode/extensions.json +0 -7
  80. data/.vscode/settings.json +0 -8
  81. data/test/openapi/README.md +0 -9
  82. data/test/stripe/account_link_test.rb +0 -18
  83. data/test/stripe/account_test.rb +0 -412
  84. data/test/stripe/alipay_account_test.rb +0 -37
  85. data/test/stripe/api_operations_test.rb +0 -80
  86. data/test/stripe/api_resource_test.rb +0 -646
  87. data/test/stripe/apple_pay_domain_test.rb +0 -46
  88. data/test/stripe/application_fee_refund_test.rb +0 -37
  89. data/test/stripe/application_fee_test.rb +0 -58
  90. data/test/stripe/balance_test.rb +0 -13
  91. data/test/stripe/balance_transaction_test.rb +0 -20
  92. data/test/stripe/bank_account_test.rb +0 -36
  93. data/test/stripe/billing_portal/session_test.rb +0 -18
  94. data/test/stripe/capability_test.rb +0 -45
  95. data/test/stripe/charge_test.rb +0 -64
  96. data/test/stripe/checkout/session_test.rb +0 -53
  97. data/test/stripe/connection_manager_test.rb +0 -163
  98. data/test/stripe/country_spec_test.rb +0 -20
  99. data/test/stripe/coupon_test.rb +0 -61
  100. data/test/stripe/credit_note_test.rb +0 -90
  101. data/test/stripe/customer_balance_transaction_test.rb +0 -37
  102. data/test/stripe/customer_card_test.rb +0 -48
  103. data/test/stripe/customer_test.rb +0 -226
  104. data/test/stripe/dispute_test.rb +0 -51
  105. data/test/stripe/ephemeral_key_test.rb +0 -93
  106. data/test/stripe/errors_test.rb +0 -53
  107. data/test/stripe/exchange_rate_test.rb +0 -20
  108. data/test/stripe/file_link_test.rb +0 -41
  109. data/test/stripe/file_test.rb +0 -87
  110. data/test/stripe/instrumentation_test.rb +0 -74
  111. data/test/stripe/invoice_item_test.rb +0 -66
  112. data/test/stripe/invoice_line_item_test.rb +0 -8
  113. data/test/stripe/invoice_test.rb +0 -229
  114. data/test/stripe/issuing/authorization_test.rb +0 -72
  115. data/test/stripe/issuing/card_test.rb +0 -74
  116. data/test/stripe/issuing/cardholder_test.rb +0 -53
  117. data/test/stripe/issuing/dispute_test.rb +0 -54
  118. data/test/stripe/issuing/transaction_test.rb +0 -48
  119. data/test/stripe/list_object_test.rb +0 -202
  120. data/test/stripe/login_link_test.rb +0 -37
  121. data/test/stripe/mandate_test.rb +0 -14
  122. data/test/stripe/multipart_encoder_test.rb +0 -130
  123. data/test/stripe/oauth_test.rb +0 -104
  124. data/test/stripe/order_return_test.rb +0 -21
  125. data/test/stripe/order_test.rb +0 -82
  126. data/test/stripe/payment_intent_test.rb +0 -107
  127. data/test/stripe/payment_method_test.rb +0 -84
  128. data/test/stripe/payout_test.rb +0 -57
  129. data/test/stripe/person_test.rb +0 -46
  130. data/test/stripe/plan_test.rb +0 -98
  131. data/test/stripe/price_test.rb +0 -48
  132. data/test/stripe/product_test.rb +0 -58
  133. data/test/stripe/promotion_code_test.rb +0 -42
  134. data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
  135. data/test/stripe/radar/value_list_item_test.rb +0 -48
  136. data/test/stripe/radar/value_list_test.rb +0 -61
  137. data/test/stripe/recipient_test.rb +0 -62
  138. data/test/stripe/refund_test.rb +0 -39
  139. data/test/stripe/reporting/report_run_test.rb +0 -33
  140. data/test/stripe/reporting/report_type_test.rb +0 -22
  141. data/test/stripe/reversal_test.rb +0 -43
  142. data/test/stripe/review_test.rb +0 -27
  143. data/test/stripe/setup_attempt_test.rb +0 -16
  144. data/test/stripe/setup_intent_test.rb +0 -84
  145. data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
  146. data/test/stripe/sku_test.rb +0 -60
  147. data/test/stripe/source_test.rb +0 -119
  148. data/test/stripe/stripe_client_test.rb +0 -1291
  149. data/test/stripe/stripe_configuration_test.rb +0 -128
  150. data/test/stripe/stripe_object_test.rb +0 -500
  151. data/test/stripe/stripe_response_test.rb +0 -95
  152. data/test/stripe/subscription_item_test.rb +0 -84
  153. data/test/stripe/subscription_schedule_test.rb +0 -82
  154. data/test/stripe/subscription_test.rb +0 -80
  155. data/test/stripe/tax_id_test.rb +0 -31
  156. data/test/stripe/tax_rate_test.rb +0 -43
  157. data/test/stripe/terminal/connection_token_test.rb +0 -16
  158. data/test/stripe/terminal/location_test.rb +0 -68
  159. data/test/stripe/terminal/reader_test.rb +0 -62
  160. data/test/stripe/three_d_secure_test.rb +0 -23
  161. data/test/stripe/topup_test.rb +0 -62
  162. data/test/stripe/transfer_test.rb +0 -88
  163. data/test/stripe/usage_record_summary_test.rb +0 -29
  164. data/test/stripe/util_test.rb +0 -402
  165. data/test/stripe/webhook_endpoint_test.rb +0 -59
  166. data/test/stripe/webhook_test.rb +0 -135
  167. data/test/stripe_mock.rb +0 -78
  168. data/test/stripe_test.rb +0 -119
  169. data/test/test_data.rb +0 -61
  170. data/test/test_helper.rb +0 -75
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.26.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: 2020-09-30 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.
@@ -18,21 +18,13 @@ executables:
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - ".editorconfig"
22
- - ".gitattributes"
23
- - ".github/ISSUE_TEMPLATE.md"
24
- - ".gitignore"
25
- - ".rubocop.yml"
26
- - ".rubocop_todo.yml"
27
- - ".travis.yml"
28
- - ".vscode/extensions.json"
29
- - ".vscode/settings.json"
30
21
  - CHANGELOG.md
31
22
  - CODE_OF_CONDUCT.md
32
23
  - CONTRIBUTORS
33
24
  - Gemfile
34
25
  - History.txt
35
26
  - LICENSE
27
+ - Makefile
36
28
  - README.md
37
29
  - Rakefile
38
30
  - VERSION
@@ -45,7 +37,9 @@ files:
45
37
  - lib/stripe/api_operations/nested_resource.rb
46
38
  - lib/stripe/api_operations/request.rb
47
39
  - lib/stripe/api_operations/save.rb
40
+ - lib/stripe/api_operations/search.rb
48
41
  - lib/stripe/api_resource.rb
42
+ - lib/stripe/api_resource_test_helpers.rb
49
43
  - lib/stripe/connection_manager.rb
50
44
  - lib/stripe/error_object.rb
51
45
  - lib/stripe/errors.rb
@@ -64,11 +58,13 @@ files:
64
58
  - lib/stripe/resources/balance.rb
65
59
  - lib/stripe/resources/balance_transaction.rb
66
60
  - lib/stripe/resources/bank_account.rb
61
+ - lib/stripe/resources/billing_portal/configuration.rb
67
62
  - lib/stripe/resources/billing_portal/session.rb
68
63
  - lib/stripe/resources/bitcoin_receiver.rb
69
64
  - lib/stripe/resources/bitcoin_transaction.rb
70
65
  - lib/stripe/resources/capability.rb
71
66
  - lib/stripe/resources/card.rb
67
+ - lib/stripe/resources/cash_balance.rb
72
68
  - lib/stripe/resources/charge.rb
73
69
  - lib/stripe/resources/checkout/session.rb
74
70
  - lib/stripe/resources/country_spec.rb
@@ -84,6 +80,13 @@ files:
84
80
  - lib/stripe/resources/exchange_rate.rb
85
81
  - lib/stripe/resources/file.rb
86
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
87
+ - lib/stripe/resources/funding_instructions.rb
88
+ - lib/stripe/resources/identity/verification_report.rb
89
+ - lib/stripe/resources/identity/verification_session.rb
87
90
  - lib/stripe/resources/invoice.rb
88
91
  - lib/stripe/resources/invoice_item.rb
89
92
  - lib/stripe/resources/invoice_line_item.rb
@@ -99,6 +102,7 @@ files:
99
102
  - lib/stripe/resources/order.rb
100
103
  - lib/stripe/resources/order_return.rb
101
104
  - lib/stripe/resources/payment_intent.rb
105
+ - lib/stripe/resources/payment_link.rb
102
106
  - lib/stripe/resources/payment_method.rb
103
107
  - lib/stripe/resources/payout.rb
104
108
  - lib/stripe/resources/person.rb
@@ -106,6 +110,7 @@ files:
106
110
  - lib/stripe/resources/price.rb
107
111
  - lib/stripe/resources/product.rb
108
112
  - lib/stripe/resources/promotion_code.rb
113
+ - lib/stripe/resources/quote.rb
109
114
  - lib/stripe/resources/radar/early_fraud_warning.rb
110
115
  - lib/stripe/resources/radar/value_list.rb
111
116
  - lib/stripe/resources/radar/value_list_item.rb
@@ -118,6 +123,7 @@ files:
118
123
  - lib/stripe/resources/review.rb
119
124
  - lib/stripe/resources/setup_attempt.rb
120
125
  - lib/stripe/resources/setup_intent.rb
126
+ - lib/stripe/resources/shipping_rate.rb
121
127
  - lib/stripe/resources/sigma/scheduled_query_run.rb
122
128
  - lib/stripe/resources/sku.rb
123
129
  - lib/stripe/resources/source.rb
@@ -125,11 +131,14 @@ files:
125
131
  - lib/stripe/resources/subscription.rb
126
132
  - lib/stripe/resources/subscription_item.rb
127
133
  - lib/stripe/resources/subscription_schedule.rb
134
+ - lib/stripe/resources/tax_code.rb
128
135
  - lib/stripe/resources/tax_id.rb
129
136
  - lib/stripe/resources/tax_rate.rb
137
+ - lib/stripe/resources/terminal/configuration.rb
130
138
  - lib/stripe/resources/terminal/connection_token.rb
131
139
  - lib/stripe/resources/terminal/location.rb
132
140
  - lib/stripe/resources/terminal/reader.rb
141
+ - lib/stripe/resources/test_helpers/test_clock.rb
133
142
  - lib/stripe/resources/three_d_secure.rb
134
143
  - lib/stripe/resources/token.rb
135
144
  - lib/stripe/resources/topup.rb
@@ -137,6 +146,7 @@ files:
137
146
  - lib/stripe/resources/usage_record.rb
138
147
  - lib/stripe/resources/usage_record_summary.rb
139
148
  - lib/stripe/resources/webhook_endpoint.rb
149
+ - lib/stripe/search_result_object.rb
140
150
  - lib/stripe/singleton_api_resource.rb
141
151
  - lib/stripe/stripe_client.rb
142
152
  - lib/stripe/stripe_configuration.rb
@@ -146,105 +156,15 @@ files:
146
156
  - lib/stripe/version.rb
147
157
  - lib/stripe/webhook.rb
148
158
  - stripe.gemspec
149
- - test/openapi/README.md
150
- - test/stripe/account_link_test.rb
151
- - test/stripe/account_test.rb
152
- - test/stripe/alipay_account_test.rb
153
- - test/stripe/api_operations_test.rb
154
- - test/stripe/api_resource_test.rb
155
- - test/stripe/apple_pay_domain_test.rb
156
- - test/stripe/application_fee_refund_test.rb
157
- - test/stripe/application_fee_test.rb
158
- - test/stripe/balance_test.rb
159
- - test/stripe/balance_transaction_test.rb
160
- - test/stripe/bank_account_test.rb
161
- - test/stripe/billing_portal/session_test.rb
162
- - test/stripe/capability_test.rb
163
- - test/stripe/charge_test.rb
164
- - test/stripe/checkout/session_test.rb
165
- - test/stripe/connection_manager_test.rb
166
- - test/stripe/country_spec_test.rb
167
- - test/stripe/coupon_test.rb
168
- - test/stripe/credit_note_test.rb
169
- - test/stripe/customer_balance_transaction_test.rb
170
- - test/stripe/customer_card_test.rb
171
- - test/stripe/customer_test.rb
172
- - test/stripe/dispute_test.rb
173
- - test/stripe/ephemeral_key_test.rb
174
- - test/stripe/errors_test.rb
175
- - test/stripe/exchange_rate_test.rb
176
- - test/stripe/file_link_test.rb
177
- - test/stripe/file_test.rb
178
- - test/stripe/instrumentation_test.rb
179
- - test/stripe/invoice_item_test.rb
180
- - test/stripe/invoice_line_item_test.rb
181
- - test/stripe/invoice_test.rb
182
- - test/stripe/issuing/authorization_test.rb
183
- - test/stripe/issuing/card_test.rb
184
- - test/stripe/issuing/cardholder_test.rb
185
- - test/stripe/issuing/dispute_test.rb
186
- - test/stripe/issuing/transaction_test.rb
187
- - test/stripe/list_object_test.rb
188
- - test/stripe/login_link_test.rb
189
- - test/stripe/mandate_test.rb
190
- - test/stripe/multipart_encoder_test.rb
191
- - test/stripe/oauth_test.rb
192
- - test/stripe/order_return_test.rb
193
- - test/stripe/order_test.rb
194
- - test/stripe/payment_intent_test.rb
195
- - test/stripe/payment_method_test.rb
196
- - test/stripe/payout_test.rb
197
- - test/stripe/person_test.rb
198
- - test/stripe/plan_test.rb
199
- - test/stripe/price_test.rb
200
- - test/stripe/product_test.rb
201
- - test/stripe/promotion_code_test.rb
202
- - test/stripe/radar/early_fraud_warning_test.rb
203
- - test/stripe/radar/value_list_item_test.rb
204
- - test/stripe/radar/value_list_test.rb
205
- - test/stripe/recipient_test.rb
206
- - test/stripe/refund_test.rb
207
- - test/stripe/reporting/report_run_test.rb
208
- - test/stripe/reporting/report_type_test.rb
209
- - test/stripe/reversal_test.rb
210
- - test/stripe/review_test.rb
211
- - test/stripe/setup_attempt_test.rb
212
- - test/stripe/setup_intent_test.rb
213
- - test/stripe/sigma/scheduled_query_run_test.rb
214
- - test/stripe/sku_test.rb
215
- - test/stripe/source_test.rb
216
- - test/stripe/stripe_client_test.rb
217
- - test/stripe/stripe_configuration_test.rb
218
- - test/stripe/stripe_object_test.rb
219
- - test/stripe/stripe_response_test.rb
220
- - test/stripe/subscription_item_test.rb
221
- - test/stripe/subscription_schedule_test.rb
222
- - test/stripe/subscription_test.rb
223
- - test/stripe/tax_id_test.rb
224
- - test/stripe/tax_rate_test.rb
225
- - test/stripe/terminal/connection_token_test.rb
226
- - test/stripe/terminal/location_test.rb
227
- - test/stripe/terminal/reader_test.rb
228
- - test/stripe/three_d_secure_test.rb
229
- - test/stripe/topup_test.rb
230
- - test/stripe/transfer_test.rb
231
- - test/stripe/usage_record_summary_test.rb
232
- - test/stripe/util_test.rb
233
- - test/stripe/webhook_endpoint_test.rb
234
- - test/stripe/webhook_test.rb
235
- - test/stripe_mock.rb
236
- - test/stripe_test.rb
237
- - test/test_data.rb
238
- - test/test_helper.rb
239
- homepage: https://stripe.com/docs/api/ruby
159
+ homepage: https://stripe.com/docs/api?lang=ruby
240
160
  licenses:
241
161
  - MIT
242
162
  metadata:
243
163
  bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
244
164
  changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
245
- documentation_uri: https://stripe.com/docs/api/ruby
165
+ documentation_uri: https://stripe.com/docs/api?lang=ruby
246
166
  github_repo: ssh://github.com/stripe/stripe-ruby
247
- homepage_uri: https://stripe.com/docs/api/ruby
167
+ homepage_uri: https://stripe.com/docs/api?lang=ruby
248
168
  source_code_uri: https://github.com/stripe/stripe-ruby
249
169
  post_install_message:
250
170
  rdoc_options: []
@@ -261,98 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
181
  - !ruby/object:Gem::Version
262
182
  version: '0'
263
183
  requirements: []
264
- rubygems_version: 3.1.2
184
+ rubygems_version: 3.3.7
265
185
  signing_key:
266
186
  specification_version: 4
267
187
  summary: Ruby bindings for the Stripe API
268
- test_files:
269
- - test/openapi/README.md
270
- - test/stripe/account_link_test.rb
271
- - test/stripe/account_test.rb
272
- - test/stripe/alipay_account_test.rb
273
- - test/stripe/api_operations_test.rb
274
- - test/stripe/api_resource_test.rb
275
- - test/stripe/apple_pay_domain_test.rb
276
- - test/stripe/application_fee_refund_test.rb
277
- - test/stripe/application_fee_test.rb
278
- - test/stripe/balance_test.rb
279
- - test/stripe/balance_transaction_test.rb
280
- - test/stripe/bank_account_test.rb
281
- - test/stripe/billing_portal/session_test.rb
282
- - test/stripe/capability_test.rb
283
- - test/stripe/charge_test.rb
284
- - test/stripe/checkout/session_test.rb
285
- - test/stripe/connection_manager_test.rb
286
- - test/stripe/country_spec_test.rb
287
- - test/stripe/coupon_test.rb
288
- - test/stripe/credit_note_test.rb
289
- - test/stripe/customer_balance_transaction_test.rb
290
- - test/stripe/customer_card_test.rb
291
- - test/stripe/customer_test.rb
292
- - test/stripe/dispute_test.rb
293
- - test/stripe/ephemeral_key_test.rb
294
- - test/stripe/errors_test.rb
295
- - test/stripe/exchange_rate_test.rb
296
- - test/stripe/file_link_test.rb
297
- - test/stripe/file_test.rb
298
- - test/stripe/instrumentation_test.rb
299
- - test/stripe/invoice_item_test.rb
300
- - test/stripe/invoice_line_item_test.rb
301
- - test/stripe/invoice_test.rb
302
- - test/stripe/issuing/authorization_test.rb
303
- - test/stripe/issuing/card_test.rb
304
- - test/stripe/issuing/cardholder_test.rb
305
- - test/stripe/issuing/dispute_test.rb
306
- - test/stripe/issuing/transaction_test.rb
307
- - test/stripe/list_object_test.rb
308
- - test/stripe/login_link_test.rb
309
- - test/stripe/mandate_test.rb
310
- - test/stripe/multipart_encoder_test.rb
311
- - test/stripe/oauth_test.rb
312
- - test/stripe/order_return_test.rb
313
- - test/stripe/order_test.rb
314
- - test/stripe/payment_intent_test.rb
315
- - test/stripe/payment_method_test.rb
316
- - test/stripe/payout_test.rb
317
- - test/stripe/person_test.rb
318
- - test/stripe/plan_test.rb
319
- - test/stripe/price_test.rb
320
- - test/stripe/product_test.rb
321
- - test/stripe/promotion_code_test.rb
322
- - test/stripe/radar/early_fraud_warning_test.rb
323
- - test/stripe/radar/value_list_item_test.rb
324
- - test/stripe/radar/value_list_test.rb
325
- - test/stripe/recipient_test.rb
326
- - test/stripe/refund_test.rb
327
- - test/stripe/reporting/report_run_test.rb
328
- - test/stripe/reporting/report_type_test.rb
329
- - test/stripe/reversal_test.rb
330
- - test/stripe/review_test.rb
331
- - test/stripe/setup_attempt_test.rb
332
- - test/stripe/setup_intent_test.rb
333
- - test/stripe/sigma/scheduled_query_run_test.rb
334
- - test/stripe/sku_test.rb
335
- - test/stripe/source_test.rb
336
- - test/stripe/stripe_client_test.rb
337
- - test/stripe/stripe_configuration_test.rb
338
- - test/stripe/stripe_object_test.rb
339
- - test/stripe/stripe_response_test.rb
340
- - test/stripe/subscription_item_test.rb
341
- - test/stripe/subscription_schedule_test.rb
342
- - test/stripe/subscription_test.rb
343
- - test/stripe/tax_id_test.rb
344
- - test/stripe/tax_rate_test.rb
345
- - test/stripe/terminal/connection_token_test.rb
346
- - test/stripe/terminal/location_test.rb
347
- - test/stripe/terminal/reader_test.rb
348
- - test/stripe/three_d_secure_test.rb
349
- - test/stripe/topup_test.rb
350
- - test/stripe/transfer_test.rb
351
- - test/stripe/usage_record_summary_test.rb
352
- - test/stripe/util_test.rb
353
- - test/stripe/webhook_endpoint_test.rb
354
- - test/stripe/webhook_test.rb
355
- - test/stripe_mock.rb
356
- - test/stripe_test.rb
357
- - test/test_data.rb
358
- - test/test_helper.rb
188
+ test_files: []
data/.editorconfig DELETED
@@ -1,10 +0,0 @@
1
- # see http://editorconfig.org/
2
-
3
- root = true
4
-
5
- [*]
6
- indent_style = space
7
- indent_size = 2
8
- end_of_line = lf
9
- charset = utf-8
10
- insert_final_newline = true
data/.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- # may be useful in hiding large schema changes in pull request diffs (but not
2
- # using it for now)
3
- spec/*.json binary
4
- spec/*.yaml binary
@@ -1,5 +0,0 @@
1
- Please only file issues here that you believe represent actual bugs or feature requests for the Stripe Ruby library.
2
-
3
- If you're having general trouble with your Stripe integration, please reach out to support using the form at https://support.stripe.com/ (preferred) or via email to support@stripe.com.
4
-
5
- If you are reporting a bug, please include your Ruby version and the version of the Stripe Ruby library you're using, as well as any other details that may be helpful in reproducing the problem.
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /stripe-*.gem
2
- /Gemfile.lock
3
- .rvmrc
4
- Gemfile.lock
5
- tags
6
- /.bundle/
7
- coverage/
8
- .idea/
data/.rubocop.yml DELETED
@@ -1,80 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- DisplayCopNames: true
5
- TargetRubyVersion: 2.3
6
-
7
- Exclude:
8
- # brandur: Exclude ephmeral script-like files that I use to try and
9
- # reproduce problems with the library. If you know of a better way of doing
10
- # this (e.g. exclude files not tracked by Git), feel free to change it.
11
- - "example_*"
12
-
13
- Layout/CaseIndentation:
14
- EnforcedStyle: end
15
-
16
- Layout/FirstArrayElementIndentation:
17
- EnforcedStyle: consistent
18
-
19
- Layout/FirstHashElementIndentation:
20
- EnforcedStyle: consistent
21
-
22
- # This can be re-enabled once we're 2.3+ only and can use the squiggly heredoc
23
- # operator. Prior to that, Rubocop recommended bringing in a library like
24
- # ActiveSupport to get heredoc indentation, which is just terrible.
25
- Layout/HeredocIndentation:
26
- Enabled: false
27
-
28
- Layout/LineLength:
29
- Exclude:
30
- - "lib/stripe/resources/**/*.rb"
31
- - "test/**/*.rb"
32
-
33
- Metrics/BlockLength:
34
- Max: 40
35
- Exclude:
36
- # `context` in tests are blocks and get quite large, so exclude the test
37
- # directory from having to adhere to this rule.
38
- - "test/**/*.rb"
39
-
40
- Metrics/ClassLength:
41
- Exclude:
42
- # Test classes get quite large, so exclude the test directory from having
43
- # to adhere to this rule.
44
- - "test/**/*.rb"
45
-
46
- Metrics/MethodLength:
47
- # There's ~2 long methods in `StripeClient` and one in `NestedResource`. If
48
- # we want to truncate those a little, we could move this to be closer to ~30
49
- # (but the default of 10 is probably too short).
50
- Max: 55
51
-
52
- Metrics/ModuleLength:
53
- Enabled: false
54
-
55
- Style/AccessModifierDeclarations:
56
- EnforcedStyle: inline
57
-
58
- Style/FrozenStringLiteralComment:
59
- EnforcedStyle: always
60
-
61
- Style/HashEachMethods:
62
- Enabled: true
63
-
64
- Style/HashTransformKeys:
65
- Enabled: true
66
-
67
- Style/HashTransformValues:
68
- Enabled: true
69
-
70
- Style/NumericPredicate:
71
- Enabled: false
72
-
73
- Style/StringLiterals:
74
- EnforcedStyle: double_quotes
75
-
76
- Style/TrailingCommaInArrayLiteral:
77
- EnforcedStyleForMultiline: consistent_comma
78
-
79
- Style/TrailingCommaInHashLiteral:
80
- EnforcedStyleForMultiline: consistent_comma
data/.rubocop_todo.yml DELETED
@@ -1,33 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-07-30 09:56:31 +0800 using RuboCop version 0.73.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 23
10
- Metrics/AbcSize:
11
- Max: 51
12
-
13
- # Offense count: 12
14
- # Configuration parameters: CountComments.
15
- Metrics/ClassLength:
16
- Max: 694
17
-
18
- # Offense count: 12
19
- Metrics/CyclomaticComplexity:
20
- Max: 15
21
-
22
- # Offense count: 6
23
- # Configuration parameters: CountKeywordArgs.
24
- Metrics/ParameterLists:
25
- Max: 7
26
-
27
- # Offense count: 8
28
- Metrics/PerceivedComplexity:
29
- Max: 17
30
-
31
- # Offense count: 86
32
- Style/Documentation:
33
- Enabled: false
data/.travis.yml DELETED
@@ -1,38 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6
8
- - 2.7
9
- - jruby-9.2.7.0
10
-
11
- notifications:
12
- email:
13
- on_success: never
14
-
15
- env:
16
- global:
17
- # If changing this number, please also change it in `test/test_helper.rb`.
18
- - STRIPE_MOCK_VERSION=0.99.0
19
-
20
- cache:
21
- directories:
22
- - stripe-mock
23
-
24
- before_install:
25
- # Unpack and start stripe-mock so that the test suite can talk to it
26
- - |
27
- if [ ! -d "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}" ]; then
28
- mkdir -p stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/
29
- curl -L "https://github.com/stripe/stripe-mock/releases/download/v${STRIPE_MOCK_VERSION}/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -o "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz"
30
- tar -zxf "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -C "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/"
31
- fi
32
- - |
33
- stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/stripe-mock > /dev/null &
34
- STRIPE_MOCK_PID=$!
35
- - export PATH="${PATH}:${PWD}/stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}"
36
-
37
- script:
38
- - bundle exec rake
@@ -1,7 +0,0 @@
1
- {
2
- "recommendations": [
3
- "rebornix.ruby",
4
- "misogi.ruby-rubocop",
5
- "EditorConfig.editorconfig"
6
- ]
7
- }
@@ -1,8 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "files.trimTrailingWhitespace": true,
4
-
5
- // Rubocop settings
6
- "ruby.rubocop.configFilePath": ".rubocop.yml",
7
- "ruby.rubocop.onSave": true
8
- }
@@ -1,9 +0,0 @@
1
- ## Using custom OpenAPI specification and fixtures files
2
-
3
- You can place custom OpenAPI specification and fixtures files in this
4
- directory. The files must be in JSON format, and must be named `spec3.json`
5
- and `fixtures3.json` respectively.
6
-
7
- If those files are present, the test suite will start its own stripe-mock
8
- process on a random available port. In order for this to work, `stripe-mock`
9
- must be on the `PATH` in the environment used to run the test suite.
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require ::File.expand_path("../test_helper", __dir__)
4
-
5
- module Stripe
6
- class AccountLinkTest < Test::Unit::TestCase
7
- should "be creatable" do
8
- link = Stripe::AccountLink.create(
9
- account: "acct_123",
10
- refresh_url: "https://stripe.com/refresh",
11
- return_url: "https://stripe.com/return",
12
- type: "account_onboarding"
13
- )
14
- assert_requested :post, "#{Stripe.api_base}/v1/account_links"
15
- assert link.is_a?(Stripe::AccountLink)
16
- end
17
- end
18
- end