stripe 15.1.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -6
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/resources/account.rb +47 -20
  9. data/lib/stripe/resources/account_session.rb +111 -7
  10. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  11. data/lib/stripe/resources/balance.rb +42 -0
  12. data/lib/stripe/resources/balance_transaction.rb +2 -0
  13. data/lib/stripe/resources/bank_account.rb +2 -2
  14. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  15. data/lib/stripe/resources/capability.rb +1 -1
  16. data/lib/stripe/resources/charge.rb +13 -5
  17. data/lib/stripe/resources/checkout/session.rb +20 -4
  18. data/lib/stripe/resources/confirmation_token.rb +33 -87
  19. data/lib/stripe/resources/country_spec.rb +1 -1
  20. data/lib/stripe/resources/coupon.rb +1 -2
  21. data/lib/stripe/resources/credit_note.rb +12 -9
  22. data/lib/stripe/resources/customer.rb +2 -4
  23. data/lib/stripe/resources/customer_session.rb +3 -3
  24. data/lib/stripe/resources/dispute.rb +2 -2
  25. data/lib/stripe/resources/event.rb +1 -1
  26. data/lib/stripe/resources/file.rb +1 -1
  27. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  28. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  29. data/lib/stripe/resources/invoice.rb +114 -27
  30. data/lib/stripe/resources/invoice_item.rb +2 -3
  31. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  32. data/lib/stripe/resources/invoice_payment.rb +9 -2
  33. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  34. data/lib/stripe/resources/issuing/card.rb +1 -1
  35. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  36. data/lib/stripe/resources/payment_intent.rb +196 -302
  37. data/lib/stripe/resources/payment_method.rb +46 -103
  38. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  39. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  40. data/lib/stripe/resources/payout.rb +4 -4
  41. data/lib/stripe/resources/person.rb +2 -2
  42. data/lib/stripe/resources/plan.rb +2 -3
  43. data/lib/stripe/resources/price.rb +1 -1
  44. data/lib/stripe/resources/product.rb +1 -2
  45. data/lib/stripe/resources/radar/value_list.rb +1 -2
  46. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  47. data/lib/stripe/resources/refund.rb +6 -1
  48. data/lib/stripe/resources/reversal.rb +1 -1
  49. data/lib/stripe/resources/review.rb +1 -1
  50. data/lib/stripe/resources/setup_intent.rb +111 -281
  51. data/lib/stripe/resources/source.rb +1 -1
  52. data/lib/stripe/resources/subscription.rb +89 -29
  53. data/lib/stripe/resources/subscription_item.rb +33 -0
  54. data/lib/stripe/resources/subscription_schedule.rb +119 -4
  55. data/lib/stripe/resources/tax/calculation.rb +4 -0
  56. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  57. data/lib/stripe/resources/tax/registration.rb +1 -1
  58. data/lib/stripe/resources/tax_id.rb +1 -2
  59. data/lib/stripe/resources/tax_rate.rb +2 -2
  60. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  61. data/lib/stripe/resources/terminal/location.rb +2 -3
  62. data/lib/stripe/resources/terminal/reader.rb +275 -3
  63. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  64. data/lib/stripe/resources/token.rb +2 -2
  65. data/lib/stripe/resources/transfer.rb +1 -1
  66. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  67. data/lib/stripe/services/account_external_account_service.rb +2 -3
  68. data/lib/stripe/services/account_login_link_service.rb +1 -1
  69. data/lib/stripe/services/account_person_service.rb +1 -2
  70. data/lib/stripe/services/account_service.rb +38 -13
  71. data/lib/stripe/services/account_session_service.rb +75 -7
  72. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  73. data/lib/stripe/services/balance_service.rb +1 -1
  74. data/lib/stripe/services/charge_service.rb +4 -4
  75. data/lib/stripe/services/checkout/session_service.rb +11 -3
  76. data/lib/stripe/services/coupon_service.rb +1 -2
  77. data/lib/stripe/services/credit_note_service.rb +7 -8
  78. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  79. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  80. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  81. data/lib/stripe/services/customer_service.rb +3 -5
  82. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  83. data/lib/stripe/services/dispute_service.rb +1 -1
  84. data/lib/stripe/services/file_service.rb +1 -1
  85. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  86. data/lib/stripe/services/invoice_item_service.rb +1 -2
  87. data/lib/stripe/services/invoice_service.rb +92 -23
  88. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  89. data/lib/stripe/services/issuing/card_service.rb +1 -1
  90. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  91. data/lib/stripe/services/payment_intent_service.rb +176 -292
  92. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  93. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  94. data/lib/stripe/services/payment_method_service.rb +43 -100
  95. data/lib/stripe/services/payout_service.rb +2 -2
  96. data/lib/stripe/services/plan_service.rb +2 -3
  97. data/lib/stripe/services/price_service.rb +2 -2
  98. data/lib/stripe/services/product_feature_service.rb +1 -2
  99. data/lib/stripe/services/product_service.rb +2 -3
  100. data/lib/stripe/services/promotion_code_service.rb +1 -1
  101. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  102. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  103. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  104. data/lib/stripe/services/setup_intent_service.rb +110 -280
  105. data/lib/stripe/services/source_service.rb +1 -1
  106. data/lib/stripe/services/subscription_item_service.rb +26 -0
  107. data/lib/stripe/services/subscription_schedule_service.rb +93 -3
  108. data/lib/stripe/services/subscription_service.rb +77 -26
  109. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  110. data/lib/stripe/services/tax/registration_service.rb +1 -1
  111. data/lib/stripe/services/tax_id_service.rb +1 -2
  112. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  113. data/lib/stripe/services/terminal/location_service.rb +2 -3
  114. data/lib/stripe/services/terminal/reader_service.rb +106 -2
  115. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -87
  116. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  117. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  118. data/lib/stripe/services/token_service.rb +1 -1
  119. data/lib/stripe/services/transfer_service.rb +1 -1
  120. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  121. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  122. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  123. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  124. data/lib/stripe/version.rb +1 -1
  125. data/rbi/stripe/resources/account.rbi +46 -23
  126. data/rbi/stripe/resources/account_session.rbi +131 -12
  127. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  128. data/rbi/stripe/resources/balance.rbi +55 -0
  129. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  130. data/rbi/stripe/resources/bank_account.rbi +2 -2
  131. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  132. data/rbi/stripe/resources/billing_portal/session.rbi +1 -1
  133. data/rbi/stripe/resources/capability.rbi +1 -1
  134. data/rbi/stripe/resources/charge.rbi +17 -5
  135. data/rbi/stripe/resources/checkout/session.rbi +22 -6
  136. data/rbi/stripe/resources/confirmation_token.rbi +33 -99
  137. data/rbi/stripe/resources/country_spec.rbi +1 -1
  138. data/rbi/stripe/resources/coupon.rbi +1 -3
  139. data/rbi/stripe/resources/credit_note.rbi +14 -9
  140. data/rbi/stripe/resources/customer.rbi +2 -6
  141. data/rbi/stripe/resources/customer_session.rbi +3 -3
  142. data/rbi/stripe/resources/dispute.rbi +2 -2
  143. data/rbi/stripe/resources/event.rbi +1 -1
  144. data/rbi/stripe/resources/file.rbi +1 -1
  145. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  146. data/rbi/stripe/resources/identity/verification_session.rbi +20 -11
  147. data/rbi/stripe/resources/invoice.rbi +109 -33
  148. data/rbi/stripe/resources/invoice_item.rbi +2 -4
  149. data/rbi/stripe/resources/invoice_line_item.rbi +1 -1
  150. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  151. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  152. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  153. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  154. data/rbi/stripe/resources/payment_intent.rbi +201 -349
  155. data/rbi/stripe/resources/payment_method.rbi +46 -116
  156. data/rbi/stripe/resources/payment_method_configuration.rbi +334 -4
  157. data/rbi/stripe/resources/payment_method_domain.rbi +2 -2
  158. data/rbi/stripe/resources/payout.rbi +4 -4
  159. data/rbi/stripe/resources/person.rbi +2 -2
  160. data/rbi/stripe/resources/plan.rbi +2 -4
  161. data/rbi/stripe/resources/price.rbi +1 -1
  162. data/rbi/stripe/resources/product.rbi +1 -3
  163. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  164. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  165. data/rbi/stripe/resources/refund.rbi +5 -1
  166. data/rbi/stripe/resources/reversal.rbi +1 -1
  167. data/rbi/stripe/resources/review.rbi +1 -1
  168. data/rbi/stripe/resources/setup_intent.rbi +111 -325
  169. data/rbi/stripe/resources/source.rbi +1 -1
  170. data/rbi/stripe/resources/subscription.rbi +99 -36
  171. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  172. data/rbi/stripe/resources/subscription_schedule.rbi +138 -10
  173. data/rbi/stripe/resources/tax/calculation.rbi +5 -1
  174. data/rbi/stripe/resources/tax/calculation_line_item.rbi +3 -0
  175. data/rbi/stripe/resources/tax/registration.rbi +1 -1
  176. data/rbi/stripe/resources/tax_id.rbi +1 -3
  177. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  178. data/rbi/stripe/resources/terminal/configuration.rbi +1 -3
  179. data/rbi/stripe/resources/terminal/location.rbi +2 -4
  180. data/rbi/stripe/resources/terminal/reader.rbi +265 -5
  181. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  182. data/rbi/stripe/resources/token.rbi +2 -2
  183. data/rbi/stripe/resources/transfer.rbi +1 -1
  184. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  185. data/rbi/stripe/services/account_external_account_service.rbi +2 -4
  186. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  187. data/rbi/stripe/services/account_person_service.rbi +1 -3
  188. data/rbi/stripe/services/account_service.rbi +40 -16
  189. data/rbi/stripe/services/account_session_service.rbi +86 -12
  190. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  191. data/rbi/stripe/services/balance_service.rbi +1 -1
  192. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  193. data/rbi/stripe/services/charge_service.rbi +4 -4
  194. data/rbi/stripe/services/checkout/session_service.rbi +12 -5
  195. data/rbi/stripe/services/coupon_service.rbi +1 -3
  196. data/rbi/stripe/services/credit_note_service.rbi +7 -8
  197. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  198. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  199. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  200. data/rbi/stripe/services/customer_service.rbi +3 -7
  201. data/rbi/stripe/services/customer_tax_id_service.rbi +1 -3
  202. data/rbi/stripe/services/dispute_service.rbi +1 -1
  203. data/rbi/stripe/services/file_service.rbi +1 -1
  204. data/rbi/stripe/services/identity/verification_session_service.rbi +5 -5
  205. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  206. data/rbi/stripe/services/invoice_service.rbi +90 -29
  207. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  208. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  209. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  210. data/rbi/stripe/services/payment_intent_service.rbi +179 -339
  211. data/rbi/stripe/services/payment_method_configuration_service.rbi +236 -4
  212. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  213. data/rbi/stripe/services/payment_method_service.rbi +43 -113
  214. data/rbi/stripe/services/payout_service.rbi +2 -2
  215. data/rbi/stripe/services/plan_service.rbi +2 -4
  216. data/rbi/stripe/services/price_service.rbi +2 -2
  217. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  218. data/rbi/stripe/services/product_service.rbi +2 -4
  219. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  220. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  221. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  222. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  223. data/rbi/stripe/services/setup_intent_service.rbi +110 -324
  224. data/rbi/stripe/services/source_service.rbi +1 -1
  225. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  226. data/rbi/stripe/services/subscription_schedule_service.rbi +107 -9
  227. data/rbi/stripe/services/subscription_service.rbi +85 -33
  228. data/rbi/stripe/services/tax/calculation_service.rbi +5 -1
  229. data/rbi/stripe/services/tax/registration_service.rbi +1 -1
  230. data/rbi/stripe/services/tax_id_service.rbi +1 -3
  231. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  232. data/rbi/stripe/services/terminal/location_service.rbi +2 -4
  233. data/rbi/stripe/services/terminal/reader_service.rbi +115 -4
  234. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +33 -99
  235. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  236. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  237. data/rbi/stripe/services/token_service.rbi +1 -1
  238. data/rbi/stripe/services/transfer_service.rbi +1 -1
  239. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  240. data/rbi/stripe/services/v2/core/event_destination_service.rbi +4 -12
  241. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  242. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  243. metadata +3 -2
@@ -51,21 +51,11 @@ module Stripe
51
51
  }
52
52
  def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
53
53
  end
54
- class Affirm < Stripe::RequestParams
55
-
56
- end
57
- class AfterpayClearpay < Stripe::RequestParams
58
-
59
- end
60
- class Alipay < Stripe::RequestParams
61
-
62
- end
63
- class Alma < Stripe::RequestParams
64
-
65
- end
66
- class AmazonPay < Stripe::RequestParams
67
-
68
- end
54
+ class Affirm < Stripe::RequestParams; end
55
+ class AfterpayClearpay < Stripe::RequestParams; end
56
+ class Alipay < Stripe::RequestParams; end
57
+ class Alma < Stripe::RequestParams; end
58
+ class AmazonPay < Stripe::RequestParams; end
69
59
  class AuBecsDebit < Stripe::RequestParams
70
60
  # The account number for the bank account.
71
61
  sig { returns(String) }
@@ -86,12 +76,8 @@ module Stripe
86
76
  sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
87
77
  def initialize(account_number: nil, sort_code: nil); end
88
78
  end
89
- class Bancontact < Stripe::RequestParams
90
-
91
- end
92
- class Billie < Stripe::RequestParams
93
-
94
- end
79
+ class Bancontact < Stripe::RequestParams; end
80
+ class Billie < Stripe::RequestParams; end
95
81
  class BillingDetails < Stripe::RequestParams
96
82
  class Address < Stripe::RequestParams
97
83
  # City, district, suburb, town, or village.
@@ -146,9 +132,7 @@ module Stripe
146
132
  }
147
133
  def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
148
134
  end
149
- class Blik < Stripe::RequestParams
150
-
151
- end
135
+ class Blik < Stripe::RequestParams; end
152
136
  class Boleto < Stripe::RequestParams
153
137
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
154
138
  sig { returns(String) }
@@ -194,12 +178,8 @@ module Stripe
194
178
  token: nil
195
179
  ); end
196
180
  end
197
- class Cashapp < Stripe::RequestParams
198
-
199
- end
200
- class CustomerBalance < Stripe::RequestParams
201
-
202
- end
181
+ class Cashapp < Stripe::RequestParams; end
182
+ class CustomerBalance < Stripe::RequestParams; end
203
183
  class Eps < Stripe::RequestParams
204
184
  # The customer's bank.
205
185
  sig { returns(T.nilable(String)) }
@@ -217,12 +197,8 @@ module Stripe
217
197
  sig { params(account_holder_type: T.nilable(String), bank: String).void }
218
198
  def initialize(account_holder_type: nil, bank: nil); end
219
199
  end
220
- class Giropay < Stripe::RequestParams
221
-
222
- end
223
- class Grabpay < Stripe::RequestParams
224
-
225
- end
200
+ class Giropay < Stripe::RequestParams; end
201
+ class Grabpay < Stripe::RequestParams; end
226
202
  class Ideal < Stripe::RequestParams
227
203
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
228
204
  sig { returns(T.nilable(String)) }
@@ -230,12 +206,8 @@ module Stripe
230
206
  sig { params(bank: T.nilable(String)).void }
231
207
  def initialize(bank: nil); end
232
208
  end
233
- class InteracPresent < Stripe::RequestParams
234
-
235
- end
236
- class KakaoPay < Stripe::RequestParams
237
-
238
- end
209
+ class InteracPresent < Stripe::RequestParams; end
210
+ class KakaoPay < Stripe::RequestParams; end
239
211
  class Klarna < Stripe::RequestParams
240
212
  class Dob < Stripe::RequestParams
241
213
  # The day of birth, between 1 and 31.
@@ -258,21 +230,11 @@ module Stripe
258
230
  }
259
231
  def initialize(dob: nil); end
260
232
  end
261
- class Konbini < Stripe::RequestParams
262
-
263
- end
264
- class KrCard < Stripe::RequestParams
265
-
266
- end
267
- class Link < Stripe::RequestParams
268
-
269
- end
270
- class Mobilepay < Stripe::RequestParams
271
-
272
- end
273
- class Multibanco < Stripe::RequestParams
274
-
275
- end
233
+ class Konbini < Stripe::RequestParams; end
234
+ class KrCard < Stripe::RequestParams; end
235
+ class Link < Stripe::RequestParams; end
236
+ class Mobilepay < Stripe::RequestParams; end
237
+ class Multibanco < Stripe::RequestParams; end
276
238
  class NaverPay < Stripe::RequestParams
277
239
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
278
240
  sig { returns(T.nilable(String)) }
@@ -311,9 +273,7 @@ module Stripe
311
273
  suffix: nil
312
274
  ); end
313
275
  end
314
- class Oxxo < Stripe::RequestParams
315
-
316
- end
276
+ class Oxxo < Stripe::RequestParams; end
317
277
  class P24 < Stripe::RequestParams
318
278
  # The customer's bank.
319
279
  sig { returns(T.nilable(String)) }
@@ -321,24 +281,12 @@ module Stripe
321
281
  sig { params(bank: T.nilable(String)).void }
322
282
  def initialize(bank: nil); end
323
283
  end
324
- class PayByBank < Stripe::RequestParams
325
-
326
- end
327
- class Payco < Stripe::RequestParams
328
-
329
- end
330
- class Paynow < Stripe::RequestParams
331
-
332
- end
333
- class Paypal < Stripe::RequestParams
334
-
335
- end
336
- class Pix < Stripe::RequestParams
337
-
338
- end
339
- class Promptpay < Stripe::RequestParams
340
-
341
- end
284
+ class PayByBank < Stripe::RequestParams; end
285
+ class Payco < Stripe::RequestParams; end
286
+ class Paynow < Stripe::RequestParams; end
287
+ class Paypal < Stripe::RequestParams; end
288
+ class Pix < Stripe::RequestParams; end
289
+ class Promptpay < Stripe::RequestParams; end
342
290
  class RadarOptions < Stripe::RequestParams
343
291
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
344
292
  sig { returns(T.nilable(String)) }
@@ -346,15 +294,9 @@ module Stripe
346
294
  sig { params(session: T.nilable(String)).void }
347
295
  def initialize(session: nil); end
348
296
  end
349
- class RevolutPay < Stripe::RequestParams
350
-
351
- end
352
- class SamsungPay < Stripe::RequestParams
353
-
354
- end
355
- class Satispay < Stripe::RequestParams
356
-
357
- end
297
+ class RevolutPay < Stripe::RequestParams; end
298
+ class SamsungPay < Stripe::RequestParams; end
299
+ class Satispay < Stripe::RequestParams; end
358
300
  class SepaDebit < Stripe::RequestParams
359
301
  # IBAN of the bank account.
360
302
  sig { returns(String) }
@@ -369,12 +311,8 @@ module Stripe
369
311
  sig { params(country: String).void }
370
312
  def initialize(country: nil); end
371
313
  end
372
- class Swish < Stripe::RequestParams
373
-
374
- end
375
- class Twint < Stripe::RequestParams
376
-
377
- end
314
+ class Swish < Stripe::RequestParams; end
315
+ class Twint < Stripe::RequestParams; end
378
316
  class UsBankAccount < Stripe::RequestParams
379
317
  # Account holder type: individual or company.
380
318
  sig { returns(T.nilable(String)) }
@@ -402,12 +340,8 @@ module Stripe
402
340
  routing_number: nil
403
341
  ); end
404
342
  end
405
- class WechatPay < Stripe::RequestParams
406
-
407
- end
408
- class Zip < Stripe::RequestParams
409
-
410
- end
343
+ class WechatPay < Stripe::RequestParams; end
344
+ class Zip < Stripe::RequestParams; end
411
345
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
412
346
  sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::AcssDebit)) }
413
347
  attr_accessor :acss_debit
@@ -722,12 +656,8 @@ module Stripe
722
656
  }
723
657
  def initialize(exp_month: nil, exp_year: nil, networks: nil); end
724
658
  end
725
- class Link < Stripe::RequestParams
726
-
727
- end
728
- class PayByBank < Stripe::RequestParams
729
-
730
- end
659
+ class Link < Stripe::RequestParams; end
660
+ class PayByBank < Stripe::RequestParams; end
731
661
  class UsBankAccount < Stripe::RequestParams
732
662
  # Bank account holder type.
733
663
  sig { returns(T.nilable(String)) }
@@ -795,25 +725,25 @@ module Stripe
795
725
  end
796
726
  # Attaches a PaymentMethod object to a Customer.
797
727
  #
798
- # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
799
- # or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
728
+ # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
729
+ # or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
800
730
  # These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
801
731
  # endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
802
732
  # future use, which makes later declines and payment friction more likely.
803
- # See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
733
+ # See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
804
734
  # future payments.
805
735
  #
806
736
  # To use this PaymentMethod as the default for invoice or subscription payments,
807
- # set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
737
+ # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
808
738
  # on the Customer to the PaymentMethod's ID.
809
739
  sig {
810
740
  params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
811
741
  }
812
742
  def attach(payment_method, params = {}, opts = {}); end
813
743
 
814
- # Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
744
+ # Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
815
745
  #
816
- # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
746
+ # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
817
747
  sig {
818
748
  params(params: T.any(::Stripe::PaymentMethodService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
819
749
  }
@@ -825,13 +755,13 @@ module Stripe
825
755
  }
826
756
  def detach(payment_method, params = {}, opts = {}); end
827
757
 
828
- # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
758
+ # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
829
759
  sig {
830
760
  params(params: T.any(::Stripe::PaymentMethodService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
831
761
  }
832
762
  def list(params = {}, opts = {}); end
833
763
 
834
- # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
764
+ # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
835
765
  sig {
836
766
  params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
837
767
  }
@@ -166,11 +166,11 @@ module Stripe
166
166
  }
167
167
  def cancel(payout, params = {}, opts = {}); end
168
168
 
169
- # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/docs/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
169
+ # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
170
170
  #
171
171
  # If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
172
172
  #
173
- # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/docs/api#balance_object) details available and pending amounts by source type.
173
+ # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
174
174
  sig {
175
175
  params(params: T.any(::Stripe::PayoutService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout)
176
176
  }
@@ -4,9 +4,7 @@
4
4
  # typed: true
5
5
  module Stripe
6
6
  class PlanService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
-
9
- end
7
+ class DeleteParams < Stripe::RequestParams; end
10
8
  class RetrieveParams < Stripe::RequestParams
11
9
  # Specifies which fields in the response should be expanded.
12
10
  sig { returns(T.nilable(T::Array[String])) }
@@ -251,7 +249,7 @@ module Stripe
251
249
  usage_type: nil
252
250
  ); end
253
251
  end
254
- # You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
252
+ # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
255
253
  sig {
256
254
  params(params: T.any(::Stripe::PlanService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan)
257
255
  }
@@ -516,7 +516,7 @@ module Stripe
516
516
  }
517
517
  def create(params = {}, opts = {}); end
518
518
 
519
- # Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
519
+ # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
520
520
  sig {
521
521
  params(params: T.any(::Stripe::PriceService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
522
522
  }
@@ -528,7 +528,7 @@ module Stripe
528
528
  }
529
529
  def retrieve(price, params = {}, opts = {}); end
530
530
 
531
- # Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
531
+ # Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
532
532
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
533
533
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
534
534
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -4,9 +4,7 @@
4
4
  # typed: true
5
5
  module Stripe
6
6
  class ProductFeatureService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
-
9
- end
7
+ class DeleteParams < Stripe::RequestParams; end
10
8
  class RetrieveParams < Stripe::RequestParams
11
9
  # Specifies which fields in the response should be expanded.
12
10
  sig { returns(T.nilable(T::Array[String])) }
@@ -5,9 +5,7 @@
5
5
  module Stripe
6
6
  class ProductService < StripeService
7
7
  attr_reader :features
8
- class DeleteParams < Stripe::RequestParams
9
-
10
- end
8
+ class DeleteParams < Stripe::RequestParams; end
11
9
  class RetrieveParams < Stripe::RequestParams
12
10
  # Specifies which fields in the response should be expanded.
13
11
  sig { returns(T.nilable(T::Array[String])) }
@@ -461,7 +459,7 @@ module Stripe
461
459
  }
462
460
  def retrieve(id, params = {}, opts = {}); end
463
461
 
464
- # Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
462
+ # Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
465
463
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
466
464
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
467
465
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -199,7 +199,7 @@ module Stripe
199
199
  }
200
200
  def list(params = {}, opts = {}); end
201
201
 
202
- # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
202
+ # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code.
203
203
  sig {
204
204
  params(promotion_code: String, params: T.any(::Stripe::PromotionCodeService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode)
205
205
  }
@@ -75,7 +75,7 @@ module Stripe
75
75
 
76
76
  # Retrieves the details of an early fraud warning that has previously been created.
77
77
  #
78
- # Please refer to the [early fraud warning](https://stripe.com/docs/api#early_fraud_warning_object) object reference for more details.
78
+ # Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
79
79
  sig {
80
80
  params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::EarlyFraudWarning)
81
81
  }
@@ -5,9 +5,7 @@
5
5
  module Stripe
6
6
  module Radar
7
7
  class ValueListItemService < StripeService
8
- class DeleteParams < Stripe::RequestParams
9
-
10
- end
8
+ class DeleteParams < Stripe::RequestParams; end
11
9
  class RetrieveParams < Stripe::RequestParams
12
10
  # Specifies which fields in the response should be expanded.
13
11
  sig { returns(T.nilable(T::Array[String])) }
@@ -5,9 +5,7 @@
5
5
  module Stripe
6
6
  module Radar
7
7
  class ValueListService < StripeService
8
- class DeleteParams < Stripe::RequestParams
9
-
10
- end
8
+ class DeleteParams < Stripe::RequestParams; end
11
9
  class RetrieveParams < Stripe::RequestParams
12
10
  # Specifies which fields in the response should be expanded.
13
11
  sig { returns(T.nilable(T::Array[String])) }