stripe 15.6.0.pre.beta.1 → 16.0.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 (1097) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +5 -34
  3. data/lib/stripe/api_resource.rb +3 -0
  4. data/lib/stripe/api_version.rb +2 -1
  5. data/lib/stripe/errors.rb +0 -60
  6. data/lib/stripe/event_types.rb +20 -108
  7. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  8. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
  9. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
  10. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +35 -12
  11. data/lib/stripe/object_types.rb +2 -54
  12. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  13. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  14. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  15. data/lib/stripe/params/account_create_params.rb +2083 -0
  16. data/lib/stripe/params/account_delete_params.rb +6 -0
  17. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  18. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  19. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  20. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  21. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  22. data/lib/stripe/params/account_link_create_params.rb +52 -0
  23. data/lib/stripe/params/account_list_params.rb +42 -0
  24. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  25. data/lib/stripe/params/account_person_create_params.rb +435 -0
  26. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  27. data/lib/stripe/params/account_person_list_params.rb +61 -0
  28. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  29. data/lib/stripe/params/account_person_update_params.rb +435 -0
  30. data/lib/stripe/params/account_persons_params.rb +61 -0
  31. data/lib/stripe/params/account_reject_params.rb +16 -0
  32. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  33. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  34. data/lib/stripe/params/account_session_create_params.rb +598 -0
  35. data/lib/stripe/params/account_update_params.rb +2030 -0
  36. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  37. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  38. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  39. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  40. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  41. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  42. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  43. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  44. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  45. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  46. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  47. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  48. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  49. data/lib/stripe/{services/quote_line_service.rb → params/apps/secret_list_params.rb} +17 -14
  50. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  51. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  52. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  53. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  54. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  55. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  56. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  57. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  58. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  59. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  60. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  61. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
  62. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
  63. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  64. data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
  65. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  66. data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
  67. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  68. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  69. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  70. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  71. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  72. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  73. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  74. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  75. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  76. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  77. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  78. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  79. data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
  80. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  81. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  82. data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
  83. data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
  84. data/lib/stripe/params/charge_capture_params.rb +57 -0
  85. data/lib/stripe/params/charge_create_params.rb +172 -0
  86. data/lib/stripe/params/charge_list_params.rb +60 -0
  87. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  88. data/lib/stripe/params/charge_search_params.rb +22 -0
  89. data/lib/stripe/params/charge_update_params.rb +102 -0
  90. data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
  91. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  92. data/lib/stripe/{services/quote_preview_subscription_schedule_service.rb → params/checkout/session_line_item_list_params.rb} +2 -13
  93. data/lib/stripe/{services/order_line_item_service.rb → params/checkout/session_list_line_items_params.rb} +2 -13
  94. data/lib/stripe/params/checkout/session_list_params.rb +83 -0
  95. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  96. data/lib/stripe/params/checkout/session_update_params.rb +179 -0
  97. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  98. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  99. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  100. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  101. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  102. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  103. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  104. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  105. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  106. data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
  107. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  109. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  110. data/lib/stripe/params/coupon_create_params.rb +80 -0
  111. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  112. data/lib/stripe/params/coupon_list_params.rb +42 -0
  113. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/coupon_update_params.rb +30 -0
  115. data/lib/stripe/params/credit_note_create_params.rb +144 -0
  116. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  117. data/lib/stripe/params/credit_note_list_params.rb +56 -0
  118. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
  119. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
  120. data/lib/stripe/params/credit_note_preview_params.rb +144 -0
  121. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  122. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  123. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  124. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  125. data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
  126. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  127. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  128. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  129. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  130. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  131. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  132. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  133. data/lib/stripe/params/customer_create_params.rb +259 -0
  134. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  135. data/lib/stripe/params/customer_delete_params.rb +6 -0
  136. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  137. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  138. data/lib/stripe/params/customer_list_params.rb +56 -0
  139. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  140. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  141. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  142. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  143. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  144. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  145. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  146. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  147. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  148. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  149. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  150. data/lib/stripe/params/customer_search_params.rb +22 -0
  151. data/lib/stripe/params/customer_session_create_params.rb +100 -0
  152. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  153. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  154. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  155. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  156. data/lib/stripe/params/customer_update_params.rb +243 -0
  157. data/lib/stripe/params/dispute_close_params.rb +13 -0
  158. data/lib/stripe/params/dispute_list_params.rb +56 -0
  159. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  160. data/lib/stripe/params/dispute_update_params.rb +308 -0
  161. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  162. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  164. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  165. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  166. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  167. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  168. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  169. data/lib/stripe/params/event_list_params.rb +60 -0
  170. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  171. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  172. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  173. data/lib/stripe/params/file_create_params.rb +36 -0
  174. data/lib/stripe/params/file_link_create_params.rb +22 -0
  175. data/lib/stripe/params/file_link_list_params.rb +56 -0
  176. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  177. data/lib/stripe/params/file_link_update_params.rb +19 -0
  178. data/lib/stripe/params/file_list_params.rb +52 -0
  179. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  180. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  181. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  182. data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
  183. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  184. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  185. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  186. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  187. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  188. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  189. data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
  190. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  191. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  192. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  193. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  194. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  195. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  196. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  197. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  198. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  199. data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
  200. data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
  201. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  202. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  203. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  204. data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
  205. data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
  206. data/lib/stripe/params/invoice_create_params.rb +589 -0
  207. data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
  208. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  209. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  210. data/lib/stripe/params/invoice_item_create_params.rb +145 -0
  211. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  212. data/lib/stripe/params/invoice_item_list_params.rb +60 -0
  213. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  214. data/lib/stripe/params/invoice_item_update_params.rb +129 -0
  215. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  216. data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
  217. data/lib/stripe/params/invoice_list_params.rb +86 -0
  218. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  219. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  220. data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
  221. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  222. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  223. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  224. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  225. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  226. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  227. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  228. data/lib/stripe/params/invoice_search_params.rb +22 -0
  229. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  230. data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
  231. data/lib/stripe/params/invoice_update_params.rb +557 -0
  232. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  233. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  234. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  235. data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
  236. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  237. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  238. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  239. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  240. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  241. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  242. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  243. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  244. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  245. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  246. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  247. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  248. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  249. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  250. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  251. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  252. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  253. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  254. data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
  255. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  256. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  257. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  258. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  259. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  260. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  261. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  262. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  263. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  264. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  265. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  266. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  267. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  268. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  269. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  270. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  271. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  272. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  273. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  274. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  275. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  276. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  277. data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
  278. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  279. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  281. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  282. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  283. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  284. data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
  285. data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
  286. data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
  287. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
  288. data/lib/stripe/params/payment_intent_list_params.rb +52 -0
  289. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  290. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  291. data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
  292. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  293. data/lib/stripe/params/payment_link_create_params.rb +776 -0
  294. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  295. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  296. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  297. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  298. data/lib/stripe/params/payment_link_update_params.rb +564 -0
  299. data/lib/stripe/params/payment_method_attach_params.rb +16 -0
  300. data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
  301. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  302. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  303. data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
  304. data/lib/stripe/params/payment_method_create_params.rb +583 -0
  305. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  306. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  307. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  308. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  309. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  310. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  311. data/lib/stripe/params/payment_method_list_params.rb +35 -0
  312. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  313. data/lib/stripe/params/payment_method_update_params.rb +120 -0
  314. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  315. data/lib/stripe/params/payout_create_params.rb +51 -0
  316. data/lib/stripe/params/payout_list_params.rb +78 -0
  317. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  318. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  319. data/lib/stripe/params/payout_update_params.rb +16 -0
  320. data/lib/stripe/params/plan_create_params.rb +158 -0
  321. data/lib/stripe/params/plan_delete_params.rb +6 -0
  322. data/lib/stripe/params/plan_list_params.rb +56 -0
  323. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  324. data/lib/stripe/params/plan_update_params.rb +35 -0
  325. data/lib/stripe/params/price_create_params.rb +278 -0
  326. data/lib/stripe/params/price_list_params.rb +87 -0
  327. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  328. data/lib/stripe/params/price_search_params.rb +22 -0
  329. data/lib/stripe/params/price_update_params.rb +113 -0
  330. data/lib/stripe/params/product_create_params.rb +243 -0
  331. data/lib/stripe/params/product_delete_params.rb +6 -0
  332. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  333. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  334. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  335. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  336. data/lib/stripe/params/product_list_params.rb +68 -0
  337. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  338. data/lib/stripe/params/product_search_params.rb +22 -0
  339. data/lib/stripe/params/product_update_params.rb +96 -0
  340. data/lib/stripe/params/promotion_code_create_params.rb +91 -0
  341. data/lib/stripe/params/promotion_code_list_params.rb +64 -0
  342. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  343. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  344. data/lib/stripe/params/quote_accept_params.rb +13 -0
  345. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  346. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  347. data/lib/stripe/params/quote_create_params.rb +301 -0
  348. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  349. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  350. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  351. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  352. data/lib/stripe/params/quote_list_params.rb +39 -0
  353. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  354. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  355. data/lib/stripe/params/quote_update_params.rb +263 -0
  356. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  357. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  358. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  359. data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
  360. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  361. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  362. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  363. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  364. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  365. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  366. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  367. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  368. data/lib/stripe/params/refund_create_params.rb +59 -0
  369. data/lib/stripe/params/refund_expire_params.rb +13 -0
  370. data/lib/stripe/params/refund_list_params.rb +56 -0
  371. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  372. data/lib/stripe/params/refund_update_params.rb +16 -0
  373. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  374. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  375. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  376. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  377. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  378. data/lib/stripe/params/review_approve_params.rb +13 -0
  379. data/lib/stripe/params/review_list_params.rb +42 -0
  380. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  381. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  382. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  383. data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
  384. data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
  385. data/lib/stripe/params/setup_intent_list_params.rb +62 -0
  386. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  387. data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
  388. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  389. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  390. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  391. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  392. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  393. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  394. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  395. data/lib/stripe/params/source_create_params.rb +317 -0
  396. data/lib/stripe/params/source_detach_params.rb +13 -0
  397. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  398. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  399. data/lib/stripe/params/source_update_params.rb +259 -0
  400. data/lib/stripe/params/source_verify_params.rb +16 -0
  401. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  402. data/lib/stripe/params/subscription_create_params.rb +704 -0
  403. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  404. data/lib/stripe/params/subscription_item_create_params.rb +134 -0
  405. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  406. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  407. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  408. data/lib/stripe/params/subscription_item_update_params.rb +134 -0
  409. data/lib/stripe/params/subscription_list_params.rb +129 -0
  410. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  411. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  412. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  413. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  414. data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
  415. data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
  416. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  417. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  418. data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
  419. data/lib/stripe/params/subscription_search_params.rb +22 -0
  420. data/lib/stripe/params/subscription_update_params.rb +683 -0
  421. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  422. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  423. data/lib/stripe/{services/quote_preview_invoice_service.rb → params/tax/calculation_list_line_items_params.rb} +2 -13
  424. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  425. data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
  426. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  427. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  428. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  429. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  430. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  431. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  432. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  433. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  434. data/lib/stripe/{services/payment_intent_amount_details_line_item_service.rb → params/tax/transaction_list_line_items_params.rb} +2 -13
  435. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  436. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  437. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  438. data/lib/stripe/params/tax_id_create_params.rb +36 -0
  439. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  440. data/lib/stripe/params/tax_id_list_params.rb +39 -0
  441. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  442. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  443. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  444. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  445. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  446. data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
  447. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  448. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  449. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  450. data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
  451. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  452. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  453. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  454. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  455. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  457. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  458. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  459. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  460. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  461. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  462. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  463. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  464. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  465. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  466. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  467. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  468. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  469. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  470. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  471. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  472. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  473. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
  474. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  475. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  476. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
  477. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  478. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  479. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  480. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  481. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  482. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  483. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  484. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  485. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  486. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  487. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  488. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  489. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  490. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  491. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  492. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  493. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  494. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  495. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  496. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  497. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  498. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  499. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  500. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  501. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  502. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  503. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  504. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  505. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  506. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  507. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  508. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  509. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  510. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  511. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  512. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  513. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
  514. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
  515. data/lib/stripe/params/token_create_params.rb +1191 -0
  516. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  517. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  518. data/lib/stripe/params/topup_create_params.rb +43 -0
  519. data/lib/stripe/params/topup_list_params.rb +74 -0
  520. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  521. data/lib/stripe/params/topup_update_params.rb +19 -0
  522. data/lib/stripe/params/transfer_create_params.rb +47 -0
  523. data/lib/stripe/params/transfer_list_params.rb +56 -0
  524. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  525. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  526. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  527. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  528. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  529. data/lib/stripe/params/transfer_update_params.rb +19 -0
  530. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  531. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  532. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  533. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  534. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  535. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  536. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  537. data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
  538. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  539. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
  540. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  541. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  542. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  543. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
  544. data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
  545. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  546. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  547. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  548. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  549. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  550. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  551. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  552. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  553. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  554. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  555. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  556. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  557. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  558. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  559. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  560. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  561. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
  562. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  563. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  564. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  565. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  566. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  567. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  568. data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
  569. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  570. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  571. data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
  572. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  573. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  574. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  575. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  576. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  577. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  578. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  579. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  580. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  581. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  582. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  583. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  584. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  585. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  586. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  587. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  588. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  589. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  590. data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
  591. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  593. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  594. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  595. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  596. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  597. data/lib/stripe/params.rb +588 -0
  598. data/lib/stripe/request_options.rb +14 -5
  599. data/lib/stripe/resources/account.rb +437 -4906
  600. data/lib/stripe/resources/account_link.rb +8 -47
  601. data/lib/stripe/resources/account_session.rb +338 -910
  602. data/lib/stripe/resources/apple_pay_domain.rb +8 -40
  603. data/lib/stripe/resources/application.rb +8 -0
  604. data/lib/stripe/resources/application_fee.rb +12 -44
  605. data/lib/stripe/resources/application_fee_refund.rb +8 -0
  606. data/lib/stripe/resources/apps/secret.rb +12 -112
  607. data/lib/stripe/resources/balance.rb +159 -0
  608. data/lib/stripe/resources/balance_settings.rb +40 -60
  609. data/lib/stripe/resources/balance_transaction.rb +12 -56
  610. data/lib/stripe/resources/bank_account.rb +40 -0
  611. data/lib/stripe/resources/billing/alert.rb +20 -100
  612. data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
  613. data/lib/stripe/resources/billing/credit_balance_summary.rb +48 -2
  614. data/lib/stripe/resources/billing/credit_balance_transaction.rb +73 -33
  615. data/lib/stripe/resources/billing/credit_grant.rb +42 -161
  616. data/lib/stripe/resources/billing/meter.rb +40 -116
  617. data/lib/stripe/resources/billing/meter_event.rb +8 -20
  618. data/lib/stripe/resources/billing/meter_event_adjustment.rb +12 -22
  619. data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
  620. data/lib/stripe/resources/billing_portal/configuration.rb +120 -473
  621. data/lib/stripe/resources/billing_portal/session.rb +98 -176
  622. data/lib/stripe/resources/capability.rb +56 -0
  623. data/lib/stripe/resources/card.rb +17 -3
  624. data/lib/stripe/resources/cash_balance.rb +16 -2
  625. data/lib/stripe/resources/charge.rb +949 -1945
  626. data/lib/stripe/resources/checkout/session.rb +1038 -2991
  627. data/lib/stripe/resources/climate/order.rb +28 -89
  628. data/lib/stripe/resources/climate/product.rb +13 -15
  629. data/lib/stripe/resources/climate/supplier.rb +13 -15
  630. data/lib/stripe/resources/confirmation_token.rb +883 -841
  631. data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
  632. data/lib/stripe/resources/country_spec.rb +29 -15
  633. data/lib/stripe/resources/coupon.rb +19 -166
  634. data/lib/stripe/resources/credit_note.rb +66 -510
  635. data/lib/stripe/resources/credit_note_line_item.rb +43 -8
  636. data/lib/stripe/resources/customer.rb +81 -677
  637. data/lib/stripe/resources/customer_balance_transaction.rb +8 -2
  638. data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -2
  639. data/lib/stripe/resources/customer_session.rb +49 -98
  640. data/lib/stripe/resources/discount.rb +24 -6
  641. data/lib/stripe/resources/dispute.rb +159 -376
  642. data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -26
  643. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
  644. data/lib/stripe/resources/entitlements/feature.rb +8 -66
  645. data/lib/stripe/resources/ephemeral_key.rb +8 -8
  646. data/lib/stripe/resources/event.rb +16 -79
  647. data/lib/stripe/resources/exchange_rate.rb +18 -17
  648. data/lib/stripe/resources/file.rb +8 -79
  649. data/lib/stripe/resources/file_link.rb +8 -84
  650. data/lib/stripe/resources/financial_connections/account.rb +65 -130
  651. data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
  652. data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
  653. data/lib/stripe/resources/financial_connections/session.rb +20 -115
  654. data/lib/stripe/resources/financial_connections/transaction.rb +12 -57
  655. data/lib/stripe/resources/forwarding/request.rb +48 -93
  656. data/lib/stripe/resources/funding_instructions.rb +217 -24
  657. data/lib/stripe/resources/identity/verification_report.rb +165 -56
  658. data/lib/stripe/resources/identity/verification_session.rb +124 -247
  659. data/lib/stripe/resources/invoice.rb +500 -4017
  660. data/lib/stripe/resources/invoice_item.rb +69 -385
  661. data/lib/stripe/resources/invoice_line_item.rb +124 -251
  662. data/lib/stripe/resources/invoice_payment.rb +20 -47
  663. data/lib/stripe/resources/invoice_rendering_template.rb +8 -38
  664. data/lib/stripe/resources/issuing/authorization.rb +173 -836
  665. data/lib/stripe/resources/issuing/card.rb +98 -499
  666. data/lib/stripe/resources/issuing/cardholder.rb +108 -515
  667. data/lib/stripe/resources/issuing/dispute.rb +93 -620
  668. data/lib/stripe/resources/issuing/personalization_design.rb +32 -221
  669. data/lib/stripe/resources/issuing/physical_bundle.rb +13 -28
  670. data/lib/stripe/resources/issuing/token.rb +57 -60
  671. data/lib/stripe/resources/issuing/transaction.rb +147 -702
  672. data/lib/stripe/resources/line_item.rb +22 -35
  673. data/lib/stripe/resources/login_link.rb +8 -0
  674. data/lib/stripe/resources/mandate.rb +219 -94
  675. data/lib/stripe/resources/payment_intent.rb +1241 -13361
  676. data/lib/stripe/resources/payment_link.rb +333 -1357
  677. data/lib/stripe/resources/payment_method.rb +796 -966
  678. data/lib/stripe/resources/payment_method_configuration.rb +862 -2528
  679. data/lib/stripe/resources/payment_method_domain.rb +107 -63
  680. data/lib/stripe/resources/payout.rb +12 -150
  681. data/lib/stripe/resources/person.rb +184 -4
  682. data/lib/stripe/resources/plan.rb +20 -235
  683. data/lib/stripe/resources/price.rb +65 -509
  684. data/lib/stripe/resources/product.rb +23 -411
  685. data/lib/stripe/resources/product_feature.rb +8 -0
  686. data/lib/stripe/resources/promotion_code.rb +40 -182
  687. data/lib/stripe/resources/quote.rb +280 -2743
  688. data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -51
  689. data/lib/stripe/resources/radar/value_list.rb +8 -92
  690. data/lib/stripe/resources/radar/value_list_item.rb +8 -68
  691. data/lib/stripe/resources/refund.rb +365 -159
  692. data/lib/stripe/resources/reporting/report_run.rb +12 -93
  693. data/lib/stripe/resources/reporting/report_type.rb +8 -8
  694. data/lib/stripe/resources/reserve_transaction.rb +8 -0
  695. data/lib/stripe/resources/reversal.rb +8 -0
  696. data/lib/stripe/resources/review.rb +20 -43
  697. data/lib/stripe/resources/setup_attempt.rb +284 -87
  698. data/lib/stripe/resources/setup_intent.rb +358 -4143
  699. data/lib/stripe/resources/shipping_rate.rb +44 -187
  700. data/lib/stripe/resources/sigma/scheduled_query_run.rb +13 -15
  701. data/lib/stripe/resources/source.rb +267 -611
  702. data/lib/stripe/resources/source_mandate_notification.rb +32 -0
  703. data/lib/stripe/resources/source_transaction.rb +54 -0
  704. data/lib/stripe/resources/subscription.rb +266 -1931
  705. data/lib/stripe/resources/subscription_item.rb +12 -379
  706. data/lib/stripe/resources/subscription_schedule.rb +230 -2273
  707. data/lib/stripe/resources/tax/calculation.rb +111 -220
  708. data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
  709. data/lib/stripe/resources/tax/registration.rb +1274 -2096
  710. data/lib/stripe/resources/tax/settings.rb +61 -64
  711. data/lib/stripe/resources/tax/transaction.rb +95 -122
  712. data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
  713. data/lib/stripe/resources/tax_code.rb +8 -17
  714. data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
  715. data/lib/stripe/resources/tax_id.rb +20 -75
  716. data/lib/stripe/resources/tax_rate.rb +12 -142
  717. data/lib/stripe/resources/terminal/configuration.rb +301 -1205
  718. data/lib/stripe/resources/terminal/connection_token.rb +8 -11
  719. data/lib/stripe/resources/terminal/location.rb +72 -126
  720. data/lib/stripe/resources/terminal/reader.rb +237 -509
  721. data/lib/stripe/resources/test_helpers/test_clock.rb +20 -43
  722. data/lib/stripe/resources/token.rb +8 -1191
  723. data/lib/stripe/resources/topup.rb +8 -132
  724. data/lib/stripe/resources/transfer.rb +8 -115
  725. data/lib/stripe/resources/treasury/credit_reversal.rb +12 -46
  726. data/lib/stripe/resources/treasury/debit_reversal.rb +20 -50
  727. data/lib/stripe/resources/treasury/financial_account.rb +55 -658
  728. data/lib/stripe/resources/treasury/financial_account_features.rb +192 -2
  729. data/lib/stripe/resources/treasury/inbound_transfer.rb +67 -115
  730. data/lib/stripe/resources/treasury/outbound_payment.rb +104 -334
  731. data/lib/stripe/resources/treasury/outbound_transfer.rb +93 -235
  732. data/lib/stripe/resources/treasury/received_credit.rb +76 -136
  733. data/lib/stripe/resources/treasury/received_debit.rb +68 -126
  734. data/lib/stripe/resources/treasury/transaction.rb +32 -82
  735. data/lib/stripe/resources/treasury/transaction_entry.rb +20 -74
  736. data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
  737. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
  738. data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
  739. data/lib/stripe/resources/v2/core/event.rb +67 -0
  740. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  741. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  742. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  743. data/lib/stripe/resources/webhook_endpoint.rb +8 -85
  744. data/lib/stripe/resources.rb +3 -110
  745. data/lib/stripe/services/account_capability_service.rb +0 -32
  746. data/lib/stripe/services/account_external_account_service.rb +0 -249
  747. data/lib/stripe/services/account_link_service.rb +0 -48
  748. data/lib/stripe/services/account_login_link_service.rb +0 -9
  749. data/lib/stripe/services/account_person_service.rb +0 -958
  750. data/lib/stripe/services/account_service.rb +0 -4710
  751. data/lib/stripe/services/account_session_service.rb +0 -862
  752. data/lib/stripe/services/apple_pay_domain_service.rb +0 -50
  753. data/lib/stripe/services/application_fee_refund_service.rb +0 -54
  754. data/lib/stripe/services/application_fee_service.rb +0 -57
  755. data/lib/stripe/services/apps/secret_service.rb +0 -116
  756. data/lib/stripe/services/balance_service.rb +0 -9
  757. data/lib/stripe/services/balance_settings_service.rb +0 -69
  758. data/lib/stripe/services/balance_transaction_service.rb +0 -69
  759. data/lib/stripe/services/billing/alert_service.rb +0 -113
  760. data/lib/stripe/services/billing/credit_balance_summary_service.rb +0 -51
  761. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -44
  762. data/lib/stripe/services/billing/credit_grant_service.rb +0 -174
  763. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +0 -26
  764. data/lib/stripe/services/billing/meter_event_service.rb +0 -21
  765. data/lib/stripe/services/billing/meter_event_summary_service.rb +0 -39
  766. data/lib/stripe/services/billing/meter_service.rb +0 -130
  767. data/lib/stripe/services/billing_portal/configuration_service.rb +0 -486
  768. data/lib/stripe/services/billing_portal/session_service.rb +0 -177
  769. data/lib/stripe/services/billing_service.rb +1 -2
  770. data/lib/stripe/services/charge_service.rb +0 -1820
  771. data/lib/stripe/services/checkout/session_line_item_service.rb +0 -18
  772. data/lib/stripe/services/checkout/session_service.rb +0 -2882
  773. data/lib/stripe/services/climate/order_service.rb +0 -102
  774. data/lib/stripe/services/climate/product_service.rb +0 -27
  775. data/lib/stripe/services/climate/supplier_service.rb +0 -27
  776. data/lib/stripe/services/confirmation_token_service.rb +0 -9
  777. data/lib/stripe/services/country_spec_service.rb +0 -27
  778. data/lib/stripe/services/coupon_service.rb +0 -167
  779. data/lib/stripe/services/credit_note_line_item_service.rb +0 -18
  780. data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -152
  781. data/lib/stripe/services/credit_note_service.rb +0 -369
  782. data/lib/stripe/services/customer_balance_transaction_service.rb +0 -63
  783. data/lib/stripe/services/customer_cash_balance_service.rb +0 -29
  784. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +0 -27
  785. data/lib/stripe/services/customer_funding_instructions_service.rb +0 -42
  786. data/lib/stripe/services/customer_payment_method_service.rb +0 -40
  787. data/lib/stripe/services/customer_payment_source_service.rb +0 -179
  788. data/lib/stripe/services/customer_service.rb +0 -575
  789. data/lib/stripe/services/customer_session_service.rb +0 -99
  790. data/lib/stripe/services/customer_tax_id_service.rb +0 -44
  791. data/lib/stripe/services/dispute_service.rb +0 -374
  792. data/lib/stripe/services/entitlements/active_entitlement_service.rb +0 -36
  793. data/lib/stripe/services/entitlements/feature_service.rb +0 -76
  794. data/lib/stripe/services/ephemeral_key_service.rb +0 -36
  795. data/lib/stripe/services/event_service.rb +0 -65
  796. data/lib/stripe/services/exchange_rate_service.rb +4 -27
  797. data/lib/stripe/services/file_link_service.rb +0 -94
  798. data/lib/stripe/services/file_service.rb +0 -89
  799. data/lib/stripe/services/financial_connections/account_owner_service.rb +0 -27
  800. data/lib/stripe/services/financial_connections/account_service.rb +1 -102
  801. data/lib/stripe/services/financial_connections/session_service.rb +0 -100
  802. data/lib/stripe/services/financial_connections/transaction_service.rb +0 -70
  803. data/lib/stripe/services/financial_connections_service.rb +1 -2
  804. data/lib/stripe/services/forwarding/request_service.rb +0 -106
  805. data/lib/stripe/services/identity/verification_report_service.rb +0 -65
  806. data/lib/stripe/services/identity/verification_session_service.rb +0 -255
  807. data/lib/stripe/services/invoice_item_service.rb +0 -405
  808. data/lib/stripe/services/invoice_line_item_service.rb +0 -253
  809. data/lib/stripe/services/invoice_payment_service.rb +0 -58
  810. data/lib/stripe/services/invoice_rendering_template_service.rb +0 -51
  811. data/lib/stripe/services/invoice_service.rb +0 -3836
  812. data/lib/stripe/services/issuing/authorization_service.rb +0 -104
  813. data/lib/stripe/services/issuing/card_service.rb +0 -463
  814. data/lib/stripe/services/issuing/cardholder_service.rb +0 -526
  815. data/lib/stripe/services/issuing/dispute_service.rb +0 -633
  816. data/lib/stripe/services/issuing/personalization_design_service.rb +0 -193
  817. data/lib/stripe/services/issuing/physical_bundle_service.rb +0 -40
  818. data/lib/stripe/services/issuing/token_service.rb +0 -73
  819. data/lib/stripe/services/issuing/transaction_service.rb +0 -81
  820. data/lib/stripe/services/issuing_service.rb +1 -5
  821. data/lib/stripe/services/mandate_service.rb +0 -49
  822. data/lib/stripe/services/payment_intent_service.rb +0 -12747
  823. data/lib/stripe/services/payment_link_line_item_service.rb +0 -18
  824. data/lib/stripe/services/payment_link_service.rb +0 -1352
  825. data/lib/stripe/services/payment_method_configuration_service.rb +0 -2466
  826. data/lib/stripe/services/payment_method_domain_service.rb +0 -76
  827. data/lib/stripe/services/payment_method_service.rb +0 -881
  828. data/lib/stripe/services/payout_service.rb +0 -163
  829. data/lib/stripe/services/plan_service.rb +0 -248
  830. data/lib/stripe/services/price_service.rb +0 -512
  831. data/lib/stripe/services/product_feature_service.rb +0 -41
  832. data/lib/stripe/services/product_service.rb +0 -424
  833. data/lib/stripe/services/promotion_code_service.rb +1 -187
  834. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +0 -18
  835. data/lib/stripe/services/quote_line_item_service.rb +0 -18
  836. data/lib/stripe/services/quote_service.rb +1 -2344
  837. data/lib/stripe/services/radar/early_fraud_warning_service.rb +0 -61
  838. data/lib/stripe/services/radar/value_list_item_service.rb +0 -78
  839. data/lib/stripe/services/radar/value_list_service.rb +0 -102
  840. data/lib/stripe/services/refund_service.rb +0 -137
  841. data/lib/stripe/services/reporting/report_run_service.rb +0 -106
  842. data/lib/stripe/services/reporting/report_type_service.rb +0 -18
  843. data/lib/stripe/services/review_service.rb +0 -56
  844. data/lib/stripe/services/setup_attempt_service.rb +0 -51
  845. data/lib/stripe/services/setup_intent_service.rb +0 -3957
  846. data/lib/stripe/services/shipping_rate_service.rb +0 -200
  847. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +0 -27
  848. data/lib/stripe/services/source_service.rb +0 -601
  849. data/lib/stripe/services/source_transaction_service.rb +0 -18
  850. data/lib/stripe/services/subscription_item_service.rb +0 -383
  851. data/lib/stripe/services/subscription_schedule_service.rb +0 -2196
  852. data/lib/stripe/services/subscription_service.rb +0 -1894
  853. data/lib/stripe/services/tax/calculation_line_item_service.rb +0 -18
  854. data/lib/stripe/services/tax/calculation_service.rb +0 -209
  855. data/lib/stripe/services/tax/registration_service.rb +0 -2063
  856. data/lib/stripe/services/tax/settings_service.rb +0 -74
  857. data/lib/stripe/services/tax/transaction_line_item_service.rb +0 -18
  858. data/lib/stripe/services/tax/transaction_service.rb +0 -111
  859. data/lib/stripe/services/tax_code_service.rb +0 -27
  860. data/lib/stripe/services/tax_id_service.rb +0 -84
  861. data/lib/stripe/services/tax_rate_service.rb +0 -155
  862. data/lib/stripe/services/tax_service.rb +1 -3
  863. data/lib/stripe/services/terminal/configuration_service.rb +0 -1212
  864. data/lib/stripe/services/terminal/connection_token_service.rb +0 -12
  865. data/lib/stripe/services/terminal/location_service.rb +0 -143
  866. data/lib/stripe/services/terminal/reader_service.rb +0 -427
  867. data/lib/stripe/services/terminal_service.rb +1 -3
  868. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -738
  869. data/lib/stripe/services/test_helpers/customer_service.rb +0 -18
  870. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +0 -745
  871. data/lib/stripe/services/test_helpers/issuing/card_service.rb +0 -45
  872. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +0 -41
  873. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +0 -632
  874. data/lib/stripe/services/test_helpers/refund_service.rb +0 -9
  875. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -87
  876. data/lib/stripe/services/test_helpers/test_clock_service.rb +0 -56
  877. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +0 -38
  878. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +0 -87
  879. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +0 -87
  880. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +0 -84
  881. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -84
  882. data/lib/stripe/services/token_service.rb +0 -1201
  883. data/lib/stripe/services/topup_service.rb +0 -142
  884. data/lib/stripe/services/transfer_reversal_service.rb +0 -66
  885. data/lib/stripe/services/transfer_service.rb +0 -123
  886. data/lib/stripe/services/treasury/credit_reversal_service.rb +0 -59
  887. data/lib/stripe/services/treasury/debit_reversal_service.rb +0 -63
  888. data/lib/stripe/services/treasury/financial_account_features_service.rb +0 -169
  889. data/lib/stripe/services/treasury/financial_account_service.rb +0 -502
  890. data/lib/stripe/services/treasury/inbound_transfer_service.rb +0 -88
  891. data/lib/stripe/services/treasury/outbound_payment_service.rb +0 -258
  892. data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -148
  893. data/lib/stripe/services/treasury/received_credit_service.rb +0 -52
  894. data/lib/stripe/services/treasury/received_debit_service.rb +0 -40
  895. data/lib/stripe/services/treasury/transaction_entry_service.rb +0 -87
  896. data/lib/stripe/services/treasury/transaction_service.rb +0 -95
  897. data/lib/stripe/services/v1_services.rb +1 -10
  898. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +0 -23
  899. data/lib/stripe/services/v2/billing/meter_event_service.rb +0 -25
  900. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +0 -2
  901. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +0 -33
  902. data/lib/stripe/services/v2/core/event_destination_service.rb +0 -137
  903. data/lib/stripe/services/v2/core/event_service.rb +0 -16
  904. data/lib/stripe/services/v2/core_service.rb +1 -4
  905. data/lib/stripe/services/v2_services.rb +1 -4
  906. data/lib/stripe/services/webhook_endpoint_service.rb +0 -95
  907. data/lib/stripe/services.rb +0 -54
  908. data/lib/stripe/stripe_client.rb +8 -5
  909. data/lib/stripe/stripe_configuration.rb +2 -9
  910. data/lib/stripe/stripe_context.rb +68 -0
  911. data/lib/stripe/stripe_object.rb +34 -10
  912. data/lib/stripe/util.rb +25 -20
  913. data/lib/stripe/version.rb +1 -1
  914. data/lib/stripe.rb +3 -54
  915. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  916. data/rbi/stripe/stripe_client.rbi +17 -0
  917. data/rbi/stripe.rbi +121931 -190301
  918. metadata +599 -189
  919. data/API_VERSION +0 -1
  920. data/CHANGELOG.md +0 -2780
  921. data/CODE_OF_CONDUCT.md +0 -77
  922. data/CONTRIBUTING.md +0 -25
  923. data/CONTRIBUTORS +0 -3
  924. data/Gemfile +0 -41
  925. data/History.txt +0 -1
  926. data/LICENSE +0 -21
  927. data/Makefile +0 -22
  928. data/OPENAPI_VERSION +0 -1
  929. data/README.md +0 -424
  930. data/Rakefile +0 -34
  931. data/VERSION +0 -1
  932. data/examples/README.md +0 -16
  933. data/examples/example_template.rb +0 -36
  934. data/examples/meter_event_stream.rb +0 -57
  935. data/examples/thinevent_webhook_handler.rb +0 -39
  936. data/justfile +0 -43
  937. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
  938. data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
  939. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
  940. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
  941. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
  942. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
  943. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
  944. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
  945. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -23
  946. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -21
  947. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
  948. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
  949. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
  950. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -13
  951. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
  952. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
  953. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
  954. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
  955. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
  956. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
  957. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
  958. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
  959. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
  960. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
  961. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
  962. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
  963. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
  964. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
  965. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
  966. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
  967. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
  968. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
  969. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
  970. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
  971. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
  972. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
  973. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
  974. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
  975. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
  976. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
  977. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
  978. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -21
  979. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
  980. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
  981. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
  982. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
  983. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
  984. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
  985. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
  986. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
  987. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
  988. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
  989. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
  990. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
  991. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -22
  992. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
  993. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
  994. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
  995. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
  996. data/lib/stripe/resources/account_notice.rb +0 -123
  997. data/lib/stripe/resources/billing/meter_usage.rb +0 -23
  998. data/lib/stripe/resources/billing/meter_usage_row.rb +0 -28
  999. data/lib/stripe/resources/capital/financing_offer.rb +0 -179
  1000. data/lib/stripe/resources/capital/financing_summary.rb +0 -55
  1001. data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
  1002. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  1003. data/lib/stripe/resources/financial_connections/institution.rb +0 -92
  1004. data/lib/stripe/resources/fx_quote.rb +0 -186
  1005. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
  1006. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
  1007. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
  1008. data/lib/stripe/resources/issuing/settlement.rb +0 -53
  1009. data/lib/stripe/resources/margin.rb +0 -115
  1010. data/lib/stripe/resources/order.rb +0 -2958
  1011. data/lib/stripe/resources/payment_attempt_record.rb +0 -1181
  1012. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
  1013. data/lib/stripe/resources/payment_record.rb +0 -1727
  1014. data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
  1015. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
  1016. data/lib/stripe/resources/quote_line.rb +0 -274
  1017. data/lib/stripe/resources/quote_preview_invoice.rb +0 -680
  1018. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -395
  1019. data/lib/stripe/resources/tax/association.rb +0 -66
  1020. data/lib/stripe/resources/tax/form.rb +0 -211
  1021. data/lib/stripe/resources/terminal/onboarding_link.rb +0 -84
  1022. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
  1023. data/lib/stripe/resources/v2/core/account.rb +0 -1938
  1024. data/lib/stripe/resources/v2/core/account_link.rb +0 -72
  1025. data/lib/stripe/resources/v2/core/person.rb +0 -276
  1026. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
  1027. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
  1028. data/lib/stripe/resources/v2/event.rb +0 -41
  1029. data/lib/stripe/resources/v2/event_destination.rb +0 -73
  1030. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
  1031. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
  1032. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
  1033. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -79
  1034. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
  1035. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
  1036. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
  1037. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
  1038. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
  1039. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
  1040. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -77
  1041. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
  1042. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -122
  1043. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
  1044. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -80
  1045. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -70
  1046. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -89
  1047. data/lib/stripe/services/account_notice_service.rb +0 -101
  1048. data/lib/stripe/services/billing/meter_usage_service.rb +0 -76
  1049. data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
  1050. data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
  1051. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
  1052. data/lib/stripe/services/capital_service.rb +0 -15
  1053. data/lib/stripe/services/external_account_service.rb +0 -317
  1054. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
  1055. data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
  1056. data/lib/stripe/services/fx_quote_service.rb +0 -123
  1057. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
  1058. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
  1059. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
  1060. data/lib/stripe/services/margin_service.rb +0 -119
  1061. data/lib/stripe/services/order_service.rb +0 -2388
  1062. data/lib/stripe/services/payment_attempt_record_service.rb +0 -52
  1063. data/lib/stripe/services/payment_record_service.rb +0 -562
  1064. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
  1065. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -37
  1066. data/lib/stripe/services/privacy_service.rb +0 -13
  1067. data/lib/stripe/services/tax/association_service.rb +0 -31
  1068. data/lib/stripe/services/tax/form_service.rb +0 -100
  1069. data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -56
  1070. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
  1071. data/lib/stripe/services/v2/core/account_link_service.rb +0 -114
  1072. data/lib/stripe/services/v2/core/account_service.rb +0 -4536
  1073. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1045
  1074. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -130
  1075. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
  1076. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  1077. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
  1078. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -119
  1079. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -82
  1080. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
  1081. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
  1082. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -199
  1083. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
  1084. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
  1085. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -90
  1086. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
  1087. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
  1088. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
  1089. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
  1090. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
  1091. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  1092. data/lib/stripe/services/v2/payment_service.rb +0 -15
  1093. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -152
  1094. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  1095. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -53
  1096. data/lib/stripe/thin_event.rb +0 -37
  1097. data/stripe.gemspec +0 -47
@@ -0,0 +1,2379 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class PaymentIntentConfirmParams < Stripe::RequestParams
6
+ class MandateData < Stripe::RequestParams
7
+ class CustomerAcceptance < Stripe::RequestParams
8
+ class Offline < Stripe::RequestParams; end
9
+
10
+ class Online < Stripe::RequestParams
11
+ # The IP address from which the Mandate was accepted by the customer.
12
+ attr_accessor :ip_address
13
+ # The user agent of the browser from which the Mandate was accepted by the customer.
14
+ attr_accessor :user_agent
15
+
16
+ def initialize(ip_address: nil, user_agent: nil)
17
+ @ip_address = ip_address
18
+ @user_agent = user_agent
19
+ end
20
+ end
21
+ # The time at which the customer accepted the Mandate.
22
+ attr_accessor :accepted_at
23
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
24
+ attr_accessor :offline
25
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
26
+ attr_accessor :online
27
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
28
+ attr_accessor :type
29
+
30
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
31
+ @accepted_at = accepted_at
32
+ @offline = offline
33
+ @online = online
34
+ @type = type
35
+ end
36
+ end
37
+ # This hash contains details about the customer acceptance of the Mandate.
38
+ attr_accessor :customer_acceptance
39
+
40
+ def initialize(customer_acceptance: nil)
41
+ @customer_acceptance = customer_acceptance
42
+ end
43
+ end
44
+
45
+ class PaymentMethodData < Stripe::RequestParams
46
+ class AcssDebit < Stripe::RequestParams
47
+ # Customer's bank account number.
48
+ attr_accessor :account_number
49
+ # Institution number of the customer's bank.
50
+ attr_accessor :institution_number
51
+ # Transit number of the customer's bank.
52
+ attr_accessor :transit_number
53
+
54
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil)
55
+ @account_number = account_number
56
+ @institution_number = institution_number
57
+ @transit_number = transit_number
58
+ end
59
+ end
60
+
61
+ class Affirm < Stripe::RequestParams; end
62
+ class AfterpayClearpay < Stripe::RequestParams; end
63
+ class Alipay < Stripe::RequestParams; end
64
+ class Alma < Stripe::RequestParams; end
65
+ class AmazonPay < Stripe::RequestParams; end
66
+
67
+ class AuBecsDebit < Stripe::RequestParams
68
+ # The account number for the bank account.
69
+ attr_accessor :account_number
70
+ # Bank-State-Branch number of the bank account.
71
+ attr_accessor :bsb_number
72
+
73
+ def initialize(account_number: nil, bsb_number: nil)
74
+ @account_number = account_number
75
+ @bsb_number = bsb_number
76
+ end
77
+ end
78
+
79
+ class BacsDebit < Stripe::RequestParams
80
+ # Account number of the bank account that the funds will be debited from.
81
+ attr_accessor :account_number
82
+ # Sort code of the bank account. (e.g., `10-20-30`)
83
+ attr_accessor :sort_code
84
+
85
+ def initialize(account_number: nil, sort_code: nil)
86
+ @account_number = account_number
87
+ @sort_code = sort_code
88
+ end
89
+ end
90
+
91
+ class Bancontact < Stripe::RequestParams; end
92
+ class Billie < Stripe::RequestParams; end
93
+
94
+ class BillingDetails < Stripe::RequestParams
95
+ class Address < Stripe::RequestParams
96
+ # City, district, suburb, town, or village.
97
+ attr_accessor :city
98
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
99
+ attr_accessor :country
100
+ # Address line 1, such as the street, PO Box, or company name.
101
+ attr_accessor :line1
102
+ # Address line 2, such as the apartment, suite, unit, or building.
103
+ attr_accessor :line2
104
+ # ZIP or postal code.
105
+ attr_accessor :postal_code
106
+ # State, county, province, or region.
107
+ attr_accessor :state
108
+
109
+ def initialize(
110
+ city: nil,
111
+ country: nil,
112
+ line1: nil,
113
+ line2: nil,
114
+ postal_code: nil,
115
+ state: nil
116
+ )
117
+ @city = city
118
+ @country = country
119
+ @line1 = line1
120
+ @line2 = line2
121
+ @postal_code = postal_code
122
+ @state = state
123
+ end
124
+ end
125
+ # Billing address.
126
+ attr_accessor :address
127
+ # Email address.
128
+ attr_accessor :email
129
+ # Full name.
130
+ attr_accessor :name
131
+ # Billing phone number (including extension).
132
+ attr_accessor :phone
133
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
134
+ attr_accessor :tax_id
135
+
136
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
137
+ @address = address
138
+ @email = email
139
+ @name = name
140
+ @phone = phone
141
+ @tax_id = tax_id
142
+ end
143
+ end
144
+
145
+ class Blik < Stripe::RequestParams; end
146
+
147
+ class Boleto < Stripe::RequestParams
148
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
149
+ attr_accessor :tax_id
150
+
151
+ def initialize(tax_id: nil)
152
+ @tax_id = tax_id
153
+ end
154
+ end
155
+
156
+ class Cashapp < Stripe::RequestParams; end
157
+ class Crypto < Stripe::RequestParams; end
158
+ class CustomerBalance < Stripe::RequestParams; end
159
+
160
+ class Eps < Stripe::RequestParams
161
+ # The customer's bank.
162
+ attr_accessor :bank
163
+
164
+ def initialize(bank: nil)
165
+ @bank = bank
166
+ end
167
+ end
168
+
169
+ class Fpx < Stripe::RequestParams
170
+ # Account holder type for FPX transaction
171
+ attr_accessor :account_holder_type
172
+ # The customer's bank.
173
+ attr_accessor :bank
174
+
175
+ def initialize(account_holder_type: nil, bank: nil)
176
+ @account_holder_type = account_holder_type
177
+ @bank = bank
178
+ end
179
+ end
180
+
181
+ class Giropay < Stripe::RequestParams; end
182
+ class Grabpay < Stripe::RequestParams; end
183
+
184
+ class Ideal < Stripe::RequestParams
185
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
186
+ attr_accessor :bank
187
+
188
+ def initialize(bank: nil)
189
+ @bank = bank
190
+ end
191
+ end
192
+
193
+ class InteracPresent < Stripe::RequestParams; end
194
+ class KakaoPay < Stripe::RequestParams; end
195
+
196
+ class Klarna < Stripe::RequestParams
197
+ class Dob < Stripe::RequestParams
198
+ # The day of birth, between 1 and 31.
199
+ attr_accessor :day
200
+ # The month of birth, between 1 and 12.
201
+ attr_accessor :month
202
+ # The four-digit year of birth.
203
+ attr_accessor :year
204
+
205
+ def initialize(day: nil, month: nil, year: nil)
206
+ @day = day
207
+ @month = month
208
+ @year = year
209
+ end
210
+ end
211
+ # Customer's date of birth
212
+ attr_accessor :dob
213
+
214
+ def initialize(dob: nil)
215
+ @dob = dob
216
+ end
217
+ end
218
+
219
+ class Konbini < Stripe::RequestParams; end
220
+ class KrCard < Stripe::RequestParams; end
221
+ class Link < Stripe::RequestParams; end
222
+ class MbWay < Stripe::RequestParams; end
223
+ class Mobilepay < Stripe::RequestParams; end
224
+ class Multibanco < Stripe::RequestParams; end
225
+
226
+ class NaverPay < Stripe::RequestParams
227
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
228
+ attr_accessor :funding
229
+
230
+ def initialize(funding: nil)
231
+ @funding = funding
232
+ end
233
+ end
234
+
235
+ class NzBankAccount < Stripe::RequestParams
236
+ # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
237
+ attr_accessor :account_holder_name
238
+ # The account number for the bank account.
239
+ attr_accessor :account_number
240
+ # The numeric code for the bank account's bank.
241
+ attr_accessor :bank_code
242
+ # The numeric code for the bank account's bank branch.
243
+ attr_accessor :branch_code
244
+ # Attribute for param field reference
245
+ attr_accessor :reference
246
+ # The suffix of the bank account number.
247
+ attr_accessor :suffix
248
+
249
+ def initialize(
250
+ account_holder_name: nil,
251
+ account_number: nil,
252
+ bank_code: nil,
253
+ branch_code: nil,
254
+ reference: nil,
255
+ suffix: nil
256
+ )
257
+ @account_holder_name = account_holder_name
258
+ @account_number = account_number
259
+ @bank_code = bank_code
260
+ @branch_code = branch_code
261
+ @reference = reference
262
+ @suffix = suffix
263
+ end
264
+ end
265
+
266
+ class Oxxo < Stripe::RequestParams; end
267
+
268
+ class P24 < Stripe::RequestParams
269
+ # The customer's bank.
270
+ attr_accessor :bank
271
+
272
+ def initialize(bank: nil)
273
+ @bank = bank
274
+ end
275
+ end
276
+
277
+ class PayByBank < Stripe::RequestParams; end
278
+ class Payco < Stripe::RequestParams; end
279
+ class Paynow < Stripe::RequestParams; end
280
+ class Paypal < Stripe::RequestParams; end
281
+ class Pix < Stripe::RequestParams; end
282
+ class Promptpay < Stripe::RequestParams; end
283
+
284
+ class RadarOptions < Stripe::RequestParams
285
+ # 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.
286
+ attr_accessor :session
287
+
288
+ def initialize(session: nil)
289
+ @session = session
290
+ end
291
+ end
292
+
293
+ class RevolutPay < Stripe::RequestParams; end
294
+ class SamsungPay < Stripe::RequestParams; end
295
+ class Satispay < Stripe::RequestParams; end
296
+
297
+ class SepaDebit < Stripe::RequestParams
298
+ # IBAN of the bank account.
299
+ attr_accessor :iban
300
+
301
+ def initialize(iban: nil)
302
+ @iban = iban
303
+ end
304
+ end
305
+
306
+ class Sofort < Stripe::RequestParams
307
+ # Two-letter ISO code representing the country the bank account is located in.
308
+ attr_accessor :country
309
+
310
+ def initialize(country: nil)
311
+ @country = country
312
+ end
313
+ end
314
+
315
+ class Swish < Stripe::RequestParams; end
316
+ class Twint < Stripe::RequestParams; end
317
+
318
+ class UsBankAccount < Stripe::RequestParams
319
+ # Account holder type: individual or company.
320
+ attr_accessor :account_holder_type
321
+ # Account number of the bank account.
322
+ attr_accessor :account_number
323
+ # Account type: checkings or savings. Defaults to checking if omitted.
324
+ attr_accessor :account_type
325
+ # The ID of a Financial Connections Account to use as a payment method.
326
+ attr_accessor :financial_connections_account
327
+ # Routing number of the bank account.
328
+ attr_accessor :routing_number
329
+
330
+ def initialize(
331
+ account_holder_type: nil,
332
+ account_number: nil,
333
+ account_type: nil,
334
+ financial_connections_account: nil,
335
+ routing_number: nil
336
+ )
337
+ @account_holder_type = account_holder_type
338
+ @account_number = account_number
339
+ @account_type = account_type
340
+ @financial_connections_account = financial_connections_account
341
+ @routing_number = routing_number
342
+ end
343
+ end
344
+
345
+ class WechatPay < Stripe::RequestParams; end
346
+ class Zip < Stripe::RequestParams; end
347
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
348
+ attr_accessor :acss_debit
349
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
350
+ attr_accessor :affirm
351
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
352
+ attr_accessor :afterpay_clearpay
353
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
354
+ attr_accessor :alipay
355
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
356
+ attr_accessor :allow_redisplay
357
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
358
+ attr_accessor :alma
359
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
360
+ attr_accessor :amazon_pay
361
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
362
+ attr_accessor :au_becs_debit
363
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
364
+ attr_accessor :bacs_debit
365
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
366
+ attr_accessor :bancontact
367
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
368
+ attr_accessor :billie
369
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
370
+ attr_accessor :billing_details
371
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
372
+ attr_accessor :blik
373
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
374
+ attr_accessor :boleto
375
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
376
+ attr_accessor :cashapp
377
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
378
+ attr_accessor :crypto
379
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
380
+ attr_accessor :customer_balance
381
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
382
+ attr_accessor :eps
383
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
384
+ attr_accessor :fpx
385
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
386
+ attr_accessor :giropay
387
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
388
+ attr_accessor :grabpay
389
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
390
+ attr_accessor :ideal
391
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
392
+ attr_accessor :interac_present
393
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
394
+ attr_accessor :kakao_pay
395
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
396
+ attr_accessor :klarna
397
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
398
+ attr_accessor :konbini
399
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
400
+ attr_accessor :kr_card
401
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
402
+ attr_accessor :link
403
+ # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
404
+ attr_accessor :mb_way
405
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
406
+ attr_accessor :metadata
407
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
408
+ attr_accessor :mobilepay
409
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
410
+ attr_accessor :multibanco
411
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
412
+ attr_accessor :naver_pay
413
+ # If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
414
+ attr_accessor :nz_bank_account
415
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
416
+ attr_accessor :oxxo
417
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
418
+ attr_accessor :p24
419
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
420
+ attr_accessor :pay_by_bank
421
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
422
+ attr_accessor :payco
423
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
424
+ attr_accessor :paynow
425
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
426
+ attr_accessor :paypal
427
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
428
+ attr_accessor :pix
429
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
430
+ attr_accessor :promptpay
431
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
432
+ attr_accessor :radar_options
433
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
434
+ attr_accessor :revolut_pay
435
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
436
+ attr_accessor :samsung_pay
437
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
438
+ attr_accessor :satispay
439
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
440
+ attr_accessor :sepa_debit
441
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
442
+ attr_accessor :sofort
443
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
444
+ attr_accessor :swish
445
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
446
+ attr_accessor :twint
447
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
448
+ attr_accessor :type
449
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
450
+ attr_accessor :us_bank_account
451
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
452
+ attr_accessor :wechat_pay
453
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
454
+ attr_accessor :zip
455
+
456
+ def initialize(
457
+ acss_debit: nil,
458
+ affirm: nil,
459
+ afterpay_clearpay: nil,
460
+ alipay: nil,
461
+ allow_redisplay: nil,
462
+ alma: nil,
463
+ amazon_pay: nil,
464
+ au_becs_debit: nil,
465
+ bacs_debit: nil,
466
+ bancontact: nil,
467
+ billie: nil,
468
+ billing_details: nil,
469
+ blik: nil,
470
+ boleto: nil,
471
+ cashapp: nil,
472
+ crypto: nil,
473
+ customer_balance: nil,
474
+ eps: nil,
475
+ fpx: nil,
476
+ giropay: nil,
477
+ grabpay: nil,
478
+ ideal: nil,
479
+ interac_present: nil,
480
+ kakao_pay: nil,
481
+ klarna: nil,
482
+ konbini: nil,
483
+ kr_card: nil,
484
+ link: nil,
485
+ mb_way: nil,
486
+ metadata: nil,
487
+ mobilepay: nil,
488
+ multibanco: nil,
489
+ naver_pay: nil,
490
+ nz_bank_account: nil,
491
+ oxxo: nil,
492
+ p24: nil,
493
+ pay_by_bank: nil,
494
+ payco: nil,
495
+ paynow: nil,
496
+ paypal: nil,
497
+ pix: nil,
498
+ promptpay: nil,
499
+ radar_options: nil,
500
+ revolut_pay: nil,
501
+ samsung_pay: nil,
502
+ satispay: nil,
503
+ sepa_debit: nil,
504
+ sofort: nil,
505
+ swish: nil,
506
+ twint: nil,
507
+ type: nil,
508
+ us_bank_account: nil,
509
+ wechat_pay: nil,
510
+ zip: nil
511
+ )
512
+ @acss_debit = acss_debit
513
+ @affirm = affirm
514
+ @afterpay_clearpay = afterpay_clearpay
515
+ @alipay = alipay
516
+ @allow_redisplay = allow_redisplay
517
+ @alma = alma
518
+ @amazon_pay = amazon_pay
519
+ @au_becs_debit = au_becs_debit
520
+ @bacs_debit = bacs_debit
521
+ @bancontact = bancontact
522
+ @billie = billie
523
+ @billing_details = billing_details
524
+ @blik = blik
525
+ @boleto = boleto
526
+ @cashapp = cashapp
527
+ @crypto = crypto
528
+ @customer_balance = customer_balance
529
+ @eps = eps
530
+ @fpx = fpx
531
+ @giropay = giropay
532
+ @grabpay = grabpay
533
+ @ideal = ideal
534
+ @interac_present = interac_present
535
+ @kakao_pay = kakao_pay
536
+ @klarna = klarna
537
+ @konbini = konbini
538
+ @kr_card = kr_card
539
+ @link = link
540
+ @mb_way = mb_way
541
+ @metadata = metadata
542
+ @mobilepay = mobilepay
543
+ @multibanco = multibanco
544
+ @naver_pay = naver_pay
545
+ @nz_bank_account = nz_bank_account
546
+ @oxxo = oxxo
547
+ @p24 = p24
548
+ @pay_by_bank = pay_by_bank
549
+ @payco = payco
550
+ @paynow = paynow
551
+ @paypal = paypal
552
+ @pix = pix
553
+ @promptpay = promptpay
554
+ @radar_options = radar_options
555
+ @revolut_pay = revolut_pay
556
+ @samsung_pay = samsung_pay
557
+ @satispay = satispay
558
+ @sepa_debit = sepa_debit
559
+ @sofort = sofort
560
+ @swish = swish
561
+ @twint = twint
562
+ @type = type
563
+ @us_bank_account = us_bank_account
564
+ @wechat_pay = wechat_pay
565
+ @zip = zip
566
+ end
567
+ end
568
+
569
+ class PaymentMethodOptions < Stripe::RequestParams
570
+ class AcssDebit < Stripe::RequestParams
571
+ class MandateOptions < Stripe::RequestParams
572
+ # A URL for custom mandate text to render during confirmation step.
573
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
574
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
575
+ attr_accessor :custom_mandate_url
576
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
577
+ attr_accessor :interval_description
578
+ # Payment schedule for the mandate.
579
+ attr_accessor :payment_schedule
580
+ # Transaction type of the mandate.
581
+ attr_accessor :transaction_type
582
+
583
+ def initialize(
584
+ custom_mandate_url: nil,
585
+ interval_description: nil,
586
+ payment_schedule: nil,
587
+ transaction_type: nil
588
+ )
589
+ @custom_mandate_url = custom_mandate_url
590
+ @interval_description = interval_description
591
+ @payment_schedule = payment_schedule
592
+ @transaction_type = transaction_type
593
+ end
594
+ end
595
+ # Additional fields for Mandate creation
596
+ attr_accessor :mandate_options
597
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
598
+ #
599
+ # 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.
600
+ #
601
+ # 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.
602
+ #
603
+ # 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).
604
+ #
605
+ # 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`.
606
+ attr_accessor :setup_future_usage
607
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
608
+ attr_accessor :target_date
609
+ # Bank account verification method.
610
+ attr_accessor :verification_method
611
+
612
+ def initialize(
613
+ mandate_options: nil,
614
+ setup_future_usage: nil,
615
+ target_date: nil,
616
+ verification_method: nil
617
+ )
618
+ @mandate_options = mandate_options
619
+ @setup_future_usage = setup_future_usage
620
+ @target_date = target_date
621
+ @verification_method = verification_method
622
+ end
623
+ end
624
+
625
+ class Affirm < Stripe::RequestParams
626
+ # Controls when the funds are captured from the customer's account.
627
+ #
628
+ # 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.
629
+ #
630
+ # 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.
631
+ attr_accessor :capture_method
632
+ # Preferred language of the Affirm authorization page that the customer is redirected to.
633
+ attr_accessor :preferred_locale
634
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
635
+ #
636
+ # 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.
637
+ #
638
+ # 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.
639
+ #
640
+ # 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).
641
+ #
642
+ # 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`.
643
+ attr_accessor :setup_future_usage
644
+
645
+ def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil)
646
+ @capture_method = capture_method
647
+ @preferred_locale = preferred_locale
648
+ @setup_future_usage = setup_future_usage
649
+ end
650
+ end
651
+
652
+ class AfterpayClearpay < Stripe::RequestParams
653
+ # Controls when the funds are captured from the customer's account.
654
+ #
655
+ # 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.
656
+ #
657
+ # 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.
658
+ attr_accessor :capture_method
659
+ # An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
660
+ # This field differs from the statement descriptor and item name.
661
+ attr_accessor :reference
662
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
663
+ #
664
+ # 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.
665
+ #
666
+ # 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.
667
+ #
668
+ # 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).
669
+ #
670
+ # 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`.
671
+ attr_accessor :setup_future_usage
672
+
673
+ def initialize(capture_method: nil, reference: nil, setup_future_usage: nil)
674
+ @capture_method = capture_method
675
+ @reference = reference
676
+ @setup_future_usage = setup_future_usage
677
+ end
678
+ end
679
+
680
+ class Alipay < Stripe::RequestParams
681
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
682
+ #
683
+ # 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.
684
+ #
685
+ # 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.
686
+ #
687
+ # 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).
688
+ #
689
+ # 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`.
690
+ attr_accessor :setup_future_usage
691
+
692
+ def initialize(setup_future_usage: nil)
693
+ @setup_future_usage = setup_future_usage
694
+ end
695
+ end
696
+
697
+ class Alma < Stripe::RequestParams
698
+ # Controls when the funds are captured from the customer's account.
699
+ #
700
+ # 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.
701
+ #
702
+ # 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.
703
+ attr_accessor :capture_method
704
+
705
+ def initialize(capture_method: nil)
706
+ @capture_method = capture_method
707
+ end
708
+ end
709
+
710
+ class AmazonPay < Stripe::RequestParams
711
+ # Controls when the funds are captured from the customer's account.
712
+ #
713
+ # 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.
714
+ #
715
+ # 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.
716
+ attr_accessor :capture_method
717
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
718
+ #
719
+ # 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.
720
+ #
721
+ # 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.
722
+ #
723
+ # 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).
724
+ attr_accessor :setup_future_usage
725
+
726
+ def initialize(capture_method: nil, setup_future_usage: nil)
727
+ @capture_method = capture_method
728
+ @setup_future_usage = setup_future_usage
729
+ end
730
+ end
731
+
732
+ class AuBecsDebit < Stripe::RequestParams
733
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
734
+ #
735
+ # 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.
736
+ #
737
+ # 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.
738
+ #
739
+ # 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).
740
+ #
741
+ # 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`.
742
+ attr_accessor :setup_future_usage
743
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
744
+ attr_accessor :target_date
745
+
746
+ def initialize(setup_future_usage: nil, target_date: nil)
747
+ @setup_future_usage = setup_future_usage
748
+ @target_date = target_date
749
+ end
750
+ end
751
+
752
+ class BacsDebit < Stripe::RequestParams
753
+ class MandateOptions < Stripe::RequestParams
754
+ # 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 'DDIC' or 'STRIPE'.
755
+ attr_accessor :reference_prefix
756
+
757
+ def initialize(reference_prefix: nil)
758
+ @reference_prefix = reference_prefix
759
+ end
760
+ end
761
+ # Additional fields for Mandate creation
762
+ attr_accessor :mandate_options
763
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
764
+ #
765
+ # 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.
766
+ #
767
+ # 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.
768
+ #
769
+ # 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).
770
+ #
771
+ # 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`.
772
+ attr_accessor :setup_future_usage
773
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
774
+ attr_accessor :target_date
775
+
776
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
777
+ @mandate_options = mandate_options
778
+ @setup_future_usage = setup_future_usage
779
+ @target_date = target_date
780
+ end
781
+ end
782
+
783
+ class Bancontact < Stripe::RequestParams
784
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
785
+ attr_accessor :preferred_language
786
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
787
+ #
788
+ # 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.
789
+ #
790
+ # 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.
791
+ #
792
+ # 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).
793
+ #
794
+ # 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`.
795
+ attr_accessor :setup_future_usage
796
+
797
+ def initialize(preferred_language: nil, setup_future_usage: nil)
798
+ @preferred_language = preferred_language
799
+ @setup_future_usage = setup_future_usage
800
+ end
801
+ end
802
+
803
+ class Billie < Stripe::RequestParams
804
+ # Controls when the funds are captured from the customer's account.
805
+ #
806
+ # 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.
807
+ #
808
+ # 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.
809
+ attr_accessor :capture_method
810
+
811
+ def initialize(capture_method: nil)
812
+ @capture_method = capture_method
813
+ end
814
+ end
815
+
816
+ class Blik < Stripe::RequestParams
817
+ # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
818
+ attr_accessor :code
819
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
820
+ #
821
+ # 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.
822
+ #
823
+ # 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.
824
+ #
825
+ # 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).
826
+ #
827
+ # 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`.
828
+ attr_accessor :setup_future_usage
829
+
830
+ def initialize(code: nil, setup_future_usage: nil)
831
+ @code = code
832
+ @setup_future_usage = setup_future_usage
833
+ end
834
+ end
835
+
836
+ class Boleto < Stripe::RequestParams
837
+ # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
838
+ attr_accessor :expires_after_days
839
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
840
+ #
841
+ # 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.
842
+ #
843
+ # 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.
844
+ #
845
+ # 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).
846
+ #
847
+ # 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`.
848
+ attr_accessor :setup_future_usage
849
+
850
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
851
+ @expires_after_days = expires_after_days
852
+ @setup_future_usage = setup_future_usage
853
+ end
854
+ end
855
+
856
+ class Card < Stripe::RequestParams
857
+ class Installments < Stripe::RequestParams
858
+ class Plan < Stripe::RequestParams
859
+ # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
860
+ attr_accessor :count
861
+ # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
862
+ # One of `month`.
863
+ attr_accessor :interval
864
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
865
+ attr_accessor :type
866
+
867
+ def initialize(count: nil, interval: nil, type: nil)
868
+ @count = count
869
+ @interval = interval
870
+ @type = type
871
+ end
872
+ end
873
+ # Setting to true enables installments for this PaymentIntent.
874
+ # This will cause the response to contain a list of available installment plans.
875
+ # Setting to false will prevent any selected plan from applying to a charge.
876
+ attr_accessor :enabled
877
+ # The selected installment plan to use for this payment attempt.
878
+ # This parameter can only be provided during confirmation.
879
+ attr_accessor :plan
880
+
881
+ def initialize(enabled: nil, plan: nil)
882
+ @enabled = enabled
883
+ @plan = plan
884
+ end
885
+ end
886
+
887
+ class MandateOptions < Stripe::RequestParams
888
+ # Amount to be charged for future payments.
889
+ attr_accessor :amount
890
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
891
+ attr_accessor :amount_type
892
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
893
+ attr_accessor :description
894
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
895
+ attr_accessor :end_date
896
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
897
+ attr_accessor :interval
898
+ # The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
899
+ attr_accessor :interval_count
900
+ # Unique identifier for the mandate or subscription.
901
+ attr_accessor :reference
902
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
903
+ attr_accessor :start_date
904
+ # Specifies the type of mandates supported. Possible values are `india`.
905
+ attr_accessor :supported_types
906
+
907
+ def initialize(
908
+ amount: nil,
909
+ amount_type: nil,
910
+ description: nil,
911
+ end_date: nil,
912
+ interval: nil,
913
+ interval_count: nil,
914
+ reference: nil,
915
+ start_date: nil,
916
+ supported_types: nil
917
+ )
918
+ @amount = amount
919
+ @amount_type = amount_type
920
+ @description = description
921
+ @end_date = end_date
922
+ @interval = interval
923
+ @interval_count = interval_count
924
+ @reference = reference
925
+ @start_date = start_date
926
+ @supported_types = supported_types
927
+ end
928
+ end
929
+
930
+ class ThreeDSecure < Stripe::RequestParams
931
+ class NetworkOptions < Stripe::RequestParams
932
+ class CartesBancaires < Stripe::RequestParams
933
+ # The cryptogram calculation algorithm used by the card Issuer's ACS
934
+ # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
935
+ # messageExtension: CB-AVALGO
936
+ attr_accessor :cb_avalgo
937
+ # The exemption indicator returned from Cartes Bancaires in the ARes.
938
+ # message extension: CB-EXEMPTION; string (4 characters)
939
+ # This is a 3 byte bitmap (low significant byte first and most significant
940
+ # bit first) that has been Base64 encoded
941
+ attr_accessor :cb_exemption
942
+ # The risk score returned from Cartes Bancaires in the ARes.
943
+ # message extension: CB-SCORE; numeric value 0-99
944
+ attr_accessor :cb_score
945
+
946
+ def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil)
947
+ @cb_avalgo = cb_avalgo
948
+ @cb_exemption = cb_exemption
949
+ @cb_score = cb_score
950
+ end
951
+ end
952
+ # Cartes Bancaires-specific 3DS fields.
953
+ attr_accessor :cartes_bancaires
954
+
955
+ def initialize(cartes_bancaires: nil)
956
+ @cartes_bancaires = cartes_bancaires
957
+ end
958
+ end
959
+ # The `transStatus` returned from the card Issuer’s ACS in the ARes.
960
+ attr_accessor :ares_trans_status
961
+ # The cryptogram, also known as the "authentication value" (AAV, CAVV or
962
+ # AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
963
+ # (Most 3D Secure providers will return the base64-encoded version, which
964
+ # is what you should specify here.)
965
+ attr_accessor :cryptogram
966
+ # The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
967
+ # provider and indicates what degree of authentication was performed.
968
+ attr_accessor :electronic_commerce_indicator
969
+ # The exemption requested via 3DS and accepted by the issuer at authentication time.
970
+ attr_accessor :exemption_indicator
971
+ # Network specific 3DS fields. Network specific arguments require an
972
+ # explicit card brand choice. The parameter `payment_method_options.card.network``
973
+ # must be populated accordingly
974
+ attr_accessor :network_options
975
+ # The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
976
+ # AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
977
+ attr_accessor :requestor_challenge_indicator
978
+ # For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
979
+ # Transaction ID (dsTransID).
980
+ attr_accessor :transaction_id
981
+ # The version of 3D Secure that was performed.
982
+ attr_accessor :version
983
+
984
+ def initialize(
985
+ ares_trans_status: nil,
986
+ cryptogram: nil,
987
+ electronic_commerce_indicator: nil,
988
+ exemption_indicator: nil,
989
+ network_options: nil,
990
+ requestor_challenge_indicator: nil,
991
+ transaction_id: nil,
992
+ version: nil
993
+ )
994
+ @ares_trans_status = ares_trans_status
995
+ @cryptogram = cryptogram
996
+ @electronic_commerce_indicator = electronic_commerce_indicator
997
+ @exemption_indicator = exemption_indicator
998
+ @network_options = network_options
999
+ @requestor_challenge_indicator = requestor_challenge_indicator
1000
+ @transaction_id = transaction_id
1001
+ @version = version
1002
+ end
1003
+ end
1004
+ # Controls when the funds are captured from the customer's account.
1005
+ #
1006
+ # 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.
1007
+ #
1008
+ # 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.
1009
+ attr_accessor :capture_method
1010
+ # A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
1011
+ attr_accessor :cvc_token
1012
+ # Installment configuration for payments attempted on this PaymentIntent.
1013
+ #
1014
+ # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1015
+ attr_accessor :installments
1016
+ # Configuration options for setting up an eMandate for cards issued in India.
1017
+ attr_accessor :mandate_options
1018
+ # When specified, this parameter indicates that a transaction will be marked
1019
+ # as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
1020
+ # parameter can only be provided during confirmation.
1021
+ attr_accessor :moto
1022
+ # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
1023
+ attr_accessor :network
1024
+ # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1025
+ attr_accessor :request_extended_authorization
1026
+ # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
1027
+ attr_accessor :request_incremental_authorization
1028
+ # Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent.
1029
+ attr_accessor :request_multicapture
1030
+ # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1031
+ attr_accessor :request_overcapture
1032
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1033
+ attr_accessor :request_three_d_secure
1034
+ # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
1035
+ attr_accessor :require_cvc_recollection
1036
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1037
+ #
1038
+ # 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.
1039
+ #
1040
+ # 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.
1041
+ #
1042
+ # 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).
1043
+ #
1044
+ # 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`.
1045
+ attr_accessor :setup_future_usage
1046
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
1047
+ attr_accessor :statement_descriptor_suffix_kana
1048
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1049
+ attr_accessor :statement_descriptor_suffix_kanji
1050
+ # If 3D Secure authentication was performed with a third-party provider,
1051
+ # the authentication details to use for this payment.
1052
+ attr_accessor :three_d_secure
1053
+
1054
+ def initialize(
1055
+ capture_method: nil,
1056
+ cvc_token: nil,
1057
+ installments: nil,
1058
+ mandate_options: nil,
1059
+ moto: nil,
1060
+ network: nil,
1061
+ request_extended_authorization: nil,
1062
+ request_incremental_authorization: nil,
1063
+ request_multicapture: nil,
1064
+ request_overcapture: nil,
1065
+ request_three_d_secure: nil,
1066
+ require_cvc_recollection: nil,
1067
+ setup_future_usage: nil,
1068
+ statement_descriptor_suffix_kana: nil,
1069
+ statement_descriptor_suffix_kanji: nil,
1070
+ three_d_secure: nil
1071
+ )
1072
+ @capture_method = capture_method
1073
+ @cvc_token = cvc_token
1074
+ @installments = installments
1075
+ @mandate_options = mandate_options
1076
+ @moto = moto
1077
+ @network = network
1078
+ @request_extended_authorization = request_extended_authorization
1079
+ @request_incremental_authorization = request_incremental_authorization
1080
+ @request_multicapture = request_multicapture
1081
+ @request_overcapture = request_overcapture
1082
+ @request_three_d_secure = request_three_d_secure
1083
+ @require_cvc_recollection = require_cvc_recollection
1084
+ @setup_future_usage = setup_future_usage
1085
+ @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1086
+ @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
1087
+ @three_d_secure = three_d_secure
1088
+ end
1089
+ end
1090
+
1091
+ class CardPresent < Stripe::RequestParams
1092
+ class Routing < Stripe::RequestParams
1093
+ # Routing requested priority
1094
+ attr_accessor :requested_priority
1095
+
1096
+ def initialize(requested_priority: nil)
1097
+ @requested_priority = requested_priority
1098
+ end
1099
+ end
1100
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
1101
+ attr_accessor :request_extended_authorization
1102
+ # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
1103
+ attr_accessor :request_incremental_authorization_support
1104
+ # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1105
+ attr_accessor :routing
1106
+
1107
+ def initialize(
1108
+ request_extended_authorization: nil,
1109
+ request_incremental_authorization_support: nil,
1110
+ routing: nil
1111
+ )
1112
+ @request_extended_authorization = request_extended_authorization
1113
+ @request_incremental_authorization_support = request_incremental_authorization_support
1114
+ @routing = routing
1115
+ end
1116
+ end
1117
+
1118
+ class Cashapp < Stripe::RequestParams
1119
+ # Controls when the funds are captured from the customer's account.
1120
+ #
1121
+ # 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.
1122
+ #
1123
+ # 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.
1124
+ attr_accessor :capture_method
1125
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1126
+ #
1127
+ # 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.
1128
+ #
1129
+ # 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.
1130
+ #
1131
+ # 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).
1132
+ #
1133
+ # 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`.
1134
+ attr_accessor :setup_future_usage
1135
+
1136
+ def initialize(capture_method: nil, setup_future_usage: nil)
1137
+ @capture_method = capture_method
1138
+ @setup_future_usage = setup_future_usage
1139
+ end
1140
+ end
1141
+
1142
+ class Crypto < Stripe::RequestParams
1143
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1144
+ #
1145
+ # 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.
1146
+ #
1147
+ # 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.
1148
+ #
1149
+ # 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).
1150
+ #
1151
+ # 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`.
1152
+ attr_accessor :setup_future_usage
1153
+
1154
+ def initialize(setup_future_usage: nil)
1155
+ @setup_future_usage = setup_future_usage
1156
+ end
1157
+ end
1158
+
1159
+ class CustomerBalance < Stripe::RequestParams
1160
+ class BankTransfer < Stripe::RequestParams
1161
+ class EuBankTransfer < Stripe::RequestParams
1162
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1163
+ attr_accessor :country
1164
+
1165
+ def initialize(country: nil)
1166
+ @country = country
1167
+ end
1168
+ end
1169
+ # Configuration for the eu_bank_transfer funding type.
1170
+ attr_accessor :eu_bank_transfer
1171
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1172
+ #
1173
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1174
+ attr_accessor :requested_address_types
1175
+ # The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
1176
+ attr_accessor :type
1177
+
1178
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
1179
+ @eu_bank_transfer = eu_bank_transfer
1180
+ @requested_address_types = requested_address_types
1181
+ @type = type
1182
+ end
1183
+ end
1184
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
1185
+ attr_accessor :bank_transfer
1186
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1187
+ attr_accessor :funding_type
1188
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1189
+ #
1190
+ # 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.
1191
+ #
1192
+ # 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.
1193
+ #
1194
+ # 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).
1195
+ #
1196
+ # 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`.
1197
+ attr_accessor :setup_future_usage
1198
+
1199
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
1200
+ @bank_transfer = bank_transfer
1201
+ @funding_type = funding_type
1202
+ @setup_future_usage = setup_future_usage
1203
+ end
1204
+ end
1205
+
1206
+ class Eps < Stripe::RequestParams
1207
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1208
+ #
1209
+ # 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.
1210
+ #
1211
+ # 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.
1212
+ #
1213
+ # 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).
1214
+ #
1215
+ # 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`.
1216
+ attr_accessor :setup_future_usage
1217
+
1218
+ def initialize(setup_future_usage: nil)
1219
+ @setup_future_usage = setup_future_usage
1220
+ end
1221
+ end
1222
+
1223
+ class Fpx < Stripe::RequestParams
1224
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1225
+ #
1226
+ # 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.
1227
+ #
1228
+ # 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.
1229
+ #
1230
+ # 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).
1231
+ #
1232
+ # 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`.
1233
+ attr_accessor :setup_future_usage
1234
+
1235
+ def initialize(setup_future_usage: nil)
1236
+ @setup_future_usage = setup_future_usage
1237
+ end
1238
+ end
1239
+
1240
+ class Giropay < Stripe::RequestParams
1241
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1242
+ #
1243
+ # 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.
1244
+ #
1245
+ # 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.
1246
+ #
1247
+ # 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).
1248
+ #
1249
+ # 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`.
1250
+ attr_accessor :setup_future_usage
1251
+
1252
+ def initialize(setup_future_usage: nil)
1253
+ @setup_future_usage = setup_future_usage
1254
+ end
1255
+ end
1256
+
1257
+ class Grabpay < Stripe::RequestParams
1258
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1259
+ #
1260
+ # 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.
1261
+ #
1262
+ # 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.
1263
+ #
1264
+ # 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).
1265
+ #
1266
+ # 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`.
1267
+ attr_accessor :setup_future_usage
1268
+
1269
+ def initialize(setup_future_usage: nil)
1270
+ @setup_future_usage = setup_future_usage
1271
+ end
1272
+ end
1273
+
1274
+ class Ideal < Stripe::RequestParams
1275
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1276
+ #
1277
+ # 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.
1278
+ #
1279
+ # 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.
1280
+ #
1281
+ # 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).
1282
+ #
1283
+ # 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`.
1284
+ attr_accessor :setup_future_usage
1285
+
1286
+ def initialize(setup_future_usage: nil)
1287
+ @setup_future_usage = setup_future_usage
1288
+ end
1289
+ end
1290
+
1291
+ class InteracPresent < Stripe::RequestParams; end
1292
+
1293
+ class KakaoPay < Stripe::RequestParams
1294
+ # Controls when the funds are captured from the customer's account.
1295
+ #
1296
+ # 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.
1297
+ #
1298
+ # 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.
1299
+ attr_accessor :capture_method
1300
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1301
+ #
1302
+ # 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.
1303
+ #
1304
+ # 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.
1305
+ #
1306
+ # 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).
1307
+ attr_accessor :setup_future_usage
1308
+
1309
+ def initialize(capture_method: nil, setup_future_usage: nil)
1310
+ @capture_method = capture_method
1311
+ @setup_future_usage = setup_future_usage
1312
+ end
1313
+ end
1314
+
1315
+ class Klarna < Stripe::RequestParams
1316
+ class OnDemand < Stripe::RequestParams
1317
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1318
+ attr_accessor :average_amount
1319
+ # 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.
1320
+ attr_accessor :maximum_amount
1321
+ # 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.
1322
+ attr_accessor :minimum_amount
1323
+ # Interval at which the customer is making purchases
1324
+ attr_accessor :purchase_interval
1325
+ # The number of `purchase_interval` between charges
1326
+ attr_accessor :purchase_interval_count
1327
+
1328
+ def initialize(
1329
+ average_amount: nil,
1330
+ maximum_amount: nil,
1331
+ minimum_amount: nil,
1332
+ purchase_interval: nil,
1333
+ purchase_interval_count: nil
1334
+ )
1335
+ @average_amount = average_amount
1336
+ @maximum_amount = maximum_amount
1337
+ @minimum_amount = minimum_amount
1338
+ @purchase_interval = purchase_interval
1339
+ @purchase_interval_count = purchase_interval_count
1340
+ end
1341
+ end
1342
+
1343
+ class Subscription < Stripe::RequestParams
1344
+ class NextBilling < Stripe::RequestParams
1345
+ # The amount of the next charge for the subscription.
1346
+ attr_accessor :amount
1347
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
1348
+ attr_accessor :date
1349
+
1350
+ def initialize(amount: nil, date: nil)
1351
+ @amount = amount
1352
+ @date = date
1353
+ end
1354
+ end
1355
+ # Unit of time between subscription charges.
1356
+ attr_accessor :interval
1357
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1358
+ attr_accessor :interval_count
1359
+ # Name for subscription.
1360
+ attr_accessor :name
1361
+ # Describes the upcoming charge for this subscription.
1362
+ attr_accessor :next_billing
1363
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1364
+ attr_accessor :reference
1365
+
1366
+ def initialize(
1367
+ interval: nil,
1368
+ interval_count: nil,
1369
+ name: nil,
1370
+ next_billing: nil,
1371
+ reference: nil
1372
+ )
1373
+ @interval = interval
1374
+ @interval_count = interval_count
1375
+ @name = name
1376
+ @next_billing = next_billing
1377
+ @reference = reference
1378
+ end
1379
+ end
1380
+ # Controls when the funds are captured from the customer's account.
1381
+ #
1382
+ # 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.
1383
+ #
1384
+ # 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.
1385
+ attr_accessor :capture_method
1386
+ # On-demand details if setting up or charging an on-demand payment.
1387
+ attr_accessor :on_demand
1388
+ # Preferred language of the Klarna authorization page that the customer is redirected to
1389
+ attr_accessor :preferred_locale
1390
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1391
+ #
1392
+ # 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.
1393
+ #
1394
+ # 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.
1395
+ #
1396
+ # 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).
1397
+ #
1398
+ # 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`.
1399
+ attr_accessor :setup_future_usage
1400
+ # Subscription details if setting up or charging a subscription.
1401
+ attr_accessor :subscriptions
1402
+
1403
+ def initialize(
1404
+ capture_method: nil,
1405
+ on_demand: nil,
1406
+ preferred_locale: nil,
1407
+ setup_future_usage: nil,
1408
+ subscriptions: nil
1409
+ )
1410
+ @capture_method = capture_method
1411
+ @on_demand = on_demand
1412
+ @preferred_locale = preferred_locale
1413
+ @setup_future_usage = setup_future_usage
1414
+ @subscriptions = subscriptions
1415
+ end
1416
+ end
1417
+
1418
+ class Konbini < Stripe::RequestParams
1419
+ # 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.
1420
+ attr_accessor :confirmation_number
1421
+ # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
1422
+ attr_accessor :expires_after_days
1423
+ # The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
1424
+ attr_accessor :expires_at
1425
+ # A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
1426
+ attr_accessor :product_description
1427
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1428
+ #
1429
+ # 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.
1430
+ #
1431
+ # 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.
1432
+ #
1433
+ # 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).
1434
+ #
1435
+ # 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`.
1436
+ attr_accessor :setup_future_usage
1437
+
1438
+ def initialize(
1439
+ confirmation_number: nil,
1440
+ expires_after_days: nil,
1441
+ expires_at: nil,
1442
+ product_description: nil,
1443
+ setup_future_usage: nil
1444
+ )
1445
+ @confirmation_number = confirmation_number
1446
+ @expires_after_days = expires_after_days
1447
+ @expires_at = expires_at
1448
+ @product_description = product_description
1449
+ @setup_future_usage = setup_future_usage
1450
+ end
1451
+ end
1452
+
1453
+ class KrCard < Stripe::RequestParams
1454
+ # Controls when the funds are captured from the customer's account.
1455
+ #
1456
+ # 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.
1457
+ #
1458
+ # 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.
1459
+ attr_accessor :capture_method
1460
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1461
+ #
1462
+ # 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.
1463
+ #
1464
+ # 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.
1465
+ #
1466
+ # 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).
1467
+ attr_accessor :setup_future_usage
1468
+
1469
+ def initialize(capture_method: nil, setup_future_usage: nil)
1470
+ @capture_method = capture_method
1471
+ @setup_future_usage = setup_future_usage
1472
+ end
1473
+ end
1474
+
1475
+ class Link < Stripe::RequestParams
1476
+ # Controls when the funds are captured from the customer's account.
1477
+ #
1478
+ # 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.
1479
+ #
1480
+ # 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.
1481
+ attr_accessor :capture_method
1482
+ # [Deprecated] This is a legacy parameter that no longer has any function.
1483
+ attr_accessor :persistent_token
1484
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1485
+ #
1486
+ # 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.
1487
+ #
1488
+ # 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.
1489
+ #
1490
+ # 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).
1491
+ #
1492
+ # 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`.
1493
+ attr_accessor :setup_future_usage
1494
+
1495
+ def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil)
1496
+ @capture_method = capture_method
1497
+ @persistent_token = persistent_token
1498
+ @setup_future_usage = setup_future_usage
1499
+ end
1500
+ end
1501
+
1502
+ class MbWay < Stripe::RequestParams
1503
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1504
+ #
1505
+ # 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.
1506
+ #
1507
+ # 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.
1508
+ #
1509
+ # 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).
1510
+ #
1511
+ # 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`.
1512
+ attr_accessor :setup_future_usage
1513
+
1514
+ def initialize(setup_future_usage: nil)
1515
+ @setup_future_usage = setup_future_usage
1516
+ end
1517
+ end
1518
+
1519
+ class Mobilepay < Stripe::RequestParams
1520
+ # Controls when the funds are captured from the customer's account.
1521
+ #
1522
+ # 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.
1523
+ #
1524
+ # 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.
1525
+ attr_accessor :capture_method
1526
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1527
+ #
1528
+ # 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.
1529
+ #
1530
+ # 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.
1531
+ #
1532
+ # 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).
1533
+ #
1534
+ # 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`.
1535
+ attr_accessor :setup_future_usage
1536
+
1537
+ def initialize(capture_method: nil, setup_future_usage: nil)
1538
+ @capture_method = capture_method
1539
+ @setup_future_usage = setup_future_usage
1540
+ end
1541
+ end
1542
+
1543
+ class Multibanco < Stripe::RequestParams
1544
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1545
+ #
1546
+ # 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.
1547
+ #
1548
+ # 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.
1549
+ #
1550
+ # 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).
1551
+ #
1552
+ # 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`.
1553
+ attr_accessor :setup_future_usage
1554
+
1555
+ def initialize(setup_future_usage: nil)
1556
+ @setup_future_usage = setup_future_usage
1557
+ end
1558
+ end
1559
+
1560
+ class NaverPay < Stripe::RequestParams
1561
+ # Controls when the funds are captured from the customer's account.
1562
+ #
1563
+ # 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.
1564
+ #
1565
+ # 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.
1566
+ attr_accessor :capture_method
1567
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1568
+ #
1569
+ # 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.
1570
+ #
1571
+ # 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.
1572
+ #
1573
+ # 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).
1574
+ attr_accessor :setup_future_usage
1575
+
1576
+ def initialize(capture_method: nil, setup_future_usage: nil)
1577
+ @capture_method = capture_method
1578
+ @setup_future_usage = setup_future_usage
1579
+ end
1580
+ end
1581
+
1582
+ class NzBankAccount < Stripe::RequestParams
1583
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1584
+ #
1585
+ # 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.
1586
+ #
1587
+ # 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.
1588
+ #
1589
+ # 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).
1590
+ #
1591
+ # 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`.
1592
+ attr_accessor :setup_future_usage
1593
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1594
+ attr_accessor :target_date
1595
+
1596
+ def initialize(setup_future_usage: nil, target_date: nil)
1597
+ @setup_future_usage = setup_future_usage
1598
+ @target_date = target_date
1599
+ end
1600
+ end
1601
+
1602
+ class Oxxo < Stripe::RequestParams
1603
+ # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1604
+ attr_accessor :expires_after_days
1605
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1606
+ #
1607
+ # 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.
1608
+ #
1609
+ # 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.
1610
+ #
1611
+ # 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).
1612
+ #
1613
+ # 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`.
1614
+ attr_accessor :setup_future_usage
1615
+
1616
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1617
+ @expires_after_days = expires_after_days
1618
+ @setup_future_usage = setup_future_usage
1619
+ end
1620
+ end
1621
+
1622
+ class P24 < Stripe::RequestParams
1623
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1624
+ #
1625
+ # 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.
1626
+ #
1627
+ # 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.
1628
+ #
1629
+ # 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).
1630
+ #
1631
+ # 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`.
1632
+ attr_accessor :setup_future_usage
1633
+ # Confirm that the payer has accepted the P24 terms and conditions.
1634
+ attr_accessor :tos_shown_and_accepted
1635
+
1636
+ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1637
+ @setup_future_usage = setup_future_usage
1638
+ @tos_shown_and_accepted = tos_shown_and_accepted
1639
+ end
1640
+ end
1641
+
1642
+ class PayByBank < Stripe::RequestParams; end
1643
+
1644
+ class Payco < Stripe::RequestParams
1645
+ # Controls when the funds are captured from the customer's account.
1646
+ #
1647
+ # 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.
1648
+ #
1649
+ # 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.
1650
+ attr_accessor :capture_method
1651
+
1652
+ def initialize(capture_method: nil)
1653
+ @capture_method = capture_method
1654
+ end
1655
+ end
1656
+
1657
+ class Paynow < Stripe::RequestParams
1658
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1659
+ #
1660
+ # 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.
1661
+ #
1662
+ # 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.
1663
+ #
1664
+ # 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).
1665
+ #
1666
+ # 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`.
1667
+ attr_accessor :setup_future_usage
1668
+
1669
+ def initialize(setup_future_usage: nil)
1670
+ @setup_future_usage = setup_future_usage
1671
+ end
1672
+ end
1673
+
1674
+ class Paypal < Stripe::RequestParams
1675
+ # Controls when the funds will be captured from the customer's account.
1676
+ attr_accessor :capture_method
1677
+ # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1678
+ attr_accessor :preferred_locale
1679
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1680
+ attr_accessor :reference
1681
+ # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1682
+ attr_accessor :risk_correlation_id
1683
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1684
+ #
1685
+ # 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.
1686
+ #
1687
+ # 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.
1688
+ #
1689
+ # 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).
1690
+ #
1691
+ # 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`.
1692
+ attr_accessor :setup_future_usage
1693
+
1694
+ def initialize(
1695
+ capture_method: nil,
1696
+ preferred_locale: nil,
1697
+ reference: nil,
1698
+ risk_correlation_id: nil,
1699
+ setup_future_usage: nil
1700
+ )
1701
+ @capture_method = capture_method
1702
+ @preferred_locale = preferred_locale
1703
+ @reference = reference
1704
+ @risk_correlation_id = risk_correlation_id
1705
+ @setup_future_usage = setup_future_usage
1706
+ end
1707
+ end
1708
+
1709
+ class Pix < Stripe::RequestParams
1710
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
1711
+ attr_accessor :amount_includes_iof
1712
+ # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1713
+ attr_accessor :expires_after_seconds
1714
+ # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1715
+ attr_accessor :expires_at
1716
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1717
+ #
1718
+ # 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.
1719
+ #
1720
+ # 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.
1721
+ #
1722
+ # 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).
1723
+ #
1724
+ # 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`.
1725
+ attr_accessor :setup_future_usage
1726
+
1727
+ def initialize(
1728
+ amount_includes_iof: nil,
1729
+ expires_after_seconds: nil,
1730
+ expires_at: nil,
1731
+ setup_future_usage: nil
1732
+ )
1733
+ @amount_includes_iof = amount_includes_iof
1734
+ @expires_after_seconds = expires_after_seconds
1735
+ @expires_at = expires_at
1736
+ @setup_future_usage = setup_future_usage
1737
+ end
1738
+ end
1739
+
1740
+ class Promptpay < Stripe::RequestParams
1741
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1742
+ #
1743
+ # 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.
1744
+ #
1745
+ # 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.
1746
+ #
1747
+ # 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).
1748
+ #
1749
+ # 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`.
1750
+ attr_accessor :setup_future_usage
1751
+
1752
+ def initialize(setup_future_usage: nil)
1753
+ @setup_future_usage = setup_future_usage
1754
+ end
1755
+ end
1756
+
1757
+ class RevolutPay < Stripe::RequestParams
1758
+ # Controls when the funds are captured from the customer's account.
1759
+ #
1760
+ # 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.
1761
+ #
1762
+ # 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.
1763
+ attr_accessor :capture_method
1764
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1765
+ #
1766
+ # 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.
1767
+ #
1768
+ # 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.
1769
+ #
1770
+ # 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).
1771
+ attr_accessor :setup_future_usage
1772
+
1773
+ def initialize(capture_method: nil, setup_future_usage: nil)
1774
+ @capture_method = capture_method
1775
+ @setup_future_usage = setup_future_usage
1776
+ end
1777
+ end
1778
+
1779
+ class SamsungPay < Stripe::RequestParams
1780
+ # Controls when the funds are captured from the customer's account.
1781
+ #
1782
+ # 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.
1783
+ #
1784
+ # 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.
1785
+ attr_accessor :capture_method
1786
+
1787
+ def initialize(capture_method: nil)
1788
+ @capture_method = capture_method
1789
+ end
1790
+ end
1791
+
1792
+ class Satispay < Stripe::RequestParams
1793
+ # Controls when the funds are captured from the customer's account.
1794
+ #
1795
+ # 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.
1796
+ #
1797
+ # 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.
1798
+ attr_accessor :capture_method
1799
+
1800
+ def initialize(capture_method: nil)
1801
+ @capture_method = capture_method
1802
+ end
1803
+ end
1804
+
1805
+ class SepaDebit < Stripe::RequestParams
1806
+ class MandateOptions < Stripe::RequestParams
1807
+ # 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'.
1808
+ attr_accessor :reference_prefix
1809
+
1810
+ def initialize(reference_prefix: nil)
1811
+ @reference_prefix = reference_prefix
1812
+ end
1813
+ end
1814
+ # Additional fields for Mandate creation
1815
+ attr_accessor :mandate_options
1816
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1817
+ #
1818
+ # 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.
1819
+ #
1820
+ # 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.
1821
+ #
1822
+ # 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).
1823
+ #
1824
+ # 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`.
1825
+ attr_accessor :setup_future_usage
1826
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1827
+ attr_accessor :target_date
1828
+
1829
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1830
+ @mandate_options = mandate_options
1831
+ @setup_future_usage = setup_future_usage
1832
+ @target_date = target_date
1833
+ end
1834
+ end
1835
+
1836
+ class Sofort < Stripe::RequestParams
1837
+ # Language shown to the payer on redirect.
1838
+ attr_accessor :preferred_language
1839
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1840
+ #
1841
+ # 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.
1842
+ #
1843
+ # 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.
1844
+ #
1845
+ # 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).
1846
+ #
1847
+ # 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`.
1848
+ attr_accessor :setup_future_usage
1849
+
1850
+ def initialize(preferred_language: nil, setup_future_usage: nil)
1851
+ @preferred_language = preferred_language
1852
+ @setup_future_usage = setup_future_usage
1853
+ end
1854
+ end
1855
+
1856
+ class Swish < Stripe::RequestParams
1857
+ # A reference for this payment to be displayed in the Swish app.
1858
+ attr_accessor :reference
1859
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1860
+ #
1861
+ # 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.
1862
+ #
1863
+ # 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.
1864
+ #
1865
+ # 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).
1866
+ #
1867
+ # 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`.
1868
+ attr_accessor :setup_future_usage
1869
+
1870
+ def initialize(reference: nil, setup_future_usage: nil)
1871
+ @reference = reference
1872
+ @setup_future_usage = setup_future_usage
1873
+ end
1874
+ end
1875
+
1876
+ class Twint < Stripe::RequestParams
1877
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1878
+ #
1879
+ # 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.
1880
+ #
1881
+ # 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.
1882
+ #
1883
+ # 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).
1884
+ #
1885
+ # 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`.
1886
+ attr_accessor :setup_future_usage
1887
+
1888
+ def initialize(setup_future_usage: nil)
1889
+ @setup_future_usage = setup_future_usage
1890
+ end
1891
+ end
1892
+
1893
+ class UsBankAccount < Stripe::RequestParams
1894
+ class FinancialConnections < Stripe::RequestParams
1895
+ class Filters < Stripe::RequestParams
1896
+ # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1897
+ attr_accessor :account_subcategories
1898
+
1899
+ def initialize(account_subcategories: nil)
1900
+ @account_subcategories = account_subcategories
1901
+ end
1902
+ end
1903
+ # Provide filters for the linked accounts that the customer can select for the payment method.
1904
+ attr_accessor :filters
1905
+ # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1906
+ attr_accessor :permissions
1907
+ # List of data features that you would like to retrieve upon account creation.
1908
+ attr_accessor :prefetch
1909
+ # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
1910
+ attr_accessor :return_url
1911
+
1912
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
1913
+ @filters = filters
1914
+ @permissions = permissions
1915
+ @prefetch = prefetch
1916
+ @return_url = return_url
1917
+ end
1918
+ end
1919
+
1920
+ class MandateOptions < Stripe::RequestParams
1921
+ # The method used to collect offline mandate customer acceptance.
1922
+ attr_accessor :collection_method
1923
+
1924
+ def initialize(collection_method: nil)
1925
+ @collection_method = collection_method
1926
+ end
1927
+ end
1928
+
1929
+ class Networks < Stripe::RequestParams
1930
+ # Triggers validations to run across the selected networks
1931
+ attr_accessor :requested
1932
+
1933
+ def initialize(requested: nil)
1934
+ @requested = requested
1935
+ end
1936
+ end
1937
+ # Additional fields for Financial Connections Session creation
1938
+ attr_accessor :financial_connections
1939
+ # Additional fields for Mandate creation
1940
+ attr_accessor :mandate_options
1941
+ # Additional fields for network related functions
1942
+ attr_accessor :networks
1943
+ # Preferred transaction settlement speed
1944
+ attr_accessor :preferred_settlement_speed
1945
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1946
+ #
1947
+ # 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.
1948
+ #
1949
+ # 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.
1950
+ #
1951
+ # 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).
1952
+ #
1953
+ # 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`.
1954
+ attr_accessor :setup_future_usage
1955
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1956
+ attr_accessor :target_date
1957
+ # Bank account verification method.
1958
+ attr_accessor :verification_method
1959
+
1960
+ def initialize(
1961
+ financial_connections: nil,
1962
+ mandate_options: nil,
1963
+ networks: nil,
1964
+ preferred_settlement_speed: nil,
1965
+ setup_future_usage: nil,
1966
+ target_date: nil,
1967
+ verification_method: nil
1968
+ )
1969
+ @financial_connections = financial_connections
1970
+ @mandate_options = mandate_options
1971
+ @networks = networks
1972
+ @preferred_settlement_speed = preferred_settlement_speed
1973
+ @setup_future_usage = setup_future_usage
1974
+ @target_date = target_date
1975
+ @verification_method = verification_method
1976
+ end
1977
+ end
1978
+
1979
+ class WechatPay < Stripe::RequestParams
1980
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
1981
+ attr_accessor :app_id
1982
+ # The client type that the end customer will pay from
1983
+ attr_accessor :client
1984
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1985
+ #
1986
+ # 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.
1987
+ #
1988
+ # 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.
1989
+ #
1990
+ # 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).
1991
+ #
1992
+ # 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`.
1993
+ attr_accessor :setup_future_usage
1994
+
1995
+ def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1996
+ @app_id = app_id
1997
+ @client = client
1998
+ @setup_future_usage = setup_future_usage
1999
+ end
2000
+ end
2001
+
2002
+ class Zip < Stripe::RequestParams
2003
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2004
+ #
2005
+ # 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.
2006
+ #
2007
+ # 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.
2008
+ #
2009
+ # 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).
2010
+ #
2011
+ # 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`.
2012
+ attr_accessor :setup_future_usage
2013
+
2014
+ def initialize(setup_future_usage: nil)
2015
+ @setup_future_usage = setup_future_usage
2016
+ end
2017
+ end
2018
+ # If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
2019
+ attr_accessor :acss_debit
2020
+ # If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
2021
+ attr_accessor :affirm
2022
+ # If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
2023
+ attr_accessor :afterpay_clearpay
2024
+ # If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
2025
+ attr_accessor :alipay
2026
+ # If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
2027
+ attr_accessor :alma
2028
+ # If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
2029
+ attr_accessor :amazon_pay
2030
+ # If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
2031
+ attr_accessor :au_becs_debit
2032
+ # If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
2033
+ attr_accessor :bacs_debit
2034
+ # If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
2035
+ attr_accessor :bancontact
2036
+ # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
2037
+ attr_accessor :billie
2038
+ # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
2039
+ attr_accessor :blik
2040
+ # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
2041
+ attr_accessor :boleto
2042
+ # Configuration for any card payments attempted on this PaymentIntent.
2043
+ attr_accessor :card
2044
+ # If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
2045
+ attr_accessor :card_present
2046
+ # If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
2047
+ attr_accessor :cashapp
2048
+ # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
2049
+ attr_accessor :crypto
2050
+ # If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
2051
+ attr_accessor :customer_balance
2052
+ # If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
2053
+ attr_accessor :eps
2054
+ # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
2055
+ attr_accessor :fpx
2056
+ # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2057
+ attr_accessor :giropay
2058
+ # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2059
+ attr_accessor :grabpay
2060
+ # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2061
+ attr_accessor :ideal
2062
+ # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
2063
+ attr_accessor :interac_present
2064
+ # If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
2065
+ attr_accessor :kakao_pay
2066
+ # If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
2067
+ attr_accessor :klarna
2068
+ # If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
2069
+ attr_accessor :konbini
2070
+ # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
2071
+ attr_accessor :kr_card
2072
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2073
+ attr_accessor :link
2074
+ # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
2075
+ attr_accessor :mb_way
2076
+ # If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
2077
+ attr_accessor :mobilepay
2078
+ # If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
2079
+ attr_accessor :multibanco
2080
+ # If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
2081
+ attr_accessor :naver_pay
2082
+ # If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
2083
+ attr_accessor :nz_bank_account
2084
+ # If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
2085
+ attr_accessor :oxxo
2086
+ # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
2087
+ attr_accessor :p24
2088
+ # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
2089
+ attr_accessor :pay_by_bank
2090
+ # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
2091
+ attr_accessor :payco
2092
+ # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
2093
+ attr_accessor :paynow
2094
+ # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2095
+ attr_accessor :paypal
2096
+ # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2097
+ attr_accessor :pix
2098
+ # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2099
+ attr_accessor :promptpay
2100
+ # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2101
+ attr_accessor :revolut_pay
2102
+ # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
2103
+ attr_accessor :samsung_pay
2104
+ # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
2105
+ attr_accessor :satispay
2106
+ # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2107
+ attr_accessor :sepa_debit
2108
+ # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2109
+ attr_accessor :sofort
2110
+ # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2111
+ attr_accessor :swish
2112
+ # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
2113
+ attr_accessor :twint
2114
+ # If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
2115
+ attr_accessor :us_bank_account
2116
+ # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
2117
+ attr_accessor :wechat_pay
2118
+ # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
2119
+ attr_accessor :zip
2120
+
2121
+ def initialize(
2122
+ acss_debit: nil,
2123
+ affirm: nil,
2124
+ afterpay_clearpay: nil,
2125
+ alipay: nil,
2126
+ alma: nil,
2127
+ amazon_pay: nil,
2128
+ au_becs_debit: nil,
2129
+ bacs_debit: nil,
2130
+ bancontact: nil,
2131
+ billie: nil,
2132
+ blik: nil,
2133
+ boleto: nil,
2134
+ card: nil,
2135
+ card_present: nil,
2136
+ cashapp: nil,
2137
+ crypto: nil,
2138
+ customer_balance: nil,
2139
+ eps: nil,
2140
+ fpx: nil,
2141
+ giropay: nil,
2142
+ grabpay: nil,
2143
+ ideal: nil,
2144
+ interac_present: nil,
2145
+ kakao_pay: nil,
2146
+ klarna: nil,
2147
+ konbini: nil,
2148
+ kr_card: nil,
2149
+ link: nil,
2150
+ mb_way: nil,
2151
+ mobilepay: nil,
2152
+ multibanco: nil,
2153
+ naver_pay: nil,
2154
+ nz_bank_account: nil,
2155
+ oxxo: nil,
2156
+ p24: nil,
2157
+ pay_by_bank: nil,
2158
+ payco: nil,
2159
+ paynow: nil,
2160
+ paypal: nil,
2161
+ pix: nil,
2162
+ promptpay: nil,
2163
+ revolut_pay: nil,
2164
+ samsung_pay: nil,
2165
+ satispay: nil,
2166
+ sepa_debit: nil,
2167
+ sofort: nil,
2168
+ swish: nil,
2169
+ twint: nil,
2170
+ us_bank_account: nil,
2171
+ wechat_pay: nil,
2172
+ zip: nil
2173
+ )
2174
+ @acss_debit = acss_debit
2175
+ @affirm = affirm
2176
+ @afterpay_clearpay = afterpay_clearpay
2177
+ @alipay = alipay
2178
+ @alma = alma
2179
+ @amazon_pay = amazon_pay
2180
+ @au_becs_debit = au_becs_debit
2181
+ @bacs_debit = bacs_debit
2182
+ @bancontact = bancontact
2183
+ @billie = billie
2184
+ @blik = blik
2185
+ @boleto = boleto
2186
+ @card = card
2187
+ @card_present = card_present
2188
+ @cashapp = cashapp
2189
+ @crypto = crypto
2190
+ @customer_balance = customer_balance
2191
+ @eps = eps
2192
+ @fpx = fpx
2193
+ @giropay = giropay
2194
+ @grabpay = grabpay
2195
+ @ideal = ideal
2196
+ @interac_present = interac_present
2197
+ @kakao_pay = kakao_pay
2198
+ @klarna = klarna
2199
+ @konbini = konbini
2200
+ @kr_card = kr_card
2201
+ @link = link
2202
+ @mb_way = mb_way
2203
+ @mobilepay = mobilepay
2204
+ @multibanco = multibanco
2205
+ @naver_pay = naver_pay
2206
+ @nz_bank_account = nz_bank_account
2207
+ @oxxo = oxxo
2208
+ @p24 = p24
2209
+ @pay_by_bank = pay_by_bank
2210
+ @payco = payco
2211
+ @paynow = paynow
2212
+ @paypal = paypal
2213
+ @pix = pix
2214
+ @promptpay = promptpay
2215
+ @revolut_pay = revolut_pay
2216
+ @samsung_pay = samsung_pay
2217
+ @satispay = satispay
2218
+ @sepa_debit = sepa_debit
2219
+ @sofort = sofort
2220
+ @swish = swish
2221
+ @twint = twint
2222
+ @us_bank_account = us_bank_account
2223
+ @wechat_pay = wechat_pay
2224
+ @zip = zip
2225
+ end
2226
+ end
2227
+
2228
+ class RadarOptions < Stripe::RequestParams
2229
+ # 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.
2230
+ attr_accessor :session
2231
+
2232
+ def initialize(session: nil)
2233
+ @session = session
2234
+ end
2235
+ end
2236
+
2237
+ class Shipping < Stripe::RequestParams
2238
+ class Address < Stripe::RequestParams
2239
+ # City, district, suburb, town, or village.
2240
+ attr_accessor :city
2241
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2242
+ attr_accessor :country
2243
+ # Address line 1, such as the street, PO Box, or company name.
2244
+ attr_accessor :line1
2245
+ # Address line 2, such as the apartment, suite, unit, or building.
2246
+ attr_accessor :line2
2247
+ # ZIP or postal code.
2248
+ attr_accessor :postal_code
2249
+ # State, county, province, or region.
2250
+ attr_accessor :state
2251
+
2252
+ def initialize(
2253
+ city: nil,
2254
+ country: nil,
2255
+ line1: nil,
2256
+ line2: nil,
2257
+ postal_code: nil,
2258
+ state: nil
2259
+ )
2260
+ @city = city
2261
+ @country = country
2262
+ @line1 = line1
2263
+ @line2 = line2
2264
+ @postal_code = postal_code
2265
+ @state = state
2266
+ end
2267
+ end
2268
+ # Shipping address.
2269
+ attr_accessor :address
2270
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
2271
+ attr_accessor :carrier
2272
+ # Recipient name.
2273
+ attr_accessor :name
2274
+ # Recipient phone (including extension).
2275
+ attr_accessor :phone
2276
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
2277
+ attr_accessor :tracking_number
2278
+
2279
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
2280
+ @address = address
2281
+ @carrier = carrier
2282
+ @name = name
2283
+ @phone = phone
2284
+ @tracking_number = tracking_number
2285
+ end
2286
+ end
2287
+ # Controls when the funds will be captured from the customer's account.
2288
+ attr_accessor :capture_method
2289
+ # ID of the ConfirmationToken used to confirm this PaymentIntent.
2290
+ #
2291
+ # If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
2292
+ attr_accessor :confirmation_token
2293
+ # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication).
2294
+ attr_accessor :error_on_requires_action
2295
+ # The list of payment method types to exclude from use with this payment.
2296
+ attr_accessor :excluded_payment_method_types
2297
+ # Specifies which fields in the response should be expanded.
2298
+ attr_accessor :expand
2299
+ # ID of the mandate that's used for this payment.
2300
+ attr_accessor :mandate
2301
+ # Attribute for param field mandate_data
2302
+ attr_accessor :mandate_data
2303
+ # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
2304
+ attr_accessor :off_session
2305
+ # 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.
2306
+ # 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.
2307
+ attr_accessor :payment_method
2308
+ # If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
2309
+ # in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
2310
+ # property on the PaymentIntent.
2311
+ attr_accessor :payment_method_data
2312
+ # Payment method-specific configuration for this PaymentIntent.
2313
+ attr_accessor :payment_method_options
2314
+ # 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).
2315
+ attr_accessor :payment_method_types
2316
+ # Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
2317
+ attr_accessor :radar_options
2318
+ # 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).
2319
+ attr_accessor :receipt_email
2320
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
2321
+ # If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
2322
+ # This parameter is only used for cards and other redirect-based payment methods.
2323
+ attr_accessor :return_url
2324
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2325
+ #
2326
+ # 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.
2327
+ #
2328
+ # 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.
2329
+ #
2330
+ # 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).
2331
+ #
2332
+ # 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`.
2333
+ attr_accessor :setup_future_usage
2334
+ # Shipping information for this PaymentIntent.
2335
+ attr_accessor :shipping
2336
+ # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
2337
+ attr_accessor :use_stripe_sdk
2338
+
2339
+ def initialize(
2340
+ capture_method: nil,
2341
+ confirmation_token: nil,
2342
+ error_on_requires_action: nil,
2343
+ excluded_payment_method_types: nil,
2344
+ expand: nil,
2345
+ mandate: nil,
2346
+ mandate_data: nil,
2347
+ off_session: nil,
2348
+ payment_method: nil,
2349
+ payment_method_data: nil,
2350
+ payment_method_options: nil,
2351
+ payment_method_types: nil,
2352
+ radar_options: nil,
2353
+ receipt_email: nil,
2354
+ return_url: nil,
2355
+ setup_future_usage: nil,
2356
+ shipping: nil,
2357
+ use_stripe_sdk: nil
2358
+ )
2359
+ @capture_method = capture_method
2360
+ @confirmation_token = confirmation_token
2361
+ @error_on_requires_action = error_on_requires_action
2362
+ @excluded_payment_method_types = excluded_payment_method_types
2363
+ @expand = expand
2364
+ @mandate = mandate
2365
+ @mandate_data = mandate_data
2366
+ @off_session = off_session
2367
+ @payment_method = payment_method
2368
+ @payment_method_data = payment_method_data
2369
+ @payment_method_options = payment_method_options
2370
+ @payment_method_types = payment_method_types
2371
+ @radar_options = radar_options
2372
+ @receipt_email = receipt_email
2373
+ @return_url = return_url
2374
+ @setup_future_usage = setup_future_usage
2375
+ @shipping = shipping
2376
+ @use_stripe_sdk = use_stripe_sdk
2377
+ end
2378
+ end
2379
+ end