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
@@ -8,14 +8,15 @@ module Stripe
8
8
  # see the history of payment attempts for a particular session.
9
9
  #
10
10
  # A PaymentIntent transitions through
11
- # [multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
11
+ # [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
12
12
  # throughout its lifetime as it interfaces with Stripe.js to perform
13
13
  # authentication flows and ultimately creates at most one successful charge.
14
14
  #
15
- # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents)
15
+ # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
16
16
  class PaymentIntent < APIResource
17
17
  extend Stripe::APIOperations::Create
18
18
  extend Stripe::APIOperations::List
19
+ extend Stripe::APIOperations::NestedResource
19
20
  extend Stripe::APIOperations::Search
20
21
  include Stripe::APIOperations::Save
21
22
 
@@ -24,8 +25,57 @@ module Stripe
24
25
  "payment_intent"
25
26
  end
26
27
 
27
- class AmountDetails < Stripe::StripeObject
28
- class Tip < Stripe::StripeObject
28
+ nested_resource_class_methods :amount_details_line_item, operations: %i[list]
29
+
30
+ class AmountDetails < ::Stripe::StripeObject
31
+ class Error < ::Stripe::StripeObject
32
+ # The code of the error that occurred when validating the current amount details.
33
+ attr_reader :code
34
+ # A message providing more details about the error.
35
+ attr_reader :message
36
+
37
+ def self.inner_class_types
38
+ @inner_class_types = {}
39
+ end
40
+
41
+ def self.field_remappings
42
+ @field_remappings = {}
43
+ end
44
+ end
45
+
46
+ class Shipping < ::Stripe::StripeObject
47
+ # 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.
48
+ attr_reader :amount
49
+ # 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.
50
+ attr_reader :from_postal_code
51
+ # 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.
52
+ attr_reader :to_postal_code
53
+
54
+ def self.inner_class_types
55
+ @inner_class_types = {}
56
+ end
57
+
58
+ def self.field_remappings
59
+ @field_remappings = {}
60
+ end
61
+ end
62
+
63
+ class Tax < ::Stripe::StripeObject
64
+ # 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.
65
+ #
66
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
67
+ attr_reader :total_tax_amount
68
+
69
+ def self.inner_class_types
70
+ @inner_class_types = {}
71
+ end
72
+
73
+ def self.field_remappings
74
+ @field_remappings = {}
75
+ end
76
+ end
77
+
78
+ class Tip < ::Stripe::StripeObject
29
79
  # Portion of the amount that corresponds to a tip.
30
80
  attr_reader :amount
31
81
 
@@ -37,11 +87,23 @@ module Stripe
37
87
  @field_remappings = {}
38
88
  end
39
89
  end
90
+ # 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.
91
+ #
92
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
93
+ attr_reader :discount_amount
94
+ # Attribute for field error
95
+ attr_reader :error
96
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
97
+ attr_reader :line_items
98
+ # Attribute for field shipping
99
+ attr_reader :shipping
100
+ # Attribute for field tax
101
+ attr_reader :tax
40
102
  # Attribute for field tip
41
103
  attr_reader :tip
42
104
 
43
105
  def self.inner_class_types
44
- @inner_class_types = { tip: Tip }
106
+ @inner_class_types = { error: Error, shipping: Shipping, tax: Tax, tip: Tip }
45
107
  end
46
108
 
47
109
  def self.field_remappings
@@ -49,10 +111,10 @@ module Stripe
49
111
  end
50
112
  end
51
113
 
52
- class AutomaticPaymentMethods < Stripe::StripeObject
114
+ class AutomaticPaymentMethods < ::Stripe::StripeObject
53
115
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
54
116
  #
55
- # 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.
117
+ # 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.
56
118
  attr_reader :allow_redirects
57
119
  # Automatically calculates compatible payment methods
58
120
  attr_reader :enabled
@@ -66,16 +128,53 @@ module Stripe
66
128
  end
67
129
  end
68
130
 
69
- class LastPaymentError < Stripe::StripeObject
70
- # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
131
+ class Hooks < ::Stripe::StripeObject
132
+ class Inputs < ::Stripe::StripeObject
133
+ class Tax < ::Stripe::StripeObject
134
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
135
+ attr_reader :calculation
136
+
137
+ def self.inner_class_types
138
+ @inner_class_types = {}
139
+ end
140
+
141
+ def self.field_remappings
142
+ @field_remappings = {}
143
+ end
144
+ end
145
+ # Attribute for field tax
146
+ attr_reader :tax
147
+
148
+ def self.inner_class_types
149
+ @inner_class_types = { tax: Tax }
150
+ end
151
+
152
+ def self.field_remappings
153
+ @field_remappings = {}
154
+ end
155
+ end
156
+ # Attribute for field inputs
157
+ attr_reader :inputs
158
+
159
+ def self.inner_class_types
160
+ @inner_class_types = { inputs: Inputs }
161
+ end
162
+
163
+ def self.field_remappings
164
+ @field_remappings = {}
165
+ end
166
+ end
167
+
168
+ class LastPaymentError < ::Stripe::StripeObject
169
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
71
170
  attr_reader :advice_code
72
171
  # For card errors, the ID of the failed charge.
73
172
  attr_reader :charge
74
- # For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
173
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
75
174
  attr_reader :code
76
- # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
175
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
77
176
  attr_reader :decline_code
78
- # A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
177
+ # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
79
178
  attr_reader :doc_url
80
179
  # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
81
180
  attr_reader :message
@@ -91,17 +190,17 @@ module Stripe
91
190
  # see the history of payment attempts for a particular session.
92
191
  #
93
192
  # A PaymentIntent transitions through
94
- # [multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
193
+ # [multiple statuses](/payments/paymentintents/lifecycle)
95
194
  # throughout its lifetime as it interfaces with Stripe.js to perform
96
195
  # authentication flows and ultimately creates at most one successful charge.
97
196
  #
98
- # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents)
197
+ # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
99
198
  attr_reader :payment_intent
100
199
  # PaymentMethod objects represent your customer's payment instruments.
101
- # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
200
+ # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
102
201
  # Customer objects to store instrument details for future payments.
103
202
  #
104
- # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
203
+ # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
105
204
  attr_reader :payment_method
106
205
  # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
107
206
  attr_reader :payment_method_type
@@ -109,7 +208,7 @@ module Stripe
109
208
  attr_reader :request_log_url
110
209
  # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
111
210
  # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
112
- # Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.
211
+ # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
113
212
  #
114
213
  # Create a SetupIntent when you're ready to collect your customer's payment credentials.
115
214
  # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
@@ -120,9 +219,9 @@ module Stripe
120
219
  # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
121
220
  # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
122
221
  # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
123
- # If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
222
+ # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
124
223
  # it automatically attaches the resulting payment method to that Customer after successful setup.
125
- # We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
224
+ # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
126
225
  # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
127
226
  #
128
227
  # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
@@ -143,8 +242,8 @@ module Stripe
143
242
  end
144
243
  end
145
244
 
146
- class NextAction < Stripe::StripeObject
147
- class AlipayHandleRedirect < Stripe::StripeObject
245
+ class NextAction < ::Stripe::StripeObject
246
+ class AlipayHandleRedirect < ::Stripe::StripeObject
148
247
  # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App.
149
248
  attr_reader :native_data
150
249
  # The native URL you must redirect your customer to in order to authenticate the payment in an iOS App.
@@ -163,7 +262,7 @@ module Stripe
163
262
  end
164
263
  end
165
264
 
166
- class BoletoDisplayDetails < Stripe::StripeObject
265
+ class BoletoDisplayDetails < ::Stripe::StripeObject
167
266
  # The timestamp after which the boleto expires.
168
267
  attr_reader :expires_at
169
268
  # The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher.
@@ -182,7 +281,7 @@ module Stripe
182
281
  end
183
282
  end
184
283
 
185
- class CardAwaitNotification < Stripe::StripeObject
284
+ class CardAwaitNotification < ::Stripe::StripeObject
186
285
  # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time.
187
286
  attr_reader :charge_attempt_at
188
287
  # For payments greater than INR 15000, the customer must provide explicit approval of the payment with their bank. For payments of lower amount, no customer action is required.
@@ -197,8 +296,8 @@ module Stripe
197
296
  end
198
297
  end
199
298
 
200
- class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject
201
- class QrCode < Stripe::StripeObject
299
+ class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
300
+ class QrCode < ::Stripe::StripeObject
202
301
  # The date (unix timestamp) when the QR code expires.
203
302
  attr_reader :expires_at
204
303
  # The image_url_png string used to render QR code
@@ -230,10 +329,10 @@ module Stripe
230
329
  end
231
330
  end
232
331
 
233
- class DisplayBankTransferInstructions < Stripe::StripeObject
234
- class FinancialAddress < Stripe::StripeObject
235
- class Aba < Stripe::StripeObject
236
- class AccountHolderAddress < Stripe::StripeObject
332
+ class DisplayBankTransferInstructions < ::Stripe::StripeObject
333
+ class FinancialAddress < ::Stripe::StripeObject
334
+ class Aba < ::Stripe::StripeObject
335
+ class AccountHolderAddress < ::Stripe::StripeObject
237
336
  # City, district, suburb, town, or village.
238
337
  attr_reader :city
239
338
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -244,7 +343,7 @@ module Stripe
244
343
  attr_reader :line2
245
344
  # ZIP or postal code.
246
345
  attr_reader :postal_code
247
- # State, county, province, or region.
346
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
248
347
  attr_reader :state
249
348
 
250
349
  def self.inner_class_types
@@ -256,7 +355,7 @@ module Stripe
256
355
  end
257
356
  end
258
357
 
259
- class BankAddress < Stripe::StripeObject
358
+ class BankAddress < ::Stripe::StripeObject
260
359
  # City, district, suburb, town, or village.
261
360
  attr_reader :city
262
361
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -267,7 +366,7 @@ module Stripe
267
366
  attr_reader :line2
268
367
  # ZIP or postal code.
269
368
  attr_reader :postal_code
270
- # State, county, province, or region.
369
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
271
370
  attr_reader :state
272
371
 
273
372
  def self.inner_class_types
@@ -305,8 +404,8 @@ module Stripe
305
404
  end
306
405
  end
307
406
 
308
- class Iban < Stripe::StripeObject
309
- class AccountHolderAddress < Stripe::StripeObject
407
+ class Iban < ::Stripe::StripeObject
408
+ class AccountHolderAddress < ::Stripe::StripeObject
310
409
  # City, district, suburb, town, or village.
311
410
  attr_reader :city
312
411
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -317,7 +416,7 @@ module Stripe
317
416
  attr_reader :line2
318
417
  # ZIP or postal code.
319
418
  attr_reader :postal_code
320
- # State, county, province, or region.
419
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
321
420
  attr_reader :state
322
421
 
323
422
  def self.inner_class_types
@@ -329,7 +428,7 @@ module Stripe
329
428
  end
330
429
  end
331
430
 
332
- class BankAddress < Stripe::StripeObject
431
+ class BankAddress < ::Stripe::StripeObject
333
432
  # City, district, suburb, town, or village.
334
433
  attr_reader :city
335
434
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -340,7 +439,7 @@ module Stripe
340
439
  attr_reader :line2
341
440
  # ZIP or postal code.
342
441
  attr_reader :postal_code
343
- # State, county, province, or region.
442
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
344
443
  attr_reader :state
345
444
 
346
445
  def self.inner_class_types
@@ -376,8 +475,8 @@ module Stripe
376
475
  end
377
476
  end
378
477
 
379
- class SortCode < Stripe::StripeObject
380
- class AccountHolderAddress < Stripe::StripeObject
478
+ class SortCode < ::Stripe::StripeObject
479
+ class AccountHolderAddress < ::Stripe::StripeObject
381
480
  # City, district, suburb, town, or village.
382
481
  attr_reader :city
383
482
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -388,7 +487,7 @@ module Stripe
388
487
  attr_reader :line2
389
488
  # ZIP or postal code.
390
489
  attr_reader :postal_code
391
- # State, county, province, or region.
490
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
392
491
  attr_reader :state
393
492
 
394
493
  def self.inner_class_types
@@ -400,7 +499,7 @@ module Stripe
400
499
  end
401
500
  end
402
501
 
403
- class BankAddress < Stripe::StripeObject
502
+ class BankAddress < ::Stripe::StripeObject
404
503
  # City, district, suburb, town, or village.
405
504
  attr_reader :city
406
505
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -411,7 +510,7 @@ module Stripe
411
510
  attr_reader :line2
412
511
  # ZIP or postal code.
413
512
  attr_reader :postal_code
414
- # State, county, province, or region.
513
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
415
514
  attr_reader :state
416
515
 
417
516
  def self.inner_class_types
@@ -445,8 +544,8 @@ module Stripe
445
544
  end
446
545
  end
447
546
 
448
- class Spei < Stripe::StripeObject
449
- class AccountHolderAddress < Stripe::StripeObject
547
+ class Spei < ::Stripe::StripeObject
548
+ class AccountHolderAddress < ::Stripe::StripeObject
450
549
  # City, district, suburb, town, or village.
451
550
  attr_reader :city
452
551
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -457,7 +556,7 @@ module Stripe
457
556
  attr_reader :line2
458
557
  # ZIP or postal code.
459
558
  attr_reader :postal_code
460
- # State, county, province, or region.
559
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
461
560
  attr_reader :state
462
561
 
463
562
  def self.inner_class_types
@@ -469,7 +568,7 @@ module Stripe
469
568
  end
470
569
  end
471
570
 
472
- class BankAddress < Stripe::StripeObject
571
+ class BankAddress < ::Stripe::StripeObject
473
572
  # City, district, suburb, town, or village.
474
573
  attr_reader :city
475
574
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -480,7 +579,7 @@ module Stripe
480
579
  attr_reader :line2
481
580
  # ZIP or postal code.
482
581
  attr_reader :postal_code
483
- # State, county, province, or region.
582
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
484
583
  attr_reader :state
485
584
 
486
585
  def self.inner_class_types
@@ -516,8 +615,8 @@ module Stripe
516
615
  end
517
616
  end
518
617
 
519
- class Swift < Stripe::StripeObject
520
- class AccountHolderAddress < Stripe::StripeObject
618
+ class Swift < ::Stripe::StripeObject
619
+ class AccountHolderAddress < ::Stripe::StripeObject
521
620
  # City, district, suburb, town, or village.
522
621
  attr_reader :city
523
622
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -528,7 +627,7 @@ module Stripe
528
627
  attr_reader :line2
529
628
  # ZIP or postal code.
530
629
  attr_reader :postal_code
531
- # State, county, province, or region.
630
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
532
631
  attr_reader :state
533
632
 
534
633
  def self.inner_class_types
@@ -540,7 +639,7 @@ module Stripe
540
639
  end
541
640
  end
542
641
 
543
- class BankAddress < Stripe::StripeObject
642
+ class BankAddress < ::Stripe::StripeObject
544
643
  # City, district, suburb, town, or village.
545
644
  attr_reader :city
546
645
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -551,7 +650,7 @@ module Stripe
551
650
  attr_reader :line2
552
651
  # ZIP or postal code.
553
652
  attr_reader :postal_code
554
- # State, county, province, or region.
653
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
555
654
  attr_reader :state
556
655
 
557
656
  def self.inner_class_types
@@ -589,8 +688,8 @@ module Stripe
589
688
  end
590
689
  end
591
690
 
592
- class Zengin < Stripe::StripeObject
593
- class AccountHolderAddress < Stripe::StripeObject
691
+ class Zengin < ::Stripe::StripeObject
692
+ class AccountHolderAddress < ::Stripe::StripeObject
594
693
  # City, district, suburb, town, or village.
595
694
  attr_reader :city
596
695
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -601,7 +700,7 @@ module Stripe
601
700
  attr_reader :line2
602
701
  # ZIP or postal code.
603
702
  attr_reader :postal_code
604
- # State, county, province, or region.
703
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
605
704
  attr_reader :state
606
705
 
607
706
  def self.inner_class_types
@@ -613,7 +712,7 @@ module Stripe
613
712
  end
614
713
  end
615
714
 
616
- class BankAddress < Stripe::StripeObject
715
+ class BankAddress < ::Stripe::StripeObject
617
716
  # City, district, suburb, town, or village.
618
717
  attr_reader :city
619
718
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -624,7 +723,7 @@ module Stripe
624
723
  attr_reader :line2
625
724
  # ZIP or postal code.
626
725
  attr_reader :postal_code
627
- # State, county, province, or region.
726
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
628
727
  attr_reader :state
629
728
 
630
729
  def self.inner_class_types
@@ -719,9 +818,9 @@ module Stripe
719
818
  end
720
819
  end
721
820
 
722
- class KonbiniDisplayDetails < Stripe::StripeObject
723
- class Stores < Stripe::StripeObject
724
- class Familymart < Stripe::StripeObject
821
+ class KonbiniDisplayDetails < ::Stripe::StripeObject
822
+ class Stores < ::Stripe::StripeObject
823
+ class Familymart < ::Stripe::StripeObject
725
824
  # The confirmation number.
726
825
  attr_reader :confirmation_number
727
826
  # The payment code.
@@ -736,7 +835,7 @@ module Stripe
736
835
  end
737
836
  end
738
837
 
739
- class Lawson < Stripe::StripeObject
838
+ class Lawson < ::Stripe::StripeObject
740
839
  # The confirmation number.
741
840
  attr_reader :confirmation_number
742
841
  # The payment code.
@@ -751,7 +850,7 @@ module Stripe
751
850
  end
752
851
  end
753
852
 
754
- class Ministop < Stripe::StripeObject
853
+ class Ministop < ::Stripe::StripeObject
755
854
  # The confirmation number.
756
855
  attr_reader :confirmation_number
757
856
  # The payment code.
@@ -766,7 +865,7 @@ module Stripe
766
865
  end
767
866
  end
768
867
 
769
- class Seicomart < Stripe::StripeObject
868
+ class Seicomart < ::Stripe::StripeObject
770
869
  # The confirmation number.
771
870
  attr_reader :confirmation_number
772
871
  # The payment code.
@@ -818,7 +917,7 @@ module Stripe
818
917
  end
819
918
  end
820
919
 
821
- class MultibancoDisplayDetails < Stripe::StripeObject
920
+ class MultibancoDisplayDetails < ::Stripe::StripeObject
822
921
  # Entity number associated with this Multibanco payment.
823
922
  attr_reader :entity
824
923
  # The timestamp at which the Multibanco voucher expires.
@@ -837,7 +936,7 @@ module Stripe
837
936
  end
838
937
  end
839
938
 
840
- class OxxoDisplayDetails < Stripe::StripeObject
939
+ class OxxoDisplayDetails < ::Stripe::StripeObject
841
940
  # The timestamp after which the OXXO voucher expires.
842
941
  attr_reader :expires_after
843
942
  # The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher.
@@ -854,7 +953,7 @@ module Stripe
854
953
  end
855
954
  end
856
955
 
857
- class PaynowDisplayQrCode < Stripe::StripeObject
956
+ class PaynowDisplayQrCode < ::Stripe::StripeObject
858
957
  # The raw data string used to generate QR code, it should be used together with QR code library.
859
958
  attr_reader :data
860
959
  # The URL to the hosted PayNow instructions page, which allows customers to view the PayNow QR code.
@@ -873,7 +972,7 @@ module Stripe
873
972
  end
874
973
  end
875
974
 
876
- class PixDisplayQrCode < Stripe::StripeObject
975
+ class PixDisplayQrCode < ::Stripe::StripeObject
877
976
  # The raw data string used to generate QR code, it should be used together with QR code library.
878
977
  attr_reader :data
879
978
  # The date (unix timestamp) when the PIX expires.
@@ -894,7 +993,7 @@ module Stripe
894
993
  end
895
994
  end
896
995
 
897
- class PromptpayDisplayQrCode < Stripe::StripeObject
996
+ class PromptpayDisplayQrCode < ::Stripe::StripeObject
898
997
  # The raw data string used to generate QR code, it should be used together with QR code library.
899
998
  attr_reader :data
900
999
  # The URL to the hosted PromptPay instructions page, which allows customers to view the PromptPay QR code.
@@ -913,7 +1012,7 @@ module Stripe
913
1012
  end
914
1013
  end
915
1014
 
916
- class RedirectToUrl < Stripe::StripeObject
1015
+ class RedirectToUrl < ::Stripe::StripeObject
917
1016
  # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
918
1017
  attr_reader :return_url
919
1018
  # The URL you must redirect your customer to in order to authenticate the payment.
@@ -928,8 +1027,8 @@ module Stripe
928
1027
  end
929
1028
  end
930
1029
 
931
- class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject
932
- class QrCode < Stripe::StripeObject
1030
+ class SwishHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
1031
+ class QrCode < ::Stripe::StripeObject
933
1032
  # The raw data string used to generate QR code, it should be used together with QR code library.
934
1033
  attr_reader :data
935
1034
  # The image_url_png string used to render QR code
@@ -961,7 +1060,38 @@ module Stripe
961
1060
  end
962
1061
  end
963
1062
 
964
- class VerifyWithMicrodeposits < Stripe::StripeObject
1063
+ class UpiHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
1064
+ class QrCode < ::Stripe::StripeObject
1065
+ # The date (unix timestamp) when the QR code expires.
1066
+ attr_reader :expires_at
1067
+ # The image_url_png string used to render QR code
1068
+ attr_reader :image_url_png
1069
+ # The image_url_svg string used to render QR code
1070
+ attr_reader :image_url_svg
1071
+
1072
+ def self.inner_class_types
1073
+ @inner_class_types = {}
1074
+ end
1075
+
1076
+ def self.field_remappings
1077
+ @field_remappings = {}
1078
+ end
1079
+ end
1080
+ # The URL to the hosted UPI instructions page, which allows customers to view the QR code.
1081
+ attr_reader :hosted_instructions_url
1082
+ # Attribute for field qr_code
1083
+ attr_reader :qr_code
1084
+
1085
+ def self.inner_class_types
1086
+ @inner_class_types = { qr_code: QrCode }
1087
+ end
1088
+
1089
+ def self.field_remappings
1090
+ @field_remappings = {}
1091
+ end
1092
+ end
1093
+
1094
+ class VerifyWithMicrodeposits < ::Stripe::StripeObject
965
1095
  # The timestamp when the microdeposits are expected to land.
966
1096
  attr_reader :arrival_date
967
1097
  # The URL for the hosted verification page, which allows customers to verify their bank account.
@@ -978,7 +1108,7 @@ module Stripe
978
1108
  end
979
1109
  end
980
1110
 
981
- class WechatPayDisplayQrCode < Stripe::StripeObject
1111
+ class WechatPayDisplayQrCode < ::Stripe::StripeObject
982
1112
  # The data being used to generate QR code
983
1113
  attr_reader :data
984
1114
  # The URL to the hosted WeChat Pay instructions page, which allows customers to view the WeChat Pay QR code.
@@ -999,7 +1129,7 @@ module Stripe
999
1129
  end
1000
1130
  end
1001
1131
 
1002
- class WechatPayRedirectToAndroidApp < Stripe::StripeObject
1132
+ class WechatPayRedirectToAndroidApp < ::Stripe::StripeObject
1003
1133
  # app_id is the APP ID registered on WeChat open platform
1004
1134
  attr_reader :app_id
1005
1135
  # nonce_str is a random string
@@ -1024,7 +1154,7 @@ module Stripe
1024
1154
  end
1025
1155
  end
1026
1156
 
1027
- class WechatPayRedirectToIosApp < Stripe::StripeObject
1157
+ class WechatPayRedirectToIosApp < ::Stripe::StripeObject
1028
1158
  # An universal link that redirect to WeChat Pay app
1029
1159
  attr_reader :native_url
1030
1160
 
@@ -1064,6 +1194,8 @@ module Stripe
1064
1194
  attr_reader :swish_handle_redirect_or_display_qr_code
1065
1195
  # Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
1066
1196
  attr_reader :type
1197
+ # Attribute for field upi_handle_redirect_or_display_qr_code
1198
+ attr_reader :upi_handle_redirect_or_display_qr_code
1067
1199
  # When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
1068
1200
  attr_reader :use_stripe_sdk
1069
1201
  # Attribute for field verify_with_microdeposits
@@ -1090,6 +1222,7 @@ module Stripe
1090
1222
  promptpay_display_qr_code: PromptpayDisplayQrCode,
1091
1223
  redirect_to_url: RedirectToUrl,
1092
1224
  swish_handle_redirect_or_display_qr_code: SwishHandleRedirectOrDisplayQrCode,
1225
+ upi_handle_redirect_or_display_qr_code: UpiHandleRedirectOrDisplayQrCode,
1093
1226
  verify_with_microdeposits: VerifyWithMicrodeposits,
1094
1227
  wechat_pay_display_qr_code: WechatPayDisplayQrCode,
1095
1228
  wechat_pay_redirect_to_android_app: WechatPayRedirectToAndroidApp,
@@ -1102,7 +1235,26 @@ module Stripe
1102
1235
  end
1103
1236
  end
1104
1237
 
1105
- class PaymentMethodConfigurationDetails < Stripe::StripeObject
1238
+ class PaymentDetails < ::Stripe::StripeObject
1239
+ # A unique value to identify the customer. This field is available only for card payments.
1240
+ #
1241
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1242
+ attr_reader :customer_reference
1243
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1244
+ #
1245
+ # 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.
1246
+ attr_reader :order_reference
1247
+
1248
+ def self.inner_class_types
1249
+ @inner_class_types = {}
1250
+ end
1251
+
1252
+ def self.field_remappings
1253
+ @field_remappings = {}
1254
+ end
1255
+ end
1256
+
1257
+ class PaymentMethodConfigurationDetails < ::Stripe::StripeObject
1106
1258
  # ID of the payment method configuration used.
1107
1259
  attr_reader :id
1108
1260
  # ID of the parent payment method configuration used.
@@ -1117,9 +1269,9 @@ module Stripe
1117
1269
  end
1118
1270
  end
1119
1271
 
1120
- class PaymentMethodOptions < Stripe::StripeObject
1121
- class AcssDebit < Stripe::StripeObject
1122
- class MandateOptions < Stripe::StripeObject
1272
+ class PaymentMethodOptions < ::Stripe::StripeObject
1273
+ class AcssDebit < ::Stripe::StripeObject
1274
+ class MandateOptions < ::Stripe::StripeObject
1123
1275
  # A URL for custom mandate text
1124
1276
  attr_reader :custom_mandate_url
1125
1277
  # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
@@ -1149,7 +1301,7 @@ module Stripe
1149
1301
  attr_reader :setup_future_usage
1150
1302
  # 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.
1151
1303
  attr_reader :target_date
1152
- # Bank account verification method.
1304
+ # Bank account verification method. The default value is `automatic`.
1153
1305
  attr_reader :verification_method
1154
1306
 
1155
1307
  def self.inner_class_types
@@ -1161,7 +1313,7 @@ module Stripe
1161
1313
  end
1162
1314
  end
1163
1315
 
1164
- class Affirm < Stripe::StripeObject
1316
+ class Affirm < ::Stripe::StripeObject
1165
1317
  # Controls when the funds will be captured from the customer's account.
1166
1318
  attr_reader :capture_method
1167
1319
  # Preferred language of the Affirm authorization page that the customer is redirected to.
@@ -1184,7 +1336,7 @@ module Stripe
1184
1336
  end
1185
1337
  end
1186
1338
 
1187
- class AfterpayClearpay < Stripe::StripeObject
1339
+ class AfterpayClearpay < ::Stripe::StripeObject
1188
1340
  # Controls when the funds will be captured from the customer's account.
1189
1341
  attr_reader :capture_method
1190
1342
  # An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
@@ -1208,7 +1360,7 @@ module Stripe
1208
1360
  end
1209
1361
  end
1210
1362
 
1211
- class Alipay < Stripe::StripeObject
1363
+ class Alipay < ::Stripe::StripeObject
1212
1364
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1213
1365
  #
1214
1366
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1227,7 +1379,7 @@ module Stripe
1227
1379
  end
1228
1380
  end
1229
1381
 
1230
- class Alma < Stripe::StripeObject
1382
+ class Alma < ::Stripe::StripeObject
1231
1383
  # Controls when the funds will be captured from the customer's account.
1232
1384
  attr_reader :capture_method
1233
1385
 
@@ -1240,7 +1392,7 @@ module Stripe
1240
1392
  end
1241
1393
  end
1242
1394
 
1243
- class AmazonPay < Stripe::StripeObject
1395
+ class AmazonPay < ::Stripe::StripeObject
1244
1396
  # Controls when the funds will be captured from the customer's account.
1245
1397
  attr_reader :capture_method
1246
1398
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1261,7 +1413,7 @@ module Stripe
1261
1413
  end
1262
1414
  end
1263
1415
 
1264
- class AuBecsDebit < Stripe::StripeObject
1416
+ class AuBecsDebit < ::Stripe::StripeObject
1265
1417
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1266
1418
  #
1267
1419
  # 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.
@@ -1282,8 +1434,8 @@ module Stripe
1282
1434
  end
1283
1435
  end
1284
1436
 
1285
- class BacsDebit < Stripe::StripeObject
1286
- class MandateOptions < Stripe::StripeObject
1437
+ class BacsDebit < ::Stripe::StripeObject
1438
+ class MandateOptions < ::Stripe::StripeObject
1287
1439
  # 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'.
1288
1440
  attr_reader :reference_prefix
1289
1441
 
@@ -1317,7 +1469,7 @@ module Stripe
1317
1469
  end
1318
1470
  end
1319
1471
 
1320
- class Bancontact < Stripe::StripeObject
1472
+ class Bancontact < ::Stripe::StripeObject
1321
1473
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
1322
1474
  attr_reader :preferred_language
1323
1475
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1338,7 +1490,7 @@ module Stripe
1338
1490
  end
1339
1491
  end
1340
1492
 
1341
- class Billie < Stripe::StripeObject
1493
+ class Billie < ::Stripe::StripeObject
1342
1494
  # Controls when the funds will be captured from the customer's account.
1343
1495
  attr_reader :capture_method
1344
1496
 
@@ -1351,7 +1503,7 @@ module Stripe
1351
1503
  end
1352
1504
  end
1353
1505
 
1354
- class Blik < Stripe::StripeObject
1506
+ class Blik < ::Stripe::StripeObject
1355
1507
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1356
1508
  #
1357
1509
  # 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.
@@ -1370,7 +1522,7 @@ module Stripe
1370
1522
  end
1371
1523
  end
1372
1524
 
1373
- class Boleto < Stripe::StripeObject
1525
+ class Boleto < ::Stripe::StripeObject
1374
1526
  # 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 voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
1375
1527
  attr_reader :expires_after_days
1376
1528
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1391,9 +1543,9 @@ module Stripe
1391
1543
  end
1392
1544
  end
1393
1545
 
1394
- class Card < Stripe::StripeObject
1395
- class Installments < Stripe::StripeObject
1396
- class AvailablePlan < Stripe::StripeObject
1546
+ class Card < ::Stripe::StripeObject
1547
+ class Installments < ::Stripe::StripeObject
1548
+ class AvailablePlan < ::Stripe::StripeObject
1397
1549
  # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1398
1550
  attr_reader :count
1399
1551
  # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
@@ -1411,7 +1563,7 @@ module Stripe
1411
1563
  end
1412
1564
  end
1413
1565
 
1414
- class Plan < Stripe::StripeObject
1566
+ class Plan < ::Stripe::StripeObject
1415
1567
  # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1416
1568
  attr_reader :count
1417
1569
  # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
@@ -1444,8 +1596,8 @@ module Stripe
1444
1596
  end
1445
1597
  end
1446
1598
 
1447
- class MandateOptions < Stripe::StripeObject
1448
- # Amount to be charged for future payments.
1599
+ class MandateOptions < ::Stripe::StripeObject
1600
+ # Amount to be charged for future payments, specified in the presentment currency.
1449
1601
  attr_reader :amount
1450
1602
  # 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.
1451
1603
  attr_reader :amount_type
@@ -1476,21 +1628,21 @@ module Stripe
1476
1628
  attr_reader :capture_method
1477
1629
  # Installment details for this payment.
1478
1630
  #
1479
- # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1631
+ # For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
1480
1632
  attr_reader :installments
1481
1633
  # Configuration options for setting up an eMandate for cards issued in India.
1482
1634
  attr_reader :mandate_options
1483
1635
  # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
1484
1636
  attr_reader :network
1485
- # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1637
+ # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1486
1638
  attr_reader :request_extended_authorization
1487
- # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
1639
+ # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
1488
1640
  attr_reader :request_incremental_authorization
1489
- # Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent.
1641
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
1490
1642
  attr_reader :request_multicapture
1491
- # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1643
+ # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1492
1644
  attr_reader :request_overcapture
1493
- # 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.
1645
+ # 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.
1494
1646
  attr_reader :request_three_d_secure
1495
1647
  # 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).
1496
1648
  attr_reader :require_cvc_recollection
@@ -1516,8 +1668,8 @@ module Stripe
1516
1668
  end
1517
1669
  end
1518
1670
 
1519
- class CardPresent < Stripe::StripeObject
1520
- class Routing < Stripe::StripeObject
1671
+ class CardPresent < ::Stripe::StripeObject
1672
+ class Routing < ::Stripe::StripeObject
1521
1673
  # Requested routing priority
1522
1674
  attr_reader :requested_priority
1523
1675
 
@@ -1529,9 +1681,11 @@ module Stripe
1529
1681
  @field_remappings = {}
1530
1682
  end
1531
1683
  end
1532
- # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
1684
+ # Controls when the funds will be captured from the customer's account.
1685
+ attr_reader :capture_method
1686
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
1533
1687
  attr_reader :request_extended_authorization
1534
- # 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.
1688
+ # 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.
1535
1689
  attr_reader :request_incremental_authorization_support
1536
1690
  # Attribute for field routing
1537
1691
  attr_reader :routing
@@ -1545,7 +1699,7 @@ module Stripe
1545
1699
  end
1546
1700
  end
1547
1701
 
1548
- class Cashapp < Stripe::StripeObject
1702
+ class Cashapp < ::Stripe::StripeObject
1549
1703
  # Controls when the funds will be captured from the customer's account.
1550
1704
  attr_reader :capture_method
1551
1705
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1566,7 +1720,7 @@ module Stripe
1566
1720
  end
1567
1721
  end
1568
1722
 
1569
- class Crypto < Stripe::StripeObject
1723
+ class Crypto < ::Stripe::StripeObject
1570
1724
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1571
1725
  #
1572
1726
  # 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.
@@ -1585,10 +1739,10 @@ module Stripe
1585
1739
  end
1586
1740
  end
1587
1741
 
1588
- class CustomerBalance < Stripe::StripeObject
1589
- class BankTransfer < Stripe::StripeObject
1590
- class EuBankTransfer < Stripe::StripeObject
1591
- # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1742
+ class CustomerBalance < ::Stripe::StripeObject
1743
+ class BankTransfer < ::Stripe::StripeObject
1744
+ class EuBankTransfer < ::Stripe::StripeObject
1745
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
1592
1746
  attr_reader :country
1593
1747
 
1594
1748
  def self.inner_class_types
@@ -1638,7 +1792,7 @@ module Stripe
1638
1792
  end
1639
1793
  end
1640
1794
 
1641
- class Eps < Stripe::StripeObject
1795
+ class Eps < ::Stripe::StripeObject
1642
1796
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1643
1797
  #
1644
1798
  # 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.
@@ -1657,7 +1811,7 @@ module Stripe
1657
1811
  end
1658
1812
  end
1659
1813
 
1660
- class Fpx < Stripe::StripeObject
1814
+ class Fpx < ::Stripe::StripeObject
1661
1815
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1662
1816
  #
1663
1817
  # 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.
@@ -1676,7 +1830,7 @@ module Stripe
1676
1830
  end
1677
1831
  end
1678
1832
 
1679
- class Giropay < Stripe::StripeObject
1833
+ class Giropay < ::Stripe::StripeObject
1680
1834
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1681
1835
  #
1682
1836
  # 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.
@@ -1695,7 +1849,7 @@ module Stripe
1695
1849
  end
1696
1850
  end
1697
1851
 
1698
- class Grabpay < Stripe::StripeObject
1852
+ class Grabpay < ::Stripe::StripeObject
1699
1853
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1700
1854
  #
1701
1855
  # 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.
@@ -1714,7 +1868,7 @@ module Stripe
1714
1868
  end
1715
1869
  end
1716
1870
 
1717
- class Ideal < Stripe::StripeObject
1871
+ class Ideal < ::Stripe::StripeObject
1718
1872
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1719
1873
  #
1720
1874
  # 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.
@@ -1733,7 +1887,7 @@ module Stripe
1733
1887
  end
1734
1888
  end
1735
1889
 
1736
- class InteracPresent < Stripe::StripeObject
1890
+ class InteracPresent < ::Stripe::StripeObject
1737
1891
  def self.inner_class_types
1738
1892
  @inner_class_types = {}
1739
1893
  end
@@ -1743,7 +1897,7 @@ module Stripe
1743
1897
  end
1744
1898
  end
1745
1899
 
1746
- class KakaoPay < Stripe::StripeObject
1900
+ class KakaoPay < ::Stripe::StripeObject
1747
1901
  # Controls when the funds will be captured from the customer's account.
1748
1902
  attr_reader :capture_method
1749
1903
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1764,7 +1918,7 @@ module Stripe
1764
1918
  end
1765
1919
  end
1766
1920
 
1767
- class Klarna < Stripe::StripeObject
1921
+ class Klarna < ::Stripe::StripeObject
1768
1922
  # Controls when the funds will be captured from the customer's account.
1769
1923
  attr_reader :capture_method
1770
1924
  # Preferred locale of the Klarna checkout page that the customer is redirected to.
@@ -1787,7 +1941,7 @@ module Stripe
1787
1941
  end
1788
1942
  end
1789
1943
 
1790
- class Konbini < Stripe::StripeObject
1944
+ class Konbini < ::Stripe::StripeObject
1791
1945
  # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores.
1792
1946
  attr_reader :confirmation_number
1793
1947
  # 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.
@@ -1814,7 +1968,7 @@ module Stripe
1814
1968
  end
1815
1969
  end
1816
1970
 
1817
- class KrCard < Stripe::StripeObject
1971
+ class KrCard < ::Stripe::StripeObject
1818
1972
  # Controls when the funds will be captured from the customer's account.
1819
1973
  attr_reader :capture_method
1820
1974
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1835,7 +1989,7 @@ module Stripe
1835
1989
  end
1836
1990
  end
1837
1991
 
1838
- class Link < Stripe::StripeObject
1992
+ class Link < ::Stripe::StripeObject
1839
1993
  # Controls when the funds will be captured from the customer's account.
1840
1994
  attr_reader :capture_method
1841
1995
  # [Deprecated] This is a legacy parameter that no longer has any function.
@@ -1858,7 +2012,7 @@ module Stripe
1858
2012
  end
1859
2013
  end
1860
2014
 
1861
- class MbWay < Stripe::StripeObject
2015
+ class MbWay < ::Stripe::StripeObject
1862
2016
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1863
2017
  #
1864
2018
  # 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.
@@ -1877,7 +2031,7 @@ module Stripe
1877
2031
  end
1878
2032
  end
1879
2033
 
1880
- class Mobilepay < Stripe::StripeObject
2034
+ class Mobilepay < ::Stripe::StripeObject
1881
2035
  # Controls when the funds will be captured from the customer's account.
1882
2036
  attr_reader :capture_method
1883
2037
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1898,7 +2052,7 @@ module Stripe
1898
2052
  end
1899
2053
  end
1900
2054
 
1901
- class Multibanco < Stripe::StripeObject
2055
+ class Multibanco < ::Stripe::StripeObject
1902
2056
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1903
2057
  #
1904
2058
  # 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.
@@ -1917,7 +2071,7 @@ module Stripe
1917
2071
  end
1918
2072
  end
1919
2073
 
1920
- class NaverPay < Stripe::StripeObject
2074
+ class NaverPay < ::Stripe::StripeObject
1921
2075
  # Controls when the funds will be captured from the customer's account.
1922
2076
  attr_reader :capture_method
1923
2077
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1938,7 +2092,7 @@ module Stripe
1938
2092
  end
1939
2093
  end
1940
2094
 
1941
- class NzBankAccount < Stripe::StripeObject
2095
+ class NzBankAccount < ::Stripe::StripeObject
1942
2096
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1943
2097
  #
1944
2098
  # 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.
@@ -1959,7 +2113,7 @@ module Stripe
1959
2113
  end
1960
2114
  end
1961
2115
 
1962
- class Oxxo < Stripe::StripeObject
2116
+ class Oxxo < ::Stripe::StripeObject
1963
2117
  # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1964
2118
  attr_reader :expires_after_days
1965
2119
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1980,7 +2134,7 @@ module Stripe
1980
2134
  end
1981
2135
  end
1982
2136
 
1983
- class P24 < Stripe::StripeObject
2137
+ class P24 < ::Stripe::StripeObject
1984
2138
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1985
2139
  #
1986
2140
  # 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.
@@ -1999,7 +2153,7 @@ module Stripe
1999
2153
  end
2000
2154
  end
2001
2155
 
2002
- class PayByBank < Stripe::StripeObject
2156
+ class PayByBank < ::Stripe::StripeObject
2003
2157
  def self.inner_class_types
2004
2158
  @inner_class_types = {}
2005
2159
  end
@@ -2009,7 +2163,7 @@ module Stripe
2009
2163
  end
2010
2164
  end
2011
2165
 
2012
- class Payco < Stripe::StripeObject
2166
+ class Payco < ::Stripe::StripeObject
2013
2167
  # Controls when the funds will be captured from the customer's account.
2014
2168
  attr_reader :capture_method
2015
2169
 
@@ -2022,7 +2176,7 @@ module Stripe
2022
2176
  end
2023
2177
  end
2024
2178
 
2025
- class Paynow < Stripe::StripeObject
2179
+ class Paynow < ::Stripe::StripeObject
2026
2180
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2027
2181
  #
2028
2182
  # 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.
@@ -2041,7 +2195,7 @@ module Stripe
2041
2195
  end
2042
2196
  end
2043
2197
 
2044
- class Paypal < Stripe::StripeObject
2198
+ class Paypal < ::Stripe::StripeObject
2045
2199
  # Controls when the funds will be captured from the customer's account.
2046
2200
  attr_reader :capture_method
2047
2201
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
@@ -2066,7 +2220,50 @@ module Stripe
2066
2220
  end
2067
2221
  end
2068
2222
 
2069
- class Pix < Stripe::StripeObject
2223
+ class Payto < ::Stripe::StripeObject
2224
+ class MandateOptions < ::Stripe::StripeObject
2225
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2226
+ attr_reader :amount
2227
+ # 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`.
2228
+ attr_reader :amount_type
2229
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2230
+ attr_reader :end_date
2231
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2232
+ attr_reader :payment_schedule
2233
+ # 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.
2234
+ attr_reader :payments_per_period
2235
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2236
+ attr_reader :purpose
2237
+
2238
+ def self.inner_class_types
2239
+ @inner_class_types = {}
2240
+ end
2241
+
2242
+ def self.field_remappings
2243
+ @field_remappings = {}
2244
+ end
2245
+ end
2246
+ # Attribute for field mandate_options
2247
+ attr_reader :mandate_options
2248
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2249
+ #
2250
+ # 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.
2251
+ #
2252
+ # 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.
2253
+ #
2254
+ # 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).
2255
+ attr_reader :setup_future_usage
2256
+
2257
+ def self.inner_class_types
2258
+ @inner_class_types = { mandate_options: MandateOptions }
2259
+ end
2260
+
2261
+ def self.field_remappings
2262
+ @field_remappings = {}
2263
+ end
2264
+ end
2265
+
2266
+ class Pix < ::Stripe::StripeObject
2070
2267
  # Determines if the amount includes the IOF tax.
2071
2268
  attr_reader :amount_includes_iof
2072
2269
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2091,7 +2288,7 @@ module Stripe
2091
2288
  end
2092
2289
  end
2093
2290
 
2094
- class Promptpay < Stripe::StripeObject
2291
+ class Promptpay < ::Stripe::StripeObject
2095
2292
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2096
2293
  #
2097
2294
  # 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.
@@ -2110,7 +2307,7 @@ module Stripe
2110
2307
  end
2111
2308
  end
2112
2309
 
2113
- class RevolutPay < Stripe::StripeObject
2310
+ class RevolutPay < ::Stripe::StripeObject
2114
2311
  # Controls when the funds will be captured from the customer's account.
2115
2312
  attr_reader :capture_method
2116
2313
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2131,7 +2328,7 @@ module Stripe
2131
2328
  end
2132
2329
  end
2133
2330
 
2134
- class SamsungPay < Stripe::StripeObject
2331
+ class SamsungPay < ::Stripe::StripeObject
2135
2332
  # Controls when the funds will be captured from the customer's account.
2136
2333
  attr_reader :capture_method
2137
2334
 
@@ -2144,7 +2341,7 @@ module Stripe
2144
2341
  end
2145
2342
  end
2146
2343
 
2147
- class Satispay < Stripe::StripeObject
2344
+ class Satispay < ::Stripe::StripeObject
2148
2345
  # Controls when the funds will be captured from the customer's account.
2149
2346
  attr_reader :capture_method
2150
2347
 
@@ -2157,8 +2354,8 @@ module Stripe
2157
2354
  end
2158
2355
  end
2159
2356
 
2160
- class SepaDebit < Stripe::StripeObject
2161
- class MandateOptions < Stripe::StripeObject
2357
+ class SepaDebit < ::Stripe::StripeObject
2358
+ class MandateOptions < ::Stripe::StripeObject
2162
2359
  # 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'.
2163
2360
  attr_reader :reference_prefix
2164
2361
 
@@ -2192,7 +2389,7 @@ module Stripe
2192
2389
  end
2193
2390
  end
2194
2391
 
2195
- class Sofort < Stripe::StripeObject
2392
+ class Sofort < ::Stripe::StripeObject
2196
2393
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2197
2394
  attr_reader :preferred_language
2198
2395
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2213,7 +2410,7 @@ module Stripe
2213
2410
  end
2214
2411
  end
2215
2412
 
2216
- class Swish < Stripe::StripeObject
2413
+ class Swish < ::Stripe::StripeObject
2217
2414
  # A reference for this payment to be displayed in the Swish app.
2218
2415
  attr_reader :reference
2219
2416
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2234,7 +2431,26 @@ module Stripe
2234
2431
  end
2235
2432
  end
2236
2433
 
2237
- class Twint < Stripe::StripeObject
2434
+ class Twint < ::Stripe::StripeObject
2435
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2436
+ #
2437
+ # 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.
2438
+ #
2439
+ # 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.
2440
+ #
2441
+ # 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).
2442
+ attr_reader :setup_future_usage
2443
+
2444
+ def self.inner_class_types
2445
+ @inner_class_types = {}
2446
+ end
2447
+
2448
+ def self.field_remappings
2449
+ @field_remappings = {}
2450
+ end
2451
+ end
2452
+
2453
+ class Upi < ::Stripe::StripeObject
2238
2454
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2239
2455
  #
2240
2456
  # 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.
@@ -2253,9 +2469,9 @@ module Stripe
2253
2469
  end
2254
2470
  end
2255
2471
 
2256
- class UsBankAccount < Stripe::StripeObject
2257
- class FinancialConnections < Stripe::StripeObject
2258
- class Filters < Stripe::StripeObject
2472
+ class UsBankAccount < ::Stripe::StripeObject
2473
+ class FinancialConnections < ::Stripe::StripeObject
2474
+ class Filters < ::Stripe::StripeObject
2259
2475
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2260
2476
  attr_reader :account_subcategories
2261
2477
 
@@ -2285,7 +2501,7 @@ module Stripe
2285
2501
  end
2286
2502
  end
2287
2503
 
2288
- class MandateOptions < Stripe::StripeObject
2504
+ class MandateOptions < ::Stripe::StripeObject
2289
2505
  # Mandate collection method
2290
2506
  attr_reader :collection_method
2291
2507
 
@@ -2301,8 +2517,6 @@ module Stripe
2301
2517
  attr_reader :financial_connections
2302
2518
  # Attribute for field mandate_options
2303
2519
  attr_reader :mandate_options
2304
- # Preferred transaction settlement speed
2305
- attr_reader :preferred_settlement_speed
2306
2520
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2307
2521
  #
2308
2522
  # 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.
@@ -2313,7 +2527,9 @@ module Stripe
2313
2527
  attr_reader :setup_future_usage
2314
2528
  # 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.
2315
2529
  attr_reader :target_date
2316
- # Bank account verification method.
2530
+ # The purpose of the transaction.
2531
+ attr_reader :transaction_purpose
2532
+ # Bank account verification method. The default value is `automatic`.
2317
2533
  attr_reader :verification_method
2318
2534
 
2319
2535
  def self.inner_class_types
@@ -2328,7 +2544,7 @@ module Stripe
2328
2544
  end
2329
2545
  end
2330
2546
 
2331
- class WechatPay < Stripe::StripeObject
2547
+ class WechatPay < ::Stripe::StripeObject
2332
2548
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
2333
2549
  attr_reader :app_id
2334
2550
  # The client type that the end customer will pay from
@@ -2351,7 +2567,7 @@ module Stripe
2351
2567
  end
2352
2568
  end
2353
2569
 
2354
- class Zip < Stripe::StripeObject
2570
+ class Zip < ::Stripe::StripeObject
2355
2571
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2356
2572
  #
2357
2573
  # 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.
@@ -2447,6 +2663,8 @@ module Stripe
2447
2663
  attr_reader :paynow
2448
2664
  # Attribute for field paypal
2449
2665
  attr_reader :paypal
2666
+ # Attribute for field payto
2667
+ attr_reader :payto
2450
2668
  # Attribute for field pix
2451
2669
  attr_reader :pix
2452
2670
  # Attribute for field promptpay
@@ -2465,6 +2683,8 @@ module Stripe
2465
2683
  attr_reader :swish
2466
2684
  # Attribute for field twint
2467
2685
  attr_reader :twint
2686
+ # Attribute for field upi
2687
+ attr_reader :upi
2468
2688
  # Attribute for field us_bank_account
2469
2689
  attr_reader :us_bank_account
2470
2690
  # Attribute for field wechat_pay
@@ -2513,6 +2733,7 @@ module Stripe
2513
2733
  payco: Payco,
2514
2734
  paynow: Paynow,
2515
2735
  paypal: Paypal,
2736
+ payto: Payto,
2516
2737
  pix: Pix,
2517
2738
  promptpay: Promptpay,
2518
2739
  revolut_pay: RevolutPay,
@@ -2522,6 +2743,7 @@ module Stripe
2522
2743
  sofort: Sofort,
2523
2744
  swish: Swish,
2524
2745
  twint: Twint,
2746
+ upi: Upi,
2525
2747
  us_bank_account: UsBankAccount,
2526
2748
  wechat_pay: WechatPay,
2527
2749
  zip: Zip,
@@ -2533,7 +2755,7 @@ module Stripe
2533
2755
  end
2534
2756
  end
2535
2757
 
2536
- class PresentmentDetails < Stripe::StripeObject
2758
+ class PresentmentDetails < ::Stripe::StripeObject
2537
2759
  # Amount intended to be collected by this payment, denominated in `presentment_currency`.
2538
2760
  attr_reader :presentment_amount
2539
2761
  # Currency presented to the customer during payment.
@@ -2548,9 +2770,9 @@ module Stripe
2548
2770
  end
2549
2771
  end
2550
2772
 
2551
- class Processing < Stripe::StripeObject
2552
- class Card < Stripe::StripeObject
2553
- class CustomerNotification < Stripe::StripeObject
2773
+ class Processing < ::Stripe::StripeObject
2774
+ class Card < ::Stripe::StripeObject
2775
+ class CustomerNotification < ::Stripe::StripeObject
2554
2776
  # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank.
2555
2777
  attr_reader :approval_requested
2556
2778
  # If customer approval is required, they need to provide approval before this time.
@@ -2589,8 +2811,8 @@ module Stripe
2589
2811
  end
2590
2812
  end
2591
2813
 
2592
- class Shipping < Stripe::StripeObject
2593
- class Address < Stripe::StripeObject
2814
+ class Shipping < ::Stripe::StripeObject
2815
+ class Address < ::Stripe::StripeObject
2594
2816
  # City, district, suburb, town, or village.
2595
2817
  attr_reader :city
2596
2818
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -2601,7 +2823,7 @@ module Stripe
2601
2823
  attr_reader :line2
2602
2824
  # ZIP or postal code.
2603
2825
  attr_reader :postal_code
2604
- # State, county, province, or region.
2826
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2605
2827
  attr_reader :state
2606
2828
 
2607
2829
  def self.inner_class_types
@@ -2632,9 +2854,9 @@ module Stripe
2632
2854
  end
2633
2855
  end
2634
2856
 
2635
- class TransferData < Stripe::StripeObject
2857
+ class TransferData < ::Stripe::StripeObject
2636
2858
  # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
2637
- # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
2859
+ # The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
2638
2860
  # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
2639
2861
  attr_reader :amount
2640
2862
  # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
@@ -2648,7 +2870,7 @@ module Stripe
2648
2870
  @field_remappings = {}
2649
2871
  end
2650
2872
  end
2651
- # 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).
2873
+ # 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).
2652
2874
  attr_reader :amount
2653
2875
  # Amount that can be captured from this PaymentIntent.
2654
2876
  attr_reader :amount_capturable
@@ -2658,7 +2880,7 @@ module Stripe
2658
2880
  attr_reader :amount_received
2659
2881
  # ID of the Connect application that created the PaymentIntent.
2660
2882
  attr_reader :application
2661
- # 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).
2883
+ # 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).
2662
2884
  attr_reader :application_fee_amount
2663
2885
  # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
2664
2886
  attr_reader :automatic_payment_methods
@@ -2672,7 +2894,7 @@ module Stripe
2672
2894
  #
2673
2895
  # The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
2674
2896
  #
2675
- # Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
2897
+ # Refer to our docs to [accept a payment](https://docs.stripe.com/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
2676
2898
  attr_reader :client_secret
2677
2899
  # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
2678
2900
  attr_reader :confirmation_method
@@ -2684,31 +2906,42 @@ module Stripe
2684
2906
  #
2685
2907
  # Payment methods attached to other Customers cannot be used with this PaymentIntent.
2686
2908
  #
2687
- # 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.
2909
+ # 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.
2688
2910
  attr_reader :customer
2911
+ # ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
2912
+ #
2913
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
2914
+ #
2915
+ # 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.
2916
+ attr_reader :customer_account
2689
2917
  # An arbitrary string attached to the object. Often useful for displaying to users.
2690
2918
  attr_reader :description
2691
2919
  # The list of payment method types to exclude from use with this payment.
2692
2920
  attr_reader :excluded_payment_method_types
2921
+ # Attribute for field hooks
2922
+ attr_reader :hooks
2693
2923
  # Unique identifier for the object.
2694
2924
  attr_reader :id
2695
2925
  # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
2696
2926
  attr_reader :last_payment_error
2697
- # ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
2927
+ # ID of the latest [Charge object](https://docs.stripe.com/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
2698
2928
  attr_reader :latest_charge
2699
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2929
+ # If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
2700
2930
  attr_reader :livemode
2701
- # 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. Learn more about [storing information in metadata](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
2931
+ # 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. Learn more about [storing information in metadata](https://docs.stripe.com/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
2702
2932
  attr_reader :metadata
2703
2933
  # If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
2704
2934
  attr_reader :next_action
2705
2935
  # String representing the object's type. Objects of the same type share the same value.
2706
2936
  attr_reader :object
2707
- # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
2937
+ # You can specify the settlement merchant as the
2938
+ # connected account using the `on_behalf_of` attribute on the charge. See the PaymentIntents [use case for connected accounts](/payments/connected-accounts) for details.
2708
2939
  attr_reader :on_behalf_of
2940
+ # Attribute for field payment_details
2941
+ attr_reader :payment_details
2709
2942
  # ID of the payment method used in this PaymentIntent.
2710
2943
  attr_reader :payment_method
2711
- # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
2944
+ # Information about the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) used for this PaymentIntent.
2712
2945
  attr_reader :payment_method_configuration_details
2713
2946
  # Payment-method-specific configuration for this PaymentIntent.
2714
2947
  attr_reader :payment_method_options
@@ -2740,11 +2973,11 @@ module Stripe
2740
2973
  attr_reader :statement_descriptor
2741
2974
  # 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.
2742
2975
  attr_reader :statement_descriptor_suffix
2743
- # Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/docs/payments/intents#intent-statuses).
2976
+ # Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses).
2744
2977
  attr_reader :status
2745
- # The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2978
+ # The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
2746
2979
  attr_reader :transfer_data
2747
- # 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).
2980
+ # 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).
2748
2981
  attr_reader :transfer_group
2749
2982
 
2750
2983
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
@@ -2771,7 +3004,7 @@ module Stripe
2771
3004
  #
2772
3005
  # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
2773
3006
  #
2774
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
3007
+ # You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
2775
3008
  def cancel(params = {}, opts = {})
2776
3009
  request_stripe_object(
2777
3010
  method: :post,
@@ -2785,7 +3018,7 @@ module Stripe
2785
3018
  #
2786
3019
  # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
2787
3020
  #
2788
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
3021
+ # You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must [expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire).
2789
3022
  def self.cancel(intent, params = {}, opts = {})
2790
3023
  request_stripe_object(
2791
3024
  method: :post,
@@ -3039,8 +3272,10 @@ module Stripe
3039
3272
  @inner_class_types = {
3040
3273
  amount_details: AmountDetails,
3041
3274
  automatic_payment_methods: AutomaticPaymentMethods,
3275
+ hooks: Hooks,
3042
3276
  last_payment_error: LastPaymentError,
3043
3277
  next_action: NextAction,
3278
+ payment_details: PaymentDetails,
3044
3279
  payment_method_configuration_details: PaymentMethodConfigurationDetails,
3045
3280
  payment_method_options: PaymentMethodOptions,
3046
3281
  presentment_details: PresentmentDetails,