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
@@ -3,8 +3,8 @@
3
3
 
4
4
  module Stripe
5
5
  module Checkout
6
- class SessionCreateParams < Stripe::RequestParams
7
- class AdaptivePricing < Stripe::RequestParams
6
+ class SessionCreateParams < ::Stripe::RequestParams
7
+ class AdaptivePricing < ::Stripe::RequestParams
8
8
  # If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing).
9
9
  attr_accessor :enabled
10
10
 
@@ -13,8 +13,8 @@ module Stripe
13
13
  end
14
14
  end
15
15
 
16
- class AfterExpiration < Stripe::RequestParams
17
- class Recovery < Stripe::RequestParams
16
+ class AfterExpiration < ::Stripe::RequestParams
17
+ class Recovery < ::Stripe::RequestParams
18
18
  # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
19
19
  attr_accessor :allow_promotion_codes
20
20
  # If `true`, a recovery URL will be generated to recover this Checkout Session if it
@@ -35,8 +35,8 @@ module Stripe
35
35
  end
36
36
  end
37
37
 
38
- class AutomaticTax < Stripe::RequestParams
39
- class Liability < Stripe::RequestParams
38
+ class AutomaticTax < ::Stripe::RequestParams
39
+ class Liability < ::Stripe::RequestParams
40
40
  # The connected account being referenced when `type` is `account`.
41
41
  attr_accessor :account
42
42
  # Type of the account referenced in the request.
@@ -60,8 +60,8 @@ module Stripe
60
60
  end
61
61
  end
62
62
 
63
- class BrandingSettings < Stripe::RequestParams
64
- class Icon < Stripe::RequestParams
63
+ class BrandingSettings < ::Stripe::RequestParams
64
+ class Icon < ::Stripe::RequestParams
65
65
  # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
66
66
  attr_accessor :file
67
67
  # The type of image for the icon. Must be one of `file` or `url`.
@@ -76,7 +76,7 @@ module Stripe
76
76
  end
77
77
  end
78
78
 
79
- class Logo < Stripe::RequestParams
79
+ class Logo < ::Stripe::RequestParams
80
80
  # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
81
81
  attr_accessor :file
82
82
  # The type of image for the logo. Must be one of `file` or `url`.
@@ -96,13 +96,13 @@ module Stripe
96
96
  attr_accessor :border_style
97
97
  # A hex color value starting with `#` representing the button color for the Checkout Session.
98
98
  attr_accessor :button_color
99
- # A string to override the business name shown on the Checkout Session.
99
+ # A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
100
100
  attr_accessor :display_name
101
101
  # The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
102
102
  attr_accessor :font_family
103
- # The icon for the Checkout Session. You cannot set both `logo` and `icon`.
103
+ # The icon for the Checkout Session. For best results, use a square image.
104
104
  attr_accessor :icon
105
- # The logo for the Checkout Session. You cannot set both `logo` and `icon`.
105
+ # The logo for the Checkout Session.
106
106
  attr_accessor :logo
107
107
 
108
108
  def initialize(
@@ -124,8 +124,8 @@ module Stripe
124
124
  end
125
125
  end
126
126
 
127
- class ConsentCollection < Stripe::RequestParams
128
- class PaymentMethodReuseAgreement < Stripe::RequestParams
127
+ class ConsentCollection < ::Stripe::RequestParams
128
+ class PaymentMethodReuseAgreement < ::Stripe::RequestParams
129
129
  # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
130
130
  # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
131
131
  attr_accessor :position
@@ -151,9 +151,9 @@ module Stripe
151
151
  end
152
152
  end
153
153
 
154
- class CustomField < Stripe::RequestParams
155
- class Dropdown < Stripe::RequestParams
156
- class Option < Stripe::RequestParams
154
+ class CustomField < ::Stripe::RequestParams
155
+ class Dropdown < ::Stripe::RequestParams
156
+ class Option < ::Stripe::RequestParams
157
157
  # The label for the option, displayed to the customer. Up to 100 characters.
158
158
  attr_accessor :label
159
159
  # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
@@ -164,7 +164,7 @@ module Stripe
164
164
  @value = value
165
165
  end
166
166
  end
167
- # The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
167
+ # The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
168
168
  attr_accessor :default_value
169
169
  # The options available for the customer to select. Up to 200 options allowed.
170
170
  attr_accessor :options
@@ -175,7 +175,7 @@ module Stripe
175
175
  end
176
176
  end
177
177
 
178
- class Label < Stripe::RequestParams
178
+ class Label < ::Stripe::RequestParams
179
179
  # Custom text for the label, displayed to the customer. Up to 50 characters.
180
180
  attr_accessor :custom
181
181
  # The type of the label.
@@ -187,8 +187,8 @@ module Stripe
187
187
  end
188
188
  end
189
189
 
190
- class Numeric < Stripe::RequestParams
191
- # The value that will pre-fill the field on the payment page.
190
+ class Numeric < ::Stripe::RequestParams
191
+ # The value that pre-fills the field on the payment page.
192
192
  attr_accessor :default_value
193
193
  # The maximum character length constraint for the customer's input.
194
194
  attr_accessor :maximum_length
@@ -202,8 +202,8 @@ module Stripe
202
202
  end
203
203
  end
204
204
 
205
- class Text < Stripe::RequestParams
206
- # The value that will pre-fill the field on the payment page.
205
+ class Text < ::Stripe::RequestParams
206
+ # The value that pre-fills the field on the payment page.
207
207
  attr_accessor :default_value
208
208
  # The maximum character length constraint for the customer's input.
209
209
  attr_accessor :maximum_length
@@ -250,9 +250,9 @@ module Stripe
250
250
  end
251
251
  end
252
252
 
253
- class CustomText < Stripe::RequestParams
254
- class AfterSubmit < Stripe::RequestParams
255
- # Text may be up to 1200 characters in length.
253
+ class CustomText < ::Stripe::RequestParams
254
+ class AfterSubmit < ::Stripe::RequestParams
255
+ # Text can be up to 1200 characters in length.
256
256
  attr_accessor :message
257
257
 
258
258
  def initialize(message: nil)
@@ -260,8 +260,8 @@ module Stripe
260
260
  end
261
261
  end
262
262
 
263
- class ShippingAddress < Stripe::RequestParams
264
- # Text may be up to 1200 characters in length.
263
+ class ShippingAddress < ::Stripe::RequestParams
264
+ # Text can be up to 1200 characters in length.
265
265
  attr_accessor :message
266
266
 
267
267
  def initialize(message: nil)
@@ -269,8 +269,8 @@ module Stripe
269
269
  end
270
270
  end
271
271
 
272
- class Submit < Stripe::RequestParams
273
- # Text may be up to 1200 characters in length.
272
+ class Submit < ::Stripe::RequestParams
273
+ # Text can be up to 1200 characters in length.
274
274
  attr_accessor :message
275
275
 
276
276
  def initialize(message: nil)
@@ -278,8 +278,8 @@ module Stripe
278
278
  end
279
279
  end
280
280
 
281
- class TermsOfServiceAcceptance < Stripe::RequestParams
282
- # Text may be up to 1200 characters in length.
281
+ class TermsOfServiceAcceptance < ::Stripe::RequestParams
282
+ # Text can be up to 1200 characters in length.
283
283
  attr_accessor :message
284
284
 
285
285
  def initialize(message: nil)
@@ -308,7 +308,7 @@ module Stripe
308
308
  end
309
309
  end
310
310
 
311
- class CustomerUpdate < Stripe::RequestParams
311
+ class CustomerUpdate < ::Stripe::RequestParams
312
312
  # Describes whether Checkout saves the billing address onto `customer.address`.
313
313
  # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`.
314
314
  attr_accessor :address
@@ -325,7 +325,7 @@ module Stripe
325
325
  end
326
326
  end
327
327
 
328
- class Discount < Stripe::RequestParams
328
+ class Discount < ::Stripe::RequestParams
329
329
  # The ID of the coupon to apply to this Session.
330
330
  attr_accessor :coupon
331
331
  # The ID of a promotion code to apply to this Session.
@@ -337,9 +337,9 @@ module Stripe
337
337
  end
338
338
  end
339
339
 
340
- class InvoiceCreation < Stripe::RequestParams
341
- class InvoiceData < Stripe::RequestParams
342
- class CustomField < Stripe::RequestParams
340
+ class InvoiceCreation < ::Stripe::RequestParams
341
+ class InvoiceData < ::Stripe::RequestParams
342
+ class CustomField < ::Stripe::RequestParams
343
343
  # The name of the custom field. This may be up to 40 characters.
344
344
  attr_accessor :name
345
345
  # The value of the custom field. This may be up to 140 characters.
@@ -351,7 +351,7 @@ module Stripe
351
351
  end
352
352
  end
353
353
 
354
- class Issuer < Stripe::RequestParams
354
+ class Issuer < ::Stripe::RequestParams
355
355
  # The connected account being referenced when `type` is `account`.
356
356
  attr_accessor :account
357
357
  # Type of the account referenced in the request.
@@ -363,7 +363,7 @@ module Stripe
363
363
  end
364
364
  end
365
365
 
366
- class RenderingOptions < Stripe::RequestParams
366
+ class RenderingOptions < ::Stripe::RequestParams
367
367
  # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
368
368
  attr_accessor :amount_tax_display
369
369
  # ID of the invoice rendering template to use for this invoice.
@@ -384,7 +384,7 @@ module Stripe
384
384
  attr_accessor :footer
385
385
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
386
386
  attr_accessor :issuer
387
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
387
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
388
388
  attr_accessor :metadata
389
389
  # Default options for invoice PDF rendering for this customer.
390
390
  attr_accessor :rendering_options
@@ -418,8 +418,8 @@ module Stripe
418
418
  end
419
419
  end
420
420
 
421
- class LineItem < Stripe::RequestParams
422
- class AdjustableQuantity < Stripe::RequestParams
421
+ class LineItem < ::Stripe::RequestParams
422
+ class AdjustableQuantity < ::Stripe::RequestParams
423
423
  # Set to true if the quantity can be adjusted to any non-negative integer.
424
424
  attr_accessor :enabled
425
425
  # The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
@@ -434,17 +434,17 @@ module Stripe
434
434
  end
435
435
  end
436
436
 
437
- class PriceData < Stripe::RequestParams
438
- class ProductData < Stripe::RequestParams
437
+ class PriceData < ::Stripe::RequestParams
438
+ class ProductData < ::Stripe::RequestParams
439
439
  # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
440
440
  attr_accessor :description
441
441
  # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
442
442
  attr_accessor :images
443
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
443
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
444
444
  attr_accessor :metadata
445
445
  # The product's name, meant to be displayable to the customer.
446
446
  attr_accessor :name
447
- # A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
447
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
448
448
  attr_accessor :tax_code
449
449
  # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
450
450
  attr_accessor :unit_label
@@ -466,7 +466,7 @@ module Stripe
466
466
  end
467
467
  end
468
468
 
469
- class Recurring < Stripe::RequestParams
469
+ class Recurring < ::Stripe::RequestParams
470
470
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
471
471
  attr_accessor :interval
472
472
  # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
@@ -485,7 +485,7 @@ module Stripe
485
485
  attr_accessor :product_data
486
486
  # The recurring components of a price such as `interval` and `interval_count`.
487
487
  attr_accessor :recurring
488
- # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
488
+ # Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
489
489
  attr_accessor :tax_behavior
490
490
  # A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
491
491
  attr_accessor :unit_amount
@@ -509,23 +509,30 @@ module Stripe
509
509
  @unit_amount = unit_amount
510
510
  @unit_amount_decimal = unit_amount_decimal
511
511
  end
512
+
513
+ def self.field_encodings
514
+ @field_encodings = { unit_amount_decimal: :decimal_string }
515
+ end
512
516
  end
513
517
  # When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
514
518
  attr_accessor :adjustable_quantity
515
- # The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
519
+ # The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter if `ui_mode` is `custom`.
516
520
  attr_accessor :dynamic_tax_rates
517
- # The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
521
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
522
+ attr_accessor :metadata
523
+ # The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required.
518
524
  attr_accessor :price
519
- # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
525
+ # Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
520
526
  attr_accessor :price_data
521
527
  # The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
522
528
  attr_accessor :quantity
523
- # The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
529
+ # The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
524
530
  attr_accessor :tax_rates
525
531
 
526
532
  def initialize(
527
533
  adjustable_quantity: nil,
528
534
  dynamic_tax_rates: nil,
535
+ metadata: nil,
529
536
  price: nil,
530
537
  price_data: nil,
531
538
  quantity: nil,
@@ -533,15 +540,22 @@ module Stripe
533
540
  )
534
541
  @adjustable_quantity = adjustable_quantity
535
542
  @dynamic_tax_rates = dynamic_tax_rates
543
+ @metadata = metadata
536
544
  @price = price
537
545
  @price_data = price_data
538
546
  @quantity = quantity
539
547
  @tax_rates = tax_rates
540
548
  end
549
+
550
+ def self.field_encodings
551
+ @field_encodings = {
552
+ price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
553
+ }
554
+ end
541
555
  end
542
556
 
543
- class NameCollection < Stripe::RequestParams
544
- class Business < Stripe::RequestParams
557
+ class NameCollection < ::Stripe::RequestParams
558
+ class Business < ::Stripe::RequestParams
545
559
  # Enable business name collection on the Checkout Session. Defaults to `false`.
546
560
  attr_accessor :enabled
547
561
  # Whether the customer is required to provide a business name before completing the Checkout Session. Defaults to `false`.
@@ -553,7 +567,7 @@ module Stripe
553
567
  end
554
568
  end
555
569
 
556
- class Individual < Stripe::RequestParams
570
+ class Individual < ::Stripe::RequestParams
557
571
  # Enable individual name collection on the Checkout Session. Defaults to `false`.
558
572
  attr_accessor :enabled
559
573
  # Whether the customer is required to provide their name before completing the Checkout Session. Defaults to `false`.
@@ -575,8 +589,8 @@ module Stripe
575
589
  end
576
590
  end
577
591
 
578
- class OptionalItem < Stripe::RequestParams
579
- class AdjustableQuantity < Stripe::RequestParams
592
+ class OptionalItem < ::Stripe::RequestParams
593
+ class AdjustableQuantity < ::Stripe::RequestParams
580
594
  # Set to true if the quantity can be adjusted to any non-negative integer.
581
595
  attr_accessor :enabled
582
596
  # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
@@ -592,7 +606,7 @@ module Stripe
592
606
  end
593
607
  # When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
594
608
  attr_accessor :adjustable_quantity
595
- # The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
609
+ # The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object.
596
610
  attr_accessor :price
597
611
  # The initial quantity of the line item created when a customer chooses to add this optional item to their order.
598
612
  attr_accessor :quantity
@@ -604,9 +618,9 @@ module Stripe
604
618
  end
605
619
  end
606
620
 
607
- class PaymentIntentData < Stripe::RequestParams
608
- class Shipping < Stripe::RequestParams
609
- class Address < Stripe::RequestParams
621
+ class PaymentIntentData < ::Stripe::RequestParams
622
+ class Shipping < ::Stripe::RequestParams
623
+ class Address < ::Stripe::RequestParams
610
624
  # City, district, suburb, town, or village.
611
625
  attr_accessor :city
612
626
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -617,7 +631,7 @@ module Stripe
617
631
  attr_accessor :line2
618
632
  # ZIP or postal code.
619
633
  attr_accessor :postal_code
620
- # State, county, province, or region.
634
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
621
635
  attr_accessor :state
622
636
 
623
637
  def initialize(
@@ -656,7 +670,7 @@ module Stripe
656
670
  end
657
671
  end
658
672
 
659
- class TransferData < Stripe::RequestParams
673
+ class TransferData < ::Stripe::RequestParams
660
674
  # The amount that will be transferred automatically when a charge succeeds.
661
675
  attr_accessor :amount
662
676
  # If specified, successful charges will be attributed to the destination
@@ -670,13 +684,13 @@ module Stripe
670
684
  @destination = destination
671
685
  end
672
686
  end
673
- # 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).
687
+ # 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).
674
688
  attr_accessor :application_fee_amount
675
689
  # Controls when the funds will be captured from the customer's account.
676
690
  attr_accessor :capture_method
677
691
  # An arbitrary string attached to the object. Often useful for displaying to users.
678
692
  attr_accessor :description
679
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
693
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
680
694
  attr_accessor :metadata
681
695
  # The Stripe account ID for which these funds are intended. For details,
682
696
  # see the PaymentIntents [use case for connected
@@ -684,7 +698,7 @@ module Stripe
684
698
  attr_accessor :on_behalf_of
685
699
  # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
686
700
  attr_accessor :receipt_email
687
- # Indicates that you intend to [make future payments](https://stripe.com/docs/payments/payment-intents#future-usage) with the payment
701
+ # Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
688
702
  # method collected by this Checkout Session.
689
703
  #
690
704
  # When setting this to `on_session`, Checkout will show a notice to the
@@ -714,9 +728,9 @@ module Stripe
714
728
  # 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.
715
729
  attr_accessor :statement_descriptor_suffix
716
730
  # The parameters used to automatically create a Transfer when the payment succeeds.
717
- # For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
731
+ # For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
718
732
  attr_accessor :transfer_data
719
- # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
733
+ # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
720
734
  attr_accessor :transfer_group
721
735
 
722
736
  def initialize(
@@ -748,7 +762,7 @@ module Stripe
748
762
  end
749
763
  end
750
764
 
751
- class PaymentMethodData < Stripe::RequestParams
765
+ class PaymentMethodData < ::Stripe::RequestParams
752
766
  # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
753
767
  attr_accessor :allow_redisplay
754
768
 
@@ -757,9 +771,9 @@ module Stripe
757
771
  end
758
772
  end
759
773
 
760
- class PaymentMethodOptions < Stripe::RequestParams
761
- class AcssDebit < Stripe::RequestParams
762
- class MandateOptions < Stripe::RequestParams
774
+ class PaymentMethodOptions < ::Stripe::RequestParams
775
+ class AcssDebit < ::Stripe::RequestParams
776
+ class MandateOptions < ::Stripe::RequestParams
763
777
  # A URL for custom mandate text to render during confirmation step.
764
778
  # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
765
779
  # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
@@ -819,7 +833,7 @@ module Stripe
819
833
  end
820
834
  end
821
835
 
822
- class Affirm < Stripe::RequestParams
836
+ class Affirm < ::Stripe::RequestParams
823
837
  # Controls when the funds will be captured from the customer's account.
824
838
  attr_accessor :capture_method
825
839
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -837,7 +851,7 @@ module Stripe
837
851
  end
838
852
  end
839
853
 
840
- class AfterpayClearpay < Stripe::RequestParams
854
+ class AfterpayClearpay < ::Stripe::RequestParams
841
855
  # Controls when the funds will be captured from the customer's account.
842
856
  attr_accessor :capture_method
843
857
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -855,7 +869,7 @@ module Stripe
855
869
  end
856
870
  end
857
871
 
858
- class Alipay < Stripe::RequestParams
872
+ class Alipay < ::Stripe::RequestParams
859
873
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
860
874
  #
861
875
  # 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.
@@ -870,7 +884,7 @@ module Stripe
870
884
  end
871
885
  end
872
886
 
873
- class Alma < Stripe::RequestParams
887
+ class Alma < ::Stripe::RequestParams
874
888
  # Controls when the funds will be captured from the customer's account.
875
889
  attr_accessor :capture_method
876
890
 
@@ -879,7 +893,7 @@ module Stripe
879
893
  end
880
894
  end
881
895
 
882
- class AmazonPay < Stripe::RequestParams
896
+ class AmazonPay < ::Stripe::RequestParams
883
897
  # Controls when the funds will be captured from the customer's account.
884
898
  attr_accessor :capture_method
885
899
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -897,7 +911,7 @@ module Stripe
897
911
  end
898
912
  end
899
913
 
900
- class AuBecsDebit < Stripe::RequestParams
914
+ class AuBecsDebit < ::Stripe::RequestParams
901
915
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
902
916
  #
903
917
  # 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.
@@ -915,8 +929,8 @@ module Stripe
915
929
  end
916
930
  end
917
931
 
918
- class BacsDebit < Stripe::RequestParams
919
- class MandateOptions < Stripe::RequestParams
932
+ class BacsDebit < ::Stripe::RequestParams
933
+ class MandateOptions < ::Stripe::RequestParams
920
934
  # 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'.
921
935
  attr_accessor :reference_prefix
922
936
 
@@ -944,7 +958,7 @@ module Stripe
944
958
  end
945
959
  end
946
960
 
947
- class Bancontact < Stripe::RequestParams
961
+ class Bancontact < ::Stripe::RequestParams
948
962
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
949
963
  #
950
964
  # 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.
@@ -959,7 +973,7 @@ module Stripe
959
973
  end
960
974
  end
961
975
 
962
- class Billie < Stripe::RequestParams
976
+ class Billie < ::Stripe::RequestParams
963
977
  # Controls when the funds will be captured from the customer's account.
964
978
  attr_accessor :capture_method
965
979
 
@@ -968,7 +982,7 @@ module Stripe
968
982
  end
969
983
  end
970
984
 
971
- class Boleto < Stripe::RequestParams
985
+ class Boleto < ::Stripe::RequestParams
972
986
  # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
973
987
  attr_accessor :expires_after_days
974
988
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -986,8 +1000,8 @@ module Stripe
986
1000
  end
987
1001
  end
988
1002
 
989
- class Card < Stripe::RequestParams
990
- class Installments < Stripe::RequestParams
1003
+ class Card < ::Stripe::RequestParams
1004
+ class Installments < ::Stripe::RequestParams
991
1005
  # Setting to true enables installments for this Checkout Session.
992
1006
  # Setting to false will prevent any installment plan from applying to a payment.
993
1007
  attr_accessor :enabled
@@ -997,7 +1011,7 @@ module Stripe
997
1011
  end
998
1012
  end
999
1013
 
1000
- class Restrictions < Stripe::RequestParams
1014
+ class Restrictions < ::Stripe::RequestParams
1001
1015
  # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
1002
1016
  attr_accessor :brands_blocked
1003
1017
 
@@ -1017,9 +1031,9 @@ module Stripe
1017
1031
  attr_accessor :request_multicapture
1018
1032
  # Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
1019
1033
  attr_accessor :request_overcapture
1020
- # 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.
1034
+ # 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.
1021
1035
  attr_accessor :request_three_d_secure
1022
- # Restrictions to apply to the card payment method. For example, you can block specific card brands.
1036
+ # Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter if `ui_mode` is `custom`.
1023
1037
  attr_accessor :restrictions
1024
1038
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1025
1039
  #
@@ -1061,7 +1075,7 @@ module Stripe
1061
1075
  end
1062
1076
  end
1063
1077
 
1064
- class Cashapp < Stripe::RequestParams
1078
+ class Cashapp < ::Stripe::RequestParams
1065
1079
  # Controls when the funds will be captured from the customer's account.
1066
1080
  attr_accessor :capture_method
1067
1081
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1079,10 +1093,25 @@ module Stripe
1079
1093
  end
1080
1094
  end
1081
1095
 
1082
- class CustomerBalance < Stripe::RequestParams
1083
- class BankTransfer < Stripe::RequestParams
1084
- class EuBankTransfer < Stripe::RequestParams
1085
- # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1096
+ class Crypto < ::Stripe::RequestParams
1097
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1098
+ #
1099
+ # 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.
1100
+ #
1101
+ # 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.
1102
+ #
1103
+ # 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).
1104
+ attr_accessor :setup_future_usage
1105
+
1106
+ def initialize(setup_future_usage: nil)
1107
+ @setup_future_usage = setup_future_usage
1108
+ end
1109
+ end
1110
+
1111
+ class CustomerBalance < ::Stripe::RequestParams
1112
+ class BankTransfer < ::Stripe::RequestParams
1113
+ class EuBankTransfer < ::Stripe::RequestParams
1114
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
1086
1115
  attr_accessor :country
1087
1116
 
1088
1117
  def initialize(country: nil)
@@ -1124,7 +1153,7 @@ module Stripe
1124
1153
  end
1125
1154
  end
1126
1155
 
1127
- class DemoPay < Stripe::RequestParams
1156
+ class DemoPay < ::Stripe::RequestParams
1128
1157
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1129
1158
  #
1130
1159
  # 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.
@@ -1139,7 +1168,7 @@ module Stripe
1139
1168
  end
1140
1169
  end
1141
1170
 
1142
- class Eps < Stripe::RequestParams
1171
+ class Eps < ::Stripe::RequestParams
1143
1172
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1144
1173
  #
1145
1174
  # 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.
@@ -1154,7 +1183,7 @@ module Stripe
1154
1183
  end
1155
1184
  end
1156
1185
 
1157
- class Fpx < Stripe::RequestParams
1186
+ class Fpx < ::Stripe::RequestParams
1158
1187
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1159
1188
  #
1160
1189
  # 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.
@@ -1169,7 +1198,7 @@ module Stripe
1169
1198
  end
1170
1199
  end
1171
1200
 
1172
- class Giropay < Stripe::RequestParams
1201
+ class Giropay < ::Stripe::RequestParams
1173
1202
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1174
1203
  #
1175
1204
  # 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.
@@ -1184,7 +1213,7 @@ module Stripe
1184
1213
  end
1185
1214
  end
1186
1215
 
1187
- class Grabpay < Stripe::RequestParams
1216
+ class Grabpay < ::Stripe::RequestParams
1188
1217
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1189
1218
  #
1190
1219
  # 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.
@@ -1199,7 +1228,7 @@ module Stripe
1199
1228
  end
1200
1229
  end
1201
1230
 
1202
- class Ideal < Stripe::RequestParams
1231
+ class Ideal < ::Stripe::RequestParams
1203
1232
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1204
1233
  #
1205
1234
  # 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.
@@ -1214,7 +1243,7 @@ module Stripe
1214
1243
  end
1215
1244
  end
1216
1245
 
1217
- class KakaoPay < Stripe::RequestParams
1246
+ class KakaoPay < ::Stripe::RequestParams
1218
1247
  # Controls when the funds will be captured from the customer's account.
1219
1248
  attr_accessor :capture_method
1220
1249
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1232,9 +1261,9 @@ module Stripe
1232
1261
  end
1233
1262
  end
1234
1263
 
1235
- class Klarna < Stripe::RequestParams
1236
- class Subscription < Stripe::RequestParams
1237
- class NextBilling < Stripe::RequestParams
1264
+ class Klarna < ::Stripe::RequestParams
1265
+ class Subscription < ::Stripe::RequestParams
1266
+ class NextBilling < ::Stripe::RequestParams
1238
1267
  # The amount of the next charge for the subscription.
1239
1268
  attr_accessor :amount
1240
1269
  # The date of the next charge for the subscription in YYYY-MM-DD format.
@@ -1290,7 +1319,7 @@ module Stripe
1290
1319
  end
1291
1320
  end
1292
1321
 
1293
- class Konbini < Stripe::RequestParams
1322
+ class Konbini < ::Stripe::RequestParams
1294
1323
  # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
1295
1324
  attr_accessor :expires_after_days
1296
1325
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1308,7 +1337,7 @@ module Stripe
1308
1337
  end
1309
1338
  end
1310
1339
 
1311
- class KrCard < Stripe::RequestParams
1340
+ class KrCard < ::Stripe::RequestParams
1312
1341
  # Controls when the funds will be captured from the customer's account.
1313
1342
  attr_accessor :capture_method
1314
1343
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1326,7 +1355,7 @@ module Stripe
1326
1355
  end
1327
1356
  end
1328
1357
 
1329
- class Link < Stripe::RequestParams
1358
+ class Link < ::Stripe::RequestParams
1330
1359
  # Controls when the funds will be captured from the customer's account.
1331
1360
  attr_accessor :capture_method
1332
1361
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1344,7 +1373,7 @@ module Stripe
1344
1373
  end
1345
1374
  end
1346
1375
 
1347
- class Mobilepay < Stripe::RequestParams
1376
+ class Mobilepay < ::Stripe::RequestParams
1348
1377
  # Controls when the funds will be captured from the customer's account.
1349
1378
  attr_accessor :capture_method
1350
1379
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1362,7 +1391,7 @@ module Stripe
1362
1391
  end
1363
1392
  end
1364
1393
 
1365
- class Multibanco < Stripe::RequestParams
1394
+ class Multibanco < ::Stripe::RequestParams
1366
1395
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1367
1396
  #
1368
1397
  # 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.
@@ -1377,7 +1406,7 @@ module Stripe
1377
1406
  end
1378
1407
  end
1379
1408
 
1380
- class NaverPay < Stripe::RequestParams
1409
+ class NaverPay < ::Stripe::RequestParams
1381
1410
  # Controls when the funds will be captured from the customer's account.
1382
1411
  attr_accessor :capture_method
1383
1412
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1395,7 +1424,7 @@ module Stripe
1395
1424
  end
1396
1425
  end
1397
1426
 
1398
- class Oxxo < Stripe::RequestParams
1427
+ class Oxxo < ::Stripe::RequestParams
1399
1428
  # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1400
1429
  attr_accessor :expires_after_days
1401
1430
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1413,7 +1442,7 @@ module Stripe
1413
1442
  end
1414
1443
  end
1415
1444
 
1416
- class P24 < Stripe::RequestParams
1445
+ class P24 < ::Stripe::RequestParams
1417
1446
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1418
1447
  #
1419
1448
  # 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.
@@ -1431,9 +1460,9 @@ module Stripe
1431
1460
  end
1432
1461
  end
1433
1462
 
1434
- class PayByBank < Stripe::RequestParams; end
1463
+ class PayByBank < ::Stripe::RequestParams; end
1435
1464
 
1436
- class Payco < Stripe::RequestParams
1465
+ class Payco < ::Stripe::RequestParams
1437
1466
  # Controls when the funds will be captured from the customer's account.
1438
1467
  attr_accessor :capture_method
1439
1468
 
@@ -1442,7 +1471,7 @@ module Stripe
1442
1471
  end
1443
1472
  end
1444
1473
 
1445
- class Paynow < Stripe::RequestParams
1474
+ class Paynow < ::Stripe::RequestParams
1446
1475
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1447
1476
  #
1448
1477
  # 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.
@@ -1457,10 +1486,10 @@ module Stripe
1457
1486
  end
1458
1487
  end
1459
1488
 
1460
- class Paypal < Stripe::RequestParams
1489
+ class Paypal < ::Stripe::RequestParams
1461
1490
  # Controls when the funds will be captured from the customer's account.
1462
1491
  attr_accessor :capture_method
1463
- # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1492
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1464
1493
  attr_accessor :preferred_locale
1465
1494
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1466
1495
  attr_accessor :reference
@@ -1492,7 +1521,59 @@ module Stripe
1492
1521
  end
1493
1522
  end
1494
1523
 
1495
- class Pix < Stripe::RequestParams
1524
+ class Payto < ::Stripe::RequestParams
1525
+ class MandateOptions < ::Stripe::RequestParams
1526
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
1527
+ attr_accessor :amount
1528
+ # 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`.
1529
+ attr_accessor :amount_type
1530
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1531
+ attr_accessor :end_date
1532
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
1533
+ attr_accessor :payment_schedule
1534
+ # 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.
1535
+ attr_accessor :payments_per_period
1536
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
1537
+ attr_accessor :purpose
1538
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1539
+ attr_accessor :start_date
1540
+
1541
+ def initialize(
1542
+ amount: nil,
1543
+ amount_type: nil,
1544
+ end_date: nil,
1545
+ payment_schedule: nil,
1546
+ payments_per_period: nil,
1547
+ purpose: nil,
1548
+ start_date: nil
1549
+ )
1550
+ @amount = amount
1551
+ @amount_type = amount_type
1552
+ @end_date = end_date
1553
+ @payment_schedule = payment_schedule
1554
+ @payments_per_period = payments_per_period
1555
+ @purpose = purpose
1556
+ @start_date = start_date
1557
+ end
1558
+ end
1559
+ # Additional fields for Mandate creation
1560
+ attr_accessor :mandate_options
1561
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1562
+ #
1563
+ # 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.
1564
+ #
1565
+ # 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.
1566
+ #
1567
+ # 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).
1568
+ attr_accessor :setup_future_usage
1569
+
1570
+ def initialize(mandate_options: nil, setup_future_usage: nil)
1571
+ @mandate_options = mandate_options
1572
+ @setup_future_usage = setup_future_usage
1573
+ end
1574
+ end
1575
+
1576
+ class Pix < ::Stripe::RequestParams
1496
1577
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1497
1578
  attr_accessor :amount_includes_iof
1498
1579
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -1517,7 +1598,7 @@ module Stripe
1517
1598
  end
1518
1599
  end
1519
1600
 
1520
- class RevolutPay < Stripe::RequestParams
1601
+ class RevolutPay < ::Stripe::RequestParams
1521
1602
  # Controls when the funds will be captured from the customer's account.
1522
1603
  attr_accessor :capture_method
1523
1604
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1535,7 +1616,7 @@ module Stripe
1535
1616
  end
1536
1617
  end
1537
1618
 
1538
- class SamsungPay < Stripe::RequestParams
1619
+ class SamsungPay < ::Stripe::RequestParams
1539
1620
  # Controls when the funds will be captured from the customer's account.
1540
1621
  attr_accessor :capture_method
1541
1622
 
@@ -1544,7 +1625,7 @@ module Stripe
1544
1625
  end
1545
1626
  end
1546
1627
 
1547
- class Satispay < Stripe::RequestParams
1628
+ class Satispay < ::Stripe::RequestParams
1548
1629
  # Controls when the funds will be captured from the customer's account.
1549
1630
  attr_accessor :capture_method
1550
1631
 
@@ -1553,8 +1634,8 @@ module Stripe
1553
1634
  end
1554
1635
  end
1555
1636
 
1556
- class SepaDebit < Stripe::RequestParams
1557
- class MandateOptions < Stripe::RequestParams
1637
+ class SepaDebit < ::Stripe::RequestParams
1638
+ class MandateOptions < ::Stripe::RequestParams
1558
1639
  # 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'.
1559
1640
  attr_accessor :reference_prefix
1560
1641
 
@@ -1582,7 +1663,7 @@ module Stripe
1582
1663
  end
1583
1664
  end
1584
1665
 
1585
- class Sofort < Stripe::RequestParams
1666
+ class Sofort < ::Stripe::RequestParams
1586
1667
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1587
1668
  #
1588
1669
  # 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.
@@ -1597,7 +1678,7 @@ module Stripe
1597
1678
  end
1598
1679
  end
1599
1680
 
1600
- class Swish < Stripe::RequestParams
1681
+ class Swish < ::Stripe::RequestParams
1601
1682
  # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
1602
1683
  attr_accessor :reference
1603
1684
 
@@ -1606,8 +1687,52 @@ module Stripe
1606
1687
  end
1607
1688
  end
1608
1689
 
1609
- class UsBankAccount < Stripe::RequestParams
1610
- class FinancialConnections < Stripe::RequestParams
1690
+ class Twint < ::Stripe::RequestParams
1691
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1692
+ #
1693
+ # 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.
1694
+ #
1695
+ # 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.
1696
+ #
1697
+ # 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).
1698
+ attr_accessor :setup_future_usage
1699
+
1700
+ def initialize(setup_future_usage: nil)
1701
+ @setup_future_usage = setup_future_usage
1702
+ end
1703
+ end
1704
+
1705
+ class Upi < ::Stripe::RequestParams
1706
+ class MandateOptions < ::Stripe::RequestParams
1707
+ # Amount to be charged for future payments.
1708
+ attr_accessor :amount
1709
+ # 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.
1710
+ attr_accessor :amount_type
1711
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
1712
+ attr_accessor :description
1713
+ # End date of the mandate or subscription.
1714
+ attr_accessor :end_date
1715
+
1716
+ def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
1717
+ @amount = amount
1718
+ @amount_type = amount_type
1719
+ @description = description
1720
+ @end_date = end_date
1721
+ end
1722
+ end
1723
+ # Additional fields for Mandate creation
1724
+ attr_accessor :mandate_options
1725
+ # Attribute for param field setup_future_usage
1726
+ attr_accessor :setup_future_usage
1727
+
1728
+ def initialize(mandate_options: nil, setup_future_usage: nil)
1729
+ @mandate_options = mandate_options
1730
+ @setup_future_usage = setup_future_usage
1731
+ end
1732
+ end
1733
+
1734
+ class UsBankAccount < ::Stripe::RequestParams
1735
+ class FinancialConnections < ::Stripe::RequestParams
1611
1736
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1612
1737
  attr_accessor :permissions
1613
1738
  # List of data features that you would like to retrieve upon account creation.
@@ -1646,7 +1771,7 @@ module Stripe
1646
1771
  end
1647
1772
  end
1648
1773
 
1649
- class WechatPay < Stripe::RequestParams
1774
+ class WechatPay < ::Stripe::RequestParams
1650
1775
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
1651
1776
  attr_accessor :app_id
1652
1777
  # The client type that the end customer will pay from
@@ -1666,7 +1791,7 @@ module Stripe
1666
1791
  @setup_future_usage = setup_future_usage
1667
1792
  end
1668
1793
  end
1669
- # contains details about the ACSS Debit payment method options.
1794
+ # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`.
1670
1795
  attr_accessor :acss_debit
1671
1796
  # contains details about the Affirm payment method options.
1672
1797
  attr_accessor :affirm
@@ -1692,6 +1817,8 @@ module Stripe
1692
1817
  attr_accessor :card
1693
1818
  # contains details about the Cashapp Pay payment method options.
1694
1819
  attr_accessor :cashapp
1820
+ # contains details about the Crypto payment method options.
1821
+ attr_accessor :crypto
1695
1822
  # contains details about the Customer Balance payment method options.
1696
1823
  attr_accessor :customer_balance
1697
1824
  # contains details about the DemoPay payment method options.
@@ -1734,6 +1861,8 @@ module Stripe
1734
1861
  attr_accessor :paynow
1735
1862
  # contains details about the PayPal payment method options.
1736
1863
  attr_accessor :paypal
1864
+ # contains details about the PayTo payment method options.
1865
+ attr_accessor :payto
1737
1866
  # contains details about the Pix payment method options.
1738
1867
  attr_accessor :pix
1739
1868
  # contains details about the RevolutPay payment method options.
@@ -1748,6 +1877,10 @@ module Stripe
1748
1877
  attr_accessor :sofort
1749
1878
  # contains details about the Swish payment method options.
1750
1879
  attr_accessor :swish
1880
+ # contains details about the TWINT payment method options.
1881
+ attr_accessor :twint
1882
+ # contains details about the UPI payment method options.
1883
+ attr_accessor :upi
1751
1884
  # contains details about the Us Bank Account payment method options.
1752
1885
  attr_accessor :us_bank_account
1753
1886
  # contains details about the WeChat Pay payment method options.
@@ -1767,6 +1900,7 @@ module Stripe
1767
1900
  boleto: nil,
1768
1901
  card: nil,
1769
1902
  cashapp: nil,
1903
+ crypto: nil,
1770
1904
  customer_balance: nil,
1771
1905
  demo_pay: nil,
1772
1906
  eps: nil,
@@ -1788,6 +1922,7 @@ module Stripe
1788
1922
  payco: nil,
1789
1923
  paynow: nil,
1790
1924
  paypal: nil,
1925
+ payto: nil,
1791
1926
  pix: nil,
1792
1927
  revolut_pay: nil,
1793
1928
  samsung_pay: nil,
@@ -1795,6 +1930,8 @@ module Stripe
1795
1930
  sepa_debit: nil,
1796
1931
  sofort: nil,
1797
1932
  swish: nil,
1933
+ twint: nil,
1934
+ upi: nil,
1798
1935
  us_bank_account: nil,
1799
1936
  wechat_pay: nil
1800
1937
  )
@@ -1811,6 +1948,7 @@ module Stripe
1811
1948
  @boleto = boleto
1812
1949
  @card = card
1813
1950
  @cashapp = cashapp
1951
+ @crypto = crypto
1814
1952
  @customer_balance = customer_balance
1815
1953
  @demo_pay = demo_pay
1816
1954
  @eps = eps
@@ -1832,6 +1970,7 @@ module Stripe
1832
1970
  @payco = payco
1833
1971
  @paynow = paynow
1834
1972
  @paypal = paypal
1973
+ @payto = payto
1835
1974
  @pix = pix
1836
1975
  @revolut_pay = revolut_pay
1837
1976
  @samsung_pay = samsung_pay
@@ -1839,12 +1978,14 @@ module Stripe
1839
1978
  @sepa_debit = sepa_debit
1840
1979
  @sofort = sofort
1841
1980
  @swish = swish
1981
+ @twint = twint
1982
+ @upi = upi
1842
1983
  @us_bank_account = us_bank_account
1843
1984
  @wechat_pay = wechat_pay
1844
1985
  end
1845
1986
  end
1846
1987
 
1847
- class Permissions < Stripe::RequestParams
1988
+ class Permissions < ::Stripe::RequestParams
1848
1989
  # Determines which entity is allowed to update the shipping details.
1849
1990
  #
1850
1991
  # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
@@ -1857,7 +1998,7 @@ module Stripe
1857
1998
  end
1858
1999
  end
1859
2000
 
1860
- class PhoneNumberCollection < Stripe::RequestParams
2001
+ class PhoneNumberCollection < ::Stripe::RequestParams
1861
2002
  # Set to `true` to enable phone number collection.
1862
2003
  #
1863
2004
  # Can only be set in `payment` and `subscription` mode.
@@ -1868,7 +2009,7 @@ module Stripe
1868
2009
  end
1869
2010
  end
1870
2011
 
1871
- class SavedPaymentMethodOptions < Stripe::RequestParams
2012
+ class SavedPaymentMethodOptions < ::Stripe::RequestParams
1872
2013
  # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
1873
2014
  attr_accessor :allow_redisplay_filters
1874
2015
  # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
@@ -1887,10 +2028,10 @@ module Stripe
1887
2028
  end
1888
2029
  end
1889
2030
 
1890
- class SetupIntentData < Stripe::RequestParams
2031
+ class SetupIntentData < ::Stripe::RequestParams
1891
2032
  # An arbitrary string attached to the object. Often useful for displaying to users.
1892
2033
  attr_accessor :description
1893
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2034
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1894
2035
  attr_accessor :metadata
1895
2036
  # The Stripe account for which the setup is intended.
1896
2037
  attr_accessor :on_behalf_of
@@ -1902,7 +2043,7 @@ module Stripe
1902
2043
  end
1903
2044
  end
1904
2045
 
1905
- class ShippingAddressCollection < Stripe::RequestParams
2046
+ class ShippingAddressCollection < ::Stripe::RequestParams
1906
2047
  # An array of two-letter ISO country codes representing which countries Checkout should provide as options for
1907
2048
  # shipping locations.
1908
2049
  attr_accessor :allowed_countries
@@ -1912,10 +2053,10 @@ module Stripe
1912
2053
  end
1913
2054
  end
1914
2055
 
1915
- class ShippingOption < Stripe::RequestParams
1916
- class ShippingRateData < Stripe::RequestParams
1917
- class DeliveryEstimate < Stripe::RequestParams
1918
- class Maximum < Stripe::RequestParams
2056
+ class ShippingOption < ::Stripe::RequestParams
2057
+ class ShippingRateData < ::Stripe::RequestParams
2058
+ class DeliveryEstimate < ::Stripe::RequestParams
2059
+ class Maximum < ::Stripe::RequestParams
1919
2060
  # A unit of time.
1920
2061
  attr_accessor :unit
1921
2062
  # Must be greater than 0.
@@ -1927,7 +2068,7 @@ module Stripe
1927
2068
  end
1928
2069
  end
1929
2070
 
1930
- class Minimum < Stripe::RequestParams
2071
+ class Minimum < ::Stripe::RequestParams
1931
2072
  # A unit of time.
1932
2073
  attr_accessor :unit
1933
2074
  # Must be greater than 0.
@@ -1949,8 +2090,8 @@ module Stripe
1949
2090
  end
1950
2091
  end
1951
2092
 
1952
- class FixedAmount < Stripe::RequestParams
1953
- class CurrencyOptions < Stripe::RequestParams
2093
+ class FixedAmount < ::Stripe::RequestParams
2094
+ class CurrencyOptions < ::Stripe::RequestParams
1954
2095
  # A non-negative integer in cents representing how much to charge.
1955
2096
  attr_accessor :amount
1956
2097
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
@@ -1980,11 +2121,11 @@ module Stripe
1980
2121
  attr_accessor :display_name
1981
2122
  # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1982
2123
  attr_accessor :fixed_amount
1983
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2124
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1984
2125
  attr_accessor :metadata
1985
2126
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1986
2127
  attr_accessor :tax_behavior
1987
- # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2128
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1988
2129
  attr_accessor :tax_code
1989
2130
  # The type of calculation to use on the shipping rate.
1990
2131
  attr_accessor :type
@@ -2018,9 +2159,9 @@ module Stripe
2018
2159
  end
2019
2160
  end
2020
2161
 
2021
- class SubscriptionData < Stripe::RequestParams
2022
- class BillingMode < Stripe::RequestParams
2023
- class Flexible < Stripe::RequestParams
2162
+ class SubscriptionData < ::Stripe::RequestParams
2163
+ class BillingMode < ::Stripe::RequestParams
2164
+ class Flexible < ::Stripe::RequestParams
2024
2165
  # Controls how invoices and invoice items display proration amounts and discount amounts.
2025
2166
  attr_accessor :proration_discounts
2026
2167
 
@@ -2039,8 +2180,8 @@ module Stripe
2039
2180
  end
2040
2181
  end
2041
2182
 
2042
- class InvoiceSettings < Stripe::RequestParams
2043
- class Issuer < Stripe::RequestParams
2183
+ class InvoiceSettings < ::Stripe::RequestParams
2184
+ class Issuer < ::Stripe::RequestParams
2044
2185
  # The connected account being referenced when `type` is `account`.
2045
2186
  attr_accessor :account
2046
2187
  # Type of the account referenced in the request.
@@ -2059,7 +2200,19 @@ module Stripe
2059
2200
  end
2060
2201
  end
2061
2202
 
2062
- class TransferData < Stripe::RequestParams
2203
+ class PendingInvoiceItemInterval < ::Stripe::RequestParams
2204
+ # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
2205
+ attr_accessor :interval
2206
+ # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
2207
+ attr_accessor :interval_count
2208
+
2209
+ def initialize(interval: nil, interval_count: nil)
2210
+ @interval = interval
2211
+ @interval_count = interval_count
2212
+ end
2213
+ end
2214
+
2215
+ class TransferData < ::Stripe::RequestParams
2063
2216
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
2064
2217
  attr_accessor :amount_percent
2065
2218
  # ID of an existing, connected Stripe account.
@@ -2071,8 +2224,8 @@ module Stripe
2071
2224
  end
2072
2225
  end
2073
2226
 
2074
- class TrialSettings < Stripe::RequestParams
2075
- class EndBehavior < Stripe::RequestParams
2227
+ class TrialSettings < ::Stripe::RequestParams
2228
+ class EndBehavior < ::Stripe::RequestParams
2076
2229
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
2077
2230
  attr_accessor :missing_payment_method
2078
2231
 
@@ -2089,7 +2242,7 @@ module Stripe
2089
2242
  end
2090
2243
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
2091
2244
  attr_accessor :application_fee_percent
2092
- # A future timestamp to anchor the subscription's billing cycle for new subscriptions.
2245
+ # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`.
2093
2246
  attr_accessor :billing_cycle_anchor
2094
2247
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2095
2248
  attr_accessor :billing_mode
@@ -2099,14 +2252,16 @@ module Stripe
2099
2252
  attr_accessor :default_tax_rates
2100
2253
  # The subscription's description, meant to be displayable to the customer.
2101
2254
  # Use this field to optionally store an explanation of the subscription
2102
- # for rendering in the [customer portal](https://stripe.com/docs/customer-management).
2255
+ # for rendering in the [customer portal](https://docs.stripe.com/customer-management).
2103
2256
  attr_accessor :description
2104
2257
  # All invoices will be billed using the specified settings.
2105
2258
  attr_accessor :invoice_settings
2106
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2259
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2107
2260
  attr_accessor :metadata
2108
2261
  # The account on behalf of which to charge, for each of the subscription's invoices.
2109
2262
  attr_accessor :on_behalf_of
2263
+ # Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
2264
+ attr_accessor :pending_invoice_item_interval
2110
2265
  # Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
2111
2266
  attr_accessor :proration_behavior
2112
2267
  # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
@@ -2127,6 +2282,7 @@ module Stripe
2127
2282
  invoice_settings: nil,
2128
2283
  metadata: nil,
2129
2284
  on_behalf_of: nil,
2285
+ pending_invoice_item_interval: nil,
2130
2286
  proration_behavior: nil,
2131
2287
  transfer_data: nil,
2132
2288
  trial_end: nil,
@@ -2141,6 +2297,7 @@ module Stripe
2141
2297
  @invoice_settings = invoice_settings
2142
2298
  @metadata = metadata
2143
2299
  @on_behalf_of = on_behalf_of
2300
+ @pending_invoice_item_interval = pending_invoice_item_interval
2144
2301
  @proration_behavior = proration_behavior
2145
2302
  @transfer_data = transfer_data
2146
2303
  @trial_end = trial_end
@@ -2149,10 +2306,10 @@ module Stripe
2149
2306
  end
2150
2307
  end
2151
2308
 
2152
- class TaxIdCollection < Stripe::RequestParams
2309
+ class TaxIdCollection < ::Stripe::RequestParams
2153
2310
  # Enable tax ID collection during checkout. Defaults to `false`.
2154
2311
  attr_accessor :enabled
2155
- # Describes whether a tax ID is required during checkout. Defaults to `never`.
2312
+ # Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
2156
2313
  attr_accessor :required
2157
2314
 
2158
2315
  def initialize(enabled: nil, required: nil)
@@ -2161,8 +2318,8 @@ module Stripe
2161
2318
  end
2162
2319
  end
2163
2320
 
2164
- class WalletOptions < Stripe::RequestParams
2165
- class Link < Stripe::RequestParams
2321
+ class WalletOptions < ::Stripe::RequestParams
2322
+ class Link < ::Stripe::RequestParams
2166
2323
  # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
2167
2324
  attr_accessor :display
2168
2325
 
@@ -2179,7 +2336,7 @@ module Stripe
2179
2336
  end
2180
2337
  # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
2181
2338
  attr_accessor :adaptive_pricing
2182
- # Configure actions after a Checkout Session has expired.
2339
+ # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`.
2183
2340
  attr_accessor :after_expiration
2184
2341
  # Enables user redeemable promotion codes.
2185
2342
  attr_accessor :allow_promotion_codes
@@ -2199,28 +2356,30 @@ module Stripe
2199
2356
  attr_accessor :consent_collection
2200
2357
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `payment_method_types` is not set.
2201
2358
  attr_accessor :currency
2202
- # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
2359
+ # Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
2203
2360
  attr_accessor :custom_fields
2204
- # Display additional text for your customers using custom text.
2361
+ # Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.
2205
2362
  attr_accessor :custom_text
2206
2363
  # ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card
2207
2364
  # payment method will be used to prefill the email, name, card details, and billing address
2208
- # on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
2365
+ # on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)
2209
2366
  # will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
2210
2367
  #
2211
- # If the Customer already has a valid [email](https://stripe.com/docs/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
2368
+ # If the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
2212
2369
  # If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
2213
2370
  #
2214
2371
  # If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
2215
2372
  #
2216
- # You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
2373
+ # You can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
2217
2374
  attr_accessor :customer
2218
- # Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
2375
+ # ID of an existing Account, if one exists. Has the same behavior as `customer`.
2376
+ attr_accessor :customer_account
2377
+ # Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.
2219
2378
  #
2220
2379
  # When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
2221
- # with [customer_details](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_details).
2380
+ # with [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).
2222
2381
  #
2223
- # Sessions that don't create Customers instead are grouped by [guest customers](https://stripe.com/docs/payments/checkout/guest-customers)
2382
+ # Sessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)
2224
2383
  # in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
2225
2384
  #
2226
2385
  # Can only be set in `payment` and `setup` mode.
@@ -2241,9 +2400,11 @@ module Stripe
2241
2400
  attr_accessor :expand
2242
2401
  # The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
2243
2402
  attr_accessor :expires_at
2403
+ # The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.
2404
+ attr_accessor :integration_identifier
2244
2405
  # Generate a post-purchase Invoice for one-time payments.
2245
2406
  attr_accessor :invoice_creation
2246
- # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
2407
+ # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
2247
2408
  #
2248
2409
  # For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
2249
2410
  #
@@ -2251,7 +2412,7 @@ module Stripe
2251
2412
  attr_accessor :line_items
2252
2413
  # The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
2253
2414
  attr_accessor :locale
2254
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2415
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2255
2416
  attr_accessor :metadata
2256
2417
  # The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
2257
2418
  attr_accessor :mode
@@ -2259,17 +2420,21 @@ module Stripe
2259
2420
  #
2260
2421
  # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
2261
2422
  #
2262
- # If a [Customer](https://stripe.com/docs/api/customers) is created or provided, the names can be saved to the Customer object as well.
2423
+ # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
2424
+ #
2425
+ # You can't set this parameter if `ui_mode` is `custom`.
2263
2426
  attr_accessor :name_collection
2264
- # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
2427
+ # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
2265
2428
  #
2266
2429
  # There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
2267
2430
  #
2268
2431
  # For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
2269
2432
  #
2270
2433
  # For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
2434
+ #
2435
+ # You can't set this parameter if `ui_mode` is `custom`.
2271
2436
  attr_accessor :optional_items
2272
- # Where the user is coming from. This informs the optimizations that are applied to the session.
2437
+ # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`.
2273
2438
  attr_accessor :origin_context
2274
2439
  # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
2275
2440
  attr_accessor :payment_intent_data
@@ -2278,7 +2443,7 @@ module Stripe
2278
2443
  #
2279
2444
  # Can only be set in `subscription` mode. Defaults to `always`.
2280
2445
  #
2281
- # If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
2446
+ # If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
2282
2447
  attr_accessor :payment_method_collection
2283
2448
  # The ID of the payment method configuration to use with this Checkout session.
2284
2449
  attr_accessor :payment_method_configuration
@@ -2289,7 +2454,7 @@ module Stripe
2289
2454
  # A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
2290
2455
  #
2291
2456
  # You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
2292
- # See [Dynamic Payment Methods](https://stripe.com/docs/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
2457
+ # See [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
2293
2458
  #
2294
2459
  # Read more about the supported payment methods and their requirements in our [payment
2295
2460
  # method details guide](/docs/payments/checkout/payment-methods).
@@ -2305,9 +2470,9 @@ module Stripe
2305
2470
  # Controls phone number collection settings for the session.
2306
2471
  #
2307
2472
  # We recommend that you review your privacy policy and check with your legal contacts
2308
- # before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/docs/payments/checkout/phone-numbers).
2473
+ # before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).
2309
2474
  attr_accessor :phone_number_collection
2310
- # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2475
+ # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2311
2476
  attr_accessor :redirect_on_completion
2312
2477
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the
2313
2478
  # payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
@@ -2325,6 +2490,7 @@ module Stripe
2325
2490
  # to customize relevant text on the page, such as the submit button.
2326
2491
  # `submit_type` can only be specified on Checkout Sessions in
2327
2492
  # `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
2493
+ # You can't set this parameter if `ui_mode` is `custom`.
2328
2494
  attr_accessor :submit_type
2329
2495
  # A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
2330
2496
  attr_accessor :subscription_data
@@ -2332,7 +2498,7 @@ module Stripe
2332
2498
  # is complete.
2333
2499
  # This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
2334
2500
  # information from the successful Checkout Session on your page, read the
2335
- # guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
2501
+ # guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page).
2336
2502
  attr_accessor :success_url
2337
2503
  # Controls tax ID collection during checkout.
2338
2504
  attr_accessor :tax_id_collection
@@ -2355,6 +2521,7 @@ module Stripe
2355
2521
  custom_fields: nil,
2356
2522
  custom_text: nil,
2357
2523
  customer: nil,
2524
+ customer_account: nil,
2358
2525
  customer_creation: nil,
2359
2526
  customer_email: nil,
2360
2527
  customer_update: nil,
@@ -2362,6 +2529,7 @@ module Stripe
2362
2529
  excluded_payment_method_types: nil,
2363
2530
  expand: nil,
2364
2531
  expires_at: nil,
2532
+ integration_identifier: nil,
2365
2533
  invoice_creation: nil,
2366
2534
  line_items: nil,
2367
2535
  locale: nil,
@@ -2404,6 +2572,7 @@ module Stripe
2404
2572
  @custom_fields = custom_fields
2405
2573
  @custom_text = custom_text
2406
2574
  @customer = customer
2575
+ @customer_account = customer_account
2407
2576
  @customer_creation = customer_creation
2408
2577
  @customer_email = customer_email
2409
2578
  @customer_update = customer_update
@@ -2411,6 +2580,7 @@ module Stripe
2411
2580
  @excluded_payment_method_types = excluded_payment_method_types
2412
2581
  @expand = expand
2413
2582
  @expires_at = expires_at
2583
+ @integration_identifier = integration_identifier
2414
2584
  @invoice_creation = invoice_creation
2415
2585
  @line_items = line_items
2416
2586
  @locale = locale
@@ -2440,6 +2610,18 @@ module Stripe
2440
2610
  @ui_mode = ui_mode
2441
2611
  @wallet_options = wallet_options
2442
2612
  end
2613
+
2614
+ def self.field_encodings
2615
+ @field_encodings = {
2616
+ line_items: {
2617
+ kind: :array,
2618
+ element: {
2619
+ kind: :object,
2620
+ fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2621
+ },
2622
+ },
2623
+ }
2624
+ end
2443
2625
  end
2444
2626
  end
2445
2627
  end