stripe 15.0.0 → 15.3.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 (320) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +129 -44
  4. data/CONTRIBUTING.md +25 -0
  5. data/Gemfile +1 -1
  6. data/OPENAPI_VERSION +1 -1
  7. data/README.md +28 -55
  8. data/VERSION +1 -1
  9. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  10. data/lib/stripe/api_requestor.rb +1 -1
  11. data/lib/stripe/api_version.rb +2 -1
  12. data/lib/stripe/connection_manager.rb +1 -3
  13. data/lib/stripe/event_types.rb +1 -0
  14. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  15. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  17. data/lib/stripe/oauth.rb +1 -1
  18. data/lib/stripe/resources/account.rb +198 -28
  19. data/lib/stripe/resources/account_session.rb +176 -72
  20. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  21. data/lib/stripe/resources/balance.rb +42 -0
  22. data/lib/stripe/resources/balance_transaction.rb +2 -0
  23. data/lib/stripe/resources/bank_account.rb +2 -2
  24. data/lib/stripe/resources/billing_portal/session.rb +3 -3
  25. data/lib/stripe/resources/capability.rb +1 -1
  26. data/lib/stripe/resources/charge.rb +43 -20
  27. data/lib/stripe/resources/checkout/session.rb +120 -19
  28. data/lib/stripe/resources/confirmation_token.rb +119 -100
  29. data/lib/stripe/resources/country_spec.rb +1 -1
  30. data/lib/stripe/resources/coupon.rb +2 -3
  31. data/lib/stripe/resources/credit_note.rb +21 -18
  32. data/lib/stripe/resources/customer.rb +4 -6
  33. data/lib/stripe/resources/customer_session.rb +5 -5
  34. data/lib/stripe/resources/dispute.rb +2 -2
  35. data/lib/stripe/resources/event.rb +3 -1
  36. data/lib/stripe/resources/file.rb +1 -1
  37. data/lib/stripe/resources/funding_instructions.rb +1 -1
  38. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  39. data/lib/stripe/resources/identity/verification_session.rb +51 -11
  40. data/lib/stripe/resources/invoice.rb +146 -32
  41. data/lib/stripe/resources/invoice_item.rb +3 -7
  42. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  43. data/lib/stripe/resources/invoice_payment.rb +9 -2
  44. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  45. data/lib/stripe/resources/issuing/card.rb +1 -1
  46. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  47. data/lib/stripe/resources/login_link.rb +2 -1
  48. data/lib/stripe/resources/mandate.rb +3 -0
  49. data/lib/stripe/resources/payment_intent.rb +602 -325
  50. data/lib/stripe/resources/payment_method.rb +76 -117
  51. data/lib/stripe/resources/payment_method_configuration.rb +356 -2
  52. data/lib/stripe/resources/payment_method_domain.rb +15 -2
  53. data/lib/stripe/resources/payout.rb +4 -4
  54. data/lib/stripe/resources/person.rb +27 -3
  55. data/lib/stripe/resources/plan.rb +2 -3
  56. data/lib/stripe/resources/price.rb +1 -1
  57. data/lib/stripe/resources/product.rb +1 -2
  58. data/lib/stripe/resources/quote.rb +28 -3
  59. data/lib/stripe/resources/radar/value_list.rb +1 -2
  60. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  61. data/lib/stripe/resources/refund.rb +8 -1
  62. data/lib/stripe/resources/reversal.rb +1 -1
  63. data/lib/stripe/resources/review.rb +1 -1
  64. data/lib/stripe/resources/setup_attempt.rb +1 -1
  65. data/lib/stripe/resources/setup_intent.rb +414 -293
  66. data/lib/stripe/resources/source.rb +1 -1
  67. data/lib/stripe/resources/subscription.rb +149 -27
  68. data/lib/stripe/resources/subscription_item.rb +33 -0
  69. data/lib/stripe/resources/subscription_schedule.rb +141 -4
  70. data/lib/stripe/resources/tax/calculation.rb +6 -2
  71. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  72. data/lib/stripe/resources/tax/registration.rb +261 -1
  73. data/lib/stripe/resources/tax/transaction.rb +1 -1
  74. data/lib/stripe/resources/tax_id.rb +3 -4
  75. data/lib/stripe/resources/tax_rate.rb +2 -2
  76. data/lib/stripe/resources/terminal/configuration.rb +2 -2
  77. data/lib/stripe/resources/terminal/location.rb +2 -3
  78. data/lib/stripe/resources/terminal/reader.rb +426 -6
  79. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  80. data/lib/stripe/resources/token.rb +63 -2
  81. data/lib/stripe/resources/transfer.rb +1 -1
  82. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  83. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  84. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  85. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  86. data/lib/stripe/resources/v2/event.rb +2 -2
  87. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  88. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  89. data/lib/stripe/resources.rb +1 -0
  90. data/lib/stripe/services/account_external_account_service.rb +3 -4
  91. data/lib/stripe/services/account_login_link_service.rb +1 -1
  92. data/lib/stripe/services/account_person_service.rb +85 -2
  93. data/lib/stripe/services/account_service.rb +169 -20
  94. data/lib/stripe/services/account_session_service.rb +115 -47
  95. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  96. data/lib/stripe/services/application_fee_service.rb +1 -1
  97. data/lib/stripe/services/apps_service.rb +1 -1
  98. data/lib/stripe/services/balance_service.rb +1 -1
  99. data/lib/stripe/services/billing/meter_service.rb +1 -1
  100. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  101. data/lib/stripe/services/billing_portal_service.rb +1 -1
  102. data/lib/stripe/services/billing_service.rb +1 -1
  103. data/lib/stripe/services/charge_service.rb +4 -4
  104. data/lib/stripe/services/checkout/session_service.rb +94 -15
  105. data/lib/stripe/services/checkout_service.rb +1 -1
  106. data/lib/stripe/services/climate_service.rb +1 -1
  107. data/lib/stripe/services/coupon_service.rb +1 -2
  108. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  109. data/lib/stripe/services/credit_note_service.rb +14 -15
  110. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  111. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  112. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  113. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  114. data/lib/stripe/services/customer_service.rb +5 -7
  115. data/lib/stripe/services/customer_session_service.rb +1 -1
  116. data/lib/stripe/services/customer_tax_id_service.rb +2 -3
  117. data/lib/stripe/services/dispute_service.rb +1 -1
  118. data/lib/stripe/services/entitlements_service.rb +1 -1
  119. data/lib/stripe/services/file_service.rb +1 -1
  120. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  121. data/lib/stripe/services/financial_connections_service.rb +1 -1
  122. data/lib/stripe/services/forwarding_service.rb +1 -1
  123. data/lib/stripe/services/identity/verification_session_service.rb +21 -5
  124. data/lib/stripe/services/identity_service.rb +1 -1
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +122 -28
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/issuing_service.rb +1 -1
  131. data/lib/stripe/services/payment_intent_service.rb +563 -313
  132. data/lib/stripe/services/payment_link_service.rb +1 -1
  133. data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
  134. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  135. data/lib/stripe/services/payment_method_service.rb +59 -105
  136. data/lib/stripe/services/payout_service.rb +2 -2
  137. data/lib/stripe/services/plan_service.rb +2 -3
  138. data/lib/stripe/services/price_service.rb +2 -2
  139. data/lib/stripe/services/product_feature_service.rb +1 -2
  140. data/lib/stripe/services/product_service.rb +3 -4
  141. data/lib/stripe/services/promotion_code_service.rb +1 -1
  142. data/lib/stripe/services/quote_service.rb +21 -4
  143. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  144. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  145. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  146. data/lib/stripe/services/radar_service.rb +1 -1
  147. data/lib/stripe/services/reporting_service.rb +1 -1
  148. data/lib/stripe/services/setup_intent_service.rb +403 -291
  149. data/lib/stripe/services/sigma_service.rb +1 -1
  150. data/lib/stripe/services/source_service.rb +2 -2
  151. data/lib/stripe/services/subscription_item_service.rb +26 -0
  152. data/lib/stripe/services/subscription_schedule_service.rb +106 -3
  153. data/lib/stripe/services/subscription_service.rb +121 -26
  154. data/lib/stripe/services/tax/calculation_service.rb +6 -2
  155. data/lib/stripe/services/tax/registration_service.rb +170 -1
  156. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  157. data/lib/stripe/services/tax_id_service.rb +2 -3
  158. data/lib/stripe/services/tax_service.rb +1 -1
  159. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  160. data/lib/stripe/services/terminal/location_service.rb +2 -3
  161. data/lib/stripe/services/terminal/reader_service.rb +196 -2
  162. data/lib/stripe/services/terminal_service.rb +1 -1
  163. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
  164. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  165. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  166. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  167. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  168. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  169. data/lib/stripe/services/test_helpers_service.rb +1 -1
  170. data/lib/stripe/services/token_service.rb +62 -1
  171. data/lib/stripe/services/transfer_service.rb +2 -2
  172. data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
  173. data/lib/stripe/services/treasury_service.rb +1 -1
  174. data/lib/stripe/services/v1_services.rb +1 -1
  175. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  176. data/lib/stripe/services/v2/billing_service.rb +3 -3
  177. data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
  178. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  179. data/lib/stripe/services/v2/core_service.rb +1 -1
  180. data/lib/stripe/services/v2_services.rb +1 -1
  181. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  182. data/lib/stripe/version.rb +1 -1
  183. data/lib/stripe/webhook.rb +1 -1
  184. data/rbi/stripe/resources/account.rbi +190 -35
  185. data/rbi/stripe/resources/account_session.rbi +196 -77
  186. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  187. data/rbi/stripe/resources/balance.rbi +55 -0
  188. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  189. data/rbi/stripe/resources/bank_account.rbi +2 -2
  190. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  191. data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
  192. data/rbi/stripe/resources/capability.rbi +1 -1
  193. data/rbi/stripe/resources/charge.rbi +52 -20
  194. data/rbi/stripe/resources/checkout/session.rbi +133 -24
  195. data/rbi/stripe/resources/confirmation_token.rbi +140 -115
  196. data/rbi/stripe/resources/country_spec.rbi +1 -1
  197. data/rbi/stripe/resources/coupon.rbi +2 -4
  198. data/rbi/stripe/resources/credit_note.rbi +23 -18
  199. data/rbi/stripe/resources/customer.rbi +4 -8
  200. data/rbi/stripe/resources/customer_session.rbi +5 -5
  201. data/rbi/stripe/resources/dispute.rbi +2 -2
  202. data/rbi/stripe/resources/event.rbi +4 -1
  203. data/rbi/stripe/resources/file.rbi +1 -1
  204. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  205. data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
  206. data/rbi/stripe/resources/invoice.rbi +149 -40
  207. data/rbi/stripe/resources/invoice_item.rbi +3 -8
  208. data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
  209. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  210. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  211. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  212. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  213. data/rbi/stripe/resources/login_link.rbi +2 -1
  214. data/rbi/stripe/resources/mandate.rbi +4 -0
  215. data/rbi/stripe/resources/payment_intent.rbi +637 -381
  216. data/rbi/stripe/resources/payment_method.rbi +81 -133
  217. data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
  218. data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
  219. data/rbi/stripe/resources/payout.rbi +4 -4
  220. data/rbi/stripe/resources/person.rbi +33 -3
  221. data/rbi/stripe/resources/plan.rbi +2 -4
  222. data/rbi/stripe/resources/price.rbi +1 -1
  223. data/rbi/stripe/resources/product.rbi +1 -3
  224. data/rbi/stripe/resources/quote.rbi +25 -3
  225. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  226. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  227. data/rbi/stripe/resources/refund.rbi +8 -1
  228. data/rbi/stripe/resources/reversal.rbi +1 -1
  229. data/rbi/stripe/resources/review.rbi +1 -1
  230. data/rbi/stripe/resources/setup_attempt.rbi +1 -1
  231. data/rbi/stripe/resources/setup_intent.rbi +464 -346
  232. data/rbi/stripe/resources/source.rbi +1 -1
  233. data/rbi/stripe/resources/subscription.rbi +150 -34
  234. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  235. data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
  236. data/rbi/stripe/resources/tax/calculation.rbi +7 -3
  237. data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
  238. data/rbi/stripe/resources/tax/registration.rbi +249 -2
  239. data/rbi/stripe/resources/tax/transaction.rbi +1 -1
  240. data/rbi/stripe/resources/tax_id.rbi +3 -5
  241. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  242. data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
  243. data/rbi/stripe/resources/terminal/location.rbi +4 -6
  244. data/rbi/stripe/resources/terminal/reader.rbi +415 -8
  245. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  246. data/rbi/stripe/resources/token.rbi +70 -4
  247. data/rbi/stripe/resources/transfer.rbi +1 -1
  248. data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
  249. data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
  250. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
  251. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
  252. data/rbi/stripe/resources/v2/event.rbi +3 -3
  253. data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
  254. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  255. data/rbi/stripe/services/account_external_account_service.rbi +3 -5
  256. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  257. data/rbi/stripe/services/account_person_service.rbi +93 -5
  258. data/rbi/stripe/services/account_service.rbi +166 -28
  259. data/rbi/stripe/services/account_session_service.rbi +126 -52
  260. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  261. data/rbi/stripe/services/balance_service.rbi +1 -1
  262. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  263. data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
  264. data/rbi/stripe/services/charge_service.rbi +4 -4
  265. data/rbi/stripe/services/checkout/session_service.rbi +104 -19
  266. data/rbi/stripe/services/coupon_service.rbi +1 -3
  267. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
  268. data/rbi/stripe/services/credit_note_service.rbi +13 -14
  269. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  270. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  271. data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
  272. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  273. data/rbi/stripe/services/customer_service.rbi +4 -8
  274. data/rbi/stripe/services/customer_session_service.rbi +1 -1
  275. data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
  276. data/rbi/stripe/services/dispute_service.rbi +1 -1
  277. data/rbi/stripe/services/file_service.rbi +1 -1
  278. data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
  279. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  280. data/rbi/stripe/services/invoice_service.rbi +126 -35
  281. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  282. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  283. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  284. data/rbi/stripe/services/payment_intent_service.rbi +599 -369
  285. data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
  286. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  287. data/rbi/stripe/services/payment_method_service.rbi +62 -121
  288. data/rbi/stripe/services/payout_service.rbi +2 -2
  289. data/rbi/stripe/services/plan_service.rbi +2 -4
  290. data/rbi/stripe/services/price_service.rbi +2 -2
  291. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  292. data/rbi/stripe/services/product_service.rbi +2 -4
  293. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  294. data/rbi/stripe/services/quote_service.rbi +16 -3
  295. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  296. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  297. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  298. data/rbi/stripe/services/setup_intent_service.rbi +457 -344
  299. data/rbi/stripe/services/source_service.rbi +1 -1
  300. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  301. data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
  302. data/rbi/stripe/services/subscription_service.rbi +121 -33
  303. data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
  304. data/rbi/stripe/services/tax/registration_service.rbi +171 -2
  305. data/rbi/stripe/services/tax_id_service.rbi +2 -4
  306. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  307. data/rbi/stripe/services/terminal/location_service.rbi +4 -6
  308. data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
  309. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
  310. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  311. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  312. data/rbi/stripe/services/token_service.rbi +71 -3
  313. data/rbi/stripe/services/transfer_service.rbi +1 -1
  314. data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
  315. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  316. data/rbi/stripe/services/v2/billing_service.rbi +1 -1
  317. data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
  318. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  319. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  320. metadata +5 -2
@@ -70,9 +70,7 @@ module Stripe
70
70
  end
71
71
  class MandateData < Stripe::RequestParams
72
72
  class CustomerAcceptance < Stripe::RequestParams
73
- class Offline < Stripe::RequestParams
74
-
75
- end
73
+ class Offline < Stripe::RequestParams; end
76
74
  class Online < Stripe::RequestParams
77
75
  # The IP address from which the Mandate was accepted by the customer.
78
76
  sig { returns(String) }
@@ -130,21 +128,11 @@ module Stripe
130
128
  }
131
129
  def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
132
130
  end
133
- class Affirm < Stripe::RequestParams
134
-
135
- end
136
- class AfterpayClearpay < Stripe::RequestParams
137
-
138
- end
139
- class Alipay < Stripe::RequestParams
140
-
141
- end
142
- class Alma < Stripe::RequestParams
143
-
144
- end
145
- class AmazonPay < Stripe::RequestParams
146
-
147
- end
131
+ class Affirm < Stripe::RequestParams; end
132
+ class AfterpayClearpay < Stripe::RequestParams; end
133
+ class Alipay < Stripe::RequestParams; end
134
+ class Alma < Stripe::RequestParams; end
135
+ class AmazonPay < Stripe::RequestParams; end
148
136
  class AuBecsDebit < Stripe::RequestParams
149
137
  # The account number for the bank account.
150
138
  sig { returns(String) }
@@ -165,12 +153,8 @@ module Stripe
165
153
  sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
166
154
  def initialize(account_number: nil, sort_code: nil); end
167
155
  end
168
- class Bancontact < Stripe::RequestParams
169
-
170
- end
171
- class Billie < Stripe::RequestParams
172
-
173
- end
156
+ class Bancontact < Stripe::RequestParams; end
157
+ class Billie < Stripe::RequestParams; end
174
158
  class BillingDetails < Stripe::RequestParams
175
159
  class Address < Stripe::RequestParams
176
160
  # City, district, suburb, town, or village.
@@ -217,14 +201,15 @@ module Stripe
217
201
  # Billing phone number (including extension).
218
202
  sig { returns(T.nilable(T.nilable(String))) }
219
203
  attr_accessor :phone
204
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
205
+ sig { returns(T.nilable(String)) }
206
+ attr_accessor :tax_id
220
207
  sig {
221
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
208
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
222
209
  }
223
- def initialize(address: nil, email: nil, name: nil, phone: nil); end
224
- end
225
- class Blik < Stripe::RequestParams
226
-
210
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
227
211
  end
212
+ class Blik < Stripe::RequestParams; end
228
213
  class Boleto < Stripe::RequestParams
229
214
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
230
215
  sig { returns(String) }
@@ -232,12 +217,9 @@ module Stripe
232
217
  sig { params(tax_id: String).void }
233
218
  def initialize(tax_id: nil); end
234
219
  end
235
- class Cashapp < Stripe::RequestParams
236
-
237
- end
238
- class CustomerBalance < Stripe::RequestParams
239
-
240
- end
220
+ class Cashapp < Stripe::RequestParams; end
221
+ class Crypto < Stripe::RequestParams; end
222
+ class CustomerBalance < Stripe::RequestParams; end
241
223
  class Eps < Stripe::RequestParams
242
224
  # The customer's bank.
243
225
  sig { returns(T.nilable(String)) }
@@ -255,12 +237,8 @@ module Stripe
255
237
  sig { params(account_holder_type: T.nilable(String), bank: String).void }
256
238
  def initialize(account_holder_type: nil, bank: nil); end
257
239
  end
258
- class Giropay < Stripe::RequestParams
259
-
260
- end
261
- class Grabpay < Stripe::RequestParams
262
-
263
- end
240
+ class Giropay < Stripe::RequestParams; end
241
+ class Grabpay < Stripe::RequestParams; end
264
242
  class Ideal < Stripe::RequestParams
265
243
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
266
244
  sig { returns(T.nilable(String)) }
@@ -268,12 +246,8 @@ module Stripe
268
246
  sig { params(bank: T.nilable(String)).void }
269
247
  def initialize(bank: nil); end
270
248
  end
271
- class InteracPresent < Stripe::RequestParams
272
-
273
- end
274
- class KakaoPay < Stripe::RequestParams
275
-
276
- end
249
+ class InteracPresent < Stripe::RequestParams; end
250
+ class KakaoPay < Stripe::RequestParams; end
277
251
  class Klarna < Stripe::RequestParams
278
252
  class Dob < Stripe::RequestParams
279
253
  # The day of birth, between 1 and 31.
@@ -298,21 +272,11 @@ module Stripe
298
272
  }
299
273
  def initialize(dob: nil); end
300
274
  end
301
- class Konbini < Stripe::RequestParams
302
-
303
- end
304
- class KrCard < Stripe::RequestParams
305
-
306
- end
307
- class Link < Stripe::RequestParams
308
-
309
- end
310
- class Mobilepay < Stripe::RequestParams
311
-
312
- end
313
- class Multibanco < Stripe::RequestParams
314
-
315
- end
275
+ class Konbini < Stripe::RequestParams; end
276
+ class KrCard < Stripe::RequestParams; end
277
+ class Link < Stripe::RequestParams; end
278
+ class Mobilepay < Stripe::RequestParams; end
279
+ class Multibanco < Stripe::RequestParams; end
316
280
  class NaverPay < Stripe::RequestParams
317
281
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
318
282
  sig { returns(T.nilable(String)) }
@@ -351,9 +315,7 @@ module Stripe
351
315
  suffix: nil
352
316
  ); end
353
317
  end
354
- class Oxxo < Stripe::RequestParams
355
-
356
- end
318
+ class Oxxo < Stripe::RequestParams; end
357
319
  class P24 < Stripe::RequestParams
358
320
  # The customer's bank.
359
321
  sig { returns(T.nilable(String)) }
@@ -361,24 +323,12 @@ module Stripe
361
323
  sig { params(bank: T.nilable(String)).void }
362
324
  def initialize(bank: nil); end
363
325
  end
364
- class PayByBank < Stripe::RequestParams
365
-
366
- end
367
- class Payco < Stripe::RequestParams
368
-
369
- end
370
- class Paynow < Stripe::RequestParams
371
-
372
- end
373
- class Paypal < Stripe::RequestParams
374
-
375
- end
376
- class Pix < Stripe::RequestParams
377
-
378
- end
379
- class Promptpay < Stripe::RequestParams
380
-
381
- end
326
+ class PayByBank < Stripe::RequestParams; end
327
+ class Payco < Stripe::RequestParams; end
328
+ class Paynow < Stripe::RequestParams; end
329
+ class Paypal < Stripe::RequestParams; end
330
+ class Pix < Stripe::RequestParams; end
331
+ class Promptpay < Stripe::RequestParams; end
382
332
  class RadarOptions < Stripe::RequestParams
383
333
  # 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.
384
334
  sig { returns(T.nilable(String)) }
@@ -386,15 +336,9 @@ module Stripe
386
336
  sig { params(session: T.nilable(String)).void }
387
337
  def initialize(session: nil); end
388
338
  end
389
- class RevolutPay < Stripe::RequestParams
390
-
391
- end
392
- class SamsungPay < Stripe::RequestParams
393
-
394
- end
395
- class Satispay < Stripe::RequestParams
396
-
397
- end
339
+ class RevolutPay < Stripe::RequestParams; end
340
+ class SamsungPay < Stripe::RequestParams; end
341
+ class Satispay < Stripe::RequestParams; end
398
342
  class SepaDebit < Stripe::RequestParams
399
343
  # IBAN of the bank account.
400
344
  sig { returns(String) }
@@ -409,12 +353,8 @@ module Stripe
409
353
  sig { params(country: String).void }
410
354
  def initialize(country: nil); end
411
355
  end
412
- class Swish < Stripe::RequestParams
413
-
414
- end
415
- class Twint < Stripe::RequestParams
416
-
417
- end
356
+ class Swish < Stripe::RequestParams; end
357
+ class Twint < Stripe::RequestParams; end
418
358
  class UsBankAccount < Stripe::RequestParams
419
359
  # Account holder type: individual or company.
420
360
  sig { returns(T.nilable(String)) }
@@ -442,12 +382,8 @@ module Stripe
442
382
  routing_number: nil
443
383
  ); end
444
384
  end
445
- class WechatPay < Stripe::RequestParams
446
-
447
- end
448
- class Zip < Stripe::RequestParams
449
-
450
- end
385
+ class WechatPay < Stripe::RequestParams; end
386
+ class Zip < Stripe::RequestParams; end
451
387
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
452
388
  sig {
453
389
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AcssDebit))
@@ -496,7 +432,7 @@ module Stripe
496
432
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact))
497
433
  }
498
434
  attr_accessor :bancontact
499
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
435
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
500
436
  sig {
501
437
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Billie))
502
438
  }
@@ -521,6 +457,11 @@ module Stripe
521
457
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Cashapp))
522
458
  }
523
459
  attr_accessor :cashapp
460
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
461
+ sig {
462
+ returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Crypto))
463
+ }
464
+ attr_accessor :crypto
524
465
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
525
466
  sig {
526
467
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::CustomerBalance))
@@ -649,7 +590,7 @@ module Stripe
649
590
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RadarOptions))
650
591
  }
651
592
  attr_accessor :radar_options
652
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
593
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
653
594
  sig {
654
595
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay))
655
596
  }
@@ -659,7 +600,7 @@ module Stripe
659
600
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay))
660
601
  }
661
602
  attr_accessor :samsung_pay
662
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
603
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
663
604
  sig {
664
605
  returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Satispay))
665
606
  }
@@ -703,7 +644,7 @@ module Stripe
703
644
  }
704
645
  attr_accessor :zip
705
646
  sig {
706
- params(acss_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Zip)).void
647
+ params(acss_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Zip)).void
707
648
  }
708
649
  def initialize(
709
650
  acss_debit: nil,
@@ -721,6 +662,7 @@ module Stripe
721
662
  blik: nil,
722
663
  boleto: nil,
723
664
  cashapp: nil,
665
+ crypto: nil,
724
666
  customer_balance: nil,
725
667
  eps: nil,
726
668
  fpx: nil,
@@ -994,6 +936,17 @@ module Stripe
994
936
  }
995
937
  def initialize(preferred_language: nil, setup_future_usage: nil); end
996
938
  end
939
+ class Billie < Stripe::RequestParams
940
+ # Controls when the funds are captured from the customer's account.
941
+ #
942
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
943
+ #
944
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
945
+ sig { returns(T.nilable(T.nilable(String))) }
946
+ attr_accessor :capture_method
947
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
948
+ def initialize(capture_method: nil); end
949
+ end
997
950
  class Blik < Stripe::RequestParams
998
951
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
999
952
  sig { returns(T.nilable(String)) }
@@ -1044,7 +997,7 @@ module Stripe
1044
997
  # One of `month`.
1045
998
  sig { returns(T.nilable(String)) }
1046
999
  attr_accessor :interval
1047
- # Type of installment plan, one of `fixed_count`.
1000
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1048
1001
  sig { returns(String) }
1049
1002
  attr_accessor :type
1050
1003
  sig {
@@ -1337,6 +1290,21 @@ module Stripe
1337
1290
  }
1338
1291
  def initialize(capture_method: nil, setup_future_usage: nil); end
1339
1292
  end
1293
+ class Crypto < Stripe::RequestParams
1294
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1295
+ #
1296
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1297
+ #
1298
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1299
+ #
1300
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1301
+ #
1302
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1303
+ sig { returns(T.nilable(String)) }
1304
+ attr_accessor :setup_future_usage
1305
+ sig { params(setup_future_usage: T.nilable(String)).void }
1306
+ def initialize(setup_future_usage: nil); end
1307
+ end
1340
1308
  class CustomerBalance < Stripe::RequestParams
1341
1309
  class BankTransfer < Stripe::RequestParams
1342
1310
  class EuBankTransfer < Stripe::RequestParams
@@ -1463,9 +1431,7 @@ module Stripe
1463
1431
  sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
1464
1432
  def initialize(setup_future_usage: nil); end
1465
1433
  end
1466
- class InteracPresent < Stripe::RequestParams
1467
-
1468
- end
1434
+ class InteracPresent < Stripe::RequestParams; end
1469
1435
  class KakaoPay < Stripe::RequestParams
1470
1436
  # Controls when the funds are captured from the customer's account.
1471
1437
  #
@@ -1489,6 +1455,72 @@ module Stripe
1489
1455
  def initialize(capture_method: nil, setup_future_usage: nil); end
1490
1456
  end
1491
1457
  class Klarna < Stripe::RequestParams
1458
+ class OnDemand < Stripe::RequestParams
1459
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1460
+ sig { returns(T.nilable(Integer)) }
1461
+ attr_accessor :average_amount
1462
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1463
+ sig { returns(T.nilable(Integer)) }
1464
+ attr_accessor :maximum_amount
1465
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1466
+ sig { returns(T.nilable(Integer)) }
1467
+ attr_accessor :minimum_amount
1468
+ # Interval at which the customer is making purchases
1469
+ sig { returns(T.nilable(String)) }
1470
+ attr_accessor :purchase_interval
1471
+ # The number of `purchase_interval` between charges
1472
+ sig { returns(T.nilable(Integer)) }
1473
+ attr_accessor :purchase_interval_count
1474
+ sig {
1475
+ params(average_amount: T.nilable(Integer), maximum_amount: T.nilable(Integer), minimum_amount: T.nilable(Integer), purchase_interval: T.nilable(String), purchase_interval_count: T.nilable(Integer)).void
1476
+ }
1477
+ def initialize(
1478
+ average_amount: nil,
1479
+ maximum_amount: nil,
1480
+ minimum_amount: nil,
1481
+ purchase_interval: nil,
1482
+ purchase_interval_count: nil
1483
+ ); end
1484
+ end
1485
+ class Subscription < Stripe::RequestParams
1486
+ class NextBilling < Stripe::RequestParams
1487
+ # The amount of the next charge for the subscription.
1488
+ sig { returns(Integer) }
1489
+ attr_accessor :amount
1490
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
1491
+ sig { returns(String) }
1492
+ attr_accessor :date
1493
+ sig { params(amount: Integer, date: String).void }
1494
+ def initialize(amount: nil, date: nil); end
1495
+ end
1496
+ # Unit of time between subscription charges.
1497
+ sig { returns(String) }
1498
+ attr_accessor :interval
1499
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1500
+ sig { returns(T.nilable(Integer)) }
1501
+ attr_accessor :interval_count
1502
+ # Name for subscription.
1503
+ sig { returns(T.nilable(String)) }
1504
+ attr_accessor :name
1505
+ # Describes the upcoming charge for this subscription.
1506
+ sig {
1507
+ returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling))
1508
+ }
1509
+ attr_accessor :next_billing
1510
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1511
+ sig { returns(String) }
1512
+ attr_accessor :reference
1513
+ sig {
1514
+ params(interval: String, interval_count: T.nilable(Integer), name: T.nilable(String), next_billing: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling), reference: String).void
1515
+ }
1516
+ def initialize(
1517
+ interval: nil,
1518
+ interval_count: nil,
1519
+ name: nil,
1520
+ next_billing: nil,
1521
+ reference: nil
1522
+ ); end
1523
+ end
1492
1524
  # Controls when the funds are captured from the customer's account.
1493
1525
  #
1494
1526
  # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
@@ -1496,6 +1528,11 @@ module Stripe
1496
1528
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1497
1529
  sig { returns(T.nilable(T.nilable(String))) }
1498
1530
  attr_accessor :capture_method
1531
+ # On-demand details if setting up or charging an on-demand payment.
1532
+ sig {
1533
+ returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand))
1534
+ }
1535
+ attr_accessor :on_demand
1499
1536
  # Preferred language of the Klarna authorization page that the customer is redirected to
1500
1537
  sig { returns(T.nilable(String)) }
1501
1538
  attr_accessor :preferred_locale
@@ -1510,10 +1547,21 @@ module Stripe
1510
1547
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1511
1548
  sig { returns(T.nilable(String)) }
1512
1549
  attr_accessor :setup_future_usage
1550
+ # Subscription details if setting up or charging a subscription.
1513
1551
  sig {
1514
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
1552
+ returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
1515
1553
  }
1516
- def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
1554
+ attr_accessor :subscriptions
1555
+ sig {
1556
+ params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
1557
+ }
1558
+ def initialize(
1559
+ capture_method: nil,
1560
+ on_demand: nil,
1561
+ preferred_locale: nil,
1562
+ setup_future_usage: nil,
1563
+ subscriptions: nil
1564
+ ); end
1517
1565
  end
1518
1566
  class Konbini < Stripe::RequestParams
1519
1567
  # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
@@ -1720,9 +1768,7 @@ module Stripe
1720
1768
  }
1721
1769
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
1722
1770
  end
1723
- class PayByBank < Stripe::RequestParams
1724
-
1725
- end
1771
+ class PayByBank < Stripe::RequestParams; end
1726
1772
  class Payco < Stripe::RequestParams
1727
1773
  # Controls when the funds are captured from the customer's account.
1728
1774
  #
@@ -1855,6 +1901,17 @@ module Stripe
1855
1901
  sig { params(capture_method: T.nilable(T.nilable(String))).void }
1856
1902
  def initialize(capture_method: nil); end
1857
1903
  end
1904
+ class Satispay < Stripe::RequestParams
1905
+ # Controls when the funds are captured from the customer's account.
1906
+ #
1907
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1908
+ #
1909
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1910
+ sig { returns(T.nilable(T.nilable(String))) }
1911
+ attr_accessor :capture_method
1912
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
1913
+ def initialize(capture_method: nil); end
1914
+ end
1858
1915
  class SepaDebit < Stripe::RequestParams
1859
1916
  class MandateOptions < Stripe::RequestParams
1860
1917
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -2115,6 +2172,11 @@ module Stripe
2115
2172
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact))))
2116
2173
  }
2117
2174
  attr_accessor :bancontact
2175
+ # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
2176
+ sig {
2177
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie))))
2178
+ }
2179
+ attr_accessor :billie
2118
2180
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
2119
2181
  sig {
2120
2182
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik))))
@@ -2140,6 +2202,11 @@ module Stripe
2140
2202
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp))))
2141
2203
  }
2142
2204
  attr_accessor :cashapp
2205
+ # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
2206
+ sig {
2207
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto))))
2208
+ }
2209
+ attr_accessor :crypto
2143
2210
  # If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
2144
2211
  sig {
2145
2212
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance))))
@@ -2270,6 +2337,11 @@ module Stripe
2270
2337
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay))))
2271
2338
  }
2272
2339
  attr_accessor :samsung_pay
2340
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
2341
+ sig {
2342
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay))))
2343
+ }
2344
+ attr_accessor :satispay
2273
2345
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2274
2346
  sig {
2275
2347
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit))))
@@ -2306,7 +2378,7 @@ module Stripe
2306
2378
  }
2307
2379
  attr_accessor :zip
2308
2380
  sig {
2309
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)))).void
2381
+ params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)))).void
2310
2382
  }
2311
2383
  def initialize(
2312
2384
  acss_debit: nil,
@@ -2318,11 +2390,13 @@ module Stripe
2318
2390
  au_becs_debit: nil,
2319
2391
  bacs_debit: nil,
2320
2392
  bancontact: nil,
2393
+ billie: nil,
2321
2394
  blik: nil,
2322
2395
  boleto: nil,
2323
2396
  card: nil,
2324
2397
  card_present: nil,
2325
2398
  cashapp: nil,
2399
+ crypto: nil,
2326
2400
  customer_balance: nil,
2327
2401
  eps: nil,
2328
2402
  fpx: nil,
@@ -2349,6 +2423,7 @@ module Stripe
2349
2423
  promptpay: nil,
2350
2424
  revolut_pay: nil,
2351
2425
  samsung_pay: nil,
2426
+ satispay: nil,
2352
2427
  sepa_debit: nil,
2353
2428
  sofort: nil,
2354
2429
  swish: nil,
@@ -2500,6 +2575,8 @@ module Stripe
2500
2575
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
2501
2576
  #
2502
2577
  # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
2578
+ # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
2579
+ # end
2503
2580
  sig { returns(T.nilable(String)) }
2504
2581
  attr_accessor :payment_method
2505
2582
  # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
@@ -2513,7 +2590,7 @@ module Stripe
2513
2590
  # Payment method-specific configuration for this PaymentIntent.
2514
2591
  sig { returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions)) }
2515
2592
  attr_accessor :payment_method_options
2516
- # The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
2593
+ # The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
2517
2594
  sig { returns(T.nilable(T::Array[String])) }
2518
2595
  attr_accessor :payment_method_types
2519
2596
  # Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
@@ -2620,21 +2697,11 @@ module Stripe
2620
2697
  }
2621
2698
  def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
2622
2699
  end
2623
- class Affirm < Stripe::RequestParams
2624
-
2625
- end
2626
- class AfterpayClearpay < Stripe::RequestParams
2627
-
2628
- end
2629
- class Alipay < Stripe::RequestParams
2630
-
2631
- end
2632
- class Alma < Stripe::RequestParams
2633
-
2634
- end
2635
- class AmazonPay < Stripe::RequestParams
2636
-
2637
- end
2700
+ class Affirm < Stripe::RequestParams; end
2701
+ class AfterpayClearpay < Stripe::RequestParams; end
2702
+ class Alipay < Stripe::RequestParams; end
2703
+ class Alma < Stripe::RequestParams; end
2704
+ class AmazonPay < Stripe::RequestParams; end
2638
2705
  class AuBecsDebit < Stripe::RequestParams
2639
2706
  # The account number for the bank account.
2640
2707
  sig { returns(String) }
@@ -2655,12 +2722,8 @@ module Stripe
2655
2722
  sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
2656
2723
  def initialize(account_number: nil, sort_code: nil); end
2657
2724
  end
2658
- class Bancontact < Stripe::RequestParams
2659
-
2660
- end
2661
- class Billie < Stripe::RequestParams
2662
-
2663
- end
2725
+ class Bancontact < Stripe::RequestParams; end
2726
+ class Billie < Stripe::RequestParams; end
2664
2727
  class BillingDetails < Stripe::RequestParams
2665
2728
  class Address < Stripe::RequestParams
2666
2729
  # City, district, suburb, town, or village.
@@ -2707,14 +2770,15 @@ module Stripe
2707
2770
  # Billing phone number (including extension).
2708
2771
  sig { returns(T.nilable(T.nilable(String))) }
2709
2772
  attr_accessor :phone
2773
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
2774
+ sig { returns(T.nilable(String)) }
2775
+ attr_accessor :tax_id
2710
2776
  sig {
2711
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
2777
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
2712
2778
  }
2713
- def initialize(address: nil, email: nil, name: nil, phone: nil); end
2714
- end
2715
- class Blik < Stripe::RequestParams
2716
-
2779
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
2717
2780
  end
2781
+ class Blik < Stripe::RequestParams; end
2718
2782
  class Boleto < Stripe::RequestParams
2719
2783
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
2720
2784
  sig { returns(String) }
@@ -2722,12 +2786,9 @@ module Stripe
2722
2786
  sig { params(tax_id: String).void }
2723
2787
  def initialize(tax_id: nil); end
2724
2788
  end
2725
- class Cashapp < Stripe::RequestParams
2726
-
2727
- end
2728
- class CustomerBalance < Stripe::RequestParams
2729
-
2730
- end
2789
+ class Cashapp < Stripe::RequestParams; end
2790
+ class Crypto < Stripe::RequestParams; end
2791
+ class CustomerBalance < Stripe::RequestParams; end
2731
2792
  class Eps < Stripe::RequestParams
2732
2793
  # The customer's bank.
2733
2794
  sig { returns(T.nilable(String)) }
@@ -2745,12 +2806,8 @@ module Stripe
2745
2806
  sig { params(account_holder_type: T.nilable(String), bank: String).void }
2746
2807
  def initialize(account_holder_type: nil, bank: nil); end
2747
2808
  end
2748
- class Giropay < Stripe::RequestParams
2749
-
2750
- end
2751
- class Grabpay < Stripe::RequestParams
2752
-
2753
- end
2809
+ class Giropay < Stripe::RequestParams; end
2810
+ class Grabpay < Stripe::RequestParams; end
2754
2811
  class Ideal < Stripe::RequestParams
2755
2812
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2756
2813
  sig { returns(T.nilable(String)) }
@@ -2758,12 +2815,8 @@ module Stripe
2758
2815
  sig { params(bank: T.nilable(String)).void }
2759
2816
  def initialize(bank: nil); end
2760
2817
  end
2761
- class InteracPresent < Stripe::RequestParams
2762
-
2763
- end
2764
- class KakaoPay < Stripe::RequestParams
2765
-
2766
- end
2818
+ class InteracPresent < Stripe::RequestParams; end
2819
+ class KakaoPay < Stripe::RequestParams; end
2767
2820
  class Klarna < Stripe::RequestParams
2768
2821
  class Dob < Stripe::RequestParams
2769
2822
  # The day of birth, between 1 and 31.
@@ -2788,21 +2841,11 @@ module Stripe
2788
2841
  }
2789
2842
  def initialize(dob: nil); end
2790
2843
  end
2791
- class Konbini < Stripe::RequestParams
2792
-
2793
- end
2794
- class KrCard < Stripe::RequestParams
2795
-
2796
- end
2797
- class Link < Stripe::RequestParams
2798
-
2799
- end
2800
- class Mobilepay < Stripe::RequestParams
2801
-
2802
- end
2803
- class Multibanco < Stripe::RequestParams
2804
-
2805
- end
2844
+ class Konbini < Stripe::RequestParams; end
2845
+ class KrCard < Stripe::RequestParams; end
2846
+ class Link < Stripe::RequestParams; end
2847
+ class Mobilepay < Stripe::RequestParams; end
2848
+ class Multibanco < Stripe::RequestParams; end
2806
2849
  class NaverPay < Stripe::RequestParams
2807
2850
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
2808
2851
  sig { returns(T.nilable(String)) }
@@ -2841,9 +2884,7 @@ module Stripe
2841
2884
  suffix: nil
2842
2885
  ); end
2843
2886
  end
2844
- class Oxxo < Stripe::RequestParams
2845
-
2846
- end
2887
+ class Oxxo < Stripe::RequestParams; end
2847
2888
  class P24 < Stripe::RequestParams
2848
2889
  # The customer's bank.
2849
2890
  sig { returns(T.nilable(String)) }
@@ -2851,24 +2892,12 @@ module Stripe
2851
2892
  sig { params(bank: T.nilable(String)).void }
2852
2893
  def initialize(bank: nil); end
2853
2894
  end
2854
- class PayByBank < Stripe::RequestParams
2855
-
2856
- end
2857
- class Payco < Stripe::RequestParams
2858
-
2859
- end
2860
- class Paynow < Stripe::RequestParams
2861
-
2862
- end
2863
- class Paypal < Stripe::RequestParams
2864
-
2865
- end
2866
- class Pix < Stripe::RequestParams
2867
-
2868
- end
2869
- class Promptpay < Stripe::RequestParams
2870
-
2871
- end
2895
+ class PayByBank < Stripe::RequestParams; end
2896
+ class Payco < Stripe::RequestParams; end
2897
+ class Paynow < Stripe::RequestParams; end
2898
+ class Paypal < Stripe::RequestParams; end
2899
+ class Pix < Stripe::RequestParams; end
2900
+ class Promptpay < Stripe::RequestParams; end
2872
2901
  class RadarOptions < Stripe::RequestParams
2873
2902
  # 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.
2874
2903
  sig { returns(T.nilable(String)) }
@@ -2876,15 +2905,9 @@ module Stripe
2876
2905
  sig { params(session: T.nilable(String)).void }
2877
2906
  def initialize(session: nil); end
2878
2907
  end
2879
- class RevolutPay < Stripe::RequestParams
2880
-
2881
- end
2882
- class SamsungPay < Stripe::RequestParams
2883
-
2884
- end
2885
- class Satispay < Stripe::RequestParams
2886
-
2887
- end
2908
+ class RevolutPay < Stripe::RequestParams; end
2909
+ class SamsungPay < Stripe::RequestParams; end
2910
+ class Satispay < Stripe::RequestParams; end
2888
2911
  class SepaDebit < Stripe::RequestParams
2889
2912
  # IBAN of the bank account.
2890
2913
  sig { returns(String) }
@@ -2899,12 +2922,8 @@ module Stripe
2899
2922
  sig { params(country: String).void }
2900
2923
  def initialize(country: nil); end
2901
2924
  end
2902
- class Swish < Stripe::RequestParams
2903
-
2904
- end
2905
- class Twint < Stripe::RequestParams
2906
-
2907
- end
2925
+ class Swish < Stripe::RequestParams; end
2926
+ class Twint < Stripe::RequestParams; end
2908
2927
  class UsBankAccount < Stripe::RequestParams
2909
2928
  # Account holder type: individual or company.
2910
2929
  sig { returns(T.nilable(String)) }
@@ -2932,12 +2951,8 @@ module Stripe
2932
2951
  routing_number: nil
2933
2952
  ); end
2934
2953
  end
2935
- class WechatPay < Stripe::RequestParams
2936
-
2937
- end
2938
- class Zip < Stripe::RequestParams
2939
-
2940
- end
2954
+ class WechatPay < Stripe::RequestParams; end
2955
+ class Zip < Stripe::RequestParams; end
2941
2956
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2942
2957
  sig {
2943
2958
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AcssDebit))
@@ -2986,7 +3001,7 @@ module Stripe
2986
3001
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact))
2987
3002
  }
2988
3003
  attr_accessor :bancontact
2989
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
3004
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
2990
3005
  sig {
2991
3006
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Billie))
2992
3007
  }
@@ -3011,6 +3026,11 @@ module Stripe
3011
3026
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Cashapp))
3012
3027
  }
3013
3028
  attr_accessor :cashapp
3029
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
3030
+ sig {
3031
+ returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Crypto))
3032
+ }
3033
+ attr_accessor :crypto
3014
3034
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
3015
3035
  sig {
3016
3036
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::CustomerBalance))
@@ -3139,7 +3159,7 @@ module Stripe
3139
3159
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RadarOptions))
3140
3160
  }
3141
3161
  attr_accessor :radar_options
3142
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3162
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3143
3163
  sig {
3144
3164
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay))
3145
3165
  }
@@ -3149,7 +3169,7 @@ module Stripe
3149
3169
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay))
3150
3170
  }
3151
3171
  attr_accessor :samsung_pay
3152
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
3172
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
3153
3173
  sig {
3154
3174
  returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Satispay))
3155
3175
  }
@@ -3193,7 +3213,7 @@ module Stripe
3193
3213
  }
3194
3214
  attr_accessor :zip
3195
3215
  sig {
3196
- params(acss_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Zip)).void
3216
+ params(acss_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Zip)).void
3197
3217
  }
3198
3218
  def initialize(
3199
3219
  acss_debit: nil,
@@ -3211,6 +3231,7 @@ module Stripe
3211
3231
  blik: nil,
3212
3232
  boleto: nil,
3213
3233
  cashapp: nil,
3234
+ crypto: nil,
3214
3235
  customer_balance: nil,
3215
3236
  eps: nil,
3216
3237
  fpx: nil,
@@ -3484,6 +3505,17 @@ module Stripe
3484
3505
  }
3485
3506
  def initialize(preferred_language: nil, setup_future_usage: nil); end
3486
3507
  end
3508
+ class Billie < Stripe::RequestParams
3509
+ # Controls when the funds are captured from the customer's account.
3510
+ #
3511
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3512
+ #
3513
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3514
+ sig { returns(T.nilable(T.nilable(String))) }
3515
+ attr_accessor :capture_method
3516
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
3517
+ def initialize(capture_method: nil); end
3518
+ end
3487
3519
  class Blik < Stripe::RequestParams
3488
3520
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
3489
3521
  sig { returns(T.nilable(String)) }
@@ -3534,7 +3566,7 @@ module Stripe
3534
3566
  # One of `month`.
3535
3567
  sig { returns(T.nilable(String)) }
3536
3568
  attr_accessor :interval
3537
- # Type of installment plan, one of `fixed_count`.
3569
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
3538
3570
  sig { returns(String) }
3539
3571
  attr_accessor :type
3540
3572
  sig {
@@ -3827,6 +3859,21 @@ module Stripe
3827
3859
  }
3828
3860
  def initialize(capture_method: nil, setup_future_usage: nil); end
3829
3861
  end
3862
+ class Crypto < Stripe::RequestParams
3863
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3864
+ #
3865
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
3866
+ #
3867
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3868
+ #
3869
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
3870
+ #
3871
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3872
+ sig { returns(T.nilable(String)) }
3873
+ attr_accessor :setup_future_usage
3874
+ sig { params(setup_future_usage: T.nilable(String)).void }
3875
+ def initialize(setup_future_usage: nil); end
3876
+ end
3830
3877
  class CustomerBalance < Stripe::RequestParams
3831
3878
  class BankTransfer < Stripe::RequestParams
3832
3879
  class EuBankTransfer < Stripe::RequestParams
@@ -3953,9 +4000,7 @@ module Stripe
3953
4000
  sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
3954
4001
  def initialize(setup_future_usage: nil); end
3955
4002
  end
3956
- class InteracPresent < Stripe::RequestParams
3957
-
3958
- end
4003
+ class InteracPresent < Stripe::RequestParams; end
3959
4004
  class KakaoPay < Stripe::RequestParams
3960
4005
  # Controls when the funds are captured from the customer's account.
3961
4006
  #
@@ -3979,6 +4024,72 @@ module Stripe
3979
4024
  def initialize(capture_method: nil, setup_future_usage: nil); end
3980
4025
  end
3981
4026
  class Klarna < Stripe::RequestParams
4027
+ class OnDemand < Stripe::RequestParams
4028
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
4029
+ sig { returns(T.nilable(Integer)) }
4030
+ attr_accessor :average_amount
4031
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
4032
+ sig { returns(T.nilable(Integer)) }
4033
+ attr_accessor :maximum_amount
4034
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
4035
+ sig { returns(T.nilable(Integer)) }
4036
+ attr_accessor :minimum_amount
4037
+ # Interval at which the customer is making purchases
4038
+ sig { returns(T.nilable(String)) }
4039
+ attr_accessor :purchase_interval
4040
+ # The number of `purchase_interval` between charges
4041
+ sig { returns(T.nilable(Integer)) }
4042
+ attr_accessor :purchase_interval_count
4043
+ sig {
4044
+ params(average_amount: T.nilable(Integer), maximum_amount: T.nilable(Integer), minimum_amount: T.nilable(Integer), purchase_interval: T.nilable(String), purchase_interval_count: T.nilable(Integer)).void
4045
+ }
4046
+ def initialize(
4047
+ average_amount: nil,
4048
+ maximum_amount: nil,
4049
+ minimum_amount: nil,
4050
+ purchase_interval: nil,
4051
+ purchase_interval_count: nil
4052
+ ); end
4053
+ end
4054
+ class Subscription < Stripe::RequestParams
4055
+ class NextBilling < Stripe::RequestParams
4056
+ # The amount of the next charge for the subscription.
4057
+ sig { returns(Integer) }
4058
+ attr_accessor :amount
4059
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
4060
+ sig { returns(String) }
4061
+ attr_accessor :date
4062
+ sig { params(amount: Integer, date: String).void }
4063
+ def initialize(amount: nil, date: nil); end
4064
+ end
4065
+ # Unit of time between subscription charges.
4066
+ sig { returns(String) }
4067
+ attr_accessor :interval
4068
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
4069
+ sig { returns(T.nilable(Integer)) }
4070
+ attr_accessor :interval_count
4071
+ # Name for subscription.
4072
+ sig { returns(T.nilable(String)) }
4073
+ attr_accessor :name
4074
+ # Describes the upcoming charge for this subscription.
4075
+ sig {
4076
+ returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling))
4077
+ }
4078
+ attr_accessor :next_billing
4079
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
4080
+ sig { returns(String) }
4081
+ attr_accessor :reference
4082
+ sig {
4083
+ params(interval: String, interval_count: T.nilable(Integer), name: T.nilable(String), next_billing: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling), reference: String).void
4084
+ }
4085
+ def initialize(
4086
+ interval: nil,
4087
+ interval_count: nil,
4088
+ name: nil,
4089
+ next_billing: nil,
4090
+ reference: nil
4091
+ ); end
4092
+ end
3982
4093
  # Controls when the funds are captured from the customer's account.
3983
4094
  #
3984
4095
  # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
@@ -3986,6 +4097,11 @@ module Stripe
3986
4097
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3987
4098
  sig { returns(T.nilable(T.nilable(String))) }
3988
4099
  attr_accessor :capture_method
4100
+ # On-demand details if setting up or charging an on-demand payment.
4101
+ sig {
4102
+ returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand))
4103
+ }
4104
+ attr_accessor :on_demand
3989
4105
  # Preferred language of the Klarna authorization page that the customer is redirected to
3990
4106
  sig { returns(T.nilable(String)) }
3991
4107
  attr_accessor :preferred_locale
@@ -4000,10 +4116,21 @@ module Stripe
4000
4116
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
4001
4117
  sig { returns(T.nilable(String)) }
4002
4118
  attr_accessor :setup_future_usage
4119
+ # Subscription details if setting up or charging a subscription.
4003
4120
  sig {
4004
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
4121
+ returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))))
4005
4122
  }
4006
- def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
4123
+ attr_accessor :subscriptions
4124
+ sig {
4125
+ params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))).void
4126
+ }
4127
+ def initialize(
4128
+ capture_method: nil,
4129
+ on_demand: nil,
4130
+ preferred_locale: nil,
4131
+ setup_future_usage: nil,
4132
+ subscriptions: nil
4133
+ ); end
4007
4134
  end
4008
4135
  class Konbini < Stripe::RequestParams
4009
4136
  # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
@@ -4210,9 +4337,7 @@ module Stripe
4210
4337
  }
4211
4338
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
4212
4339
  end
4213
- class PayByBank < Stripe::RequestParams
4214
-
4215
- end
4340
+ class PayByBank < Stripe::RequestParams; end
4216
4341
  class Payco < Stripe::RequestParams
4217
4342
  # Controls when the funds are captured from the customer's account.
4218
4343
  #
@@ -4345,6 +4470,17 @@ module Stripe
4345
4470
  sig { params(capture_method: T.nilable(T.nilable(String))).void }
4346
4471
  def initialize(capture_method: nil); end
4347
4472
  end
4473
+ class Satispay < Stripe::RequestParams
4474
+ # Controls when the funds are captured from the customer's account.
4475
+ #
4476
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
4477
+ #
4478
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
4479
+ sig { returns(T.nilable(T.nilable(String))) }
4480
+ attr_accessor :capture_method
4481
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
4482
+ def initialize(capture_method: nil); end
4483
+ end
4348
4484
  class SepaDebit < Stripe::RequestParams
4349
4485
  class MandateOptions < Stripe::RequestParams
4350
4486
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -4605,6 +4741,11 @@ module Stripe
4605
4741
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact))))
4606
4742
  }
4607
4743
  attr_accessor :bancontact
4744
+ # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
4745
+ sig {
4746
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie))))
4747
+ }
4748
+ attr_accessor :billie
4608
4749
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
4609
4750
  sig {
4610
4751
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik))))
@@ -4630,6 +4771,11 @@ module Stripe
4630
4771
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp))))
4631
4772
  }
4632
4773
  attr_accessor :cashapp
4774
+ # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
4775
+ sig {
4776
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto))))
4777
+ }
4778
+ attr_accessor :crypto
4633
4779
  # If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
4634
4780
  sig {
4635
4781
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance))))
@@ -4760,6 +4906,11 @@ module Stripe
4760
4906
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay))))
4761
4907
  }
4762
4908
  attr_accessor :samsung_pay
4909
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
4910
+ sig {
4911
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay))))
4912
+ }
4913
+ attr_accessor :satispay
4763
4914
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
4764
4915
  sig {
4765
4916
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))))
@@ -4796,7 +4947,7 @@ module Stripe
4796
4947
  }
4797
4948
  attr_accessor :zip
4798
4949
  sig {
4799
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)))).void
4950
+ params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)))).void
4800
4951
  }
4801
4952
  def initialize(
4802
4953
  acss_debit: nil,
@@ -4808,11 +4959,13 @@ module Stripe
4808
4959
  au_becs_debit: nil,
4809
4960
  bacs_debit: nil,
4810
4961
  bancontact: nil,
4962
+ billie: nil,
4811
4963
  blik: nil,
4812
4964
  boleto: nil,
4813
4965
  card: nil,
4814
4966
  card_present: nil,
4815
4967
  cashapp: nil,
4968
+ crypto: nil,
4816
4969
  customer_balance: nil,
4817
4970
  eps: nil,
4818
4971
  fpx: nil,
@@ -4839,6 +4992,7 @@ module Stripe
4839
4992
  promptpay: nil,
4840
4993
  revolut_pay: nil,
4841
4994
  samsung_pay: nil,
4995
+ satispay: nil,
4842
4996
  sepa_debit: nil,
4843
4997
  sofort: nil,
4844
4998
  swish: nil,
@@ -4949,7 +5103,7 @@ module Stripe
4949
5103
  # Payment-method-specific configuration for this PaymentIntent.
4950
5104
  sig { returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions)) }
4951
5105
  attr_accessor :payment_method_options
4952
- # The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
5106
+ # The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
4953
5107
  sig { returns(T.nilable(T::Array[String])) }
4954
5108
  attr_accessor :payment_method_types
4955
5109
  # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
@@ -5112,9 +5266,7 @@ module Stripe
5112
5266
  class ConfirmParams < Stripe::RequestParams
5113
5267
  class MandateData < Stripe::RequestParams
5114
5268
  class CustomerAcceptance < Stripe::RequestParams
5115
- class Offline < Stripe::RequestParams
5116
-
5117
- end
5269
+ class Offline < Stripe::RequestParams; end
5118
5270
  class Online < Stripe::RequestParams
5119
5271
  # The IP address from which the Mandate was accepted by the customer.
5120
5272
  sig { returns(T.nilable(String)) }
@@ -5172,21 +5324,11 @@ module Stripe
5172
5324
  }
5173
5325
  def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
5174
5326
  end
5175
- class Affirm < Stripe::RequestParams
5176
-
5177
- end
5178
- class AfterpayClearpay < Stripe::RequestParams
5179
-
5180
- end
5181
- class Alipay < Stripe::RequestParams
5182
-
5183
- end
5184
- class Alma < Stripe::RequestParams
5185
-
5186
- end
5187
- class AmazonPay < Stripe::RequestParams
5188
-
5189
- end
5327
+ class Affirm < Stripe::RequestParams; end
5328
+ class AfterpayClearpay < Stripe::RequestParams; end
5329
+ class Alipay < Stripe::RequestParams; end
5330
+ class Alma < Stripe::RequestParams; end
5331
+ class AmazonPay < Stripe::RequestParams; end
5190
5332
  class AuBecsDebit < Stripe::RequestParams
5191
5333
  # The account number for the bank account.
5192
5334
  sig { returns(String) }
@@ -5207,12 +5349,8 @@ module Stripe
5207
5349
  sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
5208
5350
  def initialize(account_number: nil, sort_code: nil); end
5209
5351
  end
5210
- class Bancontact < Stripe::RequestParams
5211
-
5212
- end
5213
- class Billie < Stripe::RequestParams
5214
-
5215
- end
5352
+ class Bancontact < Stripe::RequestParams; end
5353
+ class Billie < Stripe::RequestParams; end
5216
5354
  class BillingDetails < Stripe::RequestParams
5217
5355
  class Address < Stripe::RequestParams
5218
5356
  # City, district, suburb, town, or village.
@@ -5259,14 +5397,15 @@ module Stripe
5259
5397
  # Billing phone number (including extension).
5260
5398
  sig { returns(T.nilable(T.nilable(String))) }
5261
5399
  attr_accessor :phone
5400
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
5401
+ sig { returns(T.nilable(String)) }
5402
+ attr_accessor :tax_id
5262
5403
  sig {
5263
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
5404
+ params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
5264
5405
  }
5265
- def initialize(address: nil, email: nil, name: nil, phone: nil); end
5266
- end
5267
- class Blik < Stripe::RequestParams
5268
-
5406
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
5269
5407
  end
5408
+ class Blik < Stripe::RequestParams; end
5270
5409
  class Boleto < Stripe::RequestParams
5271
5410
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
5272
5411
  sig { returns(String) }
@@ -5274,12 +5413,9 @@ module Stripe
5274
5413
  sig { params(tax_id: String).void }
5275
5414
  def initialize(tax_id: nil); end
5276
5415
  end
5277
- class Cashapp < Stripe::RequestParams
5278
-
5279
- end
5280
- class CustomerBalance < Stripe::RequestParams
5281
-
5282
- end
5416
+ class Cashapp < Stripe::RequestParams; end
5417
+ class Crypto < Stripe::RequestParams; end
5418
+ class CustomerBalance < Stripe::RequestParams; end
5283
5419
  class Eps < Stripe::RequestParams
5284
5420
  # The customer's bank.
5285
5421
  sig { returns(T.nilable(String)) }
@@ -5297,12 +5433,8 @@ module Stripe
5297
5433
  sig { params(account_holder_type: T.nilable(String), bank: String).void }
5298
5434
  def initialize(account_holder_type: nil, bank: nil); end
5299
5435
  end
5300
- class Giropay < Stripe::RequestParams
5301
-
5302
- end
5303
- class Grabpay < Stripe::RequestParams
5304
-
5305
- end
5436
+ class Giropay < Stripe::RequestParams; end
5437
+ class Grabpay < Stripe::RequestParams; end
5306
5438
  class Ideal < Stripe::RequestParams
5307
5439
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
5308
5440
  sig { returns(T.nilable(String)) }
@@ -5310,12 +5442,8 @@ module Stripe
5310
5442
  sig { params(bank: T.nilable(String)).void }
5311
5443
  def initialize(bank: nil); end
5312
5444
  end
5313
- class InteracPresent < Stripe::RequestParams
5314
-
5315
- end
5316
- class KakaoPay < Stripe::RequestParams
5317
-
5318
- end
5445
+ class InteracPresent < Stripe::RequestParams; end
5446
+ class KakaoPay < Stripe::RequestParams; end
5319
5447
  class Klarna < Stripe::RequestParams
5320
5448
  class Dob < Stripe::RequestParams
5321
5449
  # The day of birth, between 1 and 31.
@@ -5340,21 +5468,11 @@ module Stripe
5340
5468
  }
5341
5469
  def initialize(dob: nil); end
5342
5470
  end
5343
- class Konbini < Stripe::RequestParams
5344
-
5345
- end
5346
- class KrCard < Stripe::RequestParams
5347
-
5348
- end
5349
- class Link < Stripe::RequestParams
5350
-
5351
- end
5352
- class Mobilepay < Stripe::RequestParams
5353
-
5354
- end
5355
- class Multibanco < Stripe::RequestParams
5356
-
5357
- end
5471
+ class Konbini < Stripe::RequestParams; end
5472
+ class KrCard < Stripe::RequestParams; end
5473
+ class Link < Stripe::RequestParams; end
5474
+ class Mobilepay < Stripe::RequestParams; end
5475
+ class Multibanco < Stripe::RequestParams; end
5358
5476
  class NaverPay < Stripe::RequestParams
5359
5477
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
5360
5478
  sig { returns(T.nilable(String)) }
@@ -5393,9 +5511,7 @@ module Stripe
5393
5511
  suffix: nil
5394
5512
  ); end
5395
5513
  end
5396
- class Oxxo < Stripe::RequestParams
5397
-
5398
- end
5514
+ class Oxxo < Stripe::RequestParams; end
5399
5515
  class P24 < Stripe::RequestParams
5400
5516
  # The customer's bank.
5401
5517
  sig { returns(T.nilable(String)) }
@@ -5403,24 +5519,12 @@ module Stripe
5403
5519
  sig { params(bank: T.nilable(String)).void }
5404
5520
  def initialize(bank: nil); end
5405
5521
  end
5406
- class PayByBank < Stripe::RequestParams
5407
-
5408
- end
5409
- class Payco < Stripe::RequestParams
5410
-
5411
- end
5412
- class Paynow < Stripe::RequestParams
5413
-
5414
- end
5415
- class Paypal < Stripe::RequestParams
5416
-
5417
- end
5418
- class Pix < Stripe::RequestParams
5419
-
5420
- end
5421
- class Promptpay < Stripe::RequestParams
5422
-
5423
- end
5522
+ class PayByBank < Stripe::RequestParams; end
5523
+ class Payco < Stripe::RequestParams; end
5524
+ class Paynow < Stripe::RequestParams; end
5525
+ class Paypal < Stripe::RequestParams; end
5526
+ class Pix < Stripe::RequestParams; end
5527
+ class Promptpay < Stripe::RequestParams; end
5424
5528
  class RadarOptions < Stripe::RequestParams
5425
5529
  # 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.
5426
5530
  sig { returns(T.nilable(String)) }
@@ -5428,15 +5532,9 @@ module Stripe
5428
5532
  sig { params(session: T.nilable(String)).void }
5429
5533
  def initialize(session: nil); end
5430
5534
  end
5431
- class RevolutPay < Stripe::RequestParams
5432
-
5433
- end
5434
- class SamsungPay < Stripe::RequestParams
5435
-
5436
- end
5437
- class Satispay < Stripe::RequestParams
5438
-
5439
- end
5535
+ class RevolutPay < Stripe::RequestParams; end
5536
+ class SamsungPay < Stripe::RequestParams; end
5537
+ class Satispay < Stripe::RequestParams; end
5440
5538
  class SepaDebit < Stripe::RequestParams
5441
5539
  # IBAN of the bank account.
5442
5540
  sig { returns(String) }
@@ -5451,12 +5549,8 @@ module Stripe
5451
5549
  sig { params(country: String).void }
5452
5550
  def initialize(country: nil); end
5453
5551
  end
5454
- class Swish < Stripe::RequestParams
5455
-
5456
- end
5457
- class Twint < Stripe::RequestParams
5458
-
5459
- end
5552
+ class Swish < Stripe::RequestParams; end
5553
+ class Twint < Stripe::RequestParams; end
5460
5554
  class UsBankAccount < Stripe::RequestParams
5461
5555
  # Account holder type: individual or company.
5462
5556
  sig { returns(T.nilable(String)) }
@@ -5484,12 +5578,8 @@ module Stripe
5484
5578
  routing_number: nil
5485
5579
  ); end
5486
5580
  end
5487
- class WechatPay < Stripe::RequestParams
5488
-
5489
- end
5490
- class Zip < Stripe::RequestParams
5491
-
5492
- end
5581
+ class WechatPay < Stripe::RequestParams; end
5582
+ class Zip < Stripe::RequestParams; end
5493
5583
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
5494
5584
  sig {
5495
5585
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AcssDebit))
@@ -5538,7 +5628,7 @@ module Stripe
5538
5628
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact))
5539
5629
  }
5540
5630
  attr_accessor :bancontact
5541
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
5631
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
5542
5632
  sig {
5543
5633
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Billie))
5544
5634
  }
@@ -5563,6 +5653,11 @@ module Stripe
5563
5653
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Cashapp))
5564
5654
  }
5565
5655
  attr_accessor :cashapp
5656
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
5657
+ sig {
5658
+ returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Crypto))
5659
+ }
5660
+ attr_accessor :crypto
5566
5661
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
5567
5662
  sig {
5568
5663
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::CustomerBalance))
@@ -5691,7 +5786,7 @@ module Stripe
5691
5786
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RadarOptions))
5692
5787
  }
5693
5788
  attr_accessor :radar_options
5694
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
5789
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
5695
5790
  sig {
5696
5791
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay))
5697
5792
  }
@@ -5701,7 +5796,7 @@ module Stripe
5701
5796
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay))
5702
5797
  }
5703
5798
  attr_accessor :samsung_pay
5704
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
5799
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
5705
5800
  sig {
5706
5801
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Satispay))
5707
5802
  }
@@ -5745,7 +5840,7 @@ module Stripe
5745
5840
  }
5746
5841
  attr_accessor :zip
5747
5842
  sig {
5748
- params(acss_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Zip)).void
5843
+ params(acss_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Zip)).void
5749
5844
  }
5750
5845
  def initialize(
5751
5846
  acss_debit: nil,
@@ -5763,6 +5858,7 @@ module Stripe
5763
5858
  blik: nil,
5764
5859
  boleto: nil,
5765
5860
  cashapp: nil,
5861
+ crypto: nil,
5766
5862
  customer_balance: nil,
5767
5863
  eps: nil,
5768
5864
  fpx: nil,
@@ -6036,6 +6132,17 @@ module Stripe
6036
6132
  }
6037
6133
  def initialize(preferred_language: nil, setup_future_usage: nil); end
6038
6134
  end
6135
+ class Billie < Stripe::RequestParams
6136
+ # Controls when the funds are captured from the customer's account.
6137
+ #
6138
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
6139
+ #
6140
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
6141
+ sig { returns(T.nilable(T.nilable(String))) }
6142
+ attr_accessor :capture_method
6143
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
6144
+ def initialize(capture_method: nil); end
6145
+ end
6039
6146
  class Blik < Stripe::RequestParams
6040
6147
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
6041
6148
  sig { returns(T.nilable(String)) }
@@ -6086,7 +6193,7 @@ module Stripe
6086
6193
  # One of `month`.
6087
6194
  sig { returns(T.nilable(String)) }
6088
6195
  attr_accessor :interval
6089
- # Type of installment plan, one of `fixed_count`.
6196
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
6090
6197
  sig { returns(String) }
6091
6198
  attr_accessor :type
6092
6199
  sig {
@@ -6379,6 +6486,21 @@ module Stripe
6379
6486
  }
6380
6487
  def initialize(capture_method: nil, setup_future_usage: nil); end
6381
6488
  end
6489
+ class Crypto < Stripe::RequestParams
6490
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
6491
+ #
6492
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
6493
+ #
6494
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
6495
+ #
6496
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
6497
+ #
6498
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
6499
+ sig { returns(T.nilable(String)) }
6500
+ attr_accessor :setup_future_usage
6501
+ sig { params(setup_future_usage: T.nilable(String)).void }
6502
+ def initialize(setup_future_usage: nil); end
6503
+ end
6382
6504
  class CustomerBalance < Stripe::RequestParams
6383
6505
  class BankTransfer < Stripe::RequestParams
6384
6506
  class EuBankTransfer < Stripe::RequestParams
@@ -6505,9 +6627,7 @@ module Stripe
6505
6627
  sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
6506
6628
  def initialize(setup_future_usage: nil); end
6507
6629
  end
6508
- class InteracPresent < Stripe::RequestParams
6509
-
6510
- end
6630
+ class InteracPresent < Stripe::RequestParams; end
6511
6631
  class KakaoPay < Stripe::RequestParams
6512
6632
  # Controls when the funds are captured from the customer's account.
6513
6633
  #
@@ -6531,6 +6651,72 @@ module Stripe
6531
6651
  def initialize(capture_method: nil, setup_future_usage: nil); end
6532
6652
  end
6533
6653
  class Klarna < Stripe::RequestParams
6654
+ class OnDemand < Stripe::RequestParams
6655
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
6656
+ sig { returns(T.nilable(Integer)) }
6657
+ attr_accessor :average_amount
6658
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
6659
+ sig { returns(T.nilable(Integer)) }
6660
+ attr_accessor :maximum_amount
6661
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
6662
+ sig { returns(T.nilable(Integer)) }
6663
+ attr_accessor :minimum_amount
6664
+ # Interval at which the customer is making purchases
6665
+ sig { returns(T.nilable(String)) }
6666
+ attr_accessor :purchase_interval
6667
+ # The number of `purchase_interval` between charges
6668
+ sig { returns(T.nilable(Integer)) }
6669
+ attr_accessor :purchase_interval_count
6670
+ sig {
6671
+ params(average_amount: T.nilable(Integer), maximum_amount: T.nilable(Integer), minimum_amount: T.nilable(Integer), purchase_interval: T.nilable(String), purchase_interval_count: T.nilable(Integer)).void
6672
+ }
6673
+ def initialize(
6674
+ average_amount: nil,
6675
+ maximum_amount: nil,
6676
+ minimum_amount: nil,
6677
+ purchase_interval: nil,
6678
+ purchase_interval_count: nil
6679
+ ); end
6680
+ end
6681
+ class Subscription < Stripe::RequestParams
6682
+ class NextBilling < Stripe::RequestParams
6683
+ # The amount of the next charge for the subscription.
6684
+ sig { returns(Integer) }
6685
+ attr_accessor :amount
6686
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
6687
+ sig { returns(String) }
6688
+ attr_accessor :date
6689
+ sig { params(amount: Integer, date: String).void }
6690
+ def initialize(amount: nil, date: nil); end
6691
+ end
6692
+ # Unit of time between subscription charges.
6693
+ sig { returns(String) }
6694
+ attr_accessor :interval
6695
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
6696
+ sig { returns(T.nilable(Integer)) }
6697
+ attr_accessor :interval_count
6698
+ # Name for subscription.
6699
+ sig { returns(T.nilable(String)) }
6700
+ attr_accessor :name
6701
+ # Describes the upcoming charge for this subscription.
6702
+ sig {
6703
+ returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription::NextBilling))
6704
+ }
6705
+ attr_accessor :next_billing
6706
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
6707
+ sig { returns(String) }
6708
+ attr_accessor :reference
6709
+ sig {
6710
+ params(interval: String, interval_count: T.nilable(Integer), name: T.nilable(String), next_billing: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription::NextBilling), reference: String).void
6711
+ }
6712
+ def initialize(
6713
+ interval: nil,
6714
+ interval_count: nil,
6715
+ name: nil,
6716
+ next_billing: nil,
6717
+ reference: nil
6718
+ ); end
6719
+ end
6534
6720
  # Controls when the funds are captured from the customer's account.
6535
6721
  #
6536
6722
  # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
@@ -6538,6 +6724,11 @@ module Stripe
6538
6724
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
6539
6725
  sig { returns(T.nilable(T.nilable(String))) }
6540
6726
  attr_accessor :capture_method
6727
+ # On-demand details if setting up or charging an on-demand payment.
6728
+ sig {
6729
+ returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand))
6730
+ }
6731
+ attr_accessor :on_demand
6541
6732
  # Preferred language of the Klarna authorization page that the customer is redirected to
6542
6733
  sig { returns(T.nilable(String)) }
6543
6734
  attr_accessor :preferred_locale
@@ -6552,10 +6743,21 @@ module Stripe
6552
6743
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
6553
6744
  sig { returns(T.nilable(String)) }
6554
6745
  attr_accessor :setup_future_usage
6746
+ # Subscription details if setting up or charging a subscription.
6555
6747
  sig {
6556
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
6748
+ returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))))
6557
6749
  }
6558
- def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
6750
+ attr_accessor :subscriptions
6751
+ sig {
6752
+ params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))).void
6753
+ }
6754
+ def initialize(
6755
+ capture_method: nil,
6756
+ on_demand: nil,
6757
+ preferred_locale: nil,
6758
+ setup_future_usage: nil,
6759
+ subscriptions: nil
6760
+ ); end
6559
6761
  end
6560
6762
  class Konbini < Stripe::RequestParams
6561
6763
  # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
@@ -6762,9 +6964,7 @@ module Stripe
6762
6964
  }
6763
6965
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
6764
6966
  end
6765
- class PayByBank < Stripe::RequestParams
6766
-
6767
- end
6967
+ class PayByBank < Stripe::RequestParams; end
6768
6968
  class Payco < Stripe::RequestParams
6769
6969
  # Controls when the funds are captured from the customer's account.
6770
6970
  #
@@ -6897,6 +7097,17 @@ module Stripe
6897
7097
  sig { params(capture_method: T.nilable(T.nilable(String))).void }
6898
7098
  def initialize(capture_method: nil); end
6899
7099
  end
7100
+ class Satispay < Stripe::RequestParams
7101
+ # Controls when the funds are captured from the customer's account.
7102
+ #
7103
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
7104
+ #
7105
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
7106
+ sig { returns(T.nilable(T.nilable(String))) }
7107
+ attr_accessor :capture_method
7108
+ sig { params(capture_method: T.nilable(T.nilable(String))).void }
7109
+ def initialize(capture_method: nil); end
7110
+ end
6900
7111
  class SepaDebit < Stripe::RequestParams
6901
7112
  class MandateOptions < Stripe::RequestParams
6902
7113
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -7157,6 +7368,11 @@ module Stripe
7157
7368
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact))))
7158
7369
  }
7159
7370
  attr_accessor :bancontact
7371
+ # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
7372
+ sig {
7373
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie))))
7374
+ }
7375
+ attr_accessor :billie
7160
7376
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
7161
7377
  sig {
7162
7378
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik))))
@@ -7182,6 +7398,11 @@ module Stripe
7182
7398
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp))))
7183
7399
  }
7184
7400
  attr_accessor :cashapp
7401
+ # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
7402
+ sig {
7403
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto))))
7404
+ }
7405
+ attr_accessor :crypto
7185
7406
  # If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
7186
7407
  sig {
7187
7408
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance))))
@@ -7312,6 +7533,11 @@ module Stripe
7312
7533
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay))))
7313
7534
  }
7314
7535
  attr_accessor :samsung_pay
7536
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
7537
+ sig {
7538
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay))))
7539
+ }
7540
+ attr_accessor :satispay
7315
7541
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
7316
7542
  sig {
7317
7543
  returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))))
@@ -7348,7 +7574,7 @@ module Stripe
7348
7574
  }
7349
7575
  attr_accessor :zip
7350
7576
  sig {
7351
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)))).void
7577
+ params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)))).void
7352
7578
  }
7353
7579
  def initialize(
7354
7580
  acss_debit: nil,
@@ -7360,11 +7586,13 @@ module Stripe
7360
7586
  au_becs_debit: nil,
7361
7587
  bacs_debit: nil,
7362
7588
  bancontact: nil,
7589
+ billie: nil,
7363
7590
  blik: nil,
7364
7591
  boleto: nil,
7365
7592
  card: nil,
7366
7593
  card_present: nil,
7367
7594
  cashapp: nil,
7595
+ crypto: nil,
7368
7596
  customer_balance: nil,
7369
7597
  eps: nil,
7370
7598
  fpx: nil,
@@ -7391,6 +7619,7 @@ module Stripe
7391
7619
  promptpay: nil,
7392
7620
  revolut_pay: nil,
7393
7621
  samsung_pay: nil,
7622
+ satispay: nil,
7394
7623
  sepa_debit: nil,
7395
7624
  sofort: nil,
7396
7625
  swish: nil,
@@ -7485,6 +7714,7 @@ module Stripe
7485
7714
  sig { returns(T.nilable(T.any(T::Boolean, String))) }
7486
7715
  attr_accessor :off_session
7487
7716
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
7717
+ # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent.
7488
7718
  sig { returns(T.nilable(String)) }
7489
7719
  attr_accessor :payment_method
7490
7720
  # If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
@@ -7497,7 +7727,7 @@ module Stripe
7497
7727
  returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions))
7498
7728
  }
7499
7729
  attr_accessor :payment_method_options
7500
- # The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
7730
+ # The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
7501
7731
  sig { returns(T.nilable(T::Array[String])) }
7502
7732
  attr_accessor :payment_method_types
7503
7733
  # Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
@@ -7619,11 +7849,11 @@ module Stripe
7619
7849
  }
7620
7850
  def apply_customer_balance(intent, params = {}, opts = {}); end
7621
7851
 
7622
- # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
7852
+ # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
7623
7853
  #
7624
7854
  # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
7625
7855
  #
7626
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
7856
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
7627
7857
  sig {
7628
7858
  params(intent: String, params: T.any(::Stripe::PaymentIntentService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
7629
7859
  }
@@ -7633,7 +7863,7 @@ module Stripe
7633
7863
  #
7634
7864
  # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
7635
7865
  #
7636
- # Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
7866
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
7637
7867
  sig {
7638
7868
  params(intent: String, params: T.any(::Stripe::PaymentIntentService::CaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
7639
7869
  }
@@ -7650,8 +7880,8 @@ module Stripe
7650
7880
  # payment succeeds, the PaymentIntent will transition to the succeeded
7651
7881
  # status (or requires_capture, if capture_method is set to manual).
7652
7882
  # If the confirmation_method is automatic, payment may be attempted
7653
- # using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
7654
- # and the PaymentIntent's [client_secret](https://stripe.com/docs/api#payment_intent_object-client_secret).
7883
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
7884
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
7655
7885
  # After next_actions are handled by the client, no additional
7656
7886
  # confirmation is required to complete the payment.
7657
7887
  # If the confirmation_method is manual, all payment attempts must be
@@ -7671,13 +7901,13 @@ module Stripe
7671
7901
 
7672
7902
  # Creates a PaymentIntent object.
7673
7903
  #
7674
- # After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
7904
+ # After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
7675
7905
  # to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
7676
7906
  # with the Payment Intents API.
7677
7907
  #
7678
7908
  # When you use confirm=true during creation, it's equivalent to creating
7679
7909
  # and confirming the PaymentIntent in the same call. You can use any parameters
7680
- # available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
7910
+ # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
7681
7911
  # confirm=true.
7682
7912
  sig {
7683
7913
  params(params: T.any(::Stripe::PaymentIntentService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
@@ -7685,9 +7915,9 @@ module Stripe
7685
7915
  def create(params = {}, opts = {}); end
7686
7916
 
7687
7917
  # Perform an incremental authorization on an eligible
7688
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
7918
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
7689
7919
  # PaymentIntent's status must be requires_capture and
7690
- # [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
7920
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
7691
7921
  # must be true.
7692
7922
  #
7693
7923
  # Incremental authorizations attempt to increase the authorized amount on
@@ -7698,16 +7928,16 @@ module Stripe
7698
7928
  #
7699
7929
  # If the incremental authorization succeeds, the PaymentIntent object
7700
7930
  # returns with the updated
7701
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
7931
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
7702
7932
  # If the incremental authorization fails, a
7703
- # [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
7933
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
7704
7934
  # fields on the PaymentIntent or Charge update. The PaymentIntent
7705
7935
  # object remains capturable for the previously authorized amount.
7706
7936
  #
7707
7937
  # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
7708
7938
  # After it's captured, a PaymentIntent can no longer be incremented.
7709
7939
  #
7710
- # Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
7940
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
7711
7941
  sig {
7712
7942
  params(intent: String, params: T.any(::Stripe::PaymentIntentService::IncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
7713
7943
  }
@@ -7723,13 +7953,13 @@ module Stripe
7723
7953
  #
7724
7954
  # You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
7725
7955
  #
7726
- # If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://stripe.com/docs/api#payment_intent_object) object reference for more details.
7956
+ # If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
7727
7957
  sig {
7728
7958
  params(intent: String, params: T.any(::Stripe::PaymentIntentService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
7729
7959
  }
7730
7960
  def retrieve(intent, params = {}, opts = {}); end
7731
7961
 
7732
- # Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
7962
+ # Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
7733
7963
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
7734
7964
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
7735
7965
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -7744,7 +7974,7 @@ module Stripe
7744
7974
  # PaymentIntent again. For example, updating the payment_method
7745
7975
  # always requires you to confirm the PaymentIntent again. If you prefer to
7746
7976
  # update and confirm at the same time, we recommend updating properties through
7747
- # the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
7977
+ # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
7748
7978
  sig {
7749
7979
  params(intent: String, params: T.any(::Stripe::PaymentIntentService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent)
7750
7980
  }