stripe 17.0.1 → 19.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 (847) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/ca-certificates.crt +682 -518
  3. data/lib/stripe/api_requestor.rb +40 -44
  4. data/lib/stripe/api_version.rb +2 -2
  5. data/lib/stripe/errors.rb +3 -0
  6. data/lib/stripe/event_types.rb +61 -0
  7. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +7 -7
  8. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
  9. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  22. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  24. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  25. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
  27. data/lib/stripe/object_types.rb +14 -0
  28. data/lib/stripe/params/account_capability_list_params.rb +1 -1
  29. data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
  30. data/lib/stripe/params/account_capability_update_params.rb +1 -1
  31. data/lib/stripe/params/account_create_params.rb +210 -143
  32. data/lib/stripe/params/account_delete_params.rb +1 -1
  33. data/lib/stripe/params/account_external_account_create_params.rb +6 -6
  34. data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
  35. data/lib/stripe/params/account_external_account_list_params.rb +1 -1
  36. data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
  37. data/lib/stripe/params/account_external_account_update_params.rb +5 -5
  38. data/lib/stripe/params/account_link_create_params.rb +2 -2
  39. data/lib/stripe/params/account_list_params.rb +2 -2
  40. data/lib/stripe/params/account_login_link_create_params.rb +1 -1
  41. data/lib/stripe/params/account_person_create_params.rb +29 -29
  42. data/lib/stripe/params/account_person_delete_params.rb +1 -1
  43. data/lib/stripe/params/account_person_list_params.rb +2 -2
  44. data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
  45. data/lib/stripe/params/account_person_update_params.rb +29 -29
  46. data/lib/stripe/params/account_persons_params.rb +2 -2
  47. data/lib/stripe/params/account_reject_params.rb +1 -1
  48. data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
  49. data/lib/stripe/params/account_retrieve_params.rb +1 -1
  50. data/lib/stripe/params/account_session_create_params.rb +43 -43
  51. data/lib/stripe/params/account_update_params.rb +206 -139
  52. data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
  53. data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
  54. data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
  55. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
  56. data/lib/stripe/params/application_fee_list_params.rb +2 -2
  57. data/lib/stripe/params/application_fee_refund_create_params.rb +2 -2
  58. data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
  59. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
  60. data/lib/stripe/params/application_fee_refund_update_params.rb +2 -2
  61. data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
  62. data/lib/stripe/params/apps/secret_create_params.rb +2 -2
  63. data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
  64. data/lib/stripe/params/apps/secret_find_params.rb +2 -2
  65. data/lib/stripe/params/apps/secret_list_params.rb +2 -2
  66. data/lib/stripe/params/balance_retrieve_params.rb +1 -1
  67. data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
  68. data/lib/stripe/params/balance_settings_update_params.rb +5 -5
  69. data/lib/stripe/params/balance_transaction_list_params.rb +4 -4
  70. data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
  71. data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
  72. data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
  73. data/lib/stripe/params/billing/alert_create_params.rb +4 -4
  74. data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
  75. data/lib/stripe/params/billing/alert_list_params.rb +1 -1
  76. data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
  77. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +9 -6
  78. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +6 -2
  79. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
  80. data/lib/stripe/params/billing/credit_grant_create_params.rb +12 -8
  81. data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
  82. data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
  83. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
  84. data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
  85. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
  86. data/lib/stripe/params/billing/meter_create_params.rb +4 -4
  87. data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
  88. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
  89. data/lib/stripe/params/billing/meter_event_create_params.rb +2 -2
  90. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
  91. data/lib/stripe/params/billing/meter_list_params.rb +1 -1
  92. data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
  93. data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
  94. data/lib/stripe/params/billing/meter_update_params.rb +1 -1
  95. data/lib/stripe/params/billing_portal/configuration_create_params.rb +25 -18
  96. data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
  97. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
  98. data/lib/stripe/params/billing_portal/configuration_update_params.rb +25 -18
  99. data/lib/stripe/params/billing_portal/session_create_params.rb +23 -19
  100. data/lib/stripe/params/charge_capture_params.rb +4 -4
  101. data/lib/stripe/params/charge_create_params.rb +18 -18
  102. data/lib/stripe/params/charge_list_params.rb +2 -2
  103. data/lib/stripe/params/charge_retrieve_params.rb +1 -1
  104. data/lib/stripe/params/charge_search_params.rb +2 -2
  105. data/lib/stripe/params/charge_update_params.rb +7 -7
  106. data/lib/stripe/params/checkout/session_create_params.rb +359 -177
  107. data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
  108. data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
  109. data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
  110. data/lib/stripe/params/checkout/session_list_params.rb +7 -3
  111. data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
  112. data/lib/stripe/params/checkout/session_update_params.rb +185 -16
  113. data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
  114. data/lib/stripe/params/climate/order_create_params.rb +7 -3
  115. data/lib/stripe/params/climate/order_list_params.rb +1 -1
  116. data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
  117. data/lib/stripe/params/climate/order_update_params.rb +3 -3
  118. data/lib/stripe/params/climate/product_list_params.rb +1 -1
  119. data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
  120. data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
  121. data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
  122. data/lib/stripe/params/confirmation_token_create_params.rb +117 -67
  123. data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
  124. data/lib/stripe/params/country_spec_list_params.rb +1 -1
  125. data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
  126. data/lib/stripe/params/coupon_create_params.rb +5 -5
  127. data/lib/stripe/params/coupon_delete_params.rb +1 -1
  128. data/lib/stripe/params/coupon_list_params.rb +2 -2
  129. data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
  130. data/lib/stripe/params/coupon_update_params.rb +3 -3
  131. data/lib/stripe/params/credit_note_create_params.rb +44 -10
  132. data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
  133. data/lib/stripe/params/credit_note_list_params.rb +6 -2
  134. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +44 -10
  135. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +44 -10
  136. data/lib/stripe/params/credit_note_preview_params.rb +44 -10
  137. data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
  138. data/lib/stripe/params/credit_note_update_params.rb +2 -2
  139. data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
  140. data/lib/stripe/params/customer_balance_transaction_create_params.rb +3 -3
  141. data/lib/stripe/params/customer_balance_transaction_list_params.rb +32 -2
  142. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
  143. data/lib/stripe/params/customer_balance_transaction_update_params.rb +2 -2
  144. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
  145. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
  146. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
  147. data/lib/stripe/params/customer_cash_balance_update_params.rb +3 -3
  148. data/lib/stripe/params/customer_create_funding_instructions_params.rb +4 -4
  149. data/lib/stripe/params/customer_create_params.rb +17 -17
  150. data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
  151. data/lib/stripe/params/customer_delete_params.rb +1 -1
  152. data/lib/stripe/params/customer_fund_cash_balance_params.rb +3 -3
  153. data/lib/stripe/params/customer_funding_instructions_create_params.rb +4 -4
  154. data/lib/stripe/params/customer_list_params.rb +2 -2
  155. data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
  156. data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
  157. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
  158. data/lib/stripe/params/customer_payment_source_create_params.rb +3 -3
  159. data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
  160. data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
  161. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
  162. data/lib/stripe/params/customer_payment_source_update_params.rb +5 -5
  163. data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
  164. data/lib/stripe/params/customer_retrieve_params.rb +1 -1
  165. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
  166. data/lib/stripe/params/customer_search_params.rb +2 -2
  167. data/lib/stripe/params/customer_session_create_params.rb +97 -9
  168. data/lib/stripe/params/customer_tax_id_create_params.rb +2 -2
  169. data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
  170. data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
  171. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
  172. data/lib/stripe/params/customer_update_params.rb +17 -17
  173. data/lib/stripe/params/dispute_close_params.rb +1 -1
  174. data/lib/stripe/params/dispute_list_params.rb +2 -2
  175. data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
  176. data/lib/stripe/params/dispute_update_params.rb +12 -12
  177. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
  178. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
  179. data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
  180. data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
  181. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
  182. data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
  183. data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
  184. data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
  185. data/lib/stripe/params/event_list_params.rb +2 -2
  186. data/lib/stripe/params/event_retrieve_params.rb +1 -1
  187. data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
  188. data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
  189. data/lib/stripe/params/file_create_params.rb +5 -5
  190. data/lib/stripe/params/file_link_create_params.rb +2 -2
  191. data/lib/stripe/params/file_link_list_params.rb +2 -2
  192. data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
  193. data/lib/stripe/params/file_link_update_params.rb +2 -2
  194. data/lib/stripe/params/file_list_params.rb +2 -2
  195. data/lib/stripe/params/file_retrieve_params.rb +1 -1
  196. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
  197. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
  198. data/lib/stripe/params/financial_connections/account_list_params.rb +8 -5
  199. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
  200. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
  201. data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
  202. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
  203. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
  204. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
  205. data/lib/stripe/params/financial_connections/session_create_params.rb +9 -6
  206. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
  207. data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
  208. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
  209. data/lib/stripe/params/forwarding/request_create_params.rb +4 -4
  210. data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
  211. data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
  212. data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
  213. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
  214. data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
  215. data/lib/stripe/params/identity/verification_session_create_params.rb +14 -10
  216. data/lib/stripe/params/identity/verification_session_list_params.rb +8 -4
  217. data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
  218. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
  219. data/lib/stripe/params/identity/verification_session_update_params.rb +9 -9
  220. data/lib/stripe/params/invoice_add_lines_params.rb +48 -18
  221. data/lib/stripe/params/invoice_attach_payment_params.rb +5 -2
  222. data/lib/stripe/params/invoice_create_params.rb +77 -48
  223. data/lib/stripe/params/invoice_create_preview_params.rb +257 -80
  224. data/lib/stripe/params/invoice_delete_params.rb +1 -1
  225. data/lib/stripe/params/invoice_finalize_invoice_params.rb +2 -2
  226. data/lib/stripe/params/invoice_item_create_params.rb +33 -13
  227. data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
  228. data/lib/stripe/params/invoice_item_list_params.rb +7 -3
  229. data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
  230. data/lib/stripe/params/invoice_item_update_params.rb +28 -12
  231. data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
  232. data/lib/stripe/params/invoice_line_item_update_params.rb +31 -16
  233. data/lib/stripe/params/invoice_list_params.rb +8 -4
  234. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
  235. data/lib/stripe/params/invoice_pay_params.rb +1 -1
  236. data/lib/stripe/params/invoice_payment_list_params.rb +28 -3
  237. data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
  238. data/lib/stripe/params/invoice_remove_lines_params.rb +3 -3
  239. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
  240. data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
  241. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
  242. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
  243. data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
  244. data/lib/stripe/params/invoice_search_params.rb +2 -2
  245. data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
  246. data/lib/stripe/params/invoice_update_lines_params.rb +48 -18
  247. data/lib/stripe/params/invoice_update_params.rb +70 -45
  248. data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
  249. data/lib/stripe/params/issuing/authorization_approve_params.rb +3 -3
  250. data/lib/stripe/params/issuing/authorization_capture_params.rb +139 -14
  251. data/lib/stripe/params/issuing/authorization_create_params.rb +124 -29
  252. data/lib/stripe/params/issuing/authorization_decline_params.rb +2 -2
  253. data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
  254. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +89 -9
  255. data/lib/stripe/params/issuing/authorization_increment_params.rb +3 -3
  256. data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
  257. data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
  258. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
  259. data/lib/stripe/params/issuing/authorization_reverse_params.rb +2 -2
  260. data/lib/stripe/params/issuing/authorization_update_params.rb +2 -2
  261. data/lib/stripe/params/issuing/card_create_params.rb +36 -15
  262. data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
  263. data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
  264. data/lib/stripe/params/issuing/card_list_params.rb +2 -2
  265. data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
  266. data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
  267. data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
  268. data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
  269. data/lib/stripe/params/issuing/card_update_params.rb +14 -14
  270. data/lib/stripe/params/issuing/cardholder_create_params.rb +26 -26
  271. data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
  272. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
  273. data/lib/stripe/params/issuing/cardholder_update_params.rb +25 -25
  274. data/lib/stripe/params/issuing/dispute_create_params.rb +13 -13
  275. data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
  276. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
  277. data/lib/stripe/params/issuing/dispute_submit_params.rb +2 -2
  278. data/lib/stripe/params/issuing/dispute_update_params.rb +12 -12
  279. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
  280. data/lib/stripe/params/issuing/personalization_design_create_params.rb +4 -4
  281. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
  282. data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
  283. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
  284. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
  285. data/lib/stripe/params/issuing/personalization_design_update_params.rb +4 -4
  286. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
  287. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
  288. data/lib/stripe/params/issuing/token_list_params.rb +2 -2
  289. data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
  290. data/lib/stripe/params/issuing/token_update_params.rb +1 -1
  291. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +141 -16
  292. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +141 -16
  293. data/lib/stripe/params/issuing/transaction_list_params.rb +2 -2
  294. data/lib/stripe/params/issuing/transaction_refund_params.rb +2 -2
  295. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
  296. data/lib/stripe/params/issuing/transaction_update_params.rb +2 -2
  297. data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
  298. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  299. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  300. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  301. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +2 -2
  302. data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
  303. data/lib/stripe/params/payment_intent_capture_params.rb +243 -6
  304. data/lib/stripe/params/payment_intent_confirm_params.rb +544 -162
  305. data/lib/stripe/params/payment_intent_create_params.rb +568 -178
  306. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +242 -5
  307. data/lib/stripe/params/payment_intent_list_params.rb +6 -2
  308. data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
  309. data/lib/stripe/params/payment_intent_search_params.rb +2 -2
  310. data/lib/stripe/params/payment_intent_update_params.rb +550 -160
  311. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
  312. data/lib/stripe/params/payment_link_create_params.rb +134 -73
  313. data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
  314. data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
  315. data/lib/stripe/params/payment_link_list_params.rb +1 -1
  316. data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
  317. data/lib/stripe/params/payment_link_update_params.rb +128 -54
  318. data/lib/stripe/params/payment_method_attach_params.rb +5 -2
  319. data/lib/stripe/params/payment_method_configuration_create_params.rb +227 -143
  320. data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
  321. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
  322. data/lib/stripe/params/payment_method_configuration_update_params.rb +227 -143
  323. data/lib/stripe/params/payment_method_create_params.rb +124 -60
  324. data/lib/stripe/params/payment_method_detach_params.rb +1 -1
  325. data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
  326. data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
  327. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
  328. data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
  329. data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
  330. data/lib/stripe/params/payment_method_list_params.rb +10 -2
  331. data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
  332. data/lib/stripe/params/payment_method_update_params.rb +27 -8
  333. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  334. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  335. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  336. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  337. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  338. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  339. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  340. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  341. data/lib/stripe/params/payout_cancel_params.rb +1 -1
  342. data/lib/stripe/params/payout_create_params.rb +2 -2
  343. data/lib/stripe/params/payout_list_params.rb +3 -3
  344. data/lib/stripe/params/payout_retrieve_params.rb +1 -1
  345. data/lib/stripe/params/payout_reverse_params.rb +2 -2
  346. data/lib/stripe/params/payout_update_params.rb +2 -2
  347. data/lib/stripe/params/plan_create_params.rb +28 -8
  348. data/lib/stripe/params/plan_delete_params.rb +1 -1
  349. data/lib/stripe/params/plan_list_params.rb +2 -2
  350. data/lib/stripe/params/plan_retrieve_params.rb +1 -1
  351. data/lib/stripe/params/plan_update_params.rb +3 -3
  352. data/lib/stripe/params/price_create_params.rb +55 -15
  353. data/lib/stripe/params/price_list_params.rb +3 -3
  354. data/lib/stripe/params/price_retrieve_params.rb +1 -1
  355. data/lib/stripe/params/price_search_params.rb +2 -2
  356. data/lib/stripe/params/price_update_params.rb +27 -7
  357. data/lib/stripe/params/product_create_params.rb +49 -16
  358. data/lib/stripe/params/product_delete_params.rb +1 -1
  359. data/lib/stripe/params/product_feature_create_params.rb +2 -2
  360. data/lib/stripe/params/product_feature_delete_params.rb +1 -1
  361. data/lib/stripe/params/product_feature_list_params.rb +1 -1
  362. data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
  363. data/lib/stripe/params/product_list_params.rb +3 -3
  364. data/lib/stripe/params/product_retrieve_params.rb +1 -1
  365. data/lib/stripe/params/product_search_params.rb +2 -2
  366. data/lib/stripe/params/product_update_params.rb +7 -7
  367. data/lib/stripe/params/promotion_code_create_params.rb +11 -7
  368. data/lib/stripe/params/promotion_code_list_params.rb +6 -2
  369. data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
  370. data/lib/stripe/params/promotion_code_update_params.rb +4 -4
  371. data/lib/stripe/params/quote_accept_params.rb +1 -1
  372. data/lib/stripe/params/quote_cancel_params.rb +1 -1
  373. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
  374. data/lib/stripe/params/quote_create_params.rb +45 -19
  375. data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
  376. data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
  377. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
  378. data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
  379. data/lib/stripe/params/quote_list_params.rb +6 -2
  380. data/lib/stripe/params/quote_pdf_params.rb +1 -1
  381. data/lib/stripe/params/quote_retrieve_params.rb +1 -1
  382. data/lib/stripe/params/quote_update_params.rb +42 -16
  383. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
  384. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
  385. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
  386. data/lib/stripe/params/radar/value_list_create_params.rb +3 -3
  387. data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
  388. data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
  389. data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
  390. data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
  391. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
  392. data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
  393. data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
  394. data/lib/stripe/params/radar/value_list_update_params.rb +2 -2
  395. data/lib/stripe/params/refund_cancel_params.rb +1 -1
  396. data/lib/stripe/params/refund_create_params.rb +3 -3
  397. data/lib/stripe/params/refund_expire_params.rb +1 -1
  398. data/lib/stripe/params/refund_list_params.rb +2 -2
  399. data/lib/stripe/params/refund_retrieve_params.rb +1 -1
  400. data/lib/stripe/params/refund_update_params.rb +2 -2
  401. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -4
  402. data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
  403. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
  404. data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
  405. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
  406. data/lib/stripe/params/review_approve_params.rb +1 -1
  407. data/lib/stripe/params/review_list_params.rb +2 -2
  408. data/lib/stripe/params/review_retrieve_params.rb +1 -1
  409. data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
  410. data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
  411. data/lib/stripe/params/setup_intent_confirm_params.rb +223 -93
  412. data/lib/stripe/params/setup_intent_create_params.rb +241 -101
  413. data/lib/stripe/params/setup_intent_list_params.rb +6 -2
  414. data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
  415. data/lib/stripe/params/setup_intent_update_params.rb +231 -91
  416. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
  417. data/lib/stripe/params/shipping_rate_create_params.rb +8 -8
  418. data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
  419. data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
  420. data/lib/stripe/params/shipping_rate_update_params.rb +4 -4
  421. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
  422. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
  423. data/lib/stripe/params/source_create_params.rb +16 -16
  424. data/lib/stripe/params/source_detach_params.rb +1 -1
  425. data/lib/stripe/params/source_retrieve_params.rb +1 -1
  426. data/lib/stripe/params/source_transaction_list_params.rb +1 -1
  427. data/lib/stripe/params/source_update_params.rb +14 -14
  428. data/lib/stripe/params/source_verify_params.rb +1 -1
  429. data/lib/stripe/params/subscription_cancel_params.rb +2 -2
  430. data/lib/stripe/params/subscription_create_params.rb +131 -63
  431. data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
  432. data/lib/stripe/params/subscription_item_create_params.rb +25 -15
  433. data/lib/stripe/params/subscription_item_delete_params.rb +18 -4
  434. data/lib/stripe/params/subscription_item_list_params.rb +1 -1
  435. data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
  436. data/lib/stripe/params/subscription_item_update_params.rb +25 -15
  437. data/lib/stripe/params/subscription_list_params.rb +11 -7
  438. data/lib/stripe/params/subscription_migrate_params.rb +3 -3
  439. data/lib/stripe/params/subscription_resume_params.rb +3 -3
  440. data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
  441. data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
  442. data/lib/stripe/params/subscription_schedule_create_params.rb +119 -45
  443. data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
  444. data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
  445. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
  446. data/lib/stripe/params/subscription_schedule_update_params.rb +113 -43
  447. data/lib/stripe/params/subscription_search_params.rb +2 -2
  448. data/lib/stripe/params/subscription_update_params.rb +126 -62
  449. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  450. data/lib/stripe/params/tax/calculation_create_params.rb +16 -16
  451. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
  452. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
  453. data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
  454. data/lib/stripe/params/tax/registration_create_params.rb +190 -164
  455. data/lib/stripe/params/tax/registration_list_params.rb +1 -1
  456. data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
  457. data/lib/stripe/params/tax/registration_update_params.rb +1 -1
  458. data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
  459. data/lib/stripe/params/tax/settings_update_params.rb +5 -5
  460. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +2 -2
  461. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +12 -12
  462. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
  463. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
  464. data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
  465. data/lib/stripe/params/tax_code_list_params.rb +1 -1
  466. data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
  467. data/lib/stripe/params/tax_id_create_params.rb +8 -5
  468. data/lib/stripe/params/tax_id_delete_params.rb +1 -1
  469. data/lib/stripe/params/tax_id_list_params.rb +7 -4
  470. data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
  471. data/lib/stripe/params/tax_rate_create_params.rb +2 -2
  472. data/lib/stripe/params/tax_rate_list_params.rb +2 -2
  473. data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
  474. data/lib/stripe/params/tax_rate_update_params.rb +2 -2
  475. data/lib/stripe/params/terminal/configuration_create_params.rb +72 -46
  476. data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
  477. data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
  478. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
  479. data/lib/stripe/params/terminal/configuration_update_params.rb +72 -46
  480. data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
  481. data/lib/stripe/params/terminal/location_create_params.rb +6 -6
  482. data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
  483. data/lib/stripe/params/terminal/location_list_params.rb +1 -1
  484. data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
  485. data/lib/stripe/params/terminal/location_update_params.rb +6 -6
  486. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  487. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
  488. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +14 -14
  489. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +5 -5
  490. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +4 -4
  491. data/lib/stripe/params/terminal/reader_create_params.rb +2 -2
  492. data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
  493. data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
  494. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +5 -5
  495. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +5 -5
  496. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +4 -4
  497. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +4 -4
  498. data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
  499. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +9 -9
  500. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
  501. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
  502. data/lib/stripe/params/terminal/reader_update_params.rb +2 -2
  503. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +117 -67
  504. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +3 -3
  505. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +142 -14
  506. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +127 -29
  507. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
  508. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +92 -9
  509. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +3 -3
  510. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
  511. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +2 -2
  512. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
  513. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
  514. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
  515. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
  516. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
  517. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
  518. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
  519. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
  520. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +144 -16
  521. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +144 -16
  522. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +2 -2
  523. data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
  524. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +5 -5
  525. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
  526. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
  527. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
  528. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
  529. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
  530. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
  531. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
  532. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
  533. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  534. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
  535. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
  536. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
  537. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  538. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
  539. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
  540. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
  541. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  542. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
  543. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +4 -4
  544. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +4 -4
  545. data/lib/stripe/params/token_create_params.rb +86 -67
  546. data/lib/stripe/params/token_retrieve_params.rb +1 -1
  547. data/lib/stripe/params/topup_cancel_params.rb +1 -1
  548. data/lib/stripe/params/topup_create_params.rb +3 -3
  549. data/lib/stripe/params/topup_list_params.rb +3 -3
  550. data/lib/stripe/params/topup_retrieve_params.rb +1 -1
  551. data/lib/stripe/params/topup_update_params.rb +2 -2
  552. data/lib/stripe/params/transfer_create_params.rb +4 -4
  553. data/lib/stripe/params/transfer_list_params.rb +2 -2
  554. data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
  555. data/lib/stripe/params/transfer_reversal_create_params.rb +2 -2
  556. data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
  557. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
  558. data/lib/stripe/params/transfer_reversal_update_params.rb +2 -2
  559. data/lib/stripe/params/transfer_update_params.rb +2 -2
  560. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +2 -2
  561. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
  562. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
  563. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +2 -2
  564. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
  565. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
  566. data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
  567. data/lib/stripe/params/treasury/financial_account_create_params.rb +17 -17
  568. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
  569. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +14 -14
  570. data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
  571. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
  572. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
  573. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +14 -14
  574. data/lib/stripe/params/treasury/financial_account_update_params.rb +18 -18
  575. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
  576. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +3 -3
  577. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
  578. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
  579. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
  580. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  581. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
  582. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
  583. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +13 -13
  584. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
  585. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
  586. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
  587. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
  588. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  589. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
  590. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
  591. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +7 -7
  592. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
  593. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
  594. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
  595. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
  596. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  597. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
  598. data/lib/stripe/params/treasury/received_credit_create_params.rb +4 -4
  599. data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
  600. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
  601. data/lib/stripe/params/treasury/received_debit_create_params.rb +4 -4
  602. data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
  603. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
  604. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
  605. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
  606. data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
  607. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
  608. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  609. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
  610. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
  611. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  612. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  613. data/lib/stripe/params/v2/core/account_create_params.rb +2154 -0
  614. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  615. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  616. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  617. data/lib/stripe/params/v2/core/account_token_create_params.rb +1048 -0
  618. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  619. data/lib/stripe/params/v2/core/account_update_params.rb +2207 -0
  620. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
  621. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  622. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  623. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  624. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
  625. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  626. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
  627. data/lib/stripe/params/v2/core/event_destination_create_params.rb +8 -4
  628. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
  629. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
  630. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
  631. data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
  632. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
  633. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
  634. data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
  635. data/lib/stripe/params/v2/core/event_list_params.rb +25 -2
  636. data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
  637. data/lib/stripe/params/webhook_endpoint_create_params.rb +2 -2
  638. data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
  639. data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
  640. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
  641. data/lib/stripe/params/webhook_endpoint_update_params.rb +2 -2
  642. data/lib/stripe/params.rb +29 -0
  643. data/lib/stripe/request_params.rb +116 -0
  644. data/lib/stripe/resources/account.rb +94 -68
  645. data/lib/stripe/resources/account_link.rb +1 -1
  646. data/lib/stripe/resources/account_session.rb +45 -45
  647. data/lib/stripe/resources/apple_pay_domain.rb +1 -1
  648. data/lib/stripe/resources/application_fee.rb +2 -2
  649. data/lib/stripe/resources/application_fee_refund.rb +2 -2
  650. data/lib/stripe/resources/apps/secret.rb +3 -3
  651. data/lib/stripe/resources/balance.rb +21 -21
  652. data/lib/stripe/resources/balance_settings.rb +5 -5
  653. data/lib/stripe/resources/balance_transaction.rb +3 -3
  654. data/lib/stripe/resources/bank_account.rb +16 -16
  655. data/lib/stripe/resources/billing/alert.rb +4 -4
  656. data/lib/stripe/resources/billing/alert_triggered.rb +1 -1
  657. data/lib/stripe/resources/billing/credit_balance_summary.rb +8 -6
  658. data/lib/stripe/resources/billing/credit_balance_transaction.rb +9 -9
  659. data/lib/stripe/resources/billing/credit_grant.rb +9 -7
  660. data/lib/stripe/resources/billing/meter.rb +5 -5
  661. data/lib/stripe/resources/billing/meter_event.rb +2 -2
  662. data/lib/stripe/resources/billing/meter_event_adjustment.rb +2 -2
  663. data/lib/stripe/resources/billing/meter_event_summary.rb +1 -1
  664. data/lib/stripe/resources/billing_portal/configuration.rb +22 -18
  665. data/lib/stripe/resources/billing_portal/session.rb +20 -18
  666. data/lib/stripe/resources/capability.rb +22 -22
  667. data/lib/stripe/resources/card.rb +3 -3
  668. data/lib/stripe/resources/cash_balance.rb +5 -3
  669. data/lib/stripe/resources/charge.rb +198 -138
  670. data/lib/stripe/resources/checkout/session.rb +266 -140
  671. data/lib/stripe/resources/climate/order.rb +8 -4
  672. data/lib/stripe/resources/climate/product.rb +5 -1
  673. data/lib/stripe/resources/climate/supplier.rb +1 -1
  674. data/lib/stripe/resources/confirmation_token.rb +147 -105
  675. data/lib/stripe/resources/connect_collection_transfer.rb +1 -1
  676. data/lib/stripe/resources/country_spec.rb +3 -3
  677. data/lib/stripe/resources/coupon.rb +6 -6
  678. data/lib/stripe/resources/credit_note.rb +33 -13
  679. data/lib/stripe/resources/credit_note_line_item.rb +12 -6
  680. data/lib/stripe/resources/customer.rb +21 -17
  681. data/lib/stripe/resources/customer_balance_transaction.rb +8 -6
  682. data/lib/stripe/resources/customer_cash_balance_transaction.rb +23 -21
  683. data/lib/stripe/resources/customer_session.rb +90 -6
  684. data/lib/stripe/resources/discount.rb +5 -3
  685. data/lib/stripe/resources/dispute.rb +23 -23
  686. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -2
  687. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +1 -1
  688. data/lib/stripe/resources/entitlements/feature.rb +1 -1
  689. data/lib/stripe/resources/ephemeral_key.rb +1 -1
  690. data/lib/stripe/resources/event.rb +4 -4
  691. data/lib/stripe/resources/exchange_rate.rb +2 -2
  692. data/lib/stripe/resources/file.rb +4 -4
  693. data/lib/stripe/resources/file_link.rb +2 -2
  694. data/lib/stripe/resources/financial_connections/account.rb +37 -13
  695. data/lib/stripe/resources/financial_connections/session.rb +7 -5
  696. data/lib/stripe/resources/financial_connections/transaction.rb +2 -2
  697. data/lib/stripe/resources/forwarding/request.rb +7 -7
  698. data/lib/stripe/resources/funding_instructions.rb +35 -35
  699. data/lib/stripe/resources/identity/verification_report.rb +28 -28
  700. data/lib/stripe/resources/identity/verification_session.rb +26 -24
  701. data/lib/stripe/resources/invoice.rb +119 -85
  702. data/lib/stripe/resources/invoice_item.rb +29 -14
  703. data/lib/stripe/resources/invoice_line_item.rb +35 -20
  704. data/lib/stripe/resources/invoice_payment.rb +6 -4
  705. data/lib/stripe/resources/invoice_rendering_template.rb +2 -2
  706. data/lib/stripe/resources/issuing/authorization.rb +120 -40
  707. data/lib/stripe/resources/issuing/card.rb +69 -23
  708. data/lib/stripe/resources/issuing/cardholder.rb +28 -28
  709. data/lib/stripe/resources/issuing/dispute.rb +18 -18
  710. data/lib/stripe/resources/issuing/personalization_design.rb +5 -5
  711. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -2
  712. data/lib/stripe/resources/issuing/token.rb +8 -8
  713. data/lib/stripe/resources/issuing/transaction.rb +145 -29
  714. data/lib/stripe/resources/line_item.rb +30 -5
  715. data/lib/stripe/resources/login_link.rb +1 -1
  716. data/lib/stripe/resources/mandate.rb +77 -23
  717. data/lib/stripe/resources/payment_attempt_record.rb +2010 -0
  718. data/lib/stripe/resources/payment_intent.rb +413 -178
  719. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  720. data/lib/stripe/resources/payment_link.rb +101 -54
  721. data/lib/stripe/resources/payment_method.rb +174 -98
  722. data/lib/stripe/resources/payment_method_configuration.rb +243 -107
  723. data/lib/stripe/resources/payment_method_domain.rb +14 -14
  724. data/lib/stripe/resources/payment_record.rb +2140 -0
  725. data/lib/stripe/resources/payout.rb +12 -12
  726. data/lib/stripe/resources/person.rb +43 -43
  727. data/lib/stripe/resources/plan.rb +28 -8
  728. data/lib/stripe/resources/price.rb +54 -14
  729. data/lib/stripe/resources/product.rb +12 -12
  730. data/lib/stripe/resources/product_feature.rb +1 -1
  731. data/lib/stripe/resources/promotion_code.rb +10 -8
  732. data/lib/stripe/resources/quote.rb +39 -37
  733. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -2
  734. data/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
  735. data/lib/stripe/resources/radar/value_list.rb +4 -4
  736. data/lib/stripe/resources/radar/value_list_item.rb +2 -2
  737. data/lib/stripe/resources/refund.rb +87 -40
  738. data/lib/stripe/resources/reporting/report_run.rb +4 -4
  739. data/lib/stripe/resources/reporting/report_type.rb +4 -4
  740. data/lib/stripe/resources/reserve/hold.rb +67 -0
  741. data/lib/stripe/resources/reserve/plan.rb +78 -0
  742. data/lib/stripe/resources/reserve/release.rb +65 -0
  743. data/lib/stripe/resources/reversal.rb +4 -4
  744. data/lib/stripe/resources/review.rb +4 -4
  745. data/lib/stripe/resources/setup_attempt.rb +74 -46
  746. data/lib/stripe/resources/setup_intent.rb +163 -49
  747. data/lib/stripe/resources/shipping_rate.rb +9 -9
  748. data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -3
  749. data/lib/stripe/resources/source.rb +38 -38
  750. data/lib/stripe/resources/source_mandate_notification.rb +7 -7
  751. data/lib/stripe/resources/source_transaction.rb +6 -6
  752. data/lib/stripe/resources/subscription.rb +105 -55
  753. data/lib/stripe/resources/subscription_item.rb +8 -8
  754. data/lib/stripe/resources/subscription_schedule.rb +37 -35
  755. data/lib/stripe/resources/tax/association.rb +86 -0
  756. data/lib/stripe/resources/tax/calculation.rb +26 -26
  757. data/lib/stripe/resources/tax/calculation_line_item.rb +11 -11
  758. data/lib/stripe/resources/tax/registration.rb +176 -144
  759. data/lib/stripe/resources/tax/settings.rb +9 -9
  760. data/lib/stripe/resources/tax/transaction.rb +21 -21
  761. data/lib/stripe/resources/tax/transaction_line_item.rb +7 -7
  762. data/lib/stripe/resources/tax_id.rb +10 -6
  763. data/lib/stripe/resources/tax_rate.rb +3 -3
  764. data/lib/stripe/resources/terminal/configuration.rb +68 -36
  765. data/lib/stripe/resources/terminal/connection_token.rb +1 -1
  766. data/lib/stripe/resources/terminal/location.rb +7 -7
  767. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  768. data/lib/stripe/resources/terminal/reader.rb +64 -62
  769. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -3
  770. data/lib/stripe/resources/token.rb +5 -5
  771. data/lib/stripe/resources/topup.rb +4 -4
  772. data/lib/stripe/resources/transfer.rb +6 -6
  773. data/lib/stripe/resources/treasury/credit_reversal.rb +5 -5
  774. data/lib/stripe/resources/treasury/debit_reversal.rb +6 -6
  775. data/lib/stripe/resources/treasury/financial_account.rb +8 -8
  776. data/lib/stripe/resources/treasury/financial_account_features.rb +22 -22
  777. data/lib/stripe/resources/treasury/inbound_transfer.rb +13 -13
  778. data/lib/stripe/resources/treasury/outbound_payment.rb +18 -18
  779. data/lib/stripe/resources/treasury/outbound_transfer.rb +16 -16
  780. data/lib/stripe/resources/treasury/received_credit.rb +19 -19
  781. data/lib/stripe/resources/treasury/received_debit.rb +17 -15
  782. data/lib/stripe/resources/treasury/transaction.rb +15 -15
  783. data/lib/stripe/resources/treasury/transaction_entry.rb +14 -14
  784. data/lib/stripe/resources/v2/billing/meter_event.rb +3 -2
  785. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -1
  786. data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
  787. data/lib/stripe/resources/v2/core/account.rb +3586 -0
  788. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  789. data/lib/stripe/resources/v2/core/account_person.rb +487 -0
  790. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  791. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  792. data/lib/stripe/resources/v2/core/event.rb +6 -4
  793. data/lib/stripe/resources/v2/core/event_destination.rb +9 -5
  794. data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
  795. data/lib/stripe/resources/webhook_endpoint.rb +2 -2
  796. data/lib/stripe/resources.rb +31 -0
  797. data/lib/stripe/services/checkout/session_service.rb +5 -1
  798. data/lib/stripe/services/climate/order_service.rb +2 -0
  799. data/lib/stripe/services/credit_note_preview_lines_service.rb +2 -0
  800. data/lib/stripe/services/credit_note_service.rb +4 -0
  801. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  802. data/lib/stripe/services/customer_service.rb +1 -1
  803. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  804. data/lib/stripe/services/invoice_item_service.rb +4 -0
  805. data/lib/stripe/services/invoice_line_item_service.rb +2 -0
  806. data/lib/stripe/services/invoice_service.rb +10 -4
  807. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  808. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  809. data/lib/stripe/services/payment_intent_service.rb +8 -1
  810. data/lib/stripe/services/payment_link_service.rb +2 -0
  811. data/lib/stripe/services/payment_method_service.rb +1 -1
  812. data/lib/stripe/services/payment_record_service.rb +101 -0
  813. data/lib/stripe/services/payout_service.rb +2 -2
  814. data/lib/stripe/services/plan_service.rb +2 -0
  815. data/lib/stripe/services/price_service.rb +2 -0
  816. data/lib/stripe/services/product_service.rb +2 -0
  817. data/lib/stripe/services/quote_service.rb +4 -0
  818. data/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
  819. data/lib/stripe/services/radar_service.rb +2 -1
  820. data/lib/stripe/services/subscription_item_service.rb +4 -0
  821. data/lib/stripe/services/subscription_schedule_service.rb +4 -0
  822. data/lib/stripe/services/subscription_service.rb +6 -2
  823. data/lib/stripe/services/tax/association_service.rb +19 -0
  824. data/lib/stripe/services/tax_service.rb +2 -1
  825. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  826. data/lib/stripe/services/terminal/reader_service.rb +8 -8
  827. data/lib/stripe/services/terminal_service.rb +2 -1
  828. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +12 -0
  829. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +8 -0
  830. data/lib/stripe/services/v1_services.rb +3 -1
  831. data/lib/stripe/services/v2/core/account_link_service.rb +23 -0
  832. data/lib/stripe/services/v2/core/account_service.rb +87 -0
  833. data/lib/stripe/services/v2/core/account_token_service.rb +38 -0
  834. data/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
  835. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +42 -0
  836. data/lib/stripe/services/v2/core_service.rb +4 -1
  837. data/lib/stripe/services.rb +11 -0
  838. data/lib/stripe/stripe_client.rb +6 -0
  839. data/lib/stripe/stripe_object.rb +39 -1
  840. data/lib/stripe/util.rb +12 -14
  841. data/lib/stripe/version.rb +1 -1
  842. data/lib/stripe/webhook.rb +7 -0
  843. data/lib/stripe.rb +1 -1
  844. data/rbi/stripe.rbi +64414 -32011
  845. metadata +103 -6
  846. data/lib/stripe/resources/alipay_account.rb +0 -34
  847. data/lib/stripe/resources/recipient_transfer.rb +0 -7
@@ -2,11 +2,195 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- class PaymentIntentCreateParams < Stripe::RequestParams
6
- class AutomaticPaymentMethods < Stripe::RequestParams
5
+ class PaymentIntentCreateParams < ::Stripe::RequestParams
6
+ class AmountDetails < ::Stripe::RequestParams
7
+ class LineItem < ::Stripe::RequestParams
8
+ class PaymentMethodOptions < ::Stripe::RequestParams
9
+ class Card < ::Stripe::RequestParams
10
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
11
+ attr_accessor :commodity_code
12
+
13
+ def initialize(commodity_code: nil)
14
+ @commodity_code = commodity_code
15
+ end
16
+ end
17
+
18
+ class CardPresent < ::Stripe::RequestParams
19
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
20
+ attr_accessor :commodity_code
21
+
22
+ def initialize(commodity_code: nil)
23
+ @commodity_code = commodity_code
24
+ end
25
+ end
26
+
27
+ class Klarna < ::Stripe::RequestParams
28
+ # URL to an image for the product. Max length, 4096 characters.
29
+ attr_accessor :image_url
30
+ # URL to the product page. Max length, 4096 characters.
31
+ attr_accessor :product_url
32
+ # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed.
33
+ attr_accessor :reference
34
+ # Reference for the subscription this line item is for.
35
+ attr_accessor :subscription_reference
36
+
37
+ def initialize(
38
+ image_url: nil,
39
+ product_url: nil,
40
+ reference: nil,
41
+ subscription_reference: nil
42
+ )
43
+ @image_url = image_url
44
+ @product_url = product_url
45
+ @reference = reference
46
+ @subscription_reference = subscription_reference
47
+ end
48
+ end
49
+
50
+ class Paypal < ::Stripe::RequestParams
51
+ # Type of the line item.
52
+ attr_accessor :category
53
+ # Description of the line item.
54
+ attr_accessor :description
55
+ # The Stripe account ID of the connected account that sells the item.
56
+ attr_accessor :sold_by
57
+
58
+ def initialize(category: nil, description: nil, sold_by: nil)
59
+ @category = category
60
+ @description = description
61
+ @sold_by = sold_by
62
+ end
63
+ end
64
+ # This sub-hash contains line item details that are specific to the `card` payment method.
65
+ attr_accessor :card
66
+ # This sub-hash contains line item details that are specific to the `card_present` payment method.
67
+ attr_accessor :card_present
68
+ # This sub-hash contains line item details that are specific to the `klarna` payment method.
69
+ attr_accessor :klarna
70
+ # This sub-hash contains line item details that are specific to the `paypal` payment method.
71
+ attr_accessor :paypal
72
+
73
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
74
+ @card = card
75
+ @card_present = card_present
76
+ @klarna = klarna
77
+ @paypal = paypal
78
+ end
79
+ end
80
+
81
+ class Tax < ::Stripe::RequestParams
82
+ # The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
83
+ #
84
+ # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
85
+ attr_accessor :total_tax_amount
86
+
87
+ def initialize(total_tax_amount: nil)
88
+ @total_tax_amount = total_tax_amount
89
+ end
90
+ end
91
+ # The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
92
+ #
93
+ # This field is mutually exclusive with the `amount_details[discount_amount]` field.
94
+ attr_accessor :discount_amount
95
+ # Payment method-specific information for line items.
96
+ attr_accessor :payment_method_options
97
+ # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
98
+ attr_accessor :product_code
99
+ # The product name of the line item. Required for L3 rates. At most 1024 characters long.
100
+ #
101
+ # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters.
102
+ attr_accessor :product_name
103
+ # The quantity of items. Required for L3 rates. An integer greater than 0.
104
+ attr_accessor :quantity
105
+ # Contains information about the tax on the item.
106
+ attr_accessor :tax
107
+ # The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
108
+ attr_accessor :unit_cost
109
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
110
+ attr_accessor :unit_of_measure
111
+
112
+ def initialize(
113
+ discount_amount: nil,
114
+ payment_method_options: nil,
115
+ product_code: nil,
116
+ product_name: nil,
117
+ quantity: nil,
118
+ tax: nil,
119
+ unit_cost: nil,
120
+ unit_of_measure: nil
121
+ )
122
+ @discount_amount = discount_amount
123
+ @payment_method_options = payment_method_options
124
+ @product_code = product_code
125
+ @product_name = product_name
126
+ @quantity = quantity
127
+ @tax = tax
128
+ @unit_cost = unit_cost
129
+ @unit_of_measure = unit_of_measure
130
+ end
131
+ end
132
+
133
+ class Shipping < ::Stripe::RequestParams
134
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
+ attr_accessor :amount
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
137
+ attr_accessor :from_postal_code
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
139
+ attr_accessor :to_postal_code
140
+
141
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
142
+ @amount = amount
143
+ @from_postal_code = from_postal_code
144
+ @to_postal_code = to_postal_code
145
+ end
146
+ end
147
+
148
+ class Tax < ::Stripe::RequestParams
149
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
150
+ #
151
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
152
+ attr_accessor :total_tax_amount
153
+
154
+ def initialize(total_tax_amount: nil)
155
+ @total_tax_amount = total_tax_amount
156
+ end
157
+ end
158
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
159
+ #
160
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
+ attr_accessor :discount_amount
162
+ # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
163
+ #
164
+ # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
165
+ #
166
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
167
+ attr_accessor :enforce_arithmetic_validation
168
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
169
+ attr_accessor :line_items
170
+ # Contains information about the shipping portion of the amount.
171
+ attr_accessor :shipping
172
+ # Contains information about the tax portion of the amount.
173
+ attr_accessor :tax
174
+
175
+ def initialize(
176
+ discount_amount: nil,
177
+ enforce_arithmetic_validation: nil,
178
+ line_items: nil,
179
+ shipping: nil,
180
+ tax: nil
181
+ )
182
+ @discount_amount = discount_amount
183
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
184
+ @line_items = line_items
185
+ @shipping = shipping
186
+ @tax = tax
187
+ end
188
+ end
189
+
190
+ class AutomaticPaymentMethods < ::Stripe::RequestParams
7
191
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
8
192
  #
9
- # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
193
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
10
194
  attr_accessor :allow_redirects
11
195
  # Whether this feature is enabled.
12
196
  attr_accessor :enabled
@@ -17,11 +201,36 @@ module Stripe
17
201
  end
18
202
  end
19
203
 
20
- class MandateData < Stripe::RequestParams
21
- class CustomerAcceptance < Stripe::RequestParams
22
- class Offline < Stripe::RequestParams; end
204
+ class Hooks < ::Stripe::RequestParams
205
+ class Inputs < ::Stripe::RequestParams
206
+ class Tax < ::Stripe::RequestParams
207
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
208
+ attr_accessor :calculation
209
+
210
+ def initialize(calculation: nil)
211
+ @calculation = calculation
212
+ end
213
+ end
214
+ # Tax arguments for automations
215
+ attr_accessor :tax
216
+
217
+ def initialize(tax: nil)
218
+ @tax = tax
219
+ end
220
+ end
221
+ # Arguments passed in automations
222
+ attr_accessor :inputs
223
+
224
+ def initialize(inputs: nil)
225
+ @inputs = inputs
226
+ end
227
+ end
228
+
229
+ class MandateData < ::Stripe::RequestParams
230
+ class CustomerAcceptance < ::Stripe::RequestParams
231
+ class Offline < ::Stripe::RequestParams; end
23
232
 
24
- class Online < Stripe::RequestParams
233
+ class Online < ::Stripe::RequestParams
25
234
  # The IP address from which the Mandate was accepted by the customer.
26
235
  attr_accessor :ip_address
27
236
  # The user agent of the browser from which the Mandate was accepted by the customer.
@@ -56,8 +265,24 @@ module Stripe
56
265
  end
57
266
  end
58
267
 
59
- class PaymentMethodData < Stripe::RequestParams
60
- class AcssDebit < Stripe::RequestParams
268
+ class PaymentDetails < ::Stripe::RequestParams
269
+ # A unique value to identify the customer. This field is available only for card payments.
270
+ #
271
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
272
+ attr_accessor :customer_reference
273
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
274
+ #
275
+ # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
276
+ attr_accessor :order_reference
277
+
278
+ def initialize(customer_reference: nil, order_reference: nil)
279
+ @customer_reference = customer_reference
280
+ @order_reference = order_reference
281
+ end
282
+ end
283
+
284
+ class PaymentMethodData < ::Stripe::RequestParams
285
+ class AcssDebit < ::Stripe::RequestParams
61
286
  # Customer's bank account number.
62
287
  attr_accessor :account_number
63
288
  # Institution number of the customer's bank.
@@ -72,13 +297,13 @@ module Stripe
72
297
  end
73
298
  end
74
299
 
75
- class Affirm < Stripe::RequestParams; end
76
- class AfterpayClearpay < Stripe::RequestParams; end
77
- class Alipay < Stripe::RequestParams; end
78
- class Alma < Stripe::RequestParams; end
79
- class AmazonPay < Stripe::RequestParams; end
300
+ class Affirm < ::Stripe::RequestParams; end
301
+ class AfterpayClearpay < ::Stripe::RequestParams; end
302
+ class Alipay < ::Stripe::RequestParams; end
303
+ class Alma < ::Stripe::RequestParams; end
304
+ class AmazonPay < ::Stripe::RequestParams; end
80
305
 
81
- class AuBecsDebit < Stripe::RequestParams
306
+ class AuBecsDebit < ::Stripe::RequestParams
82
307
  # The account number for the bank account.
83
308
  attr_accessor :account_number
84
309
  # Bank-State-Branch number of the bank account.
@@ -90,7 +315,7 @@ module Stripe
90
315
  end
91
316
  end
92
317
 
93
- class BacsDebit < Stripe::RequestParams
318
+ class BacsDebit < ::Stripe::RequestParams
94
319
  # Account number of the bank account that the funds will be debited from.
95
320
  attr_accessor :account_number
96
321
  # Sort code of the bank account. (e.g., `10-20-30`)
@@ -102,11 +327,11 @@ module Stripe
102
327
  end
103
328
  end
104
329
 
105
- class Bancontact < Stripe::RequestParams; end
106
- class Billie < Stripe::RequestParams; end
330
+ class Bancontact < ::Stripe::RequestParams; end
331
+ class Billie < ::Stripe::RequestParams; end
107
332
 
108
- class BillingDetails < Stripe::RequestParams
109
- class Address < Stripe::RequestParams
333
+ class BillingDetails < ::Stripe::RequestParams
334
+ class Address < ::Stripe::RequestParams
110
335
  # City, district, suburb, town, or village.
111
336
  attr_accessor :city
112
337
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -117,7 +342,7 @@ module Stripe
117
342
  attr_accessor :line2
118
343
  # ZIP or postal code.
119
344
  attr_accessor :postal_code
120
- # State, county, province, or region.
345
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
121
346
  attr_accessor :state
122
347
 
123
348
  def initialize(
@@ -156,9 +381,9 @@ module Stripe
156
381
  end
157
382
  end
158
383
 
159
- class Blik < Stripe::RequestParams; end
384
+ class Blik < ::Stripe::RequestParams; end
160
385
 
161
- class Boleto < Stripe::RequestParams
386
+ class Boleto < ::Stripe::RequestParams
162
387
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
163
388
  attr_accessor :tax_id
164
389
 
@@ -167,11 +392,11 @@ module Stripe
167
392
  end
168
393
  end
169
394
 
170
- class Cashapp < Stripe::RequestParams; end
171
- class Crypto < Stripe::RequestParams; end
172
- class CustomerBalance < Stripe::RequestParams; end
395
+ class Cashapp < ::Stripe::RequestParams; end
396
+ class Crypto < ::Stripe::RequestParams; end
397
+ class CustomerBalance < ::Stripe::RequestParams; end
173
398
 
174
- class Eps < Stripe::RequestParams
399
+ class Eps < ::Stripe::RequestParams
175
400
  # The customer's bank.
176
401
  attr_accessor :bank
177
402
 
@@ -180,7 +405,7 @@ module Stripe
180
405
  end
181
406
  end
182
407
 
183
- class Fpx < Stripe::RequestParams
408
+ class Fpx < ::Stripe::RequestParams
184
409
  # Account holder type for FPX transaction
185
410
  attr_accessor :account_holder_type
186
411
  # The customer's bank.
@@ -192,10 +417,10 @@ module Stripe
192
417
  end
193
418
  end
194
419
 
195
- class Giropay < Stripe::RequestParams; end
196
- class Grabpay < Stripe::RequestParams; end
420
+ class Giropay < ::Stripe::RequestParams; end
421
+ class Grabpay < ::Stripe::RequestParams; end
197
422
 
198
- class Ideal < Stripe::RequestParams
423
+ class Ideal < ::Stripe::RequestParams
199
424
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
200
425
  attr_accessor :bank
201
426
 
@@ -204,11 +429,11 @@ module Stripe
204
429
  end
205
430
  end
206
431
 
207
- class InteracPresent < Stripe::RequestParams; end
208
- class KakaoPay < Stripe::RequestParams; end
432
+ class InteracPresent < ::Stripe::RequestParams; end
433
+ class KakaoPay < ::Stripe::RequestParams; end
209
434
 
210
- class Klarna < Stripe::RequestParams
211
- class Dob < Stripe::RequestParams
435
+ class Klarna < ::Stripe::RequestParams
436
+ class Dob < ::Stripe::RequestParams
212
437
  # The day of birth, between 1 and 31.
213
438
  attr_accessor :day
214
439
  # The month of birth, between 1 and 12.
@@ -230,14 +455,14 @@ module Stripe
230
455
  end
231
456
  end
232
457
 
233
- class Konbini < Stripe::RequestParams; end
234
- class KrCard < Stripe::RequestParams; end
235
- class Link < Stripe::RequestParams; end
236
- class MbWay < Stripe::RequestParams; end
237
- class Mobilepay < Stripe::RequestParams; end
238
- class Multibanco < Stripe::RequestParams; end
458
+ class Konbini < ::Stripe::RequestParams; end
459
+ class KrCard < ::Stripe::RequestParams; end
460
+ class Link < ::Stripe::RequestParams; end
461
+ class MbWay < ::Stripe::RequestParams; end
462
+ class Mobilepay < ::Stripe::RequestParams; end
463
+ class Multibanco < ::Stripe::RequestParams; end
239
464
 
240
- class NaverPay < Stripe::RequestParams
465
+ class NaverPay < ::Stripe::RequestParams
241
466
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
242
467
  attr_accessor :funding
243
468
 
@@ -246,7 +471,7 @@ module Stripe
246
471
  end
247
472
  end
248
473
 
249
- class NzBankAccount < Stripe::RequestParams
474
+ class NzBankAccount < ::Stripe::RequestParams
250
475
  # 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.
251
476
  attr_accessor :account_holder_name
252
477
  # The account number for the bank account.
@@ -277,9 +502,9 @@ module Stripe
277
502
  end
278
503
  end
279
504
 
280
- class Oxxo < Stripe::RequestParams; end
505
+ class Oxxo < ::Stripe::RequestParams; end
281
506
 
282
- class P24 < Stripe::RequestParams
507
+ class P24 < ::Stripe::RequestParams
283
508
  # The customer's bank.
284
509
  attr_accessor :bank
285
510
 
@@ -288,15 +513,31 @@ module Stripe
288
513
  end
289
514
  end
290
515
 
291
- class PayByBank < Stripe::RequestParams; end
292
- class Payco < Stripe::RequestParams; end
293
- class Paynow < Stripe::RequestParams; end
294
- class Paypal < Stripe::RequestParams; end
295
- class Pix < Stripe::RequestParams; end
296
- class Promptpay < Stripe::RequestParams; end
516
+ class PayByBank < ::Stripe::RequestParams; end
517
+ class Payco < ::Stripe::RequestParams; end
518
+ class Paynow < ::Stripe::RequestParams; end
519
+ class Paypal < ::Stripe::RequestParams; end
297
520
 
298
- class RadarOptions < Stripe::RequestParams
299
- # 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.
521
+ class Payto < ::Stripe::RequestParams
522
+ # The account number for the bank account.
523
+ attr_accessor :account_number
524
+ # Bank-State-Branch number of the bank account.
525
+ attr_accessor :bsb_number
526
+ # The PayID alias for the bank account.
527
+ attr_accessor :pay_id
528
+
529
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
530
+ @account_number = account_number
531
+ @bsb_number = bsb_number
532
+ @pay_id = pay_id
533
+ end
534
+ end
535
+
536
+ class Pix < ::Stripe::RequestParams; end
537
+ class Promptpay < ::Stripe::RequestParams; end
538
+
539
+ class RadarOptions < ::Stripe::RequestParams
540
+ # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
300
541
  attr_accessor :session
301
542
 
302
543
  def initialize(session: nil)
@@ -304,11 +545,11 @@ module Stripe
304
545
  end
305
546
  end
306
547
 
307
- class RevolutPay < Stripe::RequestParams; end
308
- class SamsungPay < Stripe::RequestParams; end
309
- class Satispay < Stripe::RequestParams; end
548
+ class RevolutPay < ::Stripe::RequestParams; end
549
+ class SamsungPay < ::Stripe::RequestParams; end
550
+ class Satispay < ::Stripe::RequestParams; end
310
551
 
311
- class SepaDebit < Stripe::RequestParams
552
+ class SepaDebit < ::Stripe::RequestParams
312
553
  # IBAN of the bank account.
313
554
  attr_accessor :iban
314
555
 
@@ -317,7 +558,7 @@ module Stripe
317
558
  end
318
559
  end
319
560
 
320
- class Sofort < Stripe::RequestParams
561
+ class Sofort < ::Stripe::RequestParams
321
562
  # Two-letter ISO code representing the country the bank account is located in.
322
563
  attr_accessor :country
323
564
 
@@ -326,10 +567,36 @@ module Stripe
326
567
  end
327
568
  end
328
569
 
329
- class Swish < Stripe::RequestParams; end
330
- class Twint < Stripe::RequestParams; end
570
+ class Swish < ::Stripe::RequestParams; end
571
+ class Twint < ::Stripe::RequestParams; end
572
+
573
+ class Upi < ::Stripe::RequestParams
574
+ class MandateOptions < ::Stripe::RequestParams
575
+ # Amount to be charged for future payments.
576
+ attr_accessor :amount
577
+ # 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.
578
+ attr_accessor :amount_type
579
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
580
+ attr_accessor :description
581
+ # End date of the mandate or subscription.
582
+ attr_accessor :end_date
583
+
584
+ def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
585
+ @amount = amount
586
+ @amount_type = amount_type
587
+ @description = description
588
+ @end_date = end_date
589
+ end
590
+ end
591
+ # Configuration options for setting up an eMandate
592
+ attr_accessor :mandate_options
593
+
594
+ def initialize(mandate_options: nil)
595
+ @mandate_options = mandate_options
596
+ end
597
+ end
331
598
 
332
- class UsBankAccount < Stripe::RequestParams
599
+ class UsBankAccount < ::Stripe::RequestParams
333
600
  # Account holder type: individual or company.
334
601
  attr_accessor :account_holder_type
335
602
  # Account number of the bank account.
@@ -356,8 +623,8 @@ module Stripe
356
623
  end
357
624
  end
358
625
 
359
- class WechatPay < Stripe::RequestParams; end
360
- class Zip < Stripe::RequestParams; end
626
+ class WechatPay < ::Stripe::RequestParams; end
627
+ class Zip < ::Stripe::RequestParams; end
361
628
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
362
629
  attr_accessor :acss_debit
363
630
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -416,7 +683,7 @@ module Stripe
416
683
  attr_accessor :link
417
684
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
418
685
  attr_accessor :mb_way
419
- # 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`.
686
+ # Set of [key-value pairs](https://docs.stripe.com/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`.
420
687
  attr_accessor :metadata
421
688
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
422
689
  attr_accessor :mobilepay
@@ -438,11 +705,13 @@ module Stripe
438
705
  attr_accessor :paynow
439
706
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
440
707
  attr_accessor :paypal
708
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
709
+ attr_accessor :payto
441
710
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
442
711
  attr_accessor :pix
443
712
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
444
713
  attr_accessor :promptpay
445
- # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
714
+ # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
446
715
  attr_accessor :radar_options
447
716
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
448
717
  attr_accessor :revolut_pay
@@ -460,6 +729,8 @@ module Stripe
460
729
  attr_accessor :twint
461
730
  # 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.
462
731
  attr_accessor :type
732
+ # If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
733
+ attr_accessor :upi
463
734
  # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
464
735
  attr_accessor :us_bank_account
465
736
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
@@ -508,6 +779,7 @@ module Stripe
508
779
  payco: nil,
509
780
  paynow: nil,
510
781
  paypal: nil,
782
+ payto: nil,
511
783
  pix: nil,
512
784
  promptpay: nil,
513
785
  radar_options: nil,
@@ -519,6 +791,7 @@ module Stripe
519
791
  swish: nil,
520
792
  twint: nil,
521
793
  type: nil,
794
+ upi: nil,
522
795
  us_bank_account: nil,
523
796
  wechat_pay: nil,
524
797
  zip: nil
@@ -563,6 +836,7 @@ module Stripe
563
836
  @payco = payco
564
837
  @paynow = paynow
565
838
  @paypal = paypal
839
+ @payto = payto
566
840
  @pix = pix
567
841
  @promptpay = promptpay
568
842
  @radar_options = radar_options
@@ -574,15 +848,16 @@ module Stripe
574
848
  @swish = swish
575
849
  @twint = twint
576
850
  @type = type
851
+ @upi = upi
577
852
  @us_bank_account = us_bank_account
578
853
  @wechat_pay = wechat_pay
579
854
  @zip = zip
580
855
  end
581
856
  end
582
857
 
583
- class PaymentMethodOptions < Stripe::RequestParams
584
- class AcssDebit < Stripe::RequestParams
585
- class MandateOptions < Stripe::RequestParams
858
+ class PaymentMethodOptions < ::Stripe::RequestParams
859
+ class AcssDebit < ::Stripe::RequestParams
860
+ class MandateOptions < ::Stripe::RequestParams
586
861
  # A URL for custom mandate text to render during confirmation step.
587
862
  # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
588
863
  # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
@@ -620,7 +895,7 @@ module Stripe
620
895
  attr_accessor :setup_future_usage
621
896
  # 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.
622
897
  attr_accessor :target_date
623
- # Bank account verification method.
898
+ # Bank account verification method. The default value is `automatic`.
624
899
  attr_accessor :verification_method
625
900
 
626
901
  def initialize(
@@ -636,7 +911,7 @@ module Stripe
636
911
  end
637
912
  end
638
913
 
639
- class Affirm < Stripe::RequestParams
914
+ class Affirm < ::Stripe::RequestParams
640
915
  # Controls when the funds are captured from the customer's account.
641
916
  #
642
917
  # 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.
@@ -663,7 +938,7 @@ module Stripe
663
938
  end
664
939
  end
665
940
 
666
- class AfterpayClearpay < Stripe::RequestParams
941
+ class AfterpayClearpay < ::Stripe::RequestParams
667
942
  # Controls when the funds are captured from the customer's account.
668
943
  #
669
944
  # 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.
@@ -691,7 +966,7 @@ module Stripe
691
966
  end
692
967
  end
693
968
 
694
- class Alipay < Stripe::RequestParams
969
+ class Alipay < ::Stripe::RequestParams
695
970
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
696
971
  #
697
972
  # 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.
@@ -708,7 +983,7 @@ module Stripe
708
983
  end
709
984
  end
710
985
 
711
- class Alma < Stripe::RequestParams
986
+ class Alma < ::Stripe::RequestParams
712
987
  # Controls when the funds are captured from the customer's account.
713
988
  #
714
989
  # 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.
@@ -721,7 +996,7 @@ module Stripe
721
996
  end
722
997
  end
723
998
 
724
- class AmazonPay < Stripe::RequestParams
999
+ class AmazonPay < ::Stripe::RequestParams
725
1000
  # Controls when the funds are captured from the customer's account.
726
1001
  #
727
1002
  # 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.
@@ -743,7 +1018,7 @@ module Stripe
743
1018
  end
744
1019
  end
745
1020
 
746
- class AuBecsDebit < Stripe::RequestParams
1021
+ class AuBecsDebit < ::Stripe::RequestParams
747
1022
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
748
1023
  #
749
1024
  # 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.
@@ -763,8 +1038,8 @@ module Stripe
763
1038
  end
764
1039
  end
765
1040
 
766
- class BacsDebit < Stripe::RequestParams
767
- class MandateOptions < Stripe::RequestParams
1041
+ class BacsDebit < ::Stripe::RequestParams
1042
+ class MandateOptions < ::Stripe::RequestParams
768
1043
  # 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'.
769
1044
  attr_accessor :reference_prefix
770
1045
 
@@ -794,7 +1069,7 @@ module Stripe
794
1069
  end
795
1070
  end
796
1071
 
797
- class Bancontact < Stripe::RequestParams
1072
+ class Bancontact < ::Stripe::RequestParams
798
1073
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
799
1074
  attr_accessor :preferred_language
800
1075
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -814,7 +1089,7 @@ module Stripe
814
1089
  end
815
1090
  end
816
1091
 
817
- class Billie < Stripe::RequestParams
1092
+ class Billie < ::Stripe::RequestParams
818
1093
  # Controls when the funds are captured from the customer's account.
819
1094
  #
820
1095
  # 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.
@@ -827,7 +1102,7 @@ module Stripe
827
1102
  end
828
1103
  end
829
1104
 
830
- class Blik < Stripe::RequestParams
1105
+ class Blik < ::Stripe::RequestParams
831
1106
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
832
1107
  attr_accessor :code
833
1108
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -847,7 +1122,7 @@ module Stripe
847
1122
  end
848
1123
  end
849
1124
 
850
- class Boleto < Stripe::RequestParams
1125
+ class Boleto < ::Stripe::RequestParams
851
1126
  # 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.
852
1127
  attr_accessor :expires_after_days
853
1128
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -867,9 +1142,9 @@ module Stripe
867
1142
  end
868
1143
  end
869
1144
 
870
- class Card < Stripe::RequestParams
871
- class Installments < Stripe::RequestParams
872
- class Plan < Stripe::RequestParams
1145
+ class Card < ::Stripe::RequestParams
1146
+ class Installments < ::Stripe::RequestParams
1147
+ class Plan < ::Stripe::RequestParams
873
1148
  # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
874
1149
  attr_accessor :count
875
1150
  # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
@@ -898,8 +1173,8 @@ module Stripe
898
1173
  end
899
1174
  end
900
1175
 
901
- class MandateOptions < Stripe::RequestParams
902
- # Amount to be charged for future payments.
1176
+ class MandateOptions < ::Stripe::RequestParams
1177
+ # Amount to be charged for future payments, specified in the presentment currency.
903
1178
  attr_accessor :amount
904
1179
  # 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.
905
1180
  attr_accessor :amount_type
@@ -941,9 +1216,9 @@ module Stripe
941
1216
  end
942
1217
  end
943
1218
 
944
- class ThreeDSecure < Stripe::RequestParams
945
- class NetworkOptions < Stripe::RequestParams
946
- class CartesBancaires < Stripe::RequestParams
1219
+ class ThreeDSecure < ::Stripe::RequestParams
1220
+ class NetworkOptions < ::Stripe::RequestParams
1221
+ class CartesBancaires < ::Stripe::RequestParams
947
1222
  # The cryptogram calculation algorithm used by the card Issuer's ACS
948
1223
  # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
949
1224
  # messageExtension: CB-AVALGO
@@ -1025,7 +1300,7 @@ module Stripe
1025
1300
  attr_accessor :cvc_token
1026
1301
  # Installment configuration for payments attempted on this PaymentIntent.
1027
1302
  #
1028
- # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1303
+ # For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
1029
1304
  attr_accessor :installments
1030
1305
  # Configuration options for setting up an eMandate for cards issued in India.
1031
1306
  attr_accessor :mandate_options
@@ -1035,15 +1310,15 @@ module Stripe
1035
1310
  attr_accessor :moto
1036
1311
  # 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.
1037
1312
  attr_accessor :network
1038
- # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1313
+ # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1039
1314
  attr_accessor :request_extended_authorization
1040
- # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
1315
+ # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
1041
1316
  attr_accessor :request_incremental_authorization
1042
- # Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent.
1317
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
1043
1318
  attr_accessor :request_multicapture
1044
- # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1319
+ # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1045
1320
  attr_accessor :request_overcapture
1046
- # 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.
1321
+ # 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://docs.stripe.com/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://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1047
1322
  attr_accessor :request_three_d_secure
1048
1323
  # 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).
1049
1324
  attr_accessor :require_cvc_recollection
@@ -1102,8 +1377,8 @@ module Stripe
1102
1377
  end
1103
1378
  end
1104
1379
 
1105
- class CardPresent < Stripe::RequestParams
1106
- class Routing < Stripe::RequestParams
1380
+ class CardPresent < ::Stripe::RequestParams
1381
+ class Routing < ::Stripe::RequestParams
1107
1382
  # Routing requested priority
1108
1383
  attr_accessor :requested_priority
1109
1384
 
@@ -1111,25 +1386,33 @@ module Stripe
1111
1386
  @requested_priority = requested_priority
1112
1387
  end
1113
1388
  end
1114
- # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
1389
+ # Controls when the funds are captured from the customer's account.
1390
+ #
1391
+ # 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.
1392
+ #
1393
+ # 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.
1394
+ attr_accessor :capture_method
1395
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
1115
1396
  attr_accessor :request_extended_authorization
1116
- # 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.
1397
+ # Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
1117
1398
  attr_accessor :request_incremental_authorization_support
1118
1399
  # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
1119
1400
  attr_accessor :routing
1120
1401
 
1121
1402
  def initialize(
1403
+ capture_method: nil,
1122
1404
  request_extended_authorization: nil,
1123
1405
  request_incremental_authorization_support: nil,
1124
1406
  routing: nil
1125
1407
  )
1408
+ @capture_method = capture_method
1126
1409
  @request_extended_authorization = request_extended_authorization
1127
1410
  @request_incremental_authorization_support = request_incremental_authorization_support
1128
1411
  @routing = routing
1129
1412
  end
1130
1413
  end
1131
1414
 
1132
- class Cashapp < Stripe::RequestParams
1415
+ class Cashapp < ::Stripe::RequestParams
1133
1416
  # Controls when the funds are captured from the customer's account.
1134
1417
  #
1135
1418
  # 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.
@@ -1153,7 +1436,7 @@ module Stripe
1153
1436
  end
1154
1437
  end
1155
1438
 
1156
- class Crypto < Stripe::RequestParams
1439
+ class Crypto < ::Stripe::RequestParams
1157
1440
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1158
1441
  #
1159
1442
  # 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.
@@ -1170,10 +1453,10 @@ module Stripe
1170
1453
  end
1171
1454
  end
1172
1455
 
1173
- class CustomerBalance < Stripe::RequestParams
1174
- class BankTransfer < Stripe::RequestParams
1175
- class EuBankTransfer < Stripe::RequestParams
1176
- # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1456
+ class CustomerBalance < ::Stripe::RequestParams
1457
+ class BankTransfer < ::Stripe::RequestParams
1458
+ class EuBankTransfer < ::Stripe::RequestParams
1459
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
1177
1460
  attr_accessor :country
1178
1461
 
1179
1462
  def initialize(country: nil)
@@ -1217,7 +1500,7 @@ module Stripe
1217
1500
  end
1218
1501
  end
1219
1502
 
1220
- class Eps < Stripe::RequestParams
1503
+ class Eps < ::Stripe::RequestParams
1221
1504
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1222
1505
  #
1223
1506
  # 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.
@@ -1234,7 +1517,7 @@ module Stripe
1234
1517
  end
1235
1518
  end
1236
1519
 
1237
- class Fpx < Stripe::RequestParams
1520
+ class Fpx < ::Stripe::RequestParams
1238
1521
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1239
1522
  #
1240
1523
  # 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.
@@ -1251,7 +1534,7 @@ module Stripe
1251
1534
  end
1252
1535
  end
1253
1536
 
1254
- class Giropay < Stripe::RequestParams
1537
+ class Giropay < ::Stripe::RequestParams
1255
1538
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1256
1539
  #
1257
1540
  # 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.
@@ -1268,7 +1551,7 @@ module Stripe
1268
1551
  end
1269
1552
  end
1270
1553
 
1271
- class Grabpay < Stripe::RequestParams
1554
+ class Grabpay < ::Stripe::RequestParams
1272
1555
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1273
1556
  #
1274
1557
  # 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.
@@ -1285,7 +1568,7 @@ module Stripe
1285
1568
  end
1286
1569
  end
1287
1570
 
1288
- class Ideal < Stripe::RequestParams
1571
+ class Ideal < ::Stripe::RequestParams
1289
1572
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1290
1573
  #
1291
1574
  # 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.
@@ -1302,9 +1585,9 @@ module Stripe
1302
1585
  end
1303
1586
  end
1304
1587
 
1305
- class InteracPresent < Stripe::RequestParams; end
1588
+ class InteracPresent < ::Stripe::RequestParams; end
1306
1589
 
1307
- class KakaoPay < Stripe::RequestParams
1590
+ class KakaoPay < ::Stripe::RequestParams
1308
1591
  # Controls when the funds are captured from the customer's account.
1309
1592
  #
1310
1593
  # 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.
@@ -1326,8 +1609,8 @@ module Stripe
1326
1609
  end
1327
1610
  end
1328
1611
 
1329
- class Klarna < Stripe::RequestParams
1330
- class OnDemand < Stripe::RequestParams
1612
+ class Klarna < ::Stripe::RequestParams
1613
+ class OnDemand < ::Stripe::RequestParams
1331
1614
  # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1332
1615
  attr_accessor :average_amount
1333
1616
  # 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.
@@ -1354,8 +1637,8 @@ module Stripe
1354
1637
  end
1355
1638
  end
1356
1639
 
1357
- class Subscription < Stripe::RequestParams
1358
- class NextBilling < Stripe::RequestParams
1640
+ class Subscription < ::Stripe::RequestParams
1641
+ class NextBilling < ::Stripe::RequestParams
1359
1642
  # The amount of the next charge for the subscription.
1360
1643
  attr_accessor :amount
1361
1644
  # The date of the next charge for the subscription in YYYY-MM-DD format.
@@ -1429,7 +1712,7 @@ module Stripe
1429
1712
  end
1430
1713
  end
1431
1714
 
1432
- class Konbini < Stripe::RequestParams
1715
+ class Konbini < ::Stripe::RequestParams
1433
1716
  # 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.
1434
1717
  attr_accessor :confirmation_number
1435
1718
  # 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.
@@ -1464,7 +1747,7 @@ module Stripe
1464
1747
  end
1465
1748
  end
1466
1749
 
1467
- class KrCard < Stripe::RequestParams
1750
+ class KrCard < ::Stripe::RequestParams
1468
1751
  # Controls when the funds are captured from the customer's account.
1469
1752
  #
1470
1753
  # 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.
@@ -1486,7 +1769,7 @@ module Stripe
1486
1769
  end
1487
1770
  end
1488
1771
 
1489
- class Link < Stripe::RequestParams
1772
+ class Link < ::Stripe::RequestParams
1490
1773
  # Controls when the funds are captured from the customer's account.
1491
1774
  #
1492
1775
  # 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.
@@ -1513,7 +1796,7 @@ module Stripe
1513
1796
  end
1514
1797
  end
1515
1798
 
1516
- class MbWay < Stripe::RequestParams
1799
+ class MbWay < ::Stripe::RequestParams
1517
1800
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1518
1801
  #
1519
1802
  # 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.
@@ -1530,7 +1813,7 @@ module Stripe
1530
1813
  end
1531
1814
  end
1532
1815
 
1533
- class Mobilepay < Stripe::RequestParams
1816
+ class Mobilepay < ::Stripe::RequestParams
1534
1817
  # Controls when the funds are captured from the customer's account.
1535
1818
  #
1536
1819
  # 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.
@@ -1554,7 +1837,7 @@ module Stripe
1554
1837
  end
1555
1838
  end
1556
1839
 
1557
- class Multibanco < Stripe::RequestParams
1840
+ class Multibanco < ::Stripe::RequestParams
1558
1841
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1559
1842
  #
1560
1843
  # 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.
@@ -1571,7 +1854,7 @@ module Stripe
1571
1854
  end
1572
1855
  end
1573
1856
 
1574
- class NaverPay < Stripe::RequestParams
1857
+ class NaverPay < ::Stripe::RequestParams
1575
1858
  # Controls when the funds are captured from the customer's account.
1576
1859
  #
1577
1860
  # 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.
@@ -1593,7 +1876,7 @@ module Stripe
1593
1876
  end
1594
1877
  end
1595
1878
 
1596
- class NzBankAccount < Stripe::RequestParams
1879
+ class NzBankAccount < ::Stripe::RequestParams
1597
1880
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1598
1881
  #
1599
1882
  # 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.
@@ -1613,7 +1896,7 @@ module Stripe
1613
1896
  end
1614
1897
  end
1615
1898
 
1616
- class Oxxo < Stripe::RequestParams
1899
+ class Oxxo < ::Stripe::RequestParams
1617
1900
  # 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.
1618
1901
  attr_accessor :expires_after_days
1619
1902
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1633,7 +1916,7 @@ module Stripe
1633
1916
  end
1634
1917
  end
1635
1918
 
1636
- class P24 < Stripe::RequestParams
1919
+ class P24 < ::Stripe::RequestParams
1637
1920
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1638
1921
  #
1639
1922
  # 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.
@@ -1653,9 +1936,9 @@ module Stripe
1653
1936
  end
1654
1937
  end
1655
1938
 
1656
- class PayByBank < Stripe::RequestParams; end
1939
+ class PayByBank < ::Stripe::RequestParams; end
1657
1940
 
1658
- class Payco < Stripe::RequestParams
1941
+ class Payco < ::Stripe::RequestParams
1659
1942
  # Controls when the funds are captured from the customer's account.
1660
1943
  #
1661
1944
  # 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.
@@ -1668,7 +1951,7 @@ module Stripe
1668
1951
  end
1669
1952
  end
1670
1953
 
1671
- class Paynow < Stripe::RequestParams
1954
+ class Paynow < ::Stripe::RequestParams
1672
1955
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1673
1956
  #
1674
1957
  # 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.
@@ -1685,10 +1968,10 @@ module Stripe
1685
1968
  end
1686
1969
  end
1687
1970
 
1688
- class Paypal < Stripe::RequestParams
1971
+ class Paypal < ::Stripe::RequestParams
1689
1972
  # Controls when the funds will be captured from the customer's account.
1690
1973
  attr_accessor :capture_method
1691
- # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1974
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1692
1975
  attr_accessor :preferred_locale
1693
1976
  # 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.
1694
1977
  attr_accessor :reference
@@ -1720,7 +2003,57 @@ module Stripe
1720
2003
  end
1721
2004
  end
1722
2005
 
1723
- class Pix < Stripe::RequestParams
2006
+ class Payto < ::Stripe::RequestParams
2007
+ class MandateOptions < ::Stripe::RequestParams
2008
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2009
+ attr_accessor :amount
2010
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
2011
+ attr_accessor :amount_type
2012
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2013
+ attr_accessor :end_date
2014
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2015
+ attr_accessor :payment_schedule
2016
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2017
+ attr_accessor :payments_per_period
2018
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2019
+ attr_accessor :purpose
2020
+
2021
+ def initialize(
2022
+ amount: nil,
2023
+ amount_type: nil,
2024
+ end_date: nil,
2025
+ payment_schedule: nil,
2026
+ payments_per_period: nil,
2027
+ purpose: nil
2028
+ )
2029
+ @amount = amount
2030
+ @amount_type = amount_type
2031
+ @end_date = end_date
2032
+ @payment_schedule = payment_schedule
2033
+ @payments_per_period = payments_per_period
2034
+ @purpose = purpose
2035
+ end
2036
+ end
2037
+ # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
2038
+ attr_accessor :mandate_options
2039
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2040
+ #
2041
+ # 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.
2042
+ #
2043
+ # 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.
2044
+ #
2045
+ # 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).
2046
+ #
2047
+ # 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`.
2048
+ attr_accessor :setup_future_usage
2049
+
2050
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2051
+ @mandate_options = mandate_options
2052
+ @setup_future_usage = setup_future_usage
2053
+ end
2054
+ end
2055
+
2056
+ class Pix < ::Stripe::RequestParams
1724
2057
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1725
2058
  attr_accessor :amount_includes_iof
1726
2059
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -1751,7 +2084,7 @@ module Stripe
1751
2084
  end
1752
2085
  end
1753
2086
 
1754
- class Promptpay < Stripe::RequestParams
2087
+ class Promptpay < ::Stripe::RequestParams
1755
2088
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1756
2089
  #
1757
2090
  # 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.
@@ -1768,7 +2101,7 @@ module Stripe
1768
2101
  end
1769
2102
  end
1770
2103
 
1771
- class RevolutPay < Stripe::RequestParams
2104
+ class RevolutPay < ::Stripe::RequestParams
1772
2105
  # Controls when the funds are captured from the customer's account.
1773
2106
  #
1774
2107
  # 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.
@@ -1790,7 +2123,7 @@ module Stripe
1790
2123
  end
1791
2124
  end
1792
2125
 
1793
- class SamsungPay < Stripe::RequestParams
2126
+ class SamsungPay < ::Stripe::RequestParams
1794
2127
  # Controls when the funds are captured from the customer's account.
1795
2128
  #
1796
2129
  # 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.
@@ -1803,7 +2136,7 @@ module Stripe
1803
2136
  end
1804
2137
  end
1805
2138
 
1806
- class Satispay < Stripe::RequestParams
2139
+ class Satispay < ::Stripe::RequestParams
1807
2140
  # Controls when the funds are captured from the customer's account.
1808
2141
  #
1809
2142
  # 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.
@@ -1816,8 +2149,8 @@ module Stripe
1816
2149
  end
1817
2150
  end
1818
2151
 
1819
- class SepaDebit < Stripe::RequestParams
1820
- class MandateOptions < Stripe::RequestParams
2152
+ class SepaDebit < ::Stripe::RequestParams
2153
+ class MandateOptions < ::Stripe::RequestParams
1821
2154
  # 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'.
1822
2155
  attr_accessor :reference_prefix
1823
2156
 
@@ -1847,7 +2180,7 @@ module Stripe
1847
2180
  end
1848
2181
  end
1849
2182
 
1850
- class Sofort < Stripe::RequestParams
2183
+ class Sofort < ::Stripe::RequestParams
1851
2184
  # Language shown to the payer on redirect.
1852
2185
  attr_accessor :preferred_language
1853
2186
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1867,7 +2200,7 @@ module Stripe
1867
2200
  end
1868
2201
  end
1869
2202
 
1870
- class Swish < Stripe::RequestParams
2203
+ class Swish < ::Stripe::RequestParams
1871
2204
  # A reference for this payment to be displayed in the Swish app.
1872
2205
  attr_accessor :reference
1873
2206
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1887,7 +2220,7 @@ module Stripe
1887
2220
  end
1888
2221
  end
1889
2222
 
1890
- class Twint < Stripe::RequestParams
2223
+ class Twint < ::Stripe::RequestParams
1891
2224
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1892
2225
  #
1893
2226
  # 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.
@@ -1904,9 +2237,38 @@ module Stripe
1904
2237
  end
1905
2238
  end
1906
2239
 
1907
- class UsBankAccount < Stripe::RequestParams
1908
- class FinancialConnections < Stripe::RequestParams
1909
- class Filters < Stripe::RequestParams
2240
+ class Upi < ::Stripe::RequestParams
2241
+ class MandateOptions < ::Stripe::RequestParams
2242
+ # Amount to be charged for future payments.
2243
+ attr_accessor :amount
2244
+ # 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.
2245
+ attr_accessor :amount_type
2246
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
2247
+ attr_accessor :description
2248
+ # End date of the mandate or subscription.
2249
+ attr_accessor :end_date
2250
+
2251
+ def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
2252
+ @amount = amount
2253
+ @amount_type = amount_type
2254
+ @description = description
2255
+ @end_date = end_date
2256
+ end
2257
+ end
2258
+ # Configuration options for setting up an eMandate
2259
+ attr_accessor :mandate_options
2260
+ # Attribute for param field setup_future_usage
2261
+ attr_accessor :setup_future_usage
2262
+
2263
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2264
+ @mandate_options = mandate_options
2265
+ @setup_future_usage = setup_future_usage
2266
+ end
2267
+ end
2268
+
2269
+ class UsBankAccount < ::Stripe::RequestParams
2270
+ class FinancialConnections < ::Stripe::RequestParams
2271
+ class Filters < ::Stripe::RequestParams
1910
2272
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1911
2273
  attr_accessor :account_subcategories
1912
2274
 
@@ -1931,7 +2293,7 @@ module Stripe
1931
2293
  end
1932
2294
  end
1933
2295
 
1934
- class MandateOptions < Stripe::RequestParams
2296
+ class MandateOptions < ::Stripe::RequestParams
1935
2297
  # The method used to collect offline mandate customer acceptance.
1936
2298
  attr_accessor :collection_method
1937
2299
 
@@ -1940,7 +2302,7 @@ module Stripe
1940
2302
  end
1941
2303
  end
1942
2304
 
1943
- class Networks < Stripe::RequestParams
2305
+ class Networks < ::Stripe::RequestParams
1944
2306
  # Triggers validations to run across the selected networks
1945
2307
  attr_accessor :requested
1946
2308
 
@@ -1954,8 +2316,6 @@ module Stripe
1954
2316
  attr_accessor :mandate_options
1955
2317
  # Additional fields for network related functions
1956
2318
  attr_accessor :networks
1957
- # Preferred transaction settlement speed
1958
- attr_accessor :preferred_settlement_speed
1959
2319
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1960
2320
  #
1961
2321
  # 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.
@@ -1968,29 +2328,31 @@ module Stripe
1968
2328
  attr_accessor :setup_future_usage
1969
2329
  # 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.
1970
2330
  attr_accessor :target_date
1971
- # Bank account verification method.
2331
+ # The purpose of the transaction.
2332
+ attr_accessor :transaction_purpose
2333
+ # Bank account verification method. The default value is `automatic`.
1972
2334
  attr_accessor :verification_method
1973
2335
 
1974
2336
  def initialize(
1975
2337
  financial_connections: nil,
1976
2338
  mandate_options: nil,
1977
2339
  networks: nil,
1978
- preferred_settlement_speed: nil,
1979
2340
  setup_future_usage: nil,
1980
2341
  target_date: nil,
2342
+ transaction_purpose: nil,
1981
2343
  verification_method: nil
1982
2344
  )
1983
2345
  @financial_connections = financial_connections
1984
2346
  @mandate_options = mandate_options
1985
2347
  @networks = networks
1986
- @preferred_settlement_speed = preferred_settlement_speed
1987
2348
  @setup_future_usage = setup_future_usage
1988
2349
  @target_date = target_date
2350
+ @transaction_purpose = transaction_purpose
1989
2351
  @verification_method = verification_method
1990
2352
  end
1991
2353
  end
1992
2354
 
1993
- class WechatPay < Stripe::RequestParams
2355
+ class WechatPay < ::Stripe::RequestParams
1994
2356
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
1995
2357
  attr_accessor :app_id
1996
2358
  # The client type that the end customer will pay from
@@ -2013,7 +2375,7 @@ module Stripe
2013
2375
  end
2014
2376
  end
2015
2377
 
2016
- class Zip < Stripe::RequestParams
2378
+ class Zip < ::Stripe::RequestParams
2017
2379
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2018
2380
  #
2019
2381
  # 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.
@@ -2107,6 +2469,8 @@ module Stripe
2107
2469
  attr_accessor :paynow
2108
2470
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2109
2471
  attr_accessor :paypal
2472
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
2473
+ attr_accessor :payto
2110
2474
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2111
2475
  attr_accessor :pix
2112
2476
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
@@ -2125,6 +2489,8 @@ module Stripe
2125
2489
  attr_accessor :swish
2126
2490
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
2127
2491
  attr_accessor :twint
2492
+ # If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
2493
+ attr_accessor :upi
2128
2494
  # If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
2129
2495
  attr_accessor :us_bank_account
2130
2496
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
@@ -2172,6 +2538,7 @@ module Stripe
2172
2538
  payco: nil,
2173
2539
  paynow: nil,
2174
2540
  paypal: nil,
2541
+ payto: nil,
2175
2542
  pix: nil,
2176
2543
  promptpay: nil,
2177
2544
  revolut_pay: nil,
@@ -2181,6 +2548,7 @@ module Stripe
2181
2548
  sofort: nil,
2182
2549
  swish: nil,
2183
2550
  twint: nil,
2551
+ upi: nil,
2184
2552
  us_bank_account: nil,
2185
2553
  wechat_pay: nil,
2186
2554
  zip: nil
@@ -2224,6 +2592,7 @@ module Stripe
2224
2592
  @payco = payco
2225
2593
  @paynow = paynow
2226
2594
  @paypal = paypal
2595
+ @payto = payto
2227
2596
  @pix = pix
2228
2597
  @promptpay = promptpay
2229
2598
  @revolut_pay = revolut_pay
@@ -2233,14 +2602,15 @@ module Stripe
2233
2602
  @sofort = sofort
2234
2603
  @swish = swish
2235
2604
  @twint = twint
2605
+ @upi = upi
2236
2606
  @us_bank_account = us_bank_account
2237
2607
  @wechat_pay = wechat_pay
2238
2608
  @zip = zip
2239
2609
  end
2240
2610
  end
2241
2611
 
2242
- class RadarOptions < Stripe::RequestParams
2243
- # 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.
2612
+ class RadarOptions < ::Stripe::RequestParams
2613
+ # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
2244
2614
  attr_accessor :session
2245
2615
 
2246
2616
  def initialize(session: nil)
@@ -2248,8 +2618,8 @@ module Stripe
2248
2618
  end
2249
2619
  end
2250
2620
 
2251
- class Shipping < Stripe::RequestParams
2252
- class Address < Stripe::RequestParams
2621
+ class Shipping < ::Stripe::RequestParams
2622
+ class Address < ::Stripe::RequestParams
2253
2623
  # City, district, suburb, town, or village.
2254
2624
  attr_accessor :city
2255
2625
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -2260,7 +2630,7 @@ module Stripe
2260
2630
  attr_accessor :line2
2261
2631
  # ZIP or postal code.
2262
2632
  attr_accessor :postal_code
2263
- # State, county, province, or region.
2633
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2264
2634
  attr_accessor :state
2265
2635
 
2266
2636
  def initialize(
@@ -2299,13 +2669,13 @@ module Stripe
2299
2669
  end
2300
2670
  end
2301
2671
 
2302
- class TransferData < Stripe::RequestParams
2672
+ class TransferData < ::Stripe::RequestParams
2303
2673
  # The amount that will be transferred automatically when a charge succeeds.
2304
2674
  # The amount is capped at the total transaction amount and if no amount is set,
2305
2675
  # the full amount is transferred.
2306
2676
  #
2307
2677
  # If you intend to collect a fee and you need a more robust reporting experience, using
2308
- # [application_fee_amount](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-application_fee_amount)
2678
+ # [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
2309
2679
  # might be a better fit for your integration.
2310
2680
  attr_accessor :amount
2311
2681
  # If specified, successful charges will be attributed to the destination
@@ -2319,15 +2689,17 @@ module Stripe
2319
2689
  @destination = destination
2320
2690
  end
2321
2691
  end
2322
- # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2692
+ # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2323
2693
  attr_accessor :amount
2324
- # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2694
+ # Provides industry-specific information about the amount.
2695
+ attr_accessor :amount_details
2696
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
2325
2697
  attr_accessor :application_fee_amount
2326
2698
  # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
2327
2699
  attr_accessor :automatic_payment_methods
2328
2700
  # Controls when the funds will be captured from the customer's account.
2329
2701
  attr_accessor :capture_method
2330
- # Set to `true` to attempt to [confirm this PaymentIntent](https://stripe.com/docs/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://stripe.com/docs/api/payment_intents/confirm).
2702
+ # Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://docs.stripe.com/api/payment_intents/confirm).
2331
2703
  attr_accessor :confirm
2332
2704
  # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
2333
2705
  attr_accessor :confirmation_method
@@ -2341,47 +2713,57 @@ module Stripe
2341
2713
  #
2342
2714
  # Payment methods attached to other Customers cannot be used with this PaymentIntent.
2343
2715
  #
2344
- # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2716
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2345
2717
  attr_accessor :customer
2718
+ # ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
2719
+ #
2720
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
2721
+ #
2722
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
2723
+ attr_accessor :customer_account
2346
2724
  # An arbitrary string attached to the object. Often useful for displaying to users.
2347
2725
  attr_accessor :description
2348
- # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2726
+ # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2349
2727
  attr_accessor :error_on_requires_action
2350
2728
  # The list of payment method types to exclude from use with this payment.
2351
2729
  attr_accessor :excluded_payment_method_types
2352
2730
  # Specifies which fields in the response should be expanded.
2353
2731
  attr_accessor :expand
2354
- # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2732
+ # Automations to be run during the PaymentIntent lifecycle
2733
+ attr_accessor :hooks
2734
+ # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2355
2735
  attr_accessor :mandate
2356
- # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2736
+ # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2357
2737
  attr_accessor :mandate_data
2358
- # 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`.
2738
+ # Set of [key-value pairs](https://docs.stripe.com/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`.
2359
2739
  attr_accessor :metadata
2360
- # 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). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2740
+ # 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://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2361
2741
  attr_accessor :off_session
2362
- # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2742
+ # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
2363
2743
  attr_accessor :on_behalf_of
2364
- # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
2744
+ # Provides industry-specific information about the charge.
2745
+ attr_accessor :payment_details
2746
+ # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
2365
2747
  #
2366
2748
  # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
2367
- # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
2749
+ # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://api.stripe.com#create_payment_intent-customer) parameter of this PaymentIntent.
2368
2750
  # end
2369
2751
  attr_accessor :payment_method
2370
- # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
2752
+ # The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
2371
2753
  attr_accessor :payment_method_configuration
2372
2754
  # If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
2373
- # in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
2755
+ # in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
2374
2756
  # property on the PaymentIntent.
2375
2757
  attr_accessor :payment_method_data
2376
2758
  # Payment method-specific configuration for this PaymentIntent.
2377
2759
  attr_accessor :payment_method_options
2378
2760
  # The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
2379
2761
  attr_accessor :payment_method_types
2380
- # Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
2762
+ # Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
2381
2763
  attr_accessor :radar_options
2382
2764
  # Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
2383
2765
  attr_accessor :receipt_email
2384
- # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2766
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2385
2767
  attr_accessor :return_url
2386
2768
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2387
2769
  #
@@ -2400,15 +2782,16 @@ module Stripe
2400
2782
  # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
2401
2783
  attr_accessor :statement_descriptor_suffix
2402
2784
  # The parameters that you can use to automatically create a Transfer.
2403
- # Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2785
+ # Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
2404
2786
  attr_accessor :transfer_data
2405
- # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
2787
+ # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
2406
2788
  attr_accessor :transfer_group
2407
2789
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
2408
2790
  attr_accessor :use_stripe_sdk
2409
2791
 
2410
2792
  def initialize(
2411
2793
  amount: nil,
2794
+ amount_details: nil,
2412
2795
  application_fee_amount: nil,
2413
2796
  automatic_payment_methods: nil,
2414
2797
  capture_method: nil,
@@ -2417,15 +2800,18 @@ module Stripe
2417
2800
  confirmation_token: nil,
2418
2801
  currency: nil,
2419
2802
  customer: nil,
2803
+ customer_account: nil,
2420
2804
  description: nil,
2421
2805
  error_on_requires_action: nil,
2422
2806
  excluded_payment_method_types: nil,
2423
2807
  expand: nil,
2808
+ hooks: nil,
2424
2809
  mandate: nil,
2425
2810
  mandate_data: nil,
2426
2811
  metadata: nil,
2427
2812
  off_session: nil,
2428
2813
  on_behalf_of: nil,
2814
+ payment_details: nil,
2429
2815
  payment_method: nil,
2430
2816
  payment_method_configuration: nil,
2431
2817
  payment_method_data: nil,
@@ -2443,6 +2829,7 @@ module Stripe
2443
2829
  use_stripe_sdk: nil
2444
2830
  )
2445
2831
  @amount = amount
2832
+ @amount_details = amount_details
2446
2833
  @application_fee_amount = application_fee_amount
2447
2834
  @automatic_payment_methods = automatic_payment_methods
2448
2835
  @capture_method = capture_method
@@ -2451,15 +2838,18 @@ module Stripe
2451
2838
  @confirmation_token = confirmation_token
2452
2839
  @currency = currency
2453
2840
  @customer = customer
2841
+ @customer_account = customer_account
2454
2842
  @description = description
2455
2843
  @error_on_requires_action = error_on_requires_action
2456
2844
  @excluded_payment_method_types = excluded_payment_method_types
2457
2845
  @expand = expand
2846
+ @hooks = hooks
2458
2847
  @mandate = mandate
2459
2848
  @mandate_data = mandate_data
2460
2849
  @metadata = metadata
2461
2850
  @off_session = off_session
2462
2851
  @on_behalf_of = on_behalf_of
2852
+ @payment_details = payment_details
2463
2853
  @payment_method = payment_method
2464
2854
  @payment_method_configuration = payment_method_configuration
2465
2855
  @payment_method_data = payment_method_data