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
@@ -105,14 +105,49 @@ module Stripe
105
105
  }
106
106
  def initialize(enabled: nil, features: nil); end
107
107
  end
108
- class Documents < Stripe::RequestParams
108
+ class DisputesList < Stripe::RequestParams
109
109
  class Features < Stripe::RequestParams
110
-
110
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
111
+ sig { returns(T.nilable(T::Boolean)) }
112
+ attr_accessor :capture_payments
113
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
114
+ sig { returns(T.nilable(T::Boolean)) }
115
+ attr_accessor :destination_on_behalf_of_charge_management
116
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
117
+ sig { returns(T.nilable(T::Boolean)) }
118
+ attr_accessor :dispute_management
119
+ # Whether to allow sending refunds. This is `true` by default.
120
+ sig { returns(T.nilable(T::Boolean)) }
121
+ attr_accessor :refund_management
122
+ sig {
123
+ params(capture_payments: T.nilable(T::Boolean), destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
124
+ }
125
+ def initialize(
126
+ capture_payments: nil,
127
+ destination_on_behalf_of_charge_management: nil,
128
+ dispute_management: nil,
129
+ refund_management: nil
130
+ ); end
111
131
  end
112
132
  # Whether the embedded component is enabled.
113
133
  sig { returns(T::Boolean) }
114
134
  attr_accessor :enabled
115
135
  # The list of features enabled in the embedded component.
136
+ sig {
137
+ returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList::Features))
138
+ }
139
+ attr_accessor :features
140
+ sig {
141
+ params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList::Features)).void
142
+ }
143
+ def initialize(enabled: nil, features: nil); end
144
+ end
145
+ class Documents < Stripe::RequestParams
146
+ class Features < Stripe::RequestParams; end
147
+ # Whether the embedded component is enabled.
148
+ sig { returns(T::Boolean) }
149
+ attr_accessor :enabled
150
+ # The list of features enabled in the embedded component.
116
151
  sig {
117
152
  returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents::Features))
118
153
  }
@@ -324,6 +359,39 @@ module Stripe
324
359
  }
325
360
  def initialize(enabled: nil, features: nil); end
326
361
  end
362
+ class PaymentDisputes < Stripe::RequestParams
363
+ class Features < Stripe::RequestParams
364
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
365
+ sig { returns(T.nilable(T::Boolean)) }
366
+ attr_accessor :destination_on_behalf_of_charge_management
367
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
368
+ sig { returns(T.nilable(T::Boolean)) }
369
+ attr_accessor :dispute_management
370
+ # Whether to allow sending refunds. This is `true` by default.
371
+ sig { returns(T.nilable(T::Boolean)) }
372
+ attr_accessor :refund_management
373
+ sig {
374
+ params(destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
375
+ }
376
+ def initialize(
377
+ destination_on_behalf_of_charge_management: nil,
378
+ dispute_management: nil,
379
+ refund_management: nil
380
+ ); end
381
+ end
382
+ # Whether the embedded component is enabled.
383
+ sig { returns(T::Boolean) }
384
+ attr_accessor :enabled
385
+ # The list of features enabled in the embedded component.
386
+ sig {
387
+ returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes::Features))
388
+ }
389
+ attr_accessor :features
390
+ sig {
391
+ params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes::Features)).void
392
+ }
393
+ def initialize(enabled: nil, features: nil); end
394
+ end
327
395
  class Payments < Stripe::RequestParams
328
396
  class Features < Stripe::RequestParams
329
397
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -403,9 +471,7 @@ module Stripe
403
471
  def initialize(enabled: nil, features: nil); end
404
472
  end
405
473
  class PayoutsList < Stripe::RequestParams
406
- class Features < Stripe::RequestParams
407
-
408
- end
474
+ class Features < Stripe::RequestParams; end
409
475
  # Whether the embedded component is enabled.
410
476
  sig { returns(T::Boolean) }
411
477
  attr_accessor :enabled
@@ -420,9 +486,7 @@ module Stripe
420
486
  def initialize(enabled: nil, features: nil); end
421
487
  end
422
488
  class TaxRegistrations < Stripe::RequestParams
423
- class Features < Stripe::RequestParams
424
-
425
- end
489
+ class Features < Stripe::RequestParams; end
426
490
  # Whether the embedded component is enabled.
427
491
  sig { returns(T::Boolean) }
428
492
  attr_accessor :enabled
@@ -437,9 +501,7 @@ module Stripe
437
501
  def initialize(enabled: nil, features: nil); end
438
502
  end
439
503
  class TaxSettings < Stripe::RequestParams
440
- class Features < Stripe::RequestParams
441
-
442
- end
504
+ class Features < Stripe::RequestParams; end
443
505
  # Whether the embedded component is enabled.
444
506
  sig { returns(T::Boolean) }
445
507
  attr_accessor :enabled
@@ -468,6 +530,11 @@ module Stripe
468
530
  returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances))
469
531
  }
470
532
  attr_accessor :balances
533
+ # Configuration for the disputes list embedded component.
534
+ sig {
535
+ returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList))
536
+ }
537
+ attr_accessor :disputes_list
471
538
  # Configuration for the documents embedded component.
472
539
  sig {
473
540
  returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents))
@@ -503,6 +570,11 @@ module Stripe
503
570
  returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails))
504
571
  }
505
572
  attr_accessor :payment_details
573
+ # Configuration for the payment disputes embedded component.
574
+ sig {
575
+ returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes))
576
+ }
577
+ attr_accessor :payment_disputes
506
578
  # Configuration for the payments embedded component.
507
579
  sig {
508
580
  returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments))
@@ -529,12 +601,13 @@ module Stripe
529
601
  }
530
602
  attr_accessor :tax_settings
531
603
  sig {
532
- params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings)).void
604
+ params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings)).void
533
605
  }
534
606
  def initialize(
535
607
  account_management: nil,
536
608
  account_onboarding: nil,
537
609
  balances: nil,
610
+ disputes_list: nil,
538
611
  documents: nil,
539
612
  financial_account: nil,
540
613
  financial_account_transactions: nil,
@@ -542,6 +615,7 @@ module Stripe
542
615
  issuing_cards_list: nil,
543
616
  notification_banner: nil,
544
617
  payment_details: nil,
618
+ payment_disputes: nil,
545
619
  payments: nil,
546
620
  payouts: nil,
547
621
  payouts_list: nil,
@@ -4,9 +4,7 @@
4
4
  # typed: true
5
5
  module Stripe
6
6
  class ApplePayDomainService < 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])) }
@@ -12,7 +12,7 @@ module Stripe
12
12
  def initialize(expand: nil); end
13
13
  end
14
14
  # Retrieves the current account balance, based on the authentication that was used to make the request.
15
- # For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
15
+ # For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
16
16
  sig {
17
17
  params(params: T.any(::Stripe::BalanceService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Balance)
18
18
  }
@@ -57,13 +57,13 @@ module Stripe
57
57
  sig { returns(Integer) }
58
58
  attr_accessor :gte
59
59
  # The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
60
- sig { returns(T.nilable(String)) }
60
+ sig { returns(String) }
61
61
  attr_accessor :meter
62
62
  # Whether the alert should only fire only once, or once per billing cycle.
63
63
  sig { returns(String) }
64
64
  attr_accessor :recurrence
65
65
  sig {
66
- params(filters: T.nilable(T::Array[::Stripe::Billing::AlertService::CreateParams::UsageThreshold::Filter]), gte: Integer, meter: T.nilable(String), recurrence: String).void
66
+ params(filters: T.nilable(T::Array[::Stripe::Billing::AlertService::CreateParams::UsageThreshold::Filter]), gte: Integer, meter: String, recurrence: String).void
67
67
  }
68
68
  def initialize(filters: nil, gte: nil, meter: nil, recurrence: nil); end
69
69
  end
@@ -402,15 +402,15 @@ module Stripe
402
402
  end
403
403
  # Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
404
404
  #
405
- # Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
405
+ # Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
406
406
  #
407
- # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
407
+ # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
408
408
  sig {
409
409
  params(charge: String, params: T.any(::Stripe::ChargeService::CaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge)
410
410
  }
411
411
  def capture(charge, params = {}, opts = {}); end
412
412
 
413
- # This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
413
+ # This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
414
414
  # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
415
415
  # object used to request payment.
416
416
  sig {
@@ -430,7 +430,7 @@ module Stripe
430
430
  }
431
431
  def retrieve(charge, params = {}, opts = {}); end
432
432
 
433
- # Search for charges you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
433
+ # Search for charges you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
434
434
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
435
435
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
436
436
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -1322,9 +1322,7 @@ module Stripe
1322
1322
  }
1323
1323
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
1324
1324
  end
1325
- class PayByBank < Stripe::RequestParams
1326
-
1327
- end
1325
+ class PayByBank < Stripe::RequestParams; end
1328
1326
  class Payco < Stripe::RequestParams
1329
1327
  # Controls when the funds will be captured from the customer's account.
1330
1328
  sig { returns(T.nilable(String)) }
@@ -1785,13 +1783,20 @@ module Stripe
1785
1783
  # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
1786
1784
  sig { returns(T.nilable(T::Array[String])) }
1787
1785
  attr_accessor :allow_redisplay_filters
1786
+ # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
1787
+ sig { returns(T.nilable(String)) }
1788
+ attr_accessor :payment_method_remove
1788
1789
  # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
1789
1790
  sig { returns(T.nilable(String)) }
1790
1791
  attr_accessor :payment_method_save
1791
1792
  sig {
1792
- params(allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_save: T.nilable(String)).void
1793
+ params(allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_remove: T.nilable(String), payment_method_save: T.nilable(String)).void
1793
1794
  }
1794
- def initialize(allow_redisplay_filters: nil, payment_method_save: nil); end
1795
+ def initialize(
1796
+ allow_redisplay_filters: nil,
1797
+ payment_method_remove: nil,
1798
+ payment_method_save: nil
1799
+ ); end
1795
1800
  end
1796
1801
  class SetupIntentData < Stripe::RequestParams
1797
1802
  # An arbitrary string attached to the object. Often useful for displaying to users.
@@ -2598,6 +2603,8 @@ module Stripe
2598
2603
  def retrieve(session, params = {}, opts = {}); end
2599
2604
 
2600
2605
  # Updates a Checkout Session object.
2606
+ #
2607
+ # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
2601
2608
  sig {
2602
2609
  params(session: String, params: T.any(::Stripe::Checkout::SessionService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
2603
2610
  }
@@ -4,9 +4,7 @@
4
4
  # typed: true
5
5
  module Stripe
6
6
  class CouponService < 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])) }
@@ -364,20 +364,19 @@ module Stripe
364
364
  sig { params(expand: T.nilable(T::Array[String])).void }
365
365
  def initialize(expand: nil); end
366
366
  end
367
- # Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
368
- # its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
369
- # in any combination of the following:
367
+ # Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
368
+ # This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
370
369
  #
371
370
  #
372
- # Refund: create a new refund (using refund_amount) or link an existing refund (using refund).
371
+ # Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
373
372
  # Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
374
373
  # Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
375
374
  #
376
375
  #
377
- # For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.
376
+ # The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
378
377
  #
379
- # You may issue multiple credit notes for an invoice. Each credit note will increment the invoice's pre_payment_credit_notes_amount
380
- # or post_payment_credit_notes_amount depending on its status at the time of credit note creation.
378
+ # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
379
+ # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
381
380
  sig {
382
381
  params(params: T.any(::Stripe::CreditNoteService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote)
383
382
  }
@@ -407,7 +406,7 @@ module Stripe
407
406
  }
408
407
  def update(id, params = {}, opts = {}); end
409
408
 
410
- # Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
409
+ # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
411
410
  sig {
412
411
  params(id: String, params: T.any(::Stripe::CreditNoteService::VoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote)
413
412
  }
@@ -65,19 +65,19 @@ module Stripe
65
65
  }
66
66
  def initialize(description: nil, expand: nil, metadata: nil); end
67
67
  end
68
- # Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).
68
+ # Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance).
69
69
  sig {
70
70
  params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction)
71
71
  }
72
72
  def create(customer, params = {}, opts = {}); end
73
73
 
74
- # Returns a list of transactions that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
74
+ # Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
75
75
  sig {
76
76
  params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
77
77
  }
78
78
  def list(customer, params = {}, opts = {}); end
79
79
 
80
- # Retrieves a specific customer balance transaction that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
80
+ # Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
81
81
  sig {
82
82
  params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction)
83
83
  }
@@ -29,13 +29,13 @@ module Stripe
29
29
  sig { params(expand: T.nilable(T::Array[String])).void }
30
30
  def initialize(expand: nil); end
31
31
  end
32
- # Returns a list of transactions that modified the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
32
+ # Returns a list of transactions that modified the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
33
33
  sig {
34
34
  params(customer: String, params: T.any(::Stripe::CustomerCashBalanceTransactionService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
35
35
  }
36
36
  def list(customer, params = {}, opts = {}); end
37
37
 
38
- # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
38
+ # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
39
39
  sig {
40
40
  params(customer: String, transaction: String, params: T.any(::Stripe::CustomerCashBalanceTransactionService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerCashBalanceTransaction)
41
41
  }
@@ -193,7 +193,7 @@ module Stripe
193
193
  #
194
194
  # If the card's owner has no default card, then the new card will become the default.
195
195
  # However, if the owner already has a default, then it will not change.
196
- # To change the default, you should [update the customer](https://stripe.com/docs/api#update_customer) to have a new default_source.
196
+ # To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
197
197
  sig {
198
198
  params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))
199
199
  }
@@ -11,9 +11,7 @@ module Stripe
11
11
  attr_reader :tax_ids
12
12
  attr_reader :payment_methods
13
13
  attr_reader :funding_instructions
14
- class DeleteParams < Stripe::RequestParams
15
-
16
- end
14
+ class DeleteParams < Stripe::RequestParams; end
17
15
  class RetrieveParams < Stripe::RequestParams
18
16
  # Specifies which fields in the response should be expanded.
19
17
  sig { returns(T.nilable(T::Array[String])) }
@@ -267,9 +265,7 @@ module Stripe
267
265
  validate: nil
268
266
  ); end
269
267
  end
270
- class DeleteDiscountParams < Stripe::RequestParams
271
-
272
- end
268
+ class DeleteDiscountParams < Stripe::RequestParams; end
273
269
  class ListParams < Stripe::RequestParams
274
270
  class Created < Stripe::RequestParams
275
271
  # Minimum value to filter by (exclusive)
@@ -631,7 +627,7 @@ module Stripe
631
627
  }
632
628
  def retrieve(customer, params = {}, opts = {}); end
633
629
 
634
- # Search for customers you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
630
+ # Search for customers you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
635
631
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
636
632
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
637
633
  # 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 CustomerTaxIdService < 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])) }
@@ -415,7 +415,7 @@ module Stripe
415
415
 
416
416
  # When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
417
417
  #
418
- # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
418
+ # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
419
419
  sig {
420
420
  params(dispute: String, params: T.any(::Stripe::DisputeService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute)
421
421
  }
@@ -107,7 +107,7 @@ module Stripe
107
107
  }
108
108
  def list(params = {}, opts = {}); end
109
109
 
110
- # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents).
110
+ # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents).
111
111
  sig {
112
112
  params(file: String, params: T.any(::Stripe::FileService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File)
113
113
  }
@@ -251,9 +251,9 @@ module Stripe
251
251
  sig { params(expand: T.nilable(T::Array[String])).void }
252
252
  def initialize(expand: nil); end
253
253
  end
254
- # A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
254
+ # A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
255
255
  #
256
- # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
256
+ # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
257
257
  sig {
258
258
  params(session: String, params: T.any(::Stripe::Identity::VerificationSessionService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
259
259
  }
@@ -265,7 +265,7 @@ module Stripe
265
265
  #
266
266
  # If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
267
267
  #
268
- # Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
268
+ # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
269
269
  sig {
270
270
  params(params: T.any(::Stripe::Identity::VerificationSessionService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
271
271
  }
@@ -282,7 +282,7 @@ module Stripe
282
282
  # request logs, etc.
283
283
  #
284
284
  # A VerificationSession object can be redacted when it is in requires_input or verified
285
- # [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
285
+ # [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
286
286
  # state will automatically cancel it.
287
287
  #
288
288
  # The redaction process may take up to four days. When the redaction process is in progress, the
@@ -295,7 +295,7 @@ module Stripe
295
295
  # placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
296
296
  # used for any purpose.
297
297
  #
298
- # [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
298
+ # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
299
299
  sig {
300
300
  params(session: String, params: T.any(::Stripe::Identity::VerificationSessionService::RedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
301
301
  }
@@ -4,9 +4,7 @@
4
4
  # typed: true
5
5
  module Stripe
6
6
  class InvoiceItemService < 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])) }