stripe 13.3.0.pre.beta.3 → 13.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +657 -1401
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +0 -32
  6. data/lib/stripe/resources/account.rb +2 -232
  7. data/lib/stripe/resources/account_link.rb +0 -9
  8. data/lib/stripe/resources/account_session.rb +0 -103
  9. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  10. data/lib/stripe/resources/application_fee.rb +2 -36
  11. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  12. data/lib/stripe/resources/apps/secret.rb +2 -24
  13. data/lib/stripe/resources/balance.rb +0 -59
  14. data/lib/stripe/resources/balance_transaction.rb +2 -36
  15. data/lib/stripe/resources/bank_account.rb +3 -61
  16. data/lib/stripe/resources/billing/alert.rb +2 -23
  17. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  18. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
  19. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  20. data/lib/stripe/resources/billing/meter.rb +2 -44
  21. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  22. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  23. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  24. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  25. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  26. data/lib/stripe/resources/capability.rb +0 -38
  27. data/lib/stripe/resources/card.rb +1 -77
  28. data/lib/stripe/resources/cash_balance.rb +0 -14
  29. data/lib/stripe/resources/charge.rb +2 -471
  30. data/lib/stripe/resources/checkout/session.rb +2 -498
  31. data/lib/stripe/resources/climate/order.rb +2 -57
  32. data/lib/stripe/resources/climate/product.rb +2 -26
  33. data/lib/stripe/resources/climate/supplier.rb +2 -20
  34. data/lib/stripe/resources/confirmation_token.rb +0 -297
  35. data/lib/stripe/resources/country_spec.rb +2 -29
  36. data/lib/stripe/resources/coupon.rb +2 -46
  37. data/lib/stripe/resources/credit_note.rb +2 -93
  38. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  39. data/lib/stripe/resources/customer.rb +2 -95
  40. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  42. data/lib/stripe/resources/customer_session.rb +0 -34
  43. data/lib/stripe/resources/discount.rb +0 -29
  44. data/lib/stripe/resources/dispute.rb +2 -98
  45. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  46. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  47. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  48. data/lib/stripe/resources/event.rb +2 -46
  49. data/lib/stripe/resources/exchange_rate.rb +2 -9
  50. data/lib/stripe/resources/file.rb +2 -25
  51. data/lib/stripe/resources/file_link.rb +2 -21
  52. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  53. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  54. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  55. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  56. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  57. data/lib/stripe/resources/forwarding/request.rb +2 -42
  58. data/lib/stripe/resources/funding_instructions.rb +0 -82
  59. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  60. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  61. data/lib/stripe/resources/invoice.rb +2 -420
  62. data/lib/stripe/resources/invoice_item.rb +2 -56
  63. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  64. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  65. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  66. data/lib/stripe/resources/issuing/card.rb +2 -88
  67. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  68. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  69. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  70. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  71. data/lib/stripe/resources/issuing/token.rb +2 -48
  72. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  73. data/lib/stripe/resources/line_item.rb +0 -50
  74. data/lib/stripe/resources/login_link.rb +0 -7
  75. data/lib/stripe/resources/mandate.rb +0 -78
  76. data/lib/stripe/resources/payment_intent.rb +2 -714
  77. data/lib/stripe/resources/payment_link.rb +2 -200
  78. data/lib/stripe/resources/payment_method.rb +2 -370
  79. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  80. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  81. data/lib/stripe/resources/payout.rb +2 -58
  82. data/lib/stripe/resources/person.rb +0 -128
  83. data/lib/stripe/resources/plan.rb +2 -54
  84. data/lib/stripe/resources/price.rb +2 -79
  85. data/lib/stripe/resources/product.rb +2 -62
  86. data/lib/stripe/resources/product_feature.rb +0 -12
  87. data/lib/stripe/resources/promotion_code.rb +2 -37
  88. data/lib/stripe/resources/quote.rb +2 -358
  89. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  90. data/lib/stripe/resources/radar/value_list.rb +2 -25
  91. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  92. data/lib/stripe/resources/refund.rb +2 -132
  93. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  94. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  95. data/lib/stripe/resources/reversal.rb +0 -21
  96. data/lib/stripe/resources/review.rb +2 -38
  97. data/lib/stripe/resources/setup_attempt.rb +2 -103
  98. data/lib/stripe/resources/setup_intent.rb +2 -160
  99. data/lib/stripe/resources/shipping_rate.rb +2 -44
  100. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  101. data/lib/stripe/resources/source.rb +0 -197
  102. data/lib/stripe/resources/source_transaction.rb +0 -48
  103. data/lib/stripe/resources/subscription.rb +2 -216
  104. data/lib/stripe/resources/subscription_item.rb +2 -48
  105. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  106. data/lib/stripe/resources/tax/calculation.rb +0 -72
  107. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  108. data/lib/stripe/resources/tax/registration.rb +2 -381
  109. data/lib/stripe/resources/tax/settings.rb +0 -33
  110. data/lib/stripe/resources/tax/transaction.rb +0 -68
  111. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  112. data/lib/stripe/resources/tax_code.rb +2 -11
  113. data/lib/stripe/resources/tax_id.rb +2 -32
  114. data/lib/stripe/resources/tax_rate.rb +2 -44
  115. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  116. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  117. data/lib/stripe/resources/terminal/location.rb +2 -22
  118. data/lib/stripe/resources/terminal/reader.rb +2 -180
  119. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  120. data/lib/stripe/resources/token.rb +0 -29
  121. data/lib/stripe/resources/topup.rb +2 -35
  122. data/lib/stripe/resources/transfer.rb +2 -37
  123. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  124. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  125. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  126. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  127. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  128. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  129. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  130. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  131. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  132. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  133. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  134. data/lib/stripe/resources/usage_record.rb +0 -13
  135. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  136. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  138. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  139. data/lib/stripe/resources/v2/event.rb +0 -21
  140. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  141. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  142. data/lib/stripe/resources.rb +0 -31
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/invoice_service.rb +1 -44
  146. data/lib/stripe/services/issuing_service.rb +1 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -37
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/tax_service.rb +1 -3
  151. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  152. data/lib/stripe/services/terminal_service.rb +1 -2
  153. data/lib/stripe/services/v1_services.rb +1 -8
  154. data/lib/stripe/services.rb +0 -25
  155. data/lib/stripe/stripe_client.rb +7 -2
  156. data/lib/stripe/stripe_configuration.rb +22 -4
  157. data/lib/stripe/stripe_object.rb +3 -8
  158. data/lib/stripe/thin_event.rb +22 -2
  159. data/lib/stripe/util.rb +2 -8
  160. data/lib/stripe/version.rb +1 -1
  161. data/lib/stripe.rb +22 -45
  162. data/stripe.gemspec +1 -2
  163. metadata +7 -65
  164. data/lib/stripe/request_signing_authenticator.rb +0 -79
  165. data/lib/stripe/resources/account_notice.rb +0 -60
  166. data/lib/stripe/resources/application.rb +0 -20
  167. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  168. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  169. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  170. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  171. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  172. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  173. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  174. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  175. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  176. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  177. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  178. data/lib/stripe/resources/invoice_payment.rb +0 -46
  179. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  180. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  181. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  182. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  183. data/lib/stripe/resources/margin.rb +0 -56
  184. data/lib/stripe/resources/order.rb +0 -322
  185. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  186. data/lib/stripe/resources/payment_record.rb +0 -188
  187. data/lib/stripe/resources/quote_line.rb +0 -136
  188. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  189. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  190. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  191. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  192. data/lib/stripe/resources/tax/association.rb +0 -60
  193. data/lib/stripe/resources/tax/form.rb +0 -124
  194. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  195. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  196. data/lib/stripe/resources/v2/amount.rb +0 -9
  197. data/lib/stripe/services/account_notice_service.rb +0 -39
  198. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  199. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  200. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  201. data/lib/stripe/services/capital_service.rb +0 -15
  202. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  203. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  204. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  205. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  206. data/lib/stripe/services/gift_cards_service.rb +0 -14
  207. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  208. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  209. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  210. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  211. data/lib/stripe/services/margin_service.rb +0 -50
  212. data/lib/stripe/services/order_line_item_service.rb +0 -17
  213. data/lib/stripe/services/order_service.rb +0 -78
  214. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  215. data/lib/stripe/services/payment_record_service.rb +0 -78
  216. data/lib/stripe/services/quote_line_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  219. data/lib/stripe/services/tax/association_service.rb +0 -19
  220. data/lib/stripe/services/tax/form_service.rb +0 -37
  221. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
data/lib/stripe.rb CHANGED
@@ -13,7 +13,6 @@ require "set"
13
13
  require "socket"
14
14
  require "uri"
15
15
  require "forwardable"
16
- require "base64"
17
16
 
18
17
  # Version
19
18
  require "stripe/api_version"
@@ -51,7 +50,6 @@ require "stripe/api_resource_test_helpers"
51
50
  require "stripe/singleton_api_resource"
52
51
  require "stripe/webhook"
53
52
  require "stripe/stripe_configuration"
54
- require "stripe/request_signing_authenticator"
55
53
  require "stripe/thin_event"
56
54
 
57
55
  # Named API resources
@@ -76,6 +74,28 @@ module Stripe
76
74
  DEFAULT_UPLOAD_BASE = "https://files.stripe.com"
77
75
  DEFAULT_METER_EVENTS_BASE = "https://meter-events.stripe.com"
78
76
 
77
+ # Options that can be configured globally by users
78
+ USER_CONFIGURABLE_GLOBAL_OPTIONS = Set.new(%i[
79
+ api_key
80
+ api_version
81
+ stripe_account
82
+ api_base
83
+ uploads_base
84
+ connect_base
85
+ meter_events_base
86
+ open_timeout
87
+ read_timeout
88
+ write_timeout
89
+ proxy
90
+ verify_ssl_certs
91
+ ca_bundle_path
92
+ log_level
93
+ logger
94
+ max_network_retries
95
+ enable_telemetry
96
+ client_id
97
+ ])
98
+
79
99
  @app_info = nil
80
100
 
81
101
  @config = Stripe::StripeConfiguration.setup
@@ -87,7 +107,6 @@ module Stripe
87
107
 
88
108
  # User configurable options
89
109
  def_delegators :@config, :api_key, :api_key=
90
- def_delegators :@config, :authenticator, :authenticator=
91
110
  def_delegators :@config, :api_version, :api_version=
92
111
  def_delegators :@config, :stripe_account, :stripe_account=
93
112
  def_delegators :@config, :api_base, :api_base=
@@ -135,48 +154,6 @@ module Stripe
135
154
  version: version,
136
155
  }
137
156
  end
138
-
139
- def self.add_beta_version(beta_name, version)
140
- if api_version.include?("; #{beta_name}=")
141
- raise "Stripe version header #{api_version} already contains entry for beta #{beta_name}"
142
- end
143
-
144
- self.api_version = "#{api_version}; #{beta_name}=#{version}"
145
- end
146
-
147
- class RawRequest
148
- def initialize
149
- @opts = {}
150
- end
151
-
152
- def execute(method, url, base_address: :api, params: {}, opts: {}, usage: [])
153
- opts = Util.normalize_opts(opts)
154
- req_opts = RequestOptions.extract_opts_from_hash(opts)
155
-
156
- requestor = APIRequestor.active_requestor
157
- resp, = requestor.send(:execute_request_internal, method, url, base_address, params, req_opts,
158
- usage)
159
-
160
- requestor.interpret_response(resp)
161
- end
162
- end
163
-
164
- # Sends a request to Stripe REST API
165
- def self.raw_request(method, url, params = {}, opts = {}, base_address: :api)
166
- req = RawRequest.new
167
- req.execute(method, url, base_address: base_address, params: params, opts: opts,
168
- usage: ["raw_request"])
169
- end
170
-
171
- def self.deserialize(data, api_mode: :v1)
172
- data = JSON.parse(data) if data.is_a?(String)
173
- Util.convert_to_stripe_object(data, {}, api_mode: api_mode)
174
- end
175
- class << self
176
- extend Gem::Deprecate
177
- deprecate :raw_request, "StripeClient#raw_request", 2024, 9
178
- deprecate :deserialize, "StripeClient#deserialize", 2024, 9
179
- end
180
157
  end
181
158
 
182
159
  Stripe.log_level = ENV["STRIPE_LOG"] unless ENV["STRIPE_LOG"].nil?
data/stripe.gemspec CHANGED
@@ -35,8 +35,7 @@ Gem::Specification.new do |s|
35
35
  /\A\.vscode/,
36
36
  /\Abin/,
37
37
  /\Asorbet/,
38
- /\Atest/,
39
- /\Arbi/
38
+ /\Atest/
40
39
  )
41
40
  s.files = `git ls-files`.split("\n").grep_v(ignored)
42
41
  s.bindir = "exe"
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: 13.3.0.pre.beta.3
4
+ version: 13.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2025-01-13 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.
@@ -60,15 +60,12 @@ files:
60
60
  - lib/stripe/oauth.rb
61
61
  - lib/stripe/object_types.rb
62
62
  - lib/stripe/request_options.rb
63
- - lib/stripe/request_signing_authenticator.rb
64
63
  - lib/stripe/resources.rb
65
64
  - lib/stripe/resources/account.rb
66
65
  - lib/stripe/resources/account_link.rb
67
- - lib/stripe/resources/account_notice.rb
68
66
  - lib/stripe/resources/account_session.rb
69
67
  - lib/stripe/resources/alipay_account.rb
70
68
  - lib/stripe/resources/apple_pay_domain.rb
71
- - lib/stripe/resources/application.rb
72
69
  - lib/stripe/resources/application_fee.rb
73
70
  - lib/stripe/resources/application_fee_refund.rb
74
71
  - lib/stripe/resources/apps/secret.rb
@@ -76,21 +73,16 @@ files:
76
73
  - lib/stripe/resources/balance_transaction.rb
77
74
  - lib/stripe/resources/bank_account.rb
78
75
  - lib/stripe/resources/billing/alert.rb
79
- - lib/stripe/resources/billing/alert_triggered.rb
80
76
  - lib/stripe/resources/billing/credit_balance_summary.rb
81
77
  - lib/stripe/resources/billing/credit_balance_transaction.rb
82
78
  - lib/stripe/resources/billing/credit_grant.rb
83
79
  - lib/stripe/resources/billing/meter.rb
84
- - lib/stripe/resources/billing/meter_error_report.rb
85
80
  - lib/stripe/resources/billing/meter_event.rb
86
81
  - lib/stripe/resources/billing/meter_event_adjustment.rb
87
82
  - lib/stripe/resources/billing/meter_event_summary.rb
88
83
  - lib/stripe/resources/billing_portal/configuration.rb
89
84
  - lib/stripe/resources/billing_portal/session.rb
90
85
  - lib/stripe/resources/capability.rb
91
- - lib/stripe/resources/capital/financing_offer.rb
92
- - lib/stripe/resources/capital/financing_summary.rb
93
- - lib/stripe/resources/capital/financing_transaction.rb
94
86
  - lib/stripe/resources/card.rb
95
87
  - lib/stripe/resources/cash_balance.rb
96
88
  - lib/stripe/resources/charge.rb
@@ -99,7 +91,6 @@ files:
99
91
  - lib/stripe/resources/climate/product.rb
100
92
  - lib/stripe/resources/climate/supplier.rb
101
93
  - lib/stripe/resources/confirmation_token.rb
102
- - lib/stripe/resources/connect_collection_transfer.rb
103
94
  - lib/stripe/resources/country_spec.rb
104
95
  - lib/stripe/resources/coupon.rb
105
96
  - lib/stripe/resources/credit_note.rb
@@ -111,7 +102,6 @@ files:
111
102
  - lib/stripe/resources/discount.rb
112
103
  - lib/stripe/resources/dispute.rb
113
104
  - lib/stripe/resources/entitlements/active_entitlement.rb
114
- - lib/stripe/resources/entitlements/active_entitlement_summary.rb
115
105
  - lib/stripe/resources/entitlements/feature.rb
116
106
  - lib/stripe/resources/ephemeral_key.rb
117
107
  - lib/stripe/resources/event.rb
@@ -119,47 +109,34 @@ files:
119
109
  - lib/stripe/resources/file.rb
120
110
  - lib/stripe/resources/file_link.rb
121
111
  - lib/stripe/resources/financial_connections/account.rb
122
- - lib/stripe/resources/financial_connections/account_inferred_balance.rb
123
112
  - lib/stripe/resources/financial_connections/account_owner.rb
124
113
  - lib/stripe/resources/financial_connections/account_ownership.rb
125
- - lib/stripe/resources/financial_connections/institution.rb
126
114
  - lib/stripe/resources/financial_connections/session.rb
127
115
  - lib/stripe/resources/financial_connections/transaction.rb
128
116
  - lib/stripe/resources/forwarding/request.rb
129
117
  - lib/stripe/resources/funding_instructions.rb
130
- - lib/stripe/resources/gift_cards/card.rb
131
- - lib/stripe/resources/gift_cards/transaction.rb
132
118
  - lib/stripe/resources/identity/verification_report.rb
133
119
  - lib/stripe/resources/identity/verification_session.rb
134
120
  - lib/stripe/resources/invoice.rb
135
121
  - lib/stripe/resources/invoice_item.rb
136
122
  - lib/stripe/resources/invoice_line_item.rb
137
- - lib/stripe/resources/invoice_payment.rb
138
123
  - lib/stripe/resources/invoice_rendering_template.rb
139
124
  - lib/stripe/resources/issuing/authorization.rb
140
125
  - lib/stripe/resources/issuing/card.rb
141
126
  - lib/stripe/resources/issuing/cardholder.rb
142
- - lib/stripe/resources/issuing/credit_underwriting_record.rb
143
127
  - lib/stripe/resources/issuing/dispute.rb
144
- - lib/stripe/resources/issuing/dispute_settlement_detail.rb
145
- - lib/stripe/resources/issuing/fraud_liability_debit.rb
146
128
  - lib/stripe/resources/issuing/personalization_design.rb
147
129
  - lib/stripe/resources/issuing/physical_bundle.rb
148
- - lib/stripe/resources/issuing/settlement.rb
149
130
  - lib/stripe/resources/issuing/token.rb
150
131
  - lib/stripe/resources/issuing/transaction.rb
151
132
  - lib/stripe/resources/line_item.rb
152
133
  - lib/stripe/resources/login_link.rb
153
134
  - lib/stripe/resources/mandate.rb
154
- - lib/stripe/resources/margin.rb
155
- - lib/stripe/resources/order.rb
156
- - lib/stripe/resources/payment_attempt_record.rb
157
135
  - lib/stripe/resources/payment_intent.rb
158
136
  - lib/stripe/resources/payment_link.rb
159
137
  - lib/stripe/resources/payment_method.rb
160
138
  - lib/stripe/resources/payment_method_configuration.rb
161
139
  - lib/stripe/resources/payment_method_domain.rb
162
- - lib/stripe/resources/payment_record.rb
163
140
  - lib/stripe/resources/payout.rb
164
141
  - lib/stripe/resources/person.rb
165
142
  - lib/stripe/resources/plan.rb
@@ -168,9 +145,6 @@ files:
168
145
  - lib/stripe/resources/product_feature.rb
169
146
  - lib/stripe/resources/promotion_code.rb
170
147
  - lib/stripe/resources/quote.rb
171
- - lib/stripe/resources/quote_line.rb
172
- - lib/stripe/resources/quote_preview_invoice.rb
173
- - lib/stripe/resources/quote_preview_subscription_schedule.rb
174
148
  - lib/stripe/resources/radar/early_fraud_warning.rb
175
149
  - lib/stripe/resources/radar/value_list.rb
176
150
  - lib/stripe/resources/radar/value_list_item.rb
@@ -178,7 +152,6 @@ files:
178
152
  - lib/stripe/resources/refund.rb
179
153
  - lib/stripe/resources/reporting/report_run.rb
180
154
  - lib/stripe/resources/reporting/report_type.rb
181
- - lib/stripe/resources/reserve_transaction.rb
182
155
  - lib/stripe/resources/reversal.rb
183
156
  - lib/stripe/resources/review.rb
184
157
  - lib/stripe/resources/setup_attempt.rb
@@ -186,28 +159,23 @@ files:
186
159
  - lib/stripe/resources/shipping_rate.rb
187
160
  - lib/stripe/resources/sigma/scheduled_query_run.rb
188
161
  - lib/stripe/resources/source.rb
189
- - lib/stripe/resources/source_mandate_notification.rb
190
162
  - lib/stripe/resources/source_transaction.rb
191
163
  - lib/stripe/resources/subscription.rb
192
164
  - lib/stripe/resources/subscription_item.rb
193
165
  - lib/stripe/resources/subscription_schedule.rb
194
- - lib/stripe/resources/tax/association.rb
195
166
  - lib/stripe/resources/tax/calculation.rb
196
167
  - lib/stripe/resources/tax/calculation_line_item.rb
197
- - lib/stripe/resources/tax/form.rb
198
168
  - lib/stripe/resources/tax/registration.rb
199
169
  - lib/stripe/resources/tax/settings.rb
200
170
  - lib/stripe/resources/tax/transaction.rb
201
171
  - lib/stripe/resources/tax/transaction_line_item.rb
202
172
  - lib/stripe/resources/tax_code.rb
203
- - lib/stripe/resources/tax_deducted_at_source.rb
204
173
  - lib/stripe/resources/tax_id.rb
205
174
  - lib/stripe/resources/tax_rate.rb
206
175
  - lib/stripe/resources/terminal/configuration.rb
207
176
  - lib/stripe/resources/terminal/connection_token.rb
208
177
  - lib/stripe/resources/terminal/location.rb
209
178
  - lib/stripe/resources/terminal/reader.rb
210
- - lib/stripe/resources/terminal/reader_collected_data.rb
211
179
  - lib/stripe/resources/test_helpers/test_clock.rb
212
180
  - lib/stripe/resources/token.rb
213
181
  - lib/stripe/resources/topup.rb
@@ -225,7 +193,6 @@ files:
225
193
  - lib/stripe/resources/treasury/transaction_entry.rb
226
194
  - lib/stripe/resources/usage_record.rb
227
195
  - lib/stripe/resources/usage_record_summary.rb
228
- - lib/stripe/resources/v2/amount.rb
229
196
  - lib/stripe/resources/v2/billing/meter_event.rb
230
197
  - lib/stripe/resources/v2/billing/meter_event_adjustment.rb
231
198
  - lib/stripe/resources/v2/billing/meter_event_session.rb
@@ -238,7 +205,6 @@ files:
238
205
  - lib/stripe/services/account_external_account_service.rb
239
206
  - lib/stripe/services/account_link_service.rb
240
207
  - lib/stripe/services/account_login_link_service.rb
241
- - lib/stripe/services/account_notice_service.rb
242
208
  - lib/stripe/services/account_person_service.rb
243
209
  - lib/stripe/services/account_service.rb
244
210
  - lib/stripe/services/account_session_service.rb
@@ -261,10 +227,6 @@ files:
261
227
  - lib/stripe/services/billing_portal/session_service.rb
262
228
  - lib/stripe/services/billing_portal_service.rb
263
229
  - lib/stripe/services/billing_service.rb
264
- - lib/stripe/services/capital/financing_offer_service.rb
265
- - lib/stripe/services/capital/financing_summary_service.rb
266
- - lib/stripe/services/capital/financing_transaction_service.rb
267
- - lib/stripe/services/capital_service.rb
268
230
  - lib/stripe/services/charge_service.rb
269
231
  - lib/stripe/services/checkout/session_line_item_service.rb
270
232
  - lib/stripe/services/checkout/session_service.rb
@@ -297,52 +259,38 @@ files:
297
259
  - lib/stripe/services/exchange_rate_service.rb
298
260
  - lib/stripe/services/file_link_service.rb
299
261
  - lib/stripe/services/file_service.rb
300
- - lib/stripe/services/financial_connections/account_inferred_balance_service.rb
301
262
  - lib/stripe/services/financial_connections/account_owner_service.rb
302
263
  - lib/stripe/services/financial_connections/account_service.rb
303
- - lib/stripe/services/financial_connections/institution_service.rb
304
264
  - lib/stripe/services/financial_connections/session_service.rb
305
265
  - lib/stripe/services/financial_connections/transaction_service.rb
306
266
  - lib/stripe/services/financial_connections_service.rb
307
267
  - lib/stripe/services/forwarding/request_service.rb
308
268
  - lib/stripe/services/forwarding_service.rb
309
- - lib/stripe/services/gift_cards/card_service.rb
310
- - lib/stripe/services/gift_cards/transaction_service.rb
311
- - lib/stripe/services/gift_cards_service.rb
312
269
  - lib/stripe/services/identity/verification_report_service.rb
313
270
  - lib/stripe/services/identity/verification_session_service.rb
314
271
  - lib/stripe/services/identity_service.rb
315
272
  - lib/stripe/services/invoice_item_service.rb
316
273
  - lib/stripe/services/invoice_line_item_service.rb
317
- - lib/stripe/services/invoice_payment_service.rb
318
274
  - lib/stripe/services/invoice_rendering_template_service.rb
319
275
  - lib/stripe/services/invoice_service.rb
320
276
  - lib/stripe/services/invoice_upcoming_lines_service.rb
321
277
  - lib/stripe/services/issuing/authorization_service.rb
322
278
  - lib/stripe/services/issuing/card_service.rb
323
279
  - lib/stripe/services/issuing/cardholder_service.rb
324
- - lib/stripe/services/issuing/credit_underwriting_record_service.rb
325
280
  - lib/stripe/services/issuing/dispute_service.rb
326
- - lib/stripe/services/issuing/dispute_settlement_detail_service.rb
327
- - lib/stripe/services/issuing/fraud_liability_debit_service.rb
328
281
  - lib/stripe/services/issuing/personalization_design_service.rb
329
282
  - lib/stripe/services/issuing/physical_bundle_service.rb
330
283
  - lib/stripe/services/issuing/token_service.rb
331
284
  - lib/stripe/services/issuing/transaction_service.rb
332
285
  - lib/stripe/services/issuing_service.rb
333
286
  - lib/stripe/services/mandate_service.rb
334
- - lib/stripe/services/margin_service.rb
335
287
  - lib/stripe/services/oauth_service.rb
336
- - lib/stripe/services/order_line_item_service.rb
337
- - lib/stripe/services/order_service.rb
338
- - lib/stripe/services/payment_attempt_record_service.rb
339
288
  - lib/stripe/services/payment_intent_service.rb
340
289
  - lib/stripe/services/payment_link_line_item_service.rb
341
290
  - lib/stripe/services/payment_link_service.rb
342
291
  - lib/stripe/services/payment_method_configuration_service.rb
343
292
  - lib/stripe/services/payment_method_domain_service.rb
344
293
  - lib/stripe/services/payment_method_service.rb
345
- - lib/stripe/services/payment_record_service.rb
346
294
  - lib/stripe/services/payout_service.rb
347
295
  - lib/stripe/services/plan_service.rb
348
296
  - lib/stripe/services/price_service.rb
@@ -351,9 +299,6 @@ files:
351
299
  - lib/stripe/services/promotion_code_service.rb
352
300
  - lib/stripe/services/quote_computed_upfront_line_items_service.rb
353
301
  - lib/stripe/services/quote_line_item_service.rb
354
- - lib/stripe/services/quote_line_service.rb
355
- - lib/stripe/services/quote_preview_invoice_service.rb
356
- - lib/stripe/services/quote_preview_subscription_schedule_service.rb
357
302
  - lib/stripe/services/quote_service.rb
358
303
  - lib/stripe/services/radar/early_fraud_warning_service.rb
359
304
  - lib/stripe/services/radar/value_list_item_service.rb
@@ -376,10 +321,8 @@ files:
376
321
  - lib/stripe/services/subscription_item_usage_record_summary_service.rb
377
322
  - lib/stripe/services/subscription_schedule_service.rb
378
323
  - lib/stripe/services/subscription_service.rb
379
- - lib/stripe/services/tax/association_service.rb
380
324
  - lib/stripe/services/tax/calculation_line_item_service.rb
381
325
  - lib/stripe/services/tax/calculation_service.rb
382
- - lib/stripe/services/tax/form_service.rb
383
326
  - lib/stripe/services/tax/registration_service.rb
384
327
  - lib/stripe/services/tax/settings_service.rb
385
328
  - lib/stripe/services/tax/transaction_line_item_service.rb
@@ -391,7 +334,6 @@ files:
391
334
  - lib/stripe/services/terminal/configuration_service.rb
392
335
  - lib/stripe/services/terminal/connection_token_service.rb
393
336
  - lib/stripe/services/terminal/location_service.rb
394
- - lib/stripe/services/terminal/reader_collected_data_service.rb
395
337
  - lib/stripe/services/terminal/reader_service.rb
396
338
  - lib/stripe/services/terminal_service.rb
397
339
  - lib/stripe/services/test_helpers/confirmation_token_service.rb
@@ -462,7 +404,7 @@ metadata:
462
404
  homepage_uri: https://stripe.com/docs/api?lang=ruby
463
405
  source_code_uri: https://github.com/stripe/stripe-ruby
464
406
  rubygems_mfa_required: 'false'
465
- post_install_message:
407
+ post_install_message:
466
408
  rdoc_options: []
467
409
  require_paths:
468
410
  - lib
@@ -473,12 +415,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
473
415
  version: 2.3.0
474
416
  required_rubygems_version: !ruby/object:Gem::Requirement
475
417
  requirements:
476
- - - ">"
418
+ - - ">="
477
419
  - !ruby/object:Gem::Version
478
- version: 1.3.1
420
+ version: '0'
479
421
  requirements: []
480
422
  rubygems_version: 3.3.27
481
- signing_key:
423
+ signing_key:
482
424
  specification_version: 4
483
425
  summary: Ruby bindings for the Stripe API
484
426
  test_files: []
@@ -1,79 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Stripe
4
- class RequestSigningAuthenticator
5
- AUTHORIZATION_HEADER_NAME = "Authorization"
6
- CONTENT_TYPE_HEADER_NAME = "Content-Type"
7
- STRIPE_CONTEXT_HEADER_NAME = "Stripe-Context"
8
- STRIPE_ACCOUNT_HEADER_NAME = "Stripe-Account"
9
- CONTENT_DIGEST_HEADER_NAME = "Content-Digest"
10
- SIGNATURE_INPUT_HEADER_NAME = "Signature-Input"
11
- SIGNATURE_HEADER_NAME = "Signature"
12
-
13
- attr_reader :auth_token, :sign_lambda
14
-
15
- def initialize(auth_token, sign_lambda)
16
- raise ArgumentError, "auth_token must be a string" unless auth_token.is_a?(String)
17
- raise ArgumentError, "sign_lambda must be a lambda" unless sign_lambda.is_a?(Proc)
18
-
19
- @auth_token = auth_token
20
- @sign_lambda = sign_lambda
21
- end
22
-
23
- def authenticate(method, headers, body)
24
- covered_headers = [CONTENT_TYPE_HEADER_NAME,
25
- CONTENT_DIGEST_HEADER_NAME,
26
- STRIPE_CONTEXT_HEADER_NAME,
27
- STRIPE_ACCOUNT_HEADER_NAME,
28
- AUTHORIZATION_HEADER_NAME,]
29
-
30
- headers[AUTHORIZATION_HEADER_NAME] = "STRIPE-V2-SIG #{auth_token}"
31
-
32
- if method == :get
33
- covered_headers -= [CONTENT_TYPE_HEADER_NAME,
34
- CONTENT_DIGEST_HEADER_NAME,]
35
- else
36
- content = body || ""
37
- headers[CONTENT_DIGEST_HEADER_NAME] =
38
- %(sha-256=:#{content_digest(content)}:)
39
- end
40
-
41
- covered_headers_formatted = covered_headers
42
- .map { |string| %("#{string.downcase}") }
43
- .join(" ")
44
-
45
- signature_input = "(#{covered_headers_formatted});created=#{created_time}"
46
-
47
- inputs = covered_headers
48
- .map { |header| %("#{header.downcase}": #{headers[header]}) }
49
- .join("\n")
50
-
51
- signature_base = %(#{inputs}\n"@signature-params": #{signature_input})
52
- .encode(Encoding::UTF_8)
53
-
54
- headers[SIGNATURE_INPUT_HEADER_NAME] = "sig1=#{signature_input}"
55
-
56
- headers[SIGNATURE_HEADER_NAME] =
57
- "sig1=:#{encoded_signature(signature_base)}:"
58
- end
59
-
60
- private def sign(signature_base)
61
- @sign_lambda.call(signature_base)
62
- end
63
-
64
- private def encoded_signature(signature_base)
65
- Base64.strict_encode64(sign(signature_base))
66
- rescue StandardError
67
- raise AuthenticationError, "Encountered '#{e.message} (#{e.class})' " \
68
- "when calculating request signature."
69
- end
70
-
71
- private def content_digest(content)
72
- Base64.strict_encode64(OpenSSL::Digest.new("SHA256").digest(content))
73
- end
74
-
75
- private def created_time
76
- Time.now.to_i
77
- end
78
- end
79
- end
@@ -1,60 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
6
- #
7
- # See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
8
- class AccountNotice < APIResource
9
- extend Stripe::APIOperations::List
10
- include Stripe::APIOperations::Save
11
-
12
- OBJECT_NAME = "account_notice"
13
- def self.object_name
14
- "account_notice"
15
- end
16
-
17
- class Email < Stripe::StripeObject
18
- attr_reader :plain_text, :recipient, :subject
19
- end
20
-
21
- class LinkedObjects < Stripe::StripeObject
22
- attr_reader :capability, :issuing_credit_underwriting_record, :issuing_dispute
23
- end
24
- # Time at which the object was created. Measured in seconds since the Unix epoch.
25
- attr_reader :created
26
- # When present, the deadline for sending the notice to meet the relevant regulations.
27
- attr_reader :deadline
28
- # Information about the email when sent.
29
- attr_reader :email
30
- # Unique identifier for the object.
31
- attr_reader :id
32
- # Information about objects related to the notice.
33
- attr_reader :linked_objects
34
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
35
- attr_reader :livemode
36
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
37
- attr_reader :metadata
38
- # String representing the object's type. Objects of the same type share the same value.
39
- attr_reader :object
40
- # Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
41
- attr_reader :reason
42
- # Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
43
- attr_reader :sent_at
44
-
45
- # Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
46
- def self.list(filters = {}, opts = {})
47
- request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
48
- end
49
-
50
- # Updates an AccountNotice object.
51
- def self.update(id, params = {}, opts = {})
52
- request_stripe_object(
53
- method: :post,
54
- path: format("/v1/account_notices/%<id>s", { id: CGI.escape(id) }),
55
- params: params,
56
- opts: opts
57
- )
58
- end
59
- end
60
- end
@@ -1,20 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class Application < APIResource
6
- OBJECT_NAME = "application"
7
- def self.object_name
8
- "application"
9
- end
10
-
11
- # Unique identifier for the object.
12
- attr_reader :id
13
- # The name of the application.
14
- attr_reader :name
15
- # String representing the object's type. Objects of the same type share the same value.
16
- attr_reader :object
17
- # Always true for a deleted object
18
- attr_reader :deleted
19
- end
20
- end
@@ -1,26 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Billing
6
- class AlertTriggered < APIResource
7
- OBJECT_NAME = "billing.alert_triggered"
8
- def self.object_name
9
- "billing.alert_triggered"
10
- end
11
-
12
- # A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
13
- attr_reader :alert
14
- # Time at which the object was created. Measured in seconds since the Unix epoch.
15
- attr_reader :created
16
- # ID of customer for which the alert triggered
17
- attr_reader :customer
18
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
19
- attr_reader :livemode
20
- # String representing the object's type. Objects of the same type share the same value.
21
- attr_reader :object
22
- # The value triggering the alert
23
- attr_reader :value
24
- end
25
- end
26
- end
@@ -1,44 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Billing
6
- class MeterErrorReport < APIResource
7
- OBJECT_NAME = "billing.meter_error_report"
8
- def self.object_name
9
- "billing.meter_error_report"
10
- end
11
-
12
- class Reason < Stripe::StripeObject
13
- class ErrorType < Stripe::StripeObject
14
- class SampleError < Stripe::StripeObject
15
- class ApiRequest < Stripe::StripeObject
16
- attr_reader :id, :idempotency_key
17
- end
18
- attr_reader :api_request, :error_message
19
- end
20
- attr_reader :sample_errors
21
- end
22
- attr_reader :error_count, :error_types
23
- end
24
-
25
- class RelatedObject < Stripe::StripeObject
26
- attr_reader :id, :object, :url
27
- end
28
- # Unique identifier for the object.
29
- attr_reader :id
30
- # String representing the object's type. Objects of the same type share the same value.
31
- attr_reader :object
32
- # Attribute for field reason
33
- attr_reader :reason
34
- # The related objects about the error
35
- attr_reader :related_object
36
- # Summary of invalid events
37
- attr_reader :summary
38
- # Time when validation ended. Measured in seconds since the Unix epoch
39
- attr_reader :validation_end
40
- # Time when validation started. Measured in seconds since the Unix epoch
41
- attr_reader :validation_start
42
- end
43
- end
44
- end