stripe 4.9.0 → 5.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +10 -0
  3. data/.rubocop.yml +56 -8
  4. data/.rubocop_todo.yml +8 -25
  5. data/.travis.yml +4 -8
  6. data/.vscode/extensions.json +7 -0
  7. data/.vscode/settings.json +8 -0
  8. data/CHANGELOG.md +206 -2
  9. data/CODE_OF_CONDUCT.md +77 -0
  10. data/Gemfile +10 -13
  11. data/README.md +178 -58
  12. data/Rakefile +8 -7
  13. data/VERSION +1 -1
  14. data/lib/stripe.rb +41 -195
  15. data/lib/stripe/api_operations/create.rb +1 -1
  16. data/lib/stripe/api_operations/delete.rb +28 -2
  17. data/lib/stripe/api_operations/list.rb +1 -12
  18. data/lib/stripe/api_operations/nested_resource.rb +38 -28
  19. data/lib/stripe/api_operations/request.rb +47 -8
  20. data/lib/stripe/api_operations/save.rb +8 -7
  21. data/lib/stripe/api_resource.rb +52 -3
  22. data/lib/stripe/connection_manager.rb +162 -0
  23. data/lib/stripe/error_object.rb +94 -0
  24. data/lib/stripe/errors.rb +31 -10
  25. data/lib/stripe/instrumentation.rb +82 -0
  26. data/lib/stripe/list_object.rb +41 -7
  27. data/lib/stripe/multipart_encoder.rb +131 -0
  28. data/lib/stripe/oauth.rb +4 -3
  29. data/lib/stripe/object_types.rb +101 -0
  30. data/lib/stripe/resources.rb +84 -0
  31. data/lib/stripe/{account.rb → resources/account.rb} +50 -27
  32. data/lib/stripe/{account_link.rb → resources/account_link.rb} +2 -1
  33. data/lib/stripe/resources/alipay_account.rb +34 -0
  34. data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +2 -1
  35. data/lib/stripe/resources/application_fee.rb +14 -0
  36. data/lib/stripe/resources/application_fee_refund.rb +30 -0
  37. data/lib/stripe/{balance.rb → resources/balance.rb} +2 -1
  38. data/lib/stripe/{balance_transaction.rb → resources/balance_transaction.rb} +2 -5
  39. data/lib/stripe/resources/bank_account.rb +43 -0
  40. data/lib/stripe/resources/billing_portal/session.rb +12 -0
  41. data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +4 -3
  42. data/lib/stripe/{bitcoin_transaction.rb → resources/bitcoin_transaction.rb} +1 -1
  43. data/lib/stripe/resources/capability.rb +33 -0
  44. data/lib/stripe/{card.rb → resources/card.rb} +13 -4
  45. data/lib/stripe/resources/charge.rb +23 -0
  46. data/lib/stripe/resources/checkout/session.rb +16 -0
  47. data/lib/stripe/{country_spec.rb → resources/country_spec.rb} +2 -1
  48. data/lib/stripe/{coupon.rb → resources/coupon.rb} +3 -2
  49. data/lib/stripe/resources/credit_note.rb +33 -0
  50. data/lib/stripe/resources/credit_note_line_item.rb +7 -0
  51. data/lib/stripe/resources/customer.rb +36 -0
  52. data/lib/stripe/resources/customer_balance_transaction.rb +30 -0
  53. data/lib/stripe/resources/discount.rb +7 -0
  54. data/lib/stripe/resources/dispute.rb +22 -0
  55. data/lib/stripe/{ephemeral_key.rb → resources/ephemeral_key.rb} +6 -2
  56. data/lib/stripe/{event.rb → resources/event.rb} +2 -1
  57. data/lib/stripe/{exchange_rate.rb → resources/exchange_rate.rb} +2 -1
  58. data/lib/stripe/{file.rb → resources/file.rb} +9 -11
  59. data/lib/stripe/{file_link.rb → resources/file_link.rb} +3 -2
  60. data/lib/stripe/resources/invoice.rb +74 -0
  61. data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +3 -2
  62. data/lib/stripe/{invoice_line_item.rb → resources/invoice_line_item.rb} +1 -1
  63. data/lib/stripe/resources/issuing/authorization.rb +34 -0
  64. data/lib/stripe/resources/issuing/card.rb +25 -0
  65. data/lib/stripe/{issuing → resources/issuing}/card_details.rb +1 -1
  66. data/lib/stripe/{issuing → resources/issuing}/cardholder.rb +3 -2
  67. data/lib/stripe/resources/issuing/dispute.rb +25 -0
  68. data/lib/stripe/{issuing → resources/issuing}/transaction.rb +3 -2
  69. data/lib/stripe/resources/line_item.rb +7 -0
  70. data/lib/stripe/resources/login_link.rb +14 -0
  71. data/lib/stripe/resources/mandate.rb +8 -0
  72. data/lib/stripe/resources/order.rb +33 -0
  73. data/lib/stripe/{order_return.rb → resources/order_return.rb} +2 -1
  74. data/lib/stripe/resources/payment_intent.rb +43 -0
  75. data/lib/stripe/resources/payment_method.rb +33 -0
  76. data/lib/stripe/resources/payout.rb +33 -0
  77. data/lib/stripe/{person.rb → resources/person.rb} +8 -3
  78. data/lib/stripe/{plan.rb → resources/plan.rb} +2 -1
  79. data/lib/stripe/resources/price.rb +12 -0
  80. data/lib/stripe/{product.rb → resources/product.rb} +4 -3
  81. data/lib/stripe/resources/promotion_code.rb +12 -0
  82. data/lib/stripe/resources/radar/early_fraud_warning.rb +12 -0
  83. data/lib/stripe/{radar → resources/radar}/value_list.rb +3 -2
  84. data/lib/stripe/{radar → resources/radar}/value_list_item.rb +3 -2
  85. data/lib/stripe/{recipient.rb → resources/recipient.rb} +3 -6
  86. data/lib/stripe/{recipient_transfer.rb → resources/recipient_transfer.rb} +1 -1
  87. data/lib/stripe/{refund.rb → resources/refund.rb} +2 -1
  88. data/lib/stripe/{reporting → resources/reporting}/report_run.rb +3 -2
  89. data/lib/stripe/{reporting → resources/reporting}/report_type.rb +3 -2
  90. data/lib/stripe/resources/reversal.rb +29 -0
  91. data/lib/stripe/resources/review.rb +21 -0
  92. data/lib/stripe/resources/setup_attempt.rb +10 -0
  93. data/lib/stripe/resources/setup_intent.rb +33 -0
  94. data/lib/stripe/{sigma → resources/sigma}/scheduled_query_run.rb +3 -2
  95. data/lib/stripe/{sku.rb → resources/sku.rb} +4 -3
  96. data/lib/stripe/resources/source.rb +47 -0
  97. data/lib/stripe/{source_transaction.rb → resources/source_transaction.rb} +1 -1
  98. data/lib/stripe/resources/subscription.rb +26 -0
  99. data/lib/stripe/resources/subscription_item.rb +26 -0
  100. data/lib/stripe/resources/subscription_schedule.rb +33 -0
  101. data/lib/stripe/resources/tax_id.rb +26 -0
  102. data/lib/stripe/resources/tax_rate.rb +12 -0
  103. data/lib/stripe/resources/terminal/connection_token.rb +12 -0
  104. data/lib/stripe/{terminal → resources/terminal}/location.rb +4 -2
  105. data/lib/stripe/{terminal → resources/terminal}/reader.rb +4 -2
  106. data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +2 -1
  107. data/lib/stripe/{token.rb → resources/token.rb} +2 -1
  108. data/lib/stripe/resources/topup.rb +23 -0
  109. data/lib/stripe/resources/transfer.rb +27 -0
  110. data/lib/stripe/resources/usage_record.rb +7 -0
  111. data/lib/stripe/{usage_record_summary.rb → resources/usage_record_summary.rb} +1 -1
  112. data/lib/stripe/{webhook_endpoint.rb → resources/webhook_endpoint.rb} +3 -2
  113. data/lib/stripe/singleton_api_resource.rb +3 -1
  114. data/lib/stripe/stripe_client.rb +493 -236
  115. data/lib/stripe/stripe_configuration.rb +178 -0
  116. data/lib/stripe/stripe_object.rb +75 -61
  117. data/lib/stripe/stripe_response.rb +53 -21
  118. data/lib/stripe/util.rb +66 -109
  119. data/lib/stripe/version.rb +1 -1
  120. data/lib/stripe/webhook.rb +43 -10
  121. data/stripe.gemspec +14 -5
  122. data/test/stripe/account_link_test.rb +4 -4
  123. data/test/stripe/account_test.rb +193 -32
  124. data/test/stripe/alipay_account_test.rb +1 -1
  125. data/test/stripe/api_operations_test.rb +3 -4
  126. data/test/stripe/api_resource_test.rb +159 -37
  127. data/test/stripe/apple_pay_domain_test.rb +18 -5
  128. data/test/stripe/application_fee_refund_test.rb +1 -1
  129. data/test/stripe/application_fee_test.rb +45 -1
  130. data/test/stripe/balance_test.rb +1 -1
  131. data/test/stripe/balance_transaction_test.rb +20 -0
  132. data/test/stripe/bank_account_test.rb +1 -1
  133. data/test/stripe/billing_portal/session_test.rb +18 -0
  134. data/test/stripe/capability_test.rb +45 -0
  135. data/test/stripe/charge_test.rb +13 -8
  136. data/test/stripe/checkout/session_test.rb +19 -1
  137. data/test/stripe/connection_manager_test.rb +167 -0
  138. data/test/stripe/country_spec_test.rb +1 -1
  139. data/test/stripe/coupon_test.rb +16 -6
  140. data/test/stripe/credit_note_test.rb +90 -0
  141. data/test/stripe/customer_balance_transaction_test.rb +37 -0
  142. data/test/stripe/customer_card_test.rb +7 -1
  143. data/test/stripe/customer_test.rb +151 -40
  144. data/test/stripe/dispute_test.rb +10 -1
  145. data/test/stripe/ephemeral_key_test.rb +8 -1
  146. data/test/stripe/errors_test.rb +42 -9
  147. data/test/stripe/exchange_rate_test.rb +1 -1
  148. data/test/stripe/file_link_test.rb +1 -1
  149. data/test/stripe/file_test.rb +19 -5
  150. data/test/stripe/instrumentation_test.rb +74 -0
  151. data/test/stripe/invoice_item_test.rb +18 -7
  152. data/test/stripe/invoice_line_item_test.rb +1 -1
  153. data/test/stripe/invoice_test.rb +77 -9
  154. data/test/stripe/issuing/authorization_test.rb +33 -11
  155. data/test/stripe/issuing/card_test.rb +27 -6
  156. data/test/stripe/issuing/cardholder_test.rb +1 -1
  157. data/test/stripe/issuing/dispute_test.rb +23 -14
  158. data/test/stripe/issuing/transaction_test.rb +1 -1
  159. data/test/stripe/list_object_test.rb +70 -24
  160. data/test/stripe/login_link_test.rb +2 -2
  161. data/test/stripe/mandate_test.rb +14 -0
  162. data/test/stripe/multipart_encoder_test.rb +130 -0
  163. data/test/stripe/oauth_test.rb +17 -1
  164. data/test/stripe/order_return_test.rb +1 -1
  165. data/test/stripe/order_test.rb +28 -3
  166. data/test/stripe/payment_intent_test.rb +31 -4
  167. data/test/stripe/payment_method_test.rb +84 -0
  168. data/test/stripe/payout_test.rb +23 -1
  169. data/test/stripe/person_test.rb +1 -1
  170. data/test/stripe/plan_test.rb +26 -20
  171. data/test/stripe/price_test.rb +48 -0
  172. data/test/stripe/product_test.rb +17 -8
  173. data/test/stripe/promotion_code_test.rb +42 -0
  174. data/test/stripe/radar/early_fraud_warning_test.rb +22 -0
  175. data/test/stripe/radar/value_list_item_test.rb +16 -6
  176. data/test/stripe/radar/value_list_test.rb +16 -6
  177. data/test/stripe/recipient_test.rb +18 -5
  178. data/test/stripe/refund_test.rb +1 -1
  179. data/test/stripe/reporting/report_run_test.rb +1 -1
  180. data/test/stripe/reporting/report_type_test.rb +1 -1
  181. data/test/stripe/reversal_test.rb +1 -1
  182. data/test/stripe/review_test.rb +1 -1
  183. data/test/stripe/setup_attempt_test.rb +16 -0
  184. data/test/stripe/setup_intent_test.rb +84 -0
  185. data/test/stripe/sigma/scheduled_query_run_test.rb +1 -1
  186. data/test/stripe/sku_test.rb +16 -6
  187. data/test/stripe/source_test.rb +52 -19
  188. data/test/stripe/stripe_client_test.rb +546 -78
  189. data/test/stripe/stripe_configuration_test.rb +131 -0
  190. data/test/stripe/stripe_object_test.rb +16 -41
  191. data/test/stripe/stripe_response_test.rb +71 -25
  192. data/test/stripe/subscription_item_test.rb +38 -7
  193. data/test/stripe/subscription_schedule_test.rb +19 -1
  194. data/test/stripe/subscription_test.rb +29 -9
  195. data/test/stripe/tax_id_test.rb +31 -0
  196. data/test/stripe/tax_rate_test.rb +43 -0
  197. data/test/stripe/terminal/connection_token_test.rb +1 -1
  198. data/test/stripe/terminal/location_test.rb +18 -1
  199. data/test/stripe/terminal/reader_test.rb +18 -1
  200. data/test/stripe/three_d_secure_test.rb +1 -1
  201. data/test/stripe/topup_test.rb +9 -1
  202. data/test/stripe/transfer_test.rb +46 -1
  203. data/test/stripe/usage_record_summary_test.rb +15 -5
  204. data/test/stripe/util_test.rb +1 -1
  205. data/test/stripe/webhook_endpoint_test.rb +18 -1
  206. data/test/stripe/webhook_test.rb +48 -9
  207. data/test/stripe_mock.rb +4 -3
  208. data/test/stripe_test.rb +102 -33
  209. data/test/test_helper.rb +16 -12
  210. metadata +141 -129
  211. data/lib/stripe/alipay_account.rb +0 -27
  212. data/lib/stripe/application_fee.rb +0 -23
  213. data/lib/stripe/application_fee_refund.rb +0 -22
  214. data/lib/stripe/bank_account.rb +0 -32
  215. data/lib/stripe/charge.rb +0 -84
  216. data/lib/stripe/checkout/session.rb +0 -11
  217. data/lib/stripe/customer.rb +0 -90
  218. data/lib/stripe/dispute.rb +0 -19
  219. data/lib/stripe/invoice.rb +0 -48
  220. data/lib/stripe/issuer_fraud_record.rb +0 -9
  221. data/lib/stripe/issuing/authorization.rb +0 -22
  222. data/lib/stripe/issuing/card.rb +0 -18
  223. data/lib/stripe/issuing/dispute.rb +0 -13
  224. data/lib/stripe/login_link.rb +0 -11
  225. data/lib/stripe/order.rb +0 -31
  226. data/lib/stripe/payment_intent.rb +0 -26
  227. data/lib/stripe/payout.rb +0 -20
  228. data/lib/stripe/reversal.rb +0 -22
  229. data/lib/stripe/review.rb +0 -14
  230. data/lib/stripe/source.rb +0 -38
  231. data/lib/stripe/subscription.rb +0 -25
  232. data/lib/stripe/subscription_item.rb +0 -17
  233. data/lib/stripe/subscription_schedule.rb +0 -32
  234. data/lib/stripe/subscription_schedule_revision.rb +0 -25
  235. data/lib/stripe/terminal/connection_token.rb +0 -11
  236. data/lib/stripe/topup.rb +0 -16
  237. data/lib/stripe/transfer.rb +0 -23
  238. data/lib/stripe/usage_record.rb +0 -14
  239. data/test/api_stub_helpers.rb +0 -1
  240. data/test/stripe/account_external_accounts_operations_test.rb +0 -69
  241. data/test/stripe/account_login_links_operations_test.rb +0 -21
  242. data/test/stripe/account_persons_operations_test.rb +0 -70
  243. data/test/stripe/application_fee_refunds_operations_test.rb +0 -56
  244. data/test/stripe/customer_sources_operations_test.rb +0 -64
  245. data/test/stripe/file_upload_test.rb +0 -76
  246. data/test/stripe/issuer_fraud_record_test.rb +0 -20
  247. data/test/stripe/source_transaction_test.rb +0 -19
  248. data/test/stripe/subscription_schedule_revision_test.rb +0 -37
  249. data/test/stripe/subscription_schedule_revisions_operations_test.rb +0 -35
  250. data/test/stripe/transfer_reversals_operations_test.rb +0 -57
  251. data/test/stripe/usage_record_test.rb +0 -28
@@ -4,8 +4,8 @@ module Stripe
4
4
  class StripeMock
5
5
  include Singleton
6
6
 
7
- PATH_SPEC = "#{::File.dirname(__FILE__)}/openapi/spec3.json".freeze
8
- PATH_FIXTURES = "#{::File.dirname(__FILE__)}/openapi/fixtures3.json".freeze
7
+ PATH_SPEC = "#{::File.dirname(__FILE__)}/openapi/spec3.json"
8
+ PATH_FIXTURES = "#{::File.dirname(__FILE__)}/openapi/fixtures3.json"
9
9
 
10
10
  @pid = nil
11
11
  @port = -1
@@ -29,7 +29,7 @@ module Stripe
29
29
  @stderr, @child_stderr = ::IO.pipe
30
30
 
31
31
  @pid = ::Process.spawn(
32
- ["stripe-mock", "stripe-mock"],
32
+ %w[stripe-mock stripe-mock],
33
33
  "-http-port",
34
34
  "0", # have stripe-mock select a port
35
35
  "-spec",
@@ -66,6 +66,7 @@ module Stripe
66
66
  # Stops stripe-mock, if necessary.
67
67
  def self.stop
68
68
  return if @pid.nil?
69
+
69
70
  puts("Stopping stripe-mock...")
70
71
  ::Process.kill(:SIGTERM, @pid)
71
72
  ::Process.waitpid2(@pid)
@@ -1,21 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require ::File.expand_path("../test_helper", __FILE__)
3
+ require ::File.expand_path("test_helper", __dir__)
4
4
 
5
5
  class StripeTest < Test::Unit::TestCase
6
- should "warn that #refresh_from is deprecated" do
7
- old_stderr = $stderr
8
- $stderr = StringIO.new
9
- begin
10
- Stripe.uri_encode({})
11
- message = "NOTE: Stripe.uri_encode is deprecated; use " \
12
- "Stripe::Util#encode_parameters instead"
13
- assert_match Regexp.new(message), $stderr.string
14
- ensure
15
- $stderr = old_stderr
16
- end
17
- end
18
-
19
6
  should "allow app_info to be configured" do
20
7
  begin
21
8
  old = Stripe.app_info
@@ -36,28 +23,110 @@ class StripeTest < Test::Unit::TestCase
36
23
  end
37
24
  end
38
25
 
39
- should "allow ca_bundle_path to be configured" do
40
- begin
41
- old = Stripe.ca_bundle_path
42
- Stripe.ca_bundle_path = "path/to/ca/bundle"
43
- assert_equal "path/to/ca/bundle", Stripe.ca_bundle_path
44
- ensure
45
- Stripe.ca_bundle_path = old
26
+ context "forwardable configurations" do
27
+ context "internal configurations" do
28
+ should "return the certificate store" do
29
+ assert Stripe.ca_store.is_a?(OpenSSL::X509::Store)
30
+ end
31
+
32
+ should "return the max_network_retry_delay" do
33
+ assert_equal 2, Stripe.max_network_retry_delay
34
+ end
35
+
36
+ should "return the initial_network_retry_delay" do
37
+ assert_equal 0.5, Stripe.initial_network_retry_delay
38
+ end
46
39
  end
47
- end
48
40
 
49
- should "allow max_network_retries to be configured" do
50
- begin
51
- old = Stripe.max_network_retries
52
- Stripe.max_network_retries = 99
53
- assert_equal 99, Stripe.max_network_retries
54
- ensure
55
- Stripe.max_network_retries = old
41
+ should "allow ca_bundle_path to be configured" do
42
+ Stripe::StripeClient.expects(:clear_all_connection_managers)
43
+ Stripe.ca_bundle_path = "/path/to/ca/bundle"
44
+ assert_equal "/path/to/ca/bundle", Stripe.ca_bundle_path
45
+ end
46
+
47
+ should "allow open timeout to be configured" do
48
+ Stripe.open_timeout = 10
49
+ assert_equal 10, Stripe.open_timeout
50
+ end
51
+
52
+ should "allow read timeout to be configured" do
53
+ Stripe.read_timeout = 10
54
+ assert_equal 10, Stripe.read_timeout
55
+ end
56
+
57
+ if WRITE_TIMEOUT_SUPPORTED
58
+ should "allow write timeout to be configured" do
59
+ Stripe.write_timeout = 10
60
+ assert_equal 10, Stripe.write_timeout
61
+ end
62
+ else
63
+ should "raise when write timeout to be configured is not supported" do
64
+ assert_raises NotImplementedError do
65
+ Stripe.write_timeout = 10
66
+ end
67
+ end
68
+ end
69
+
70
+ should "allow api_key to be configured" do
71
+ Stripe.api_key = "sk_local_test"
72
+ assert_equal "sk_local_test", Stripe.api_key
56
73
  end
57
- end
58
74
 
59
- should "have default open and read timeouts" do
60
- assert_equal Stripe.open_timeout, 30
61
- assert_equal Stripe.read_timeout, 80
75
+ should "allow stripe_account to be configured" do
76
+ Stripe.stripe_account = "acct_1234"
77
+ assert_equal "acct_1234", Stripe.stripe_account
78
+ end
79
+
80
+ should "allow enable_telemetry to be configured" do
81
+ begin
82
+ old = Stripe.enable_telemetry?
83
+
84
+ Stripe.enable_telemetry = false
85
+ assert_equal false, Stripe.enable_telemetry?
86
+ ensure
87
+ Stripe.enable_telemetry = old
88
+ end
89
+ end
90
+
91
+ should "allow log_level to be configured" do
92
+ Stripe.log_level = "debug"
93
+ assert_equal ::Logger::DEBUG, Stripe.log_level
94
+ end
95
+
96
+ should "allow logger to be configured" do
97
+ logger = Object.new
98
+ Stripe.logger = logger
99
+ assert_equal logger, Stripe.logger
100
+ end
101
+
102
+ should "allow proxy to be configured" do
103
+ Stripe.proxy = "http://proxy"
104
+ assert_equal "http://proxy", Stripe.proxy
105
+ end
106
+
107
+ should "allow uploads_base to be configured" do
108
+ Stripe.uploads_base = "https://other.stripe.com"
109
+ assert_equal "https://other.stripe.com", Stripe.uploads_base
110
+ end
111
+
112
+ should "allow api_base to be configured" do
113
+ Stripe.api_base = "https://other.stripe.com"
114
+ assert_equal "https://other.stripe.com", Stripe.api_base
115
+ end
116
+
117
+ should "allow connect_base to be configured" do
118
+ Stripe.connect_base = "https://other.stripe.com"
119
+ assert_equal "https://other.stripe.com", Stripe.connect_base
120
+ end
121
+
122
+ should "allow verify_ssl_certs to be configured" do
123
+ Stripe.verify_ssl_certs = false
124
+ assert_equal false, Stripe.verify_ssl_certs
125
+ end
126
+
127
+ should "allow client_id to be configured" do
128
+ Stripe.client_id = "client"
129
+ assert_equal "client", Stripe.client_id
130
+ end
62
131
  end
63
132
  end
@@ -8,16 +8,15 @@ require "test/unit"
8
8
  require "mocha/setup"
9
9
  require "stringio"
10
10
  require "shoulda/context"
11
- require "timecop"
12
11
  require "webmock/test_unit"
13
12
 
14
- PROJECT_ROOT = ::File.expand_path("../../", __FILE__)
13
+ PROJECT_ROOT = ::File.expand_path("../", __dir__)
15
14
 
16
- require ::File.expand_path("../test_data", __FILE__)
17
- require ::File.expand_path("../stripe_mock", __FILE__)
15
+ require ::File.expand_path("test_data", __dir__)
16
+ require ::File.expand_path("stripe_mock", __dir__)
18
17
 
19
18
  # If changing this number, please also change it in `.travis.yml`.
20
- MOCK_MINIMUM_VERSION = "0.44.0".freeze
19
+ MOCK_MINIMUM_VERSION = "0.101.0"
21
20
  MOCK_PORT = Stripe::StripeMock.start
22
21
 
23
22
  # Disable all real network connections except those that are outgoing to
@@ -28,16 +27,21 @@ WebMock.disable_net_connect!(allow: "localhost:#{MOCK_PORT}")
28
27
  # we can print one error and fail fast so that it's more clear to the user how
29
28
  # they should fix the problem.
30
29
  begin
31
- conn = Faraday::Connection.new("http://localhost:#{MOCK_PORT}")
32
- resp = conn.get("/")
33
- version = resp.headers["Stripe-Mock-Version"]
30
+ resp = Net::HTTP.get_response(URI("http://localhost:#{MOCK_PORT}/"))
31
+ version = resp["Stripe-Mock-Version"]
32
+
33
+ if version.nil?
34
+ abort("Couldn't find `Stripe-Mock-Version` in response from " \
35
+ "`localhost:#{MOCK_PORT}`. Is the service running there stripe-mock?")
36
+ end
37
+
34
38
  if version != "master" &&
35
39
  Gem::Version.new(version) < Gem::Version.new(MOCK_MINIMUM_VERSION)
36
40
  abort("Your version of stripe-mock (#{version}) is too old. The minimum " \
37
41
  "version to run this test suite is #{MOCK_MINIMUM_VERSION}. Please " \
38
42
  "see its repository for upgrade instructions.")
39
43
  end
40
- rescue Faraday::ConnectionFailed
44
+ rescue Errno::ECONNREFUSED
41
45
  abort("Couldn't reach stripe-mock at `localhost:#{MOCK_PORT}`. Is " \
42
46
  "it running? Please see README for setup instructions.")
43
47
  end
@@ -52,6 +56,8 @@ module Test
52
56
  include Stripe::TestData
53
57
  include Mocha
54
58
 
59
+ WRITE_TIMEOUT_SUPPORTED = Net::HTTP.instance_methods.include?(:write_timeout=)
60
+
55
61
  setup do
56
62
  Stripe.api_key = "sk_test_123"
57
63
  Stripe.api_base = "http://localhost:#{MOCK_PORT}"
@@ -63,9 +69,7 @@ module Test
63
69
  Stripe.api_key = nil
64
70
  end
65
71
 
66
- private
67
-
68
- def stub_connect
72
+ private def stub_connect
69
73
  stub_request(:any, /^#{Stripe.connect_base}/).to_return(body: "{}")
70
74
  end
71
75
  end
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.0
4
+ version: 5.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: faraday
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.13'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '0.13'
27
- - !ruby/object:Gem::Dependency
28
- name: net-http-persistent
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.0'
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
+ dependencies: []
41
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
42
14
  for details.
43
15
  email: support@stripe.com
@@ -46,13 +18,17 @@ executables:
46
18
  extensions: []
47
19
  extra_rdoc_files: []
48
20
  files:
21
+ - ".editorconfig"
49
22
  - ".gitattributes"
50
23
  - ".github/ISSUE_TEMPLATE.md"
51
24
  - ".gitignore"
52
25
  - ".rubocop.yml"
53
26
  - ".rubocop_todo.yml"
54
27
  - ".travis.yml"
28
+ - ".vscode/extensions.json"
29
+ - ".vscode/settings.json"
55
30
  - CHANGELOG.md
31
+ - CODE_OF_CONDUCT.md
56
32
  - CONTRIBUTORS
57
33
  - Gemfile
58
34
  - History.txt
@@ -63,9 +39,6 @@ files:
63
39
  - bin/stripe-console
64
40
  - lib/data/ca-certificates.crt
65
41
  - lib/stripe.rb
66
- - lib/stripe/account.rb
67
- - lib/stripe/account_link.rb
68
- - lib/stripe/alipay_account.rb
69
42
  - lib/stripe/api_operations/create.rb
70
43
  - lib/stripe/api_operations/delete.rb
71
44
  - lib/stripe/api_operations/list.rb
@@ -73,104 +46,128 @@ files:
73
46
  - lib/stripe/api_operations/request.rb
74
47
  - lib/stripe/api_operations/save.rb
75
48
  - lib/stripe/api_resource.rb
76
- - lib/stripe/apple_pay_domain.rb
77
- - lib/stripe/application_fee.rb
78
- - lib/stripe/application_fee_refund.rb
79
- - lib/stripe/balance.rb
80
- - lib/stripe/balance_transaction.rb
81
- - lib/stripe/bank_account.rb
82
- - lib/stripe/bitcoin_receiver.rb
83
- - lib/stripe/bitcoin_transaction.rb
84
- - lib/stripe/card.rb
85
- - lib/stripe/charge.rb
86
- - lib/stripe/checkout/session.rb
87
- - lib/stripe/country_spec.rb
88
- - lib/stripe/coupon.rb
89
- - lib/stripe/customer.rb
90
- - lib/stripe/dispute.rb
91
- - lib/stripe/ephemeral_key.rb
49
+ - lib/stripe/connection_manager.rb
50
+ - lib/stripe/error_object.rb
92
51
  - lib/stripe/errors.rb
93
- - lib/stripe/event.rb
94
- - lib/stripe/exchange_rate.rb
95
- - lib/stripe/file.rb
96
- - lib/stripe/file_link.rb
97
- - lib/stripe/invoice.rb
98
- - lib/stripe/invoice_item.rb
99
- - lib/stripe/invoice_line_item.rb
100
- - lib/stripe/issuer_fraud_record.rb
101
- - lib/stripe/issuing/authorization.rb
102
- - lib/stripe/issuing/card.rb
103
- - lib/stripe/issuing/card_details.rb
104
- - lib/stripe/issuing/cardholder.rb
105
- - lib/stripe/issuing/dispute.rb
106
- - lib/stripe/issuing/transaction.rb
52
+ - lib/stripe/instrumentation.rb
107
53
  - lib/stripe/list_object.rb
108
- - lib/stripe/login_link.rb
54
+ - lib/stripe/multipart_encoder.rb
109
55
  - lib/stripe/oauth.rb
110
- - lib/stripe/order.rb
111
- - lib/stripe/order_return.rb
112
- - lib/stripe/payment_intent.rb
113
- - lib/stripe/payout.rb
114
- - lib/stripe/person.rb
115
- - lib/stripe/plan.rb
116
- - lib/stripe/product.rb
117
- - lib/stripe/radar/value_list.rb
118
- - lib/stripe/radar/value_list_item.rb
119
- - lib/stripe/recipient.rb
120
- - lib/stripe/recipient_transfer.rb
121
- - lib/stripe/refund.rb
122
- - lib/stripe/reporting/report_run.rb
123
- - lib/stripe/reporting/report_type.rb
124
- - lib/stripe/reversal.rb
125
- - lib/stripe/review.rb
126
- - lib/stripe/sigma/scheduled_query_run.rb
56
+ - lib/stripe/object_types.rb
57
+ - lib/stripe/resources.rb
58
+ - lib/stripe/resources/account.rb
59
+ - lib/stripe/resources/account_link.rb
60
+ - lib/stripe/resources/alipay_account.rb
61
+ - lib/stripe/resources/apple_pay_domain.rb
62
+ - lib/stripe/resources/application_fee.rb
63
+ - lib/stripe/resources/application_fee_refund.rb
64
+ - lib/stripe/resources/balance.rb
65
+ - lib/stripe/resources/balance_transaction.rb
66
+ - lib/stripe/resources/bank_account.rb
67
+ - lib/stripe/resources/billing_portal/session.rb
68
+ - lib/stripe/resources/bitcoin_receiver.rb
69
+ - lib/stripe/resources/bitcoin_transaction.rb
70
+ - lib/stripe/resources/capability.rb
71
+ - lib/stripe/resources/card.rb
72
+ - lib/stripe/resources/charge.rb
73
+ - lib/stripe/resources/checkout/session.rb
74
+ - lib/stripe/resources/country_spec.rb
75
+ - lib/stripe/resources/coupon.rb
76
+ - lib/stripe/resources/credit_note.rb
77
+ - lib/stripe/resources/credit_note_line_item.rb
78
+ - lib/stripe/resources/customer.rb
79
+ - lib/stripe/resources/customer_balance_transaction.rb
80
+ - lib/stripe/resources/discount.rb
81
+ - lib/stripe/resources/dispute.rb
82
+ - lib/stripe/resources/ephemeral_key.rb
83
+ - lib/stripe/resources/event.rb
84
+ - lib/stripe/resources/exchange_rate.rb
85
+ - lib/stripe/resources/file.rb
86
+ - lib/stripe/resources/file_link.rb
87
+ - lib/stripe/resources/invoice.rb
88
+ - lib/stripe/resources/invoice_item.rb
89
+ - lib/stripe/resources/invoice_line_item.rb
90
+ - lib/stripe/resources/issuing/authorization.rb
91
+ - lib/stripe/resources/issuing/card.rb
92
+ - lib/stripe/resources/issuing/card_details.rb
93
+ - lib/stripe/resources/issuing/cardholder.rb
94
+ - lib/stripe/resources/issuing/dispute.rb
95
+ - lib/stripe/resources/issuing/transaction.rb
96
+ - lib/stripe/resources/line_item.rb
97
+ - lib/stripe/resources/login_link.rb
98
+ - lib/stripe/resources/mandate.rb
99
+ - lib/stripe/resources/order.rb
100
+ - lib/stripe/resources/order_return.rb
101
+ - lib/stripe/resources/payment_intent.rb
102
+ - lib/stripe/resources/payment_method.rb
103
+ - lib/stripe/resources/payout.rb
104
+ - lib/stripe/resources/person.rb
105
+ - lib/stripe/resources/plan.rb
106
+ - lib/stripe/resources/price.rb
107
+ - lib/stripe/resources/product.rb
108
+ - lib/stripe/resources/promotion_code.rb
109
+ - lib/stripe/resources/radar/early_fraud_warning.rb
110
+ - lib/stripe/resources/radar/value_list.rb
111
+ - lib/stripe/resources/radar/value_list_item.rb
112
+ - lib/stripe/resources/recipient.rb
113
+ - lib/stripe/resources/recipient_transfer.rb
114
+ - lib/stripe/resources/refund.rb
115
+ - lib/stripe/resources/reporting/report_run.rb
116
+ - lib/stripe/resources/reporting/report_type.rb
117
+ - lib/stripe/resources/reversal.rb
118
+ - lib/stripe/resources/review.rb
119
+ - lib/stripe/resources/setup_attempt.rb
120
+ - lib/stripe/resources/setup_intent.rb
121
+ - lib/stripe/resources/sigma/scheduled_query_run.rb
122
+ - lib/stripe/resources/sku.rb
123
+ - lib/stripe/resources/source.rb
124
+ - lib/stripe/resources/source_transaction.rb
125
+ - lib/stripe/resources/subscription.rb
126
+ - lib/stripe/resources/subscription_item.rb
127
+ - lib/stripe/resources/subscription_schedule.rb
128
+ - lib/stripe/resources/tax_id.rb
129
+ - lib/stripe/resources/tax_rate.rb
130
+ - lib/stripe/resources/terminal/connection_token.rb
131
+ - lib/stripe/resources/terminal/location.rb
132
+ - lib/stripe/resources/terminal/reader.rb
133
+ - lib/stripe/resources/three_d_secure.rb
134
+ - lib/stripe/resources/token.rb
135
+ - lib/stripe/resources/topup.rb
136
+ - lib/stripe/resources/transfer.rb
137
+ - lib/stripe/resources/usage_record.rb
138
+ - lib/stripe/resources/usage_record_summary.rb
139
+ - lib/stripe/resources/webhook_endpoint.rb
127
140
  - lib/stripe/singleton_api_resource.rb
128
- - lib/stripe/sku.rb
129
- - lib/stripe/source.rb
130
- - lib/stripe/source_transaction.rb
131
141
  - lib/stripe/stripe_client.rb
142
+ - lib/stripe/stripe_configuration.rb
132
143
  - lib/stripe/stripe_object.rb
133
144
  - lib/stripe/stripe_response.rb
134
- - lib/stripe/subscription.rb
135
- - lib/stripe/subscription_item.rb
136
- - lib/stripe/subscription_schedule.rb
137
- - lib/stripe/subscription_schedule_revision.rb
138
- - lib/stripe/terminal/connection_token.rb
139
- - lib/stripe/terminal/location.rb
140
- - lib/stripe/terminal/reader.rb
141
- - lib/stripe/three_d_secure.rb
142
- - lib/stripe/token.rb
143
- - lib/stripe/topup.rb
144
- - lib/stripe/transfer.rb
145
- - lib/stripe/usage_record.rb
146
- - lib/stripe/usage_record_summary.rb
147
145
  - lib/stripe/util.rb
148
146
  - lib/stripe/version.rb
149
147
  - lib/stripe/webhook.rb
150
- - lib/stripe/webhook_endpoint.rb
151
148
  - stripe.gemspec
152
- - test/api_stub_helpers.rb
153
149
  - test/openapi/README.md
154
- - test/stripe/account_external_accounts_operations_test.rb
155
150
  - test/stripe/account_link_test.rb
156
- - test/stripe/account_login_links_operations_test.rb
157
- - test/stripe/account_persons_operations_test.rb
158
151
  - test/stripe/account_test.rb
159
152
  - test/stripe/alipay_account_test.rb
160
153
  - test/stripe/api_operations_test.rb
161
154
  - test/stripe/api_resource_test.rb
162
155
  - test/stripe/apple_pay_domain_test.rb
163
156
  - test/stripe/application_fee_refund_test.rb
164
- - test/stripe/application_fee_refunds_operations_test.rb
165
157
  - test/stripe/application_fee_test.rb
166
158
  - test/stripe/balance_test.rb
159
+ - test/stripe/balance_transaction_test.rb
167
160
  - test/stripe/bank_account_test.rb
161
+ - test/stripe/billing_portal/session_test.rb
162
+ - test/stripe/capability_test.rb
168
163
  - test/stripe/charge_test.rb
169
164
  - test/stripe/checkout/session_test.rb
165
+ - test/stripe/connection_manager_test.rb
170
166
  - test/stripe/country_spec_test.rb
171
167
  - test/stripe/coupon_test.rb
168
+ - test/stripe/credit_note_test.rb
169
+ - test/stripe/customer_balance_transaction_test.rb
172
170
  - test/stripe/customer_card_test.rb
173
- - test/stripe/customer_sources_operations_test.rb
174
171
  - test/stripe/customer_test.rb
175
172
  - test/stripe/dispute_test.rb
176
173
  - test/stripe/ephemeral_key_test.rb
@@ -178,11 +175,10 @@ files:
178
175
  - test/stripe/exchange_rate_test.rb
179
176
  - test/stripe/file_link_test.rb
180
177
  - test/stripe/file_test.rb
181
- - test/stripe/file_upload_test.rb
178
+ - test/stripe/instrumentation_test.rb
182
179
  - test/stripe/invoice_item_test.rb
183
180
  - test/stripe/invoice_line_item_test.rb
184
181
  - test/stripe/invoice_test.rb
185
- - test/stripe/issuer_fraud_record_test.rb
186
182
  - test/stripe/issuing/authorization_test.rb
187
183
  - test/stripe/issuing/card_test.rb
188
184
  - test/stripe/issuing/cardholder_test.rb
@@ -190,14 +186,20 @@ files:
190
186
  - test/stripe/issuing/transaction_test.rb
191
187
  - test/stripe/list_object_test.rb
192
188
  - test/stripe/login_link_test.rb
189
+ - test/stripe/mandate_test.rb
190
+ - test/stripe/multipart_encoder_test.rb
193
191
  - test/stripe/oauth_test.rb
194
192
  - test/stripe/order_return_test.rb
195
193
  - test/stripe/order_test.rb
196
194
  - test/stripe/payment_intent_test.rb
195
+ - test/stripe/payment_method_test.rb
197
196
  - test/stripe/payout_test.rb
198
197
  - test/stripe/person_test.rb
199
198
  - test/stripe/plan_test.rb
199
+ - test/stripe/price_test.rb
200
200
  - test/stripe/product_test.rb
201
+ - test/stripe/promotion_code_test.rb
202
+ - test/stripe/radar/early_fraud_warning_test.rb
201
203
  - test/stripe/radar/value_list_item_test.rb
202
204
  - test/stripe/radar/value_list_test.rb
203
205
  - test/stripe/recipient_test.rb
@@ -206,27 +208,27 @@ files:
206
208
  - test/stripe/reporting/report_type_test.rb
207
209
  - test/stripe/reversal_test.rb
208
210
  - test/stripe/review_test.rb
211
+ - test/stripe/setup_attempt_test.rb
212
+ - test/stripe/setup_intent_test.rb
209
213
  - test/stripe/sigma/scheduled_query_run_test.rb
210
214
  - test/stripe/sku_test.rb
211
215
  - test/stripe/source_test.rb
212
- - test/stripe/source_transaction_test.rb
213
216
  - test/stripe/stripe_client_test.rb
217
+ - test/stripe/stripe_configuration_test.rb
214
218
  - test/stripe/stripe_object_test.rb
215
219
  - test/stripe/stripe_response_test.rb
216
220
  - test/stripe/subscription_item_test.rb
217
- - test/stripe/subscription_schedule_revision_test.rb
218
- - test/stripe/subscription_schedule_revisions_operations_test.rb
219
221
  - test/stripe/subscription_schedule_test.rb
220
222
  - test/stripe/subscription_test.rb
223
+ - test/stripe/tax_id_test.rb
224
+ - test/stripe/tax_rate_test.rb
221
225
  - test/stripe/terminal/connection_token_test.rb
222
226
  - test/stripe/terminal/location_test.rb
223
227
  - test/stripe/terminal/reader_test.rb
224
228
  - test/stripe/three_d_secure_test.rb
225
229
  - test/stripe/topup_test.rb
226
- - test/stripe/transfer_reversals_operations_test.rb
227
230
  - test/stripe/transfer_test.rb
228
231
  - test/stripe/usage_record_summary_test.rb
229
- - test/stripe/usage_record_test.rb
230
232
  - test/stripe/util_test.rb
231
233
  - test/stripe/webhook_endpoint_test.rb
232
234
  - test/stripe/webhook_test.rb
@@ -237,7 +239,13 @@ files:
237
239
  homepage: https://stripe.com/docs/api/ruby
238
240
  licenses:
239
241
  - MIT
240
- metadata: {}
242
+ metadata:
243
+ bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
244
+ changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
245
+ documentation_uri: https://stripe.com/docs/api/ruby
246
+ github_repo: ssh://github.com/stripe/stripe-ruby
247
+ homepage_uri: https://stripe.com/docs/api/ruby
248
+ source_code_uri: https://github.com/stripe/stripe-ruby
241
249
  post_install_message:
242
250
  rdoc_options: []
243
251
  require_paths:
@@ -246,41 +254,40 @@ required_ruby_version: !ruby/object:Gem::Requirement
246
254
  requirements:
247
255
  - - ">="
248
256
  - !ruby/object:Gem::Version
249
- version: 2.1.0
257
+ version: 2.3.0
250
258
  required_rubygems_version: !ruby/object:Gem::Requirement
251
259
  requirements:
252
260
  - - ">="
253
261
  - !ruby/object:Gem::Version
254
262
  version: '0'
255
263
  requirements: []
256
- rubyforge_project:
257
- rubygems_version: 2.7.7
264
+ rubygems_version: 3.1.2
258
265
  signing_key:
259
266
  specification_version: 4
260
267
  summary: Ruby bindings for the Stripe API
261
268
  test_files:
262
- - test/api_stub_helpers.rb
263
269
  - test/openapi/README.md
264
- - test/stripe/account_external_accounts_operations_test.rb
265
270
  - test/stripe/account_link_test.rb
266
- - test/stripe/account_login_links_operations_test.rb
267
- - test/stripe/account_persons_operations_test.rb
268
271
  - test/stripe/account_test.rb
269
272
  - test/stripe/alipay_account_test.rb
270
273
  - test/stripe/api_operations_test.rb
271
274
  - test/stripe/api_resource_test.rb
272
275
  - test/stripe/apple_pay_domain_test.rb
273
276
  - test/stripe/application_fee_refund_test.rb
274
- - test/stripe/application_fee_refunds_operations_test.rb
275
277
  - test/stripe/application_fee_test.rb
276
278
  - test/stripe/balance_test.rb
279
+ - test/stripe/balance_transaction_test.rb
277
280
  - test/stripe/bank_account_test.rb
281
+ - test/stripe/billing_portal/session_test.rb
282
+ - test/stripe/capability_test.rb
278
283
  - test/stripe/charge_test.rb
279
284
  - test/stripe/checkout/session_test.rb
285
+ - test/stripe/connection_manager_test.rb
280
286
  - test/stripe/country_spec_test.rb
281
287
  - test/stripe/coupon_test.rb
288
+ - test/stripe/credit_note_test.rb
289
+ - test/stripe/customer_balance_transaction_test.rb
282
290
  - test/stripe/customer_card_test.rb
283
- - test/stripe/customer_sources_operations_test.rb
284
291
  - test/stripe/customer_test.rb
285
292
  - test/stripe/dispute_test.rb
286
293
  - test/stripe/ephemeral_key_test.rb
@@ -288,11 +295,10 @@ test_files:
288
295
  - test/stripe/exchange_rate_test.rb
289
296
  - test/stripe/file_link_test.rb
290
297
  - test/stripe/file_test.rb
291
- - test/stripe/file_upload_test.rb
298
+ - test/stripe/instrumentation_test.rb
292
299
  - test/stripe/invoice_item_test.rb
293
300
  - test/stripe/invoice_line_item_test.rb
294
301
  - test/stripe/invoice_test.rb
295
- - test/stripe/issuer_fraud_record_test.rb
296
302
  - test/stripe/issuing/authorization_test.rb
297
303
  - test/stripe/issuing/card_test.rb
298
304
  - test/stripe/issuing/cardholder_test.rb
@@ -300,14 +306,20 @@ test_files:
300
306
  - test/stripe/issuing/transaction_test.rb
301
307
  - test/stripe/list_object_test.rb
302
308
  - test/stripe/login_link_test.rb
309
+ - test/stripe/mandate_test.rb
310
+ - test/stripe/multipart_encoder_test.rb
303
311
  - test/stripe/oauth_test.rb
304
312
  - test/stripe/order_return_test.rb
305
313
  - test/stripe/order_test.rb
306
314
  - test/stripe/payment_intent_test.rb
315
+ - test/stripe/payment_method_test.rb
307
316
  - test/stripe/payout_test.rb
308
317
  - test/stripe/person_test.rb
309
318
  - test/stripe/plan_test.rb
319
+ - test/stripe/price_test.rb
310
320
  - test/stripe/product_test.rb
321
+ - test/stripe/promotion_code_test.rb
322
+ - test/stripe/radar/early_fraud_warning_test.rb
311
323
  - test/stripe/radar/value_list_item_test.rb
312
324
  - test/stripe/radar/value_list_test.rb
313
325
  - test/stripe/recipient_test.rb
@@ -316,27 +328,27 @@ test_files:
316
328
  - test/stripe/reporting/report_type_test.rb
317
329
  - test/stripe/reversal_test.rb
318
330
  - test/stripe/review_test.rb
331
+ - test/stripe/setup_attempt_test.rb
332
+ - test/stripe/setup_intent_test.rb
319
333
  - test/stripe/sigma/scheduled_query_run_test.rb
320
334
  - test/stripe/sku_test.rb
321
335
  - test/stripe/source_test.rb
322
- - test/stripe/source_transaction_test.rb
323
336
  - test/stripe/stripe_client_test.rb
337
+ - test/stripe/stripe_configuration_test.rb
324
338
  - test/stripe/stripe_object_test.rb
325
339
  - test/stripe/stripe_response_test.rb
326
340
  - test/stripe/subscription_item_test.rb
327
- - test/stripe/subscription_schedule_revision_test.rb
328
- - test/stripe/subscription_schedule_revisions_operations_test.rb
329
341
  - test/stripe/subscription_schedule_test.rb
330
342
  - test/stripe/subscription_test.rb
343
+ - test/stripe/tax_id_test.rb
344
+ - test/stripe/tax_rate_test.rb
331
345
  - test/stripe/terminal/connection_token_test.rb
332
346
  - test/stripe/terminal/location_test.rb
333
347
  - test/stripe/terminal/reader_test.rb
334
348
  - test/stripe/three_d_secure_test.rb
335
349
  - test/stripe/topup_test.rb
336
- - test/stripe/transfer_reversals_operations_test.rb
337
350
  - test/stripe/transfer_test.rb
338
351
  - test/stripe/usage_record_summary_test.rb
339
- - test/stripe/usage_record_test.rb
340
352
  - test/stripe/util_test.rb
341
353
  - test/stripe/webhook_endpoint_test.rb
342
354
  - test/stripe/webhook_test.rb