stripe 4.24.0 → 5.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +169 -0
  3. data/CODE_OF_CONDUCT.md +77 -0
  4. data/Gemfile +10 -16
  5. data/README.md +111 -44
  6. data/Rakefile +8 -7
  7. data/VERSION +1 -1
  8. data/lib/stripe.rb +39 -130
  9. data/lib/stripe/api_operations/create.rb +1 -1
  10. data/lib/stripe/api_operations/delete.rb +7 -3
  11. data/lib/stripe/api_operations/list.rb +1 -12
  12. data/lib/stripe/api_operations/nested_resource.rb +29 -26
  13. data/lib/stripe/api_operations/request.rb +82 -6
  14. data/lib/stripe/api_operations/save.rb +7 -4
  15. data/lib/stripe/api_resource.rb +12 -3
  16. data/lib/stripe/connection_manager.rb +179 -0
  17. data/lib/stripe/error_object.rb +94 -0
  18. data/lib/stripe/errors.rb +24 -3
  19. data/lib/stripe/instrumentation.rb +82 -0
  20. data/lib/stripe/list_object.rb +34 -5
  21. data/lib/stripe/multipart_encoder.rb +131 -0
  22. data/lib/stripe/oauth.rb +8 -6
  23. data/lib/stripe/object_types.rb +12 -1
  24. data/lib/stripe/resources.rb +12 -1
  25. data/lib/stripe/resources/account.rb +6 -14
  26. data/lib/stripe/resources/account_link.rb +2 -1
  27. data/lib/stripe/resources/alipay_account.rb +1 -1
  28. data/lib/stripe/resources/apple_pay_domain.rb +2 -1
  29. data/lib/stripe/resources/application_fee.rb +2 -12
  30. data/lib/stripe/resources/application_fee_refund.rb +1 -1
  31. data/lib/stripe/resources/balance.rb +2 -1
  32. data/lib/stripe/resources/balance_transaction.rb +2 -1
  33. data/lib/stripe/resources/bank_account.rb +3 -2
  34. data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
  35. data/lib/stripe/resources/billing_portal/session.rb +12 -0
  36. data/lib/stripe/resources/bitcoin_receiver.rb +2 -1
  37. data/lib/stripe/resources/bitcoin_transaction.rb +1 -1
  38. data/lib/stripe/resources/capability.rb +1 -1
  39. data/lib/stripe/resources/card.rb +2 -1
  40. data/lib/stripe/resources/charge.rb +8 -69
  41. data/lib/stripe/resources/checkout/session.rb +6 -1
  42. data/lib/stripe/resources/country_spec.rb +2 -1
  43. data/lib/stripe/resources/coupon.rb +2 -1
  44. data/lib/stripe/resources/credit_note.rb +12 -1
  45. data/lib/stripe/resources/credit_note_line_item.rb +7 -0
  46. data/lib/stripe/resources/customer.rb +9 -63
  47. data/lib/stripe/resources/customer_balance_transaction.rb +1 -1
  48. data/lib/stripe/resources/discount.rb +1 -1
  49. data/lib/stripe/resources/dispute.rb +2 -7
  50. data/lib/stripe/resources/ephemeral_key.rb +2 -1
  51. data/lib/stripe/resources/event.rb +2 -1
  52. data/lib/stripe/resources/exchange_rate.rb +2 -1
  53. data/lib/stripe/resources/file.rb +6 -14
  54. data/lib/stripe/resources/file_link.rb +2 -1
  55. data/lib/stripe/resources/identity/verification_report.rb +12 -0
  56. data/lib/stripe/resources/identity/verification_session.rb +35 -0
  57. data/lib/stripe/resources/invoice.rb +8 -2
  58. data/lib/stripe/resources/invoice_item.rb +2 -1
  59. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  60. data/lib/stripe/resources/issuing/authorization.rb +2 -1
  61. data/lib/stripe/resources/issuing/card.rb +2 -1
  62. data/lib/stripe/resources/issuing/card_details.rb +1 -1
  63. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  64. data/lib/stripe/resources/issuing/dispute.rb +13 -1
  65. data/lib/stripe/resources/issuing/transaction.rb +2 -1
  66. data/lib/stripe/resources/line_item.rb +7 -0
  67. data/lib/stripe/resources/login_link.rb +1 -1
  68. data/lib/stripe/resources/mandate.rb +8 -0
  69. data/lib/stripe/resources/order.rb +2 -9
  70. data/lib/stripe/resources/order_return.rb +2 -1
  71. data/lib/stripe/resources/payment_intent.rb +2 -1
  72. data/lib/stripe/resources/payment_method.rb +2 -1
  73. data/lib/stripe/resources/payout.rb +10 -5
  74. data/lib/stripe/resources/person.rb +1 -1
  75. data/lib/stripe/resources/plan.rb +2 -1
  76. data/lib/stripe/resources/price.rb +12 -0
  77. data/lib/stripe/resources/product.rb +2 -1
  78. data/lib/stripe/resources/promotion_code.rb +12 -0
  79. data/lib/stripe/resources/quote.rb +95 -0
  80. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -1
  81. data/lib/stripe/resources/radar/value_list.rb +2 -1
  82. data/lib/stripe/resources/radar/value_list_item.rb +2 -1
  83. data/lib/stripe/resources/recipient.rb +2 -5
  84. data/lib/stripe/resources/recipient_transfer.rb +1 -1
  85. data/lib/stripe/resources/refund.rb +2 -1
  86. data/lib/stripe/resources/reporting/report_run.rb +2 -1
  87. data/lib/stripe/resources/reporting/report_type.rb +2 -1
  88. data/lib/stripe/resources/reversal.rb +1 -1
  89. data/lib/stripe/resources/review.rb +2 -1
  90. data/lib/stripe/resources/setup_attempt.rb +10 -0
  91. data/lib/stripe/resources/setup_intent.rb +2 -1
  92. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -1
  93. data/lib/stripe/resources/sku.rb +2 -1
  94. data/lib/stripe/resources/source.rb +11 -10
  95. data/lib/stripe/resources/source_transaction.rb +1 -1
  96. data/lib/stripe/resources/subscription.rb +10 -9
  97. data/lib/stripe/resources/subscription_item.rb +8 -2
  98. data/lib/stripe/resources/subscription_schedule.rb +2 -1
  99. data/lib/stripe/resources/tax_code.rb +10 -0
  100. data/lib/stripe/resources/tax_id.rb +1 -1
  101. data/lib/stripe/resources/tax_rate.rb +2 -1
  102. data/lib/stripe/resources/terminal/connection_token.rb +2 -1
  103. data/lib/stripe/resources/terminal/location.rb +2 -1
  104. data/lib/stripe/resources/terminal/reader.rb +2 -1
  105. data/lib/stripe/resources/three_d_secure.rb +2 -1
  106. data/lib/stripe/resources/token.rb +2 -1
  107. data/lib/stripe/resources/topup.rb +2 -1
  108. data/lib/stripe/resources/transfer.rb +2 -6
  109. data/lib/stripe/resources/usage_record.rb +1 -17
  110. data/lib/stripe/resources/usage_record_summary.rb +1 -1
  111. data/lib/stripe/resources/webhook_endpoint.rb +2 -1
  112. data/lib/stripe/stripe_client.rb +608 -242
  113. data/lib/stripe/stripe_configuration.rb +194 -0
  114. data/lib/stripe/stripe_object.rb +30 -25
  115. data/lib/stripe/stripe_response.rb +87 -27
  116. data/lib/stripe/util.rb +37 -18
  117. data/lib/stripe/version.rb +1 -1
  118. data/lib/stripe/webhook.rb +39 -8
  119. data/stripe.gemspec +15 -11
  120. metadata +24 -216
  121. data/.editorconfig +0 -10
  122. data/.gitattributes +0 -4
  123. data/.github/ISSUE_TEMPLATE.md +0 -5
  124. data/.gitignore +0 -8
  125. data/.rubocop.yml +0 -43
  126. data/.rubocop_todo.yml +0 -38
  127. data/.travis.yml +0 -43
  128. data/.vscode/extensions.json +0 -7
  129. data/.vscode/settings.json +0 -8
  130. data/lib/stripe/resources/issuer_fraud_record.rb +0 -9
  131. data/test/api_stub_helpers.rb +0 -1
  132. data/test/openapi/README.md +0 -9
  133. data/test/stripe/account_link_test.rb +0 -18
  134. data/test/stripe/account_test.rb +0 -428
  135. data/test/stripe/alipay_account_test.rb +0 -37
  136. data/test/stripe/api_operations_test.rb +0 -80
  137. data/test/stripe/api_resource_test.rb +0 -621
  138. data/test/stripe/apple_pay_domain_test.rb +0 -46
  139. data/test/stripe/application_fee_refund_test.rb +0 -37
  140. data/test/stripe/application_fee_test.rb +0 -58
  141. data/test/stripe/balance_test.rb +0 -13
  142. data/test/stripe/balance_transaction_test.rb +0 -20
  143. data/test/stripe/bank_account_test.rb +0 -36
  144. data/test/stripe/capability_test.rb +0 -45
  145. data/test/stripe/charge_test.rb +0 -80
  146. data/test/stripe/checkout/session_test.rb +0 -41
  147. data/test/stripe/country_spec_test.rb +0 -20
  148. data/test/stripe/coupon_test.rb +0 -61
  149. data/test/stripe/credit_note_test.rb +0 -61
  150. data/test/stripe/customer_balance_transaction_test.rb +0 -37
  151. data/test/stripe/customer_card_test.rb +0 -42
  152. data/test/stripe/customer_test.rb +0 -269
  153. data/test/stripe/dispute_test.rb +0 -51
  154. data/test/stripe/ephemeral_key_test.rb +0 -93
  155. data/test/stripe/errors_test.rb +0 -20
  156. data/test/stripe/exchange_rate_test.rb +0 -20
  157. data/test/stripe/file_link_test.rb +0 -41
  158. data/test/stripe/file_test.rb +0 -97
  159. data/test/stripe/file_upload_test.rb +0 -79
  160. data/test/stripe/invoice_item_test.rb +0 -66
  161. data/test/stripe/invoice_line_item_test.rb +0 -8
  162. data/test/stripe/invoice_test.rb +0 -213
  163. data/test/stripe/issuer_fraud_record_test.rb +0 -20
  164. data/test/stripe/issuing/authorization_test.rb +0 -72
  165. data/test/stripe/issuing/card_test.rb +0 -62
  166. data/test/stripe/issuing/cardholder_test.rb +0 -53
  167. data/test/stripe/issuing/dispute_test.rb +0 -45
  168. data/test/stripe/issuing/transaction_test.rb +0 -48
  169. data/test/stripe/list_object_test.rb +0 -156
  170. data/test/stripe/login_link_test.rb +0 -37
  171. data/test/stripe/oauth_test.rb +0 -88
  172. data/test/stripe/order_return_test.rb +0 -21
  173. data/test/stripe/order_test.rb +0 -82
  174. data/test/stripe/payment_intent_test.rb +0 -107
  175. data/test/stripe/payment_method_test.rb +0 -84
  176. data/test/stripe/payout_test.rb +0 -57
  177. data/test/stripe/person_test.rb +0 -46
  178. data/test/stripe/plan_test.rb +0 -98
  179. data/test/stripe/product_test.rb +0 -59
  180. data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
  181. data/test/stripe/radar/value_list_item_test.rb +0 -48
  182. data/test/stripe/radar/value_list_test.rb +0 -61
  183. data/test/stripe/recipient_test.rb +0 -62
  184. data/test/stripe/refund_test.rb +0 -39
  185. data/test/stripe/reporting/report_run_test.rb +0 -33
  186. data/test/stripe/reporting/report_type_test.rb +0 -22
  187. data/test/stripe/reversal_test.rb +0 -43
  188. data/test/stripe/review_test.rb +0 -27
  189. data/test/stripe/setup_intent_test.rb +0 -84
  190. data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
  191. data/test/stripe/sku_test.rb +0 -60
  192. data/test/stripe/source_test.rb +0 -99
  193. data/test/stripe/source_transaction_test.rb +0 -19
  194. data/test/stripe/stripe_client_test.rb +0 -842
  195. data/test/stripe/stripe_object_test.rb +0 -525
  196. data/test/stripe/stripe_response_test.rb +0 -49
  197. data/test/stripe/subscription_item_test.rb +0 -75
  198. data/test/stripe/subscription_schedule_test.rb +0 -82
  199. data/test/stripe/subscription_test.rb +0 -80
  200. data/test/stripe/tax_id_test.rb +0 -31
  201. data/test/stripe/tax_rate_test.rb +0 -43
  202. data/test/stripe/terminal/connection_token_test.rb +0 -16
  203. data/test/stripe/terminal/location_test.rb +0 -68
  204. data/test/stripe/terminal/reader_test.rb +0 -62
  205. data/test/stripe/three_d_secure_test.rb +0 -23
  206. data/test/stripe/topup_test.rb +0 -62
  207. data/test/stripe/transfer_test.rb +0 -88
  208. data/test/stripe/usage_record_summary_test.rb +0 -19
  209. data/test/stripe/usage_record_test.rb +0 -28
  210. data/test/stripe/util_test.rb +0 -402
  211. data/test/stripe/webhook_endpoint_test.rb +0 -59
  212. data/test/stripe/webhook_test.rb +0 -96
  213. data/test/stripe_mock.rb +0 -77
  214. data/test/stripe_test.rb +0 -63
  215. data/test/test_data.rb +0 -61
  216. data/test/test_helper.rb +0 -71
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "4.24.0".freeze
4
+ VERSION = "5.36.0"
5
5
  end
@@ -22,12 +22,39 @@ module Stripe
22
22
  end
23
23
 
24
24
  module Signature
25
- EXPECTED_SCHEME = "v1".freeze
25
+ EXPECTED_SCHEME = "v1"
26
26
 
27
- def self.compute_signature(payload, secret)
28
- OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new("sha256"), secret, payload)
27
+ # Computes a webhook signature given a time (probably the current time),
28
+ # a payload, and a signing secret.
29
+ def self.compute_signature(timestamp, payload, secret)
30
+ raise ArgumentError, "timestamp should be an instance of Time" \
31
+ unless timestamp.is_a?(Time)
32
+ raise ArgumentError, "payload should be a string" \
33
+ unless payload.is_a?(String)
34
+ raise ArgumentError, "secret should be a string" \
35
+ unless secret.is_a?(String)
36
+
37
+ timestamped_payload = "#{timestamp.to_i}.#{payload}"
38
+ OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new("sha256"), secret,
39
+ timestamped_payload)
40
+ end
41
+
42
+ # Generates a value that would be added to a `Stripe-Signature` for a
43
+ # given webhook payload.
44
+ #
45
+ # Note that this isn't needed to verify webhooks in any way, and is
46
+ # mainly here for use in test cases (those that are both within this
47
+ # project and without).
48
+ def self.generate_header(timestamp, signature, scheme: EXPECTED_SCHEME)
49
+ raise ArgumentError, "timestamp should be an instance of Time" \
50
+ unless timestamp.is_a?(Time)
51
+ raise ArgumentError, "signature should be a string" \
52
+ unless signature.is_a?(String)
53
+ raise ArgumentError, "scheme should be a string" \
54
+ unless scheme.is_a?(String)
55
+
56
+ "t=#{timestamp.to_i},#{scheme}=#{signature}"
29
57
  end
30
- private_class_method :compute_signature
31
58
 
32
59
  # Extracts the timestamp and the signature(s) with the desired scheme
33
60
  # from the header
@@ -35,7 +62,7 @@ module Stripe
35
62
  list_items = header.split(/,\s*/).map { |i| i.split("=", 2) }
36
63
  timestamp = Integer(list_items.select { |i| i[0] == "t" }[0][1])
37
64
  signatures = list_items.select { |i| i[0] == scheme }.map { |i| i[1] }
38
- [timestamp, signatures]
65
+ [Time.at(timestamp), signatures]
39
66
  end
40
67
  private_class_method :get_timestamp_and_signatures
41
68
 
@@ -53,6 +80,11 @@ module Stripe
53
80
  begin
54
81
  timestamp, signatures =
55
82
  get_timestamp_and_signatures(header, EXPECTED_SCHEME)
83
+
84
+ # TODO: Try to knock over this blanket rescue as it can unintentionally
85
+ # swallow many valid errors. Instead, try to validate an incoming
86
+ # header one piece at a time, and error with a known exception class if
87
+ # any part is found to be invalid. Rescue that class here.
56
88
  rescue StandardError
57
89
  raise SignatureVerificationError.new(
58
90
  "Unable to extract timestamp and signatures from header",
@@ -67,8 +99,7 @@ module Stripe
67
99
  )
68
100
  end
69
101
 
70
- signed_payload = "#{timestamp}.#{payload}"
71
- expected_sig = compute_signature(signed_payload, secret)
102
+ expected_sig = compute_signature(timestamp, payload, secret)
72
103
  unless signatures.any? { |s| Util.secure_compare(expected_sig, s) }
73
104
  raise SignatureVerificationError.new(
74
105
  "No signatures found matching the expected signature for payload",
@@ -76,7 +107,7 @@ module Stripe
76
107
  )
77
108
  end
78
109
 
79
- if tolerance && timestamp < Time.now.to_f - tolerance
110
+ if tolerance && timestamp < Time.now - tolerance
80
111
  raise SignatureVerificationError.new(
81
112
  "Timestamp outside the tolerance zone (#{Time.at(timestamp)})",
82
113
  header, http_body: payload
data/stripe.gemspec CHANGED
@@ -7,7 +7,7 @@ require "stripe/version"
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "stripe"
9
9
  s.version = Stripe::VERSION
10
- s.required_ruby_version = ">= 2.1.0"
10
+ s.required_ruby_version = ">= 2.3.0"
11
11
  s.summary = "Ruby bindings for the Stripe API"
12
12
  s.description = "Stripe is the easiest way to accept payments online. " \
13
13
  "See https://stripe.com for details."
@@ -17,20 +17,24 @@ Gem::Specification.new do |s|
17
17
  s.license = "MIT"
18
18
 
19
19
  s.metadata = {
20
- "bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
21
- "changelog_uri" =>
20
+ "bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
21
+ "changelog_uri" =>
22
22
  "https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md",
23
23
  "documentation_uri" => "https://stripe.com/docs/api/ruby",
24
- "github_repo" => "ssh://github.com/stripe/stripe-ruby",
25
- "homepage_uri" => "https://stripe.com/docs/api/ruby",
26
- "source_code_uri" => "https://github.com/stripe/stripe-ruby",
24
+ "github_repo" => "ssh://github.com/stripe/stripe-ruby",
25
+ "homepage_uri" => "https://stripe.com/docs/api/ruby",
26
+ "source_code_uri" => "https://github.com/stripe/stripe-ruby",
27
27
  }
28
28
 
29
- s.add_dependency("faraday", "~> 0.13")
30
- s.add_dependency("net-http-persistent", "~> 3.0")
31
-
32
- s.files = `git ls-files`.split("\n")
33
- s.test_files = `git ls-files -- test/*`.split("\n")
29
+ ignored = Regexp.union(
30
+ /\A\.editorconfig/,
31
+ /\A\.git/,
32
+ /\A\.rubocop/,
33
+ /\A\.travis.yml/,
34
+ /\A\.vscode/,
35
+ /\Atest/
36
+ )
37
+ s.files = `git ls-files`.split("\n").reject { |f| ignored.match(f) }
34
38
  s.executables = `git ls-files -- bin/*`.split("\n")
35
39
  .map { |f| ::File.basename(f) }
36
40
  s.require_paths = ["lib"]
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.24.0
4
+ version: 5.36.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-08-13 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: 2021-07-09 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,16 +18,8 @@ executables:
46
18
  extensions: []
47
19
  extra_rdoc_files: []
48
20
  files:
49
- - ".editorconfig"
50
- - ".gitattributes"
51
- - ".github/ISSUE_TEMPLATE.md"
52
- - ".gitignore"
53
- - ".rubocop.yml"
54
- - ".rubocop_todo.yml"
55
- - ".travis.yml"
56
- - ".vscode/extensions.json"
57
- - ".vscode/settings.json"
58
21
  - CHANGELOG.md
22
+ - CODE_OF_CONDUCT.md
59
23
  - CONTRIBUTORS
60
24
  - Gemfile
61
25
  - History.txt
@@ -73,8 +37,12 @@ files:
73
37
  - lib/stripe/api_operations/request.rb
74
38
  - lib/stripe/api_operations/save.rb
75
39
  - lib/stripe/api_resource.rb
40
+ - lib/stripe/connection_manager.rb
41
+ - lib/stripe/error_object.rb
76
42
  - lib/stripe/errors.rb
43
+ - lib/stripe/instrumentation.rb
77
44
  - lib/stripe/list_object.rb
45
+ - lib/stripe/multipart_encoder.rb
78
46
  - lib/stripe/oauth.rb
79
47
  - lib/stripe/object_types.rb
80
48
  - lib/stripe/resources.rb
@@ -87,6 +55,8 @@ files:
87
55
  - lib/stripe/resources/balance.rb
88
56
  - lib/stripe/resources/balance_transaction.rb
89
57
  - lib/stripe/resources/bank_account.rb
58
+ - lib/stripe/resources/billing_portal/configuration.rb
59
+ - lib/stripe/resources/billing_portal/session.rb
90
60
  - lib/stripe/resources/bitcoin_receiver.rb
91
61
  - lib/stripe/resources/bitcoin_transaction.rb
92
62
  - lib/stripe/resources/capability.rb
@@ -96,6 +66,7 @@ files:
96
66
  - lib/stripe/resources/country_spec.rb
97
67
  - lib/stripe/resources/coupon.rb
98
68
  - lib/stripe/resources/credit_note.rb
69
+ - lib/stripe/resources/credit_note_line_item.rb
99
70
  - lib/stripe/resources/customer.rb
100
71
  - lib/stripe/resources/customer_balance_transaction.rb
101
72
  - lib/stripe/resources/discount.rb
@@ -105,17 +76,20 @@ files:
105
76
  - lib/stripe/resources/exchange_rate.rb
106
77
  - lib/stripe/resources/file.rb
107
78
  - lib/stripe/resources/file_link.rb
79
+ - lib/stripe/resources/identity/verification_report.rb
80
+ - lib/stripe/resources/identity/verification_session.rb
108
81
  - lib/stripe/resources/invoice.rb
109
82
  - lib/stripe/resources/invoice_item.rb
110
83
  - lib/stripe/resources/invoice_line_item.rb
111
- - lib/stripe/resources/issuer_fraud_record.rb
112
84
  - lib/stripe/resources/issuing/authorization.rb
113
85
  - lib/stripe/resources/issuing/card.rb
114
86
  - lib/stripe/resources/issuing/card_details.rb
115
87
  - lib/stripe/resources/issuing/cardholder.rb
116
88
  - lib/stripe/resources/issuing/dispute.rb
117
89
  - lib/stripe/resources/issuing/transaction.rb
90
+ - lib/stripe/resources/line_item.rb
118
91
  - lib/stripe/resources/login_link.rb
92
+ - lib/stripe/resources/mandate.rb
119
93
  - lib/stripe/resources/order.rb
120
94
  - lib/stripe/resources/order_return.rb
121
95
  - lib/stripe/resources/payment_intent.rb
@@ -123,7 +97,10 @@ files:
123
97
  - lib/stripe/resources/payout.rb
124
98
  - lib/stripe/resources/person.rb
125
99
  - lib/stripe/resources/plan.rb
100
+ - lib/stripe/resources/price.rb
126
101
  - lib/stripe/resources/product.rb
102
+ - lib/stripe/resources/promotion_code.rb
103
+ - lib/stripe/resources/quote.rb
127
104
  - lib/stripe/resources/radar/early_fraud_warning.rb
128
105
  - lib/stripe/resources/radar/value_list.rb
129
106
  - lib/stripe/resources/radar/value_list_item.rb
@@ -134,6 +111,7 @@ files:
134
111
  - lib/stripe/resources/reporting/report_type.rb
135
112
  - lib/stripe/resources/reversal.rb
136
113
  - lib/stripe/resources/review.rb
114
+ - lib/stripe/resources/setup_attempt.rb
137
115
  - lib/stripe/resources/setup_intent.rb
138
116
  - lib/stripe/resources/sigma/scheduled_query_run.rb
139
117
  - lib/stripe/resources/sku.rb
@@ -142,6 +120,7 @@ files:
142
120
  - lib/stripe/resources/subscription.rb
143
121
  - lib/stripe/resources/subscription_item.rb
144
122
  - lib/stripe/resources/subscription_schedule.rb
123
+ - lib/stripe/resources/tax_code.rb
145
124
  - lib/stripe/resources/tax_id.rb
146
125
  - lib/stripe/resources/tax_rate.rb
147
126
  - lib/stripe/resources/terminal/connection_token.rb
@@ -156,98 +135,13 @@ files:
156
135
  - lib/stripe/resources/webhook_endpoint.rb
157
136
  - lib/stripe/singleton_api_resource.rb
158
137
  - lib/stripe/stripe_client.rb
138
+ - lib/stripe/stripe_configuration.rb
159
139
  - lib/stripe/stripe_object.rb
160
140
  - lib/stripe/stripe_response.rb
161
141
  - lib/stripe/util.rb
162
142
  - lib/stripe/version.rb
163
143
  - lib/stripe/webhook.rb
164
144
  - stripe.gemspec
165
- - test/api_stub_helpers.rb
166
- - test/openapi/README.md
167
- - test/stripe/account_link_test.rb
168
- - test/stripe/account_test.rb
169
- - test/stripe/alipay_account_test.rb
170
- - test/stripe/api_operations_test.rb
171
- - test/stripe/api_resource_test.rb
172
- - test/stripe/apple_pay_domain_test.rb
173
- - test/stripe/application_fee_refund_test.rb
174
- - test/stripe/application_fee_test.rb
175
- - test/stripe/balance_test.rb
176
- - test/stripe/balance_transaction_test.rb
177
- - test/stripe/bank_account_test.rb
178
- - test/stripe/capability_test.rb
179
- - test/stripe/charge_test.rb
180
- - test/stripe/checkout/session_test.rb
181
- - test/stripe/country_spec_test.rb
182
- - test/stripe/coupon_test.rb
183
- - test/stripe/credit_note_test.rb
184
- - test/stripe/customer_balance_transaction_test.rb
185
- - test/stripe/customer_card_test.rb
186
- - test/stripe/customer_test.rb
187
- - test/stripe/dispute_test.rb
188
- - test/stripe/ephemeral_key_test.rb
189
- - test/stripe/errors_test.rb
190
- - test/stripe/exchange_rate_test.rb
191
- - test/stripe/file_link_test.rb
192
- - test/stripe/file_test.rb
193
- - test/stripe/file_upload_test.rb
194
- - test/stripe/invoice_item_test.rb
195
- - test/stripe/invoice_line_item_test.rb
196
- - test/stripe/invoice_test.rb
197
- - test/stripe/issuer_fraud_record_test.rb
198
- - test/stripe/issuing/authorization_test.rb
199
- - test/stripe/issuing/card_test.rb
200
- - test/stripe/issuing/cardholder_test.rb
201
- - test/stripe/issuing/dispute_test.rb
202
- - test/stripe/issuing/transaction_test.rb
203
- - test/stripe/list_object_test.rb
204
- - test/stripe/login_link_test.rb
205
- - test/stripe/oauth_test.rb
206
- - test/stripe/order_return_test.rb
207
- - test/stripe/order_test.rb
208
- - test/stripe/payment_intent_test.rb
209
- - test/stripe/payment_method_test.rb
210
- - test/stripe/payout_test.rb
211
- - test/stripe/person_test.rb
212
- - test/stripe/plan_test.rb
213
- - test/stripe/product_test.rb
214
- - test/stripe/radar/early_fraud_warning_test.rb
215
- - test/stripe/radar/value_list_item_test.rb
216
- - test/stripe/radar/value_list_test.rb
217
- - test/stripe/recipient_test.rb
218
- - test/stripe/refund_test.rb
219
- - test/stripe/reporting/report_run_test.rb
220
- - test/stripe/reporting/report_type_test.rb
221
- - test/stripe/reversal_test.rb
222
- - test/stripe/review_test.rb
223
- - test/stripe/setup_intent_test.rb
224
- - test/stripe/sigma/scheduled_query_run_test.rb
225
- - test/stripe/sku_test.rb
226
- - test/stripe/source_test.rb
227
- - test/stripe/source_transaction_test.rb
228
- - test/stripe/stripe_client_test.rb
229
- - test/stripe/stripe_object_test.rb
230
- - test/stripe/stripe_response_test.rb
231
- - test/stripe/subscription_item_test.rb
232
- - test/stripe/subscription_schedule_test.rb
233
- - test/stripe/subscription_test.rb
234
- - test/stripe/tax_id_test.rb
235
- - test/stripe/tax_rate_test.rb
236
- - test/stripe/terminal/connection_token_test.rb
237
- - test/stripe/terminal/location_test.rb
238
- - test/stripe/terminal/reader_test.rb
239
- - test/stripe/three_d_secure_test.rb
240
- - test/stripe/topup_test.rb
241
- - test/stripe/transfer_test.rb
242
- - test/stripe/usage_record_summary_test.rb
243
- - test/stripe/usage_record_test.rb
244
- - test/stripe/util_test.rb
245
- - test/stripe/webhook_endpoint_test.rb
246
- - test/stripe/webhook_test.rb
247
- - test/stripe_mock.rb
248
- - test/stripe_test.rb
249
- - test/test_data.rb
250
- - test/test_helper.rb
251
145
  homepage: https://stripe.com/docs/api/ruby
252
146
  licenses:
253
147
  - MIT
@@ -266,101 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
266
160
  requirements:
267
161
  - - ">="
268
162
  - !ruby/object:Gem::Version
269
- version: 2.1.0
163
+ version: 2.3.0
270
164
  required_rubygems_version: !ruby/object:Gem::Requirement
271
165
  requirements:
272
166
  - - ">="
273
167
  - !ruby/object:Gem::Version
274
168
  version: '0'
275
169
  requirements: []
276
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.1.2
277
171
  signing_key:
278
172
  specification_version: 4
279
173
  summary: Ruby bindings for the Stripe API
280
- test_files:
281
- - test/api_stub_helpers.rb
282
- - test/openapi/README.md
283
- - test/stripe/account_link_test.rb
284
- - test/stripe/account_test.rb
285
- - test/stripe/alipay_account_test.rb
286
- - test/stripe/api_operations_test.rb
287
- - test/stripe/api_resource_test.rb
288
- - test/stripe/apple_pay_domain_test.rb
289
- - test/stripe/application_fee_refund_test.rb
290
- - test/stripe/application_fee_test.rb
291
- - test/stripe/balance_test.rb
292
- - test/stripe/balance_transaction_test.rb
293
- - test/stripe/bank_account_test.rb
294
- - test/stripe/capability_test.rb
295
- - test/stripe/charge_test.rb
296
- - test/stripe/checkout/session_test.rb
297
- - test/stripe/country_spec_test.rb
298
- - test/stripe/coupon_test.rb
299
- - test/stripe/credit_note_test.rb
300
- - test/stripe/customer_balance_transaction_test.rb
301
- - test/stripe/customer_card_test.rb
302
- - test/stripe/customer_test.rb
303
- - test/stripe/dispute_test.rb
304
- - test/stripe/ephemeral_key_test.rb
305
- - test/stripe/errors_test.rb
306
- - test/stripe/exchange_rate_test.rb
307
- - test/stripe/file_link_test.rb
308
- - test/stripe/file_test.rb
309
- - test/stripe/file_upload_test.rb
310
- - test/stripe/invoice_item_test.rb
311
- - test/stripe/invoice_line_item_test.rb
312
- - test/stripe/invoice_test.rb
313
- - test/stripe/issuer_fraud_record_test.rb
314
- - test/stripe/issuing/authorization_test.rb
315
- - test/stripe/issuing/card_test.rb
316
- - test/stripe/issuing/cardholder_test.rb
317
- - test/stripe/issuing/dispute_test.rb
318
- - test/stripe/issuing/transaction_test.rb
319
- - test/stripe/list_object_test.rb
320
- - test/stripe/login_link_test.rb
321
- - test/stripe/oauth_test.rb
322
- - test/stripe/order_return_test.rb
323
- - test/stripe/order_test.rb
324
- - test/stripe/payment_intent_test.rb
325
- - test/stripe/payment_method_test.rb
326
- - test/stripe/payout_test.rb
327
- - test/stripe/person_test.rb
328
- - test/stripe/plan_test.rb
329
- - test/stripe/product_test.rb
330
- - test/stripe/radar/early_fraud_warning_test.rb
331
- - test/stripe/radar/value_list_item_test.rb
332
- - test/stripe/radar/value_list_test.rb
333
- - test/stripe/recipient_test.rb
334
- - test/stripe/refund_test.rb
335
- - test/stripe/reporting/report_run_test.rb
336
- - test/stripe/reporting/report_type_test.rb
337
- - test/stripe/reversal_test.rb
338
- - test/stripe/review_test.rb
339
- - test/stripe/setup_intent_test.rb
340
- - test/stripe/sigma/scheduled_query_run_test.rb
341
- - test/stripe/sku_test.rb
342
- - test/stripe/source_test.rb
343
- - test/stripe/source_transaction_test.rb
344
- - test/stripe/stripe_client_test.rb
345
- - test/stripe/stripe_object_test.rb
346
- - test/stripe/stripe_response_test.rb
347
- - test/stripe/subscription_item_test.rb
348
- - test/stripe/subscription_schedule_test.rb
349
- - test/stripe/subscription_test.rb
350
- - test/stripe/tax_id_test.rb
351
- - test/stripe/tax_rate_test.rb
352
- - test/stripe/terminal/connection_token_test.rb
353
- - test/stripe/terminal/location_test.rb
354
- - test/stripe/terminal/reader_test.rb
355
- - test/stripe/three_d_secure_test.rb
356
- - test/stripe/topup_test.rb
357
- - test/stripe/transfer_test.rb
358
- - test/stripe/usage_record_summary_test.rb
359
- - test/stripe/usage_record_test.rb
360
- - test/stripe/util_test.rb
361
- - test/stripe/webhook_endpoint_test.rb
362
- - test/stripe/webhook_test.rb
363
- - test/stripe_mock.rb
364
- - test/stripe_test.rb
365
- - test/test_data.rb
366
- - test/test_helper.rb
174
+ test_files: []