stripe 5.55.0 → 18.2.0.pre.beta.1

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 (1336) hide show
  1. checksums.yaml +4 -4
  2. data/{bin → exe}/stripe-console +1 -1
  3. data/lib/data/ca-certificates.crt +1805 -2337
  4. data/lib/stripe/api_operations/create.rb +6 -2
  5. data/lib/stripe/api_operations/delete.rb +12 -7
  6. data/lib/stripe/api_operations/list.rb +6 -9
  7. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  8. data/lib/stripe/api_operations/request.rb +30 -65
  9. data/lib/stripe/api_operations/save.rb +20 -10
  10. data/lib/stripe/api_operations/search.rb +11 -9
  11. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  12. data/lib/stripe/api_requestor.rb +1173 -0
  13. data/lib/stripe/api_resource.rb +51 -18
  14. data/lib/stripe/api_resource_test_helpers.rb +9 -3
  15. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  16. data/lib/stripe/connection_manager.rb +6 -10
  17. data/lib/stripe/errors.rb +74 -20
  18. data/lib/stripe/event_types.rb +242 -0
  19. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  20. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
  21. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -0
  22. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  25. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  27. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  29. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  30. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  31. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  32. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  33. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  34. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  36. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  37. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  38. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  39. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  40. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  41. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  42. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  48. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  60. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  61. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  62. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  63. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  64. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  65. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  66. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  67. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  68. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  69. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  70. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  71. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  72. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  73. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  74. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  75. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  76. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  77. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  78. data/lib/stripe/instrumentation.rb +37 -15
  79. data/lib/stripe/list_object.rb +5 -3
  80. data/lib/stripe/multipart_encoder.rb +7 -7
  81. data/lib/stripe/oauth.rb +14 -21
  82. data/lib/stripe/object_types.rb +220 -103
  83. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  84. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  85. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  86. data/lib/stripe/params/account_create_params.rb +2440 -0
  87. data/lib/stripe/params/account_delete_params.rb +6 -0
  88. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  89. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  90. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  91. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  92. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  93. data/lib/stripe/params/account_link_create_params.rb +52 -0
  94. data/lib/stripe/params/account_list_params.rb +42 -0
  95. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  96. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  97. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  98. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  99. data/lib/stripe/params/account_person_create_params.rb +435 -0
  100. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  101. data/lib/stripe/params/account_person_list_params.rb +61 -0
  102. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  103. data/lib/stripe/params/account_person_update_params.rb +435 -0
  104. data/lib/stripe/params/account_persons_params.rb +61 -0
  105. data/lib/stripe/params/account_reject_params.rb +16 -0
  106. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  107. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/account_session_create_params.rb +823 -0
  109. data/lib/stripe/params/account_update_params.rb +2350 -0
  110. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  111. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  112. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  113. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  115. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  116. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  117. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  118. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  119. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  121. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  122. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  123. data/lib/stripe/params/apps/secret_list_params.rb +38 -0
  124. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  125. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  126. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  127. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  128. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  129. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  130. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  131. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  132. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  133. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  134. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  135. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  136. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +57 -0
  137. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
  138. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  139. data/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
  140. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  141. data/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
  142. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  143. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  144. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  145. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  146. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  147. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  148. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  149. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  150. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  151. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  152. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  153. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  154. data/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
  155. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  156. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  157. data/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
  158. data/lib/stripe/params/billing_portal/session_create_params.rb +183 -0
  159. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  160. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  161. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  164. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/charge_capture_params.rb +1705 -0
  166. data/lib/stripe/params/charge_create_params.rb +172 -0
  167. data/lib/stripe/params/charge_list_params.rb +60 -0
  168. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  169. data/lib/stripe/params/charge_search_params.rb +22 -0
  170. data/lib/stripe/params/charge_update_params.rb +1750 -0
  171. data/lib/stripe/params/checkout/session_create_params.rb +2654 -0
  172. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  173. data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  174. data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  175. data/lib/stripe/params/checkout/session_list_params.rb +87 -0
  176. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  177. data/lib/stripe/params/checkout/session_update_params.rb +466 -0
  178. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  179. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  180. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  181. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  182. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  183. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  184. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  185. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  186. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  187. data/lib/stripe/params/confirmation_token_create_params.rb +747 -0
  188. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  189. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  190. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  191. data/lib/stripe/params/coupon_create_params.rb +96 -0
  192. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  193. data/lib/stripe/params/coupon_list_params.rb +42 -0
  194. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  195. data/lib/stripe/params/coupon_update_params.rb +30 -0
  196. data/lib/stripe/params/credit_note_create_params.rb +161 -0
  197. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  198. data/lib/stripe/params/credit_note_list_params.rb +60 -0
  199. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +173 -0
  200. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +173 -0
  201. data/lib/stripe/params/credit_note_preview_params.rb +161 -0
  202. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  203. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  204. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  205. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  206. data/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
  207. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  208. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  209. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  210. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  211. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  212. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  213. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  214. data/lib/stripe/params/customer_create_params.rb +259 -0
  215. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  216. data/lib/stripe/params/customer_delete_params.rb +6 -0
  217. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  218. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  219. data/lib/stripe/params/customer_list_params.rb +56 -0
  220. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  221. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  222. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  223. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  224. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  225. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  226. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  227. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  228. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  229. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  230. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  231. data/lib/stripe/params/customer_search_params.rb +22 -0
  232. data/lib/stripe/params/customer_session_create_params.rb +219 -0
  233. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  234. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  235. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  236. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  237. data/lib/stripe/params/customer_update_params.rb +243 -0
  238. data/lib/stripe/params/dispute_close_params.rb +13 -0
  239. data/lib/stripe/params/dispute_list_params.rb +56 -0
  240. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  241. data/lib/stripe/params/dispute_update_params.rb +317 -0
  242. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  243. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  244. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  245. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  246. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  247. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  248. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  249. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  250. data/lib/stripe/params/event_list_params.rb +60 -0
  251. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  252. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  253. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  254. data/lib/stripe/params/external_account_create_params.rb +134 -0
  255. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  256. data/lib/stripe/params/external_account_list_params.rb +25 -0
  257. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  258. data/lib/stripe/params/external_account_update_params.rb +91 -0
  259. data/lib/stripe/params/file_create_params.rb +36 -0
  260. data/lib/stripe/params/file_link_create_params.rb +22 -0
  261. data/lib/stripe/params/file_link_list_params.rb +56 -0
  262. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  263. data/lib/stripe/params/file_link_update_params.rb +19 -0
  264. data/lib/stripe/params/file_list_params.rb +52 -0
  265. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  266. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  267. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  268. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  269. data/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
  270. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  271. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  272. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  273. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  274. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  275. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  276. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  277. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  278. data/lib/stripe/params/financial_connections/session_create_params.rb +97 -0
  279. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  281. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  282. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  283. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  284. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  285. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  286. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  287. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  288. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  289. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  290. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  291. data/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
  292. data/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
  293. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  294. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  295. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  296. data/lib/stripe/params/invoice_add_lines_params.rb +263 -0
  297. data/lib/stripe/params/invoice_attach_payment_params.rb +61 -0
  298. data/lib/stripe/params/invoice_create_params.rb +723 -0
  299. data/lib/stripe/params/invoice_create_preview_params.rb +1810 -0
  300. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  301. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  302. data/lib/stripe/params/invoice_item_create_params.rb +181 -0
  303. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  304. data/lib/stripe/params/invoice_item_list_params.rb +64 -0
  305. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  306. data/lib/stripe/params/invoice_item_update_params.rb +161 -0
  307. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  308. data/lib/stripe/params/invoice_line_item_update_params.rb +249 -0
  309. data/lib/stripe/params/invoice_list_params.rb +90 -0
  310. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  311. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  312. data/lib/stripe/params/invoice_payment_list_params.rb +75 -0
  313. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  314. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  315. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  316. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  317. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  318. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  319. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  320. data/lib/stripe/params/invoice_search_params.rb +22 -0
  321. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  322. data/lib/stripe/params/invoice_update_lines_params.rb +263 -0
  323. data/lib/stripe/params/invoice_update_params.rb +687 -0
  324. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  325. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  326. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  327. data/lib/stripe/params/issuing/authorization_create_params.rb +372 -0
  328. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  329. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  330. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  331. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  332. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  333. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  334. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  335. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  336. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  337. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  338. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  339. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  340. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  341. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  342. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  343. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  344. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  345. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  346. data/lib/stripe/params/issuing/cardholder_create_params.rb +239 -0
  347. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  348. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  349. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  350. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  351. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  352. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  353. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  354. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  355. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  356. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  357. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  358. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  360. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  361. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  362. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  363. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  364. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  365. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  366. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  367. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  368. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  369. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  370. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  372. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  373. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  374. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  375. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  376. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  377. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  378. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  379. data/lib/stripe/params/issuing/transaction_list_params.rb +66 -0
  380. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  381. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  382. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  383. data/lib/stripe/params/mandate_list_params.rb +39 -0
  384. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  385. data/lib/stripe/params/margin_create_params.rb +25 -0
  386. data/lib/stripe/params/margin_list_params.rb +25 -0
  387. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  388. data/lib/stripe/params/margin_update_params.rb +22 -0
  389. data/lib/stripe/params/order_cancel_params.rb +13 -0
  390. data/lib/stripe/params/order_create_params.rb +2061 -0
  391. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  392. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  393. data/lib/stripe/params/order_list_params.rb +25 -0
  394. data/lib/stripe/params/order_reopen_params.rb +13 -0
  395. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  396. data/lib/stripe/params/order_submit_params.rb +16 -0
  397. data/lib/stripe/params/order_update_params.rb +2065 -0
  398. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  399. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  401. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  402. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  403. data/lib/stripe/params/payment_intent_capture_params.rb +1906 -0
  404. data/lib/stripe/params/payment_intent_confirm_params.rb +5647 -0
  405. data/lib/stripe/params/payment_intent_create_params.rb +5756 -0
  406. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  407. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +295 -0
  408. data/lib/stripe/params/payment_intent_list_params.rb +56 -0
  409. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  410. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  411. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  412. data/lib/stripe/params/payment_intent_update_params.rb +5660 -0
  413. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  414. data/lib/stripe/params/payment_link_create_params.rb +815 -0
  415. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  416. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  417. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  418. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  419. data/lib/stripe/params/payment_link_update_params.rb +603 -0
  420. data/lib/stripe/params/payment_method_attach_params.rb +19 -0
  421. data/lib/stripe/params/payment_method_configuration_create_params.rb +1303 -0
  422. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  423. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  424. data/lib/stripe/params/payment_method_configuration_update_params.rb +1303 -0
  425. data/lib/stripe/params/payment_method_create_params.rb +694 -0
  426. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  427. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  428. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  429. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  430. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  431. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  432. data/lib/stripe/params/payment_method_list_params.rb +43 -0
  433. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  434. data/lib/stripe/params/payment_method_update_params.rb +139 -0
  435. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  436. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  437. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  438. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  439. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  440. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  441. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  442. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  443. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  444. data/lib/stripe/params/payout_create_params.rb +51 -0
  445. data/lib/stripe/params/payout_list_params.rb +78 -0
  446. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  447. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  448. data/lib/stripe/params/payout_update_params.rb +16 -0
  449. data/lib/stripe/params/plan_create_params.rb +158 -0
  450. data/lib/stripe/params/plan_delete_params.rb +6 -0
  451. data/lib/stripe/params/plan_list_params.rb +56 -0
  452. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  453. data/lib/stripe/params/plan_update_params.rb +35 -0
  454. data/lib/stripe/params/price_create_params.rb +278 -0
  455. data/lib/stripe/params/price_list_params.rb +87 -0
  456. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  457. data/lib/stripe/params/price_search_params.rb +22 -0
  458. data/lib/stripe/params/price_update_params.rb +132 -0
  459. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  460. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  461. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  462. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  463. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  464. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  465. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  466. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  467. data/lib/stripe/params/product_create_params.rb +243 -0
  468. data/lib/stripe/params/product_delete_params.rb +6 -0
  469. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  470. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  471. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  472. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  473. data/lib/stripe/params/product_list_params.rb +68 -0
  474. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  475. data/lib/stripe/params/product_search_params.rb +22 -0
  476. data/lib/stripe/params/product_update_params.rb +96 -0
  477. data/lib/stripe/params/promotion_code_create_params.rb +95 -0
  478. data/lib/stripe/params/promotion_code_list_params.rb +68 -0
  479. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  480. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  481. data/lib/stripe/params/quote_accept_params.rb +13 -0
  482. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  483. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  484. data/lib/stripe/params/quote_create_params.rb +1103 -0
  485. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  486. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  487. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  488. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  489. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  490. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  491. data/lib/stripe/params/quote_list_params.rb +47 -0
  492. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  493. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  494. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  495. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  496. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  497. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  498. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  499. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  500. data/lib/stripe/params/quote_update_params.rb +1072 -0
  501. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  502. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  503. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  504. data/lib/stripe/{resources/usage_record_summary.rb → params/radar/value_list_delete_params.rb} +2 -2
  505. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  506. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  507. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  508. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  509. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  510. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  511. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  512. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  513. data/lib/stripe/params/refund_create_params.rb +59 -0
  514. data/lib/stripe/params/refund_expire_params.rb +13 -0
  515. data/lib/stripe/params/refund_list_params.rb +56 -0
  516. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  517. data/lib/stripe/params/refund_update_params.rb +16 -0
  518. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  519. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  520. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  521. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  522. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  523. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  524. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  525. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  526. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  527. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  528. data/lib/stripe/params/review_approve_params.rb +13 -0
  529. data/lib/stripe/params/review_list_params.rb +42 -0
  530. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  531. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  532. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  533. data/lib/stripe/params/setup_intent_confirm_params.rb +1272 -0
  534. data/lib/stripe/params/setup_intent_create_params.rb +1362 -0
  535. data/lib/stripe/params/setup_intent_list_params.rb +66 -0
  536. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  537. data/lib/stripe/params/setup_intent_update_params.rb +1257 -0
  538. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  539. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  540. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  541. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  542. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  543. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  544. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  545. data/lib/stripe/params/source_create_params.rb +317 -0
  546. data/lib/stripe/params/source_detach_params.rb +13 -0
  547. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  548. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  549. data/lib/stripe/params/source_update_params.rb +259 -0
  550. data/lib/stripe/params/source_verify_params.rb +16 -0
  551. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  552. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  553. data/lib/stripe/params/subscription_create_params.rb +982 -0
  554. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  555. data/lib/stripe/params/subscription_item_create_params.rb +178 -0
  556. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  557. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  558. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  559. data/lib/stripe/params/subscription_item_update_params.rb +162 -0
  560. data/lib/stripe/params/subscription_list_params.rb +133 -0
  561. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  562. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  563. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  564. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  565. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  566. data/lib/stripe/params/subscription_schedule_create_params.rb +752 -0
  567. data/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
  568. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  569. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  570. data/lib/stripe/params/subscription_schedule_update_params.rb +720 -0
  571. data/lib/stripe/params/subscription_search_params.rb +22 -0
  572. data/lib/stripe/params/subscription_update_params.rb +941 -0
  573. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  574. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  575. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  576. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  577. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  578. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  579. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  580. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  581. data/lib/stripe/params/tax/registration_create_params.rb +2031 -0
  582. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  583. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  584. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  585. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  586. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  587. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  588. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  589. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  590. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  591. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  592. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  593. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  594. data/lib/stripe/params/tax_id_create_params.rb +39 -0
  595. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  596. data/lib/stripe/params/tax_id_list_params.rb +42 -0
  597. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  598. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  599. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  600. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  601. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  602. data/lib/stripe/params/terminal/configuration_create_params.rb +625 -0
  603. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  604. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  605. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  606. data/lib/stripe/params/terminal/configuration_update_params.rb +625 -0
  607. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  608. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  609. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  610. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  611. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  612. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  613. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  614. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  615. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  616. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  617. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  618. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  619. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  620. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  621. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  622. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  623. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  624. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  625. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  626. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  627. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  628. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  629. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  630. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  631. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +749 -0
  632. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  633. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  634. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +374 -0
  635. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  636. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  637. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  638. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  639. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  640. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  641. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  642. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  643. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  644. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  645. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  646. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  647. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  648. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  649. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  650. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  651. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  652. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  653. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  654. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  655. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  656. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  657. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  658. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  659. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  660. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  661. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  662. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  663. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  664. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  665. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  666. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  667. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  668. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  669. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  670. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  671. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +92 -0
  672. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +92 -0
  673. data/lib/stripe/params/token_create_params.rb +1210 -0
  674. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  675. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  676. data/lib/stripe/params/topup_create_params.rb +43 -0
  677. data/lib/stripe/params/topup_list_params.rb +74 -0
  678. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  679. data/lib/stripe/params/topup_update_params.rb +19 -0
  680. data/lib/stripe/params/transfer_create_params.rb +51 -0
  681. data/lib/stripe/params/transfer_list_params.rb +56 -0
  682. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  683. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  684. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  685. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  686. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  687. data/lib/stripe/params/transfer_update_params.rb +19 -0
  688. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  689. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  690. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  691. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  692. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  693. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  694. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  695. data/lib/stripe/params/treasury/financial_account_create_params.rb +208 -0
  696. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  697. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +166 -0
  698. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  699. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  700. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  701. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +166 -0
  702. data/lib/stripe/params/treasury/financial_account_update_params.rb +223 -0
  703. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  704. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  705. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  706. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  707. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  708. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  709. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  710. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  711. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  712. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  713. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  714. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  715. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  716. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  717. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  718. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  719. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +105 -0
  720. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  721. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  722. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  723. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  724. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  725. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  726. data/lib/stripe/params/treasury/received_credit_create_params.rb +90 -0
  727. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  728. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  729. data/lib/stripe/params/treasury/received_debit_create_params.rb +90 -0
  730. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  731. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  732. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  733. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  734. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  735. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  736. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  737. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  738. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  739. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  740. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  741. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  742. data/lib/stripe/{resources/issuing/card_details.rb → params/v2/billing/cadence_cancel_params.rb} +3 -3
  743. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  744. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  745. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  746. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  747. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  748. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  749. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  750. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  751. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  752. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  753. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  754. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  755. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  756. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  757. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  758. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  759. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  760. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  761. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  762. data/lib/stripe/params/v2/core/account_create_params.rb +2363 -0
  763. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  764. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  765. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  766. data/lib/stripe/params/v2/core/account_token_create_params.rb +1023 -0
  767. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  768. data/lib/stripe/params/v2/core/account_update_params.rb +2409 -0
  769. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  770. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  771. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  772. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  773. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  774. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  775. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  776. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  777. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  778. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  779. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  780. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  781. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  782. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  783. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  784. data/lib/stripe/params/v2/core/event_list_params.rb +45 -0
  785. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  786. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  787. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  788. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  789. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  790. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  791. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  792. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  793. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  794. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  795. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  796. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  797. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  798. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  799. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  800. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  801. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  802. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  803. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  804. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  805. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  806. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  807. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  808. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  809. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  810. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  811. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  813. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
  814. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  815. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  816. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  817. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  818. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  819. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  820. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  821. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  822. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  823. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  824. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
  825. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  826. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  827. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  828. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  829. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  831. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  832. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  833. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  834. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  835. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  836. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  837. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  838. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  839. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  840. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  841. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  842. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  843. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  844. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  845. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  846. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  847. data/lib/stripe/params.rb +767 -0
  848. data/lib/stripe/request_options.rb +138 -0
  849. data/lib/stripe/request_params.rb +24 -0
  850. data/lib/stripe/resources/account.rb +1320 -26
  851. data/lib/stripe/resources/account_link.rb +29 -0
  852. data/lib/stripe/resources/account_notice.rb +94 -0
  853. data/lib/stripe/resources/account_session.rb +764 -0
  854. data/lib/stripe/resources/alipay_account.rb +1 -1
  855. data/lib/stripe/resources/apple_pay_domain.rb +59 -0
  856. data/lib/stripe/resources/application.rb +28 -0
  857. data/lib/stripe/resources/application_fee.rb +64 -2
  858. data/lib/stripe/resources/application_fee_refund.rb +34 -2
  859. data/lib/stripe/resources/apps/secret.rb +96 -0
  860. data/lib/stripe/resources/balance.rb +332 -0
  861. data/lib/stripe/resources/balance_settings.rb +92 -0
  862. data/lib/stripe/resources/balance_transaction.rb +80 -0
  863. data/lib/stripe/resources/bank_account.rb +177 -6
  864. data/lib/stripe/resources/billing/alert.rb +142 -0
  865. data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  866. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  867. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  868. data/lib/stripe/resources/billing/credit_balance_summary.rb +104 -0
  869. data/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
  870. data/lib/stripe/resources/billing/credit_grant.rb +200 -0
  871. data/lib/stripe/resources/billing/meter.rb +178 -0
  872. data/lib/stripe/resources/billing/meter_event.rb +49 -0
  873. data/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
  874. data/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
  875. data/lib/stripe/resources/billing_portal/configuration.rb +292 -0
  876. data/lib/stripe/resources/billing_portal/session.rb +228 -0
  877. data/lib/stripe/resources/capability.rb +147 -2
  878. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  879. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  880. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  881. data/lib/stripe/resources/card.rb +129 -3
  882. data/lib/stripe/resources/cash_balance.rb +39 -0
  883. data/lib/stripe/resources/charge.rb +2516 -3
  884. data/lib/stripe/resources/checkout/session.rb +2454 -4
  885. data/lib/stripe/resources/climate/order.rb +173 -0
  886. data/lib/stripe/resources/climate/product.rb +72 -0
  887. data/lib/stripe/resources/climate/supplier.rb +69 -0
  888. data/lib/stripe/resources/confirmation_token.rb +1873 -0
  889. data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  890. data/lib/stripe/resources/country_spec.rb +82 -0
  891. data/lib/stripe/resources/coupon.rb +143 -0
  892. data/lib/stripe/resources/credit_note.rb +290 -8
  893. data/lib/stripe/resources/credit_note_line_item.rb +133 -0
  894. data/lib/stripe/resources/customer.rb +403 -27
  895. data/lib/stripe/resources/customer_balance_transaction.rb +48 -1
  896. data/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
  897. data/lib/stripe/resources/customer_session.rb +264 -0
  898. data/lib/stripe/resources/discount.rb +58 -0
  899. data/lib/stripe/resources/dispute.rb +466 -2
  900. data/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
  901. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  902. data/lib/stripe/resources/entitlements/feature.rb +72 -0
  903. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  904. data/lib/stripe/resources/event.rb +149 -0
  905. data/lib/stripe/resources/exchange_rate.rb +59 -0
  906. data/lib/stripe/resources/file.rb +65 -12
  907. data/lib/stripe/resources/file_link.rb +53 -0
  908. data/lib/stripe/resources/financial_connections/account.rb +342 -5
  909. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  910. data/lib/stripe/resources/financial_connections/account_owner.rb +29 -0
  911. data/lib/stripe/resources/financial_connections/account_ownership.rb +21 -0
  912. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  913. data/lib/stripe/resources/financial_connections/session.rb +140 -0
  914. data/lib/stripe/resources/financial_connections/transaction.rb +73 -0
  915. data/lib/stripe/resources/forwarding/request.rb +163 -0
  916. data/lib/stripe/resources/funding_instructions.rb +510 -1
  917. data/lib/stripe/resources/fx_quote.rb +147 -0
  918. data/lib/stripe/resources/identity/verification_report.rb +396 -0
  919. data/lib/stripe/resources/identity/verification_session.rb +397 -4
  920. data/lib/stripe/resources/invoice.rb +1393 -20
  921. data/lib/stripe/resources/invoice_item.rb +214 -0
  922. data/lib/stripe/resources/invoice_line_item.rb +341 -1
  923. data/lib/stripe/resources/invoice_payment.rb +92 -0
  924. data/lib/stripe/resources/invoice_rendering_template.rb +90 -0
  925. data/lib/stripe/resources/issuing/authorization.rb +650 -4
  926. data/lib/stripe/resources/issuing/card.rb +410 -4
  927. data/lib/stripe/resources/issuing/cardholder.rb +278 -0
  928. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  929. data/lib/stripe/resources/issuing/dispute.rb +301 -2
  930. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  931. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  932. data/lib/stripe/resources/issuing/personalization_design.rb +206 -0
  933. data/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
  934. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  935. data/lib/stripe/resources/issuing/token.rb +195 -0
  936. data/lib/stripe/resources/issuing/transaction.rb +444 -0
  937. data/lib/stripe/resources/line_item.rb +142 -0
  938. data/lib/stripe/resources/login_link.rb +20 -0
  939. data/lib/stripe/resources/mandate.rb +433 -0
  940. data/lib/stripe/resources/margin.rb +64 -0
  941. data/lib/stripe/resources/order.rb +960 -6
  942. data/lib/stripe/resources/payment_attempt_record.rb +2165 -0
  943. data/lib/stripe/resources/payment_intent.rb +3886 -14
  944. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  945. data/lib/stripe/resources/payment_link.rb +772 -2
  946. data/lib/stripe/resources/payment_method.rb +1792 -4
  947. data/lib/stripe/resources/payment_method_configuration.rb +2090 -0
  948. data/lib/stripe/resources/payment_method_domain.rb +280 -0
  949. data/lib/stripe/resources/payment_record.rb +2295 -0
  950. data/lib/stripe/resources/payout.rb +139 -4
  951. data/lib/stripe/resources/person.rb +475 -1
  952. data/lib/stripe/resources/plan.rb +137 -0
  953. data/lib/stripe/resources/price.rb +240 -1
  954. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  955. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  956. data/lib/stripe/resources/product.rb +138 -1
  957. data/lib/stripe/resources/product_feature.rb +33 -0
  958. data/lib/stripe/resources/promotion_code.rb +110 -0
  959. data/lib/stripe/resources/quote.rb +1173 -36
  960. data/lib/stripe/resources/quote_line.rb +521 -0
  961. data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
  962. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  963. data/lib/stripe/resources/radar/early_fraud_warning.rb +42 -0
  964. data/lib/stripe/resources/radar/value_list.rb +87 -0
  965. data/lib/stripe/resources/radar/value_list_item.rb +71 -0
  966. data/lib/stripe/resources/refund.rb +748 -4
  967. data/lib/stripe/resources/reporting/report_run.rb +91 -0
  968. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  969. data/lib/stripe/resources/reserve/hold.rb +74 -0
  970. data/lib/stripe/resources/reserve/plan.rb +78 -0
  971. data/lib/stripe/resources/reserve/release.rb +77 -0
  972. data/lib/stripe/resources/reserve_transaction.rb +30 -0
  973. data/lib/stripe/resources/reversal.rb +46 -2
  974. data/lib/stripe/resources/review.rb +99 -2
  975. data/lib/stripe/resources/setup_attempt.rb +664 -0
  976. data/lib/stripe/resources/setup_intent.rb +816 -6
  977. data/lib/stripe/resources/shipping_rate.rb +132 -0
  978. data/lib/stripe/resources/sigma/scheduled_query_run.rb +60 -0
  979. data/lib/stripe/resources/source.rb +973 -10
  980. data/lib/stripe/resources/source_mandate_notification.rb +98 -0
  981. data/lib/stripe/resources/source_transaction.rb +146 -0
  982. data/lib/stripe/resources/subscription.rb +979 -5
  983. data/lib/stripe/resources/subscription_item.rb +132 -10
  984. data/lib/stripe/resources/subscription_schedule.rb +780 -4
  985. data/lib/stripe/resources/tax/association.rb +86 -0
  986. data/lib/stripe/resources/tax/calculation.rb +321 -0
  987. data/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
  988. data/lib/stripe/resources/tax/form.rb +264 -0
  989. data/lib/stripe/resources/tax/registration.rb +2259 -0
  990. data/lib/stripe/resources/tax/settings.rb +131 -0
  991. data/lib/stripe/resources/tax/transaction.rb +287 -0
  992. data/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
  993. data/lib/stripe/resources/tax_code.rb +26 -0
  994. data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  995. data/lib/stripe/resources/tax_id.rb +103 -11
  996. data/lib/stripe/resources/tax_rate.rb +87 -0
  997. data/lib/stripe/resources/terminal/configuration.rb +724 -0
  998. data/lib/stripe/resources/terminal/connection_token.rb +31 -0
  999. data/lib/stripe/resources/terminal/location.rb +168 -0
  1000. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  1001. data/lib/stripe/resources/terminal/reader.rb +752 -10
  1002. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1003. data/lib/stripe/resources/test_helpers/test_clock.rb +110 -2
  1004. data/lib/stripe/resources/token.rb +66 -0
  1005. data/lib/stripe/resources/topup.rb +80 -2
  1006. data/lib/stripe/resources/transfer.rb +74 -6
  1007. data/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
  1008. data/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
  1009. data/lib/stripe/resources/treasury/financial_account.rb +255 -0
  1010. data/lib/stripe/resources/treasury/financial_account_features.rb +398 -0
  1011. data/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
  1012. data/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
  1013. data/lib/stripe/resources/treasury/outbound_transfer.rb +418 -0
  1014. data/lib/stripe/resources/treasury/received_credit.rb +291 -0
  1015. data/lib/stripe/resources/treasury/received_debit.rb +256 -0
  1016. data/lib/stripe/resources/treasury/transaction.rb +143 -0
  1017. data/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
  1018. data/lib/stripe/resources/v2/amount.rb +9 -0
  1019. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1020. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  1021. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  1022. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  1023. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  1024. data/lib/stripe/resources/v2/billing/meter_event.rb +43 -0
  1025. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +52 -0
  1026. data/lib/stripe/resources/v2/billing/meter_event_session.rb +37 -0
  1027. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  1028. data/lib/stripe/resources/v2/core/account.rb +4115 -0
  1029. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  1030. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  1031. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  1032. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  1033. data/lib/stripe/resources/v2/core/event.rb +69 -0
  1034. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  1035. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  1036. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  1037. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
  1038. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  1039. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  1040. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  1041. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  1042. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  1043. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  1044. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  1045. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
  1046. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  1047. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1048. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
  1049. data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
  1050. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  1051. data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
  1052. data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
  1053. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  1054. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  1055. data/lib/stripe/resources/webhook_endpoint.rb +90 -0
  1056. data/lib/stripe/resources.rb +175 -11
  1057. data/lib/stripe/search_result_object.rb +5 -2
  1058. data/lib/stripe/services/account_capability_service.rb +39 -0
  1059. data/lib/stripe/services/account_external_account_service.rb +68 -0
  1060. data/lib/stripe/services/account_link_service.rb +17 -0
  1061. data/lib/stripe/services/account_login_link_service.rb +19 -0
  1062. data/lib/stripe/services/account_notice_service.rb +39 -0
  1063. data/lib/stripe/services/account_person_service.rb +61 -0
  1064. data/lib/stripe/services/account_service.rb +100 -0
  1065. data/lib/stripe/services/account_session_service.rb +17 -0
  1066. data/lib/stripe/services/apple_pay_domain_service.rb +50 -0
  1067. data/lib/stripe/services/application_fee_refund_service.rb +60 -0
  1068. data/lib/stripe/services/application_fee_service.rb +35 -0
  1069. data/lib/stripe/services/apps/secret_service.rb +52 -0
  1070. data/lib/stripe/services/apps_service.rb +13 -0
  1071. data/lib/stripe/services/balance_service.rb +12 -0
  1072. data/lib/stripe/services/balance_settings_service.rb +30 -0
  1073. data/lib/stripe/services/balance_transaction_service.rb +32 -0
  1074. data/lib/stripe/services/billing/alert_service.rb +74 -0
  1075. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1076. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1077. data/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
  1078. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
  1079. data/lib/stripe/services/billing/credit_grant_service.rb +74 -0
  1080. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
  1081. data/lib/stripe/services/billing/meter_event_service.rb +19 -0
  1082. data/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
  1083. data/lib/stripe/services/billing/meter_service.rb +81 -0
  1084. data/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
  1085. data/lib/stripe/services/billing_portal/session_service.rb +19 -0
  1086. data/lib/stripe/services/billing_portal_service.rb +14 -0
  1087. data/lib/stripe/services/billing_service.rb +21 -0
  1088. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1089. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1090. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1091. data/lib/stripe/services/capital_service.rb +15 -0
  1092. data/lib/stripe/services/charge_service.rb +69 -0
  1093. data/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
  1094. data/lib/stripe/services/checkout/session_service.rb +74 -0
  1095. data/lib/stripe/services/checkout_service.rb +13 -0
  1096. data/lib/stripe/services/climate/order_service.rb +68 -0
  1097. data/lib/stripe/services/climate/product_service.rb +30 -0
  1098. data/lib/stripe/services/climate/supplier_service.rb +30 -0
  1099. data/lib/stripe/services/climate_service.rb +15 -0
  1100. data/lib/stripe/services/confirmation_token_service.rb +17 -0
  1101. data/lib/stripe/services/country_spec_service.rb +28 -0
  1102. data/lib/stripe/services/coupon_service.rb +51 -0
  1103. data/lib/stripe/services/credit_note_line_item_service.rb +17 -0
  1104. data/lib/stripe/services/credit_note_preview_lines_service.rb +17 -0
  1105. data/lib/stripe/services/credit_note_service.rb +92 -0
  1106. data/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
  1107. data/lib/stripe/services/customer_cash_balance_service.rb +28 -0
  1108. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
  1109. data/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
  1110. data/lib/stripe/services/customer_payment_method_service.rb +28 -0
  1111. data/lib/stripe/services/customer_payment_source_service.rb +76 -0
  1112. data/lib/stripe/services/customer_service.rb +89 -0
  1113. data/lib/stripe/services/customer_session_service.rb +17 -0
  1114. data/lib/stripe/services/customer_tax_id_service.rb +50 -0
  1115. data/lib/stripe/services/dispute_service.rb +48 -0
  1116. data/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
  1117. data/lib/stripe/services/entitlements/feature_service.rb +52 -0
  1118. data/lib/stripe/services/entitlements_service.rb +14 -0
  1119. data/lib/stripe/services/ephemeral_key_service.rb +28 -0
  1120. data/lib/stripe/services/event_service.rb +22 -0
  1121. data/lib/stripe/services/exchange_rate_service.rb +32 -0
  1122. data/lib/stripe/services/external_account_service.rb +68 -0
  1123. data/lib/stripe/services/file_link_service.rb +38 -0
  1124. data/lib/stripe/services/file_service.rb +35 -0
  1125. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1126. data/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
  1127. data/lib/stripe/services/financial_connections/account_service.rb +83 -0
  1128. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1129. data/lib/stripe/services/financial_connections/session_service.rb +30 -0
  1130. data/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
  1131. data/lib/stripe/services/financial_connections_service.rb +16 -0
  1132. data/lib/stripe/services/forwarding/request_service.rb +41 -0
  1133. data/lib/stripe/services/forwarding_service.rb +13 -0
  1134. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1135. data/lib/stripe/services/identity/verification_report_service.rb +30 -0
  1136. data/lib/stripe/services/identity/verification_session_service.rb +106 -0
  1137. data/lib/stripe/services/identity_service.rb +14 -0
  1138. data/lib/stripe/services/invoice_item_service.rb +61 -0
  1139. data/lib/stripe/services/invoice_line_item_service.rb +31 -0
  1140. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  1141. data/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
  1142. data/lib/stripe/services/invoice_service.rb +206 -0
  1143. data/lib/stripe/services/issuing/authorization_service.rb +65 -0
  1144. data/lib/stripe/services/issuing/card_service.rb +52 -0
  1145. data/lib/stripe/services/issuing/cardholder_service.rb +52 -0
  1146. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1147. data/lib/stripe/services/issuing/dispute_service.rb +63 -0
  1148. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1149. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1150. data/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
  1151. data/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
  1152. data/lib/stripe/services/issuing/token_service.rb +41 -0
  1153. data/lib/stripe/services/issuing/transaction_service.rb +41 -0
  1154. data/lib/stripe/services/issuing_service.rb +24 -0
  1155. data/lib/stripe/services/mandate_service.rb +22 -0
  1156. data/lib/stripe/services/margin_service.rb +50 -0
  1157. data/lib/stripe/services/oauth_service.rb +63 -0
  1158. data/lib/stripe/services/order_line_item_service.rb +17 -0
  1159. data/lib/stripe/services/order_service.rb +78 -0
  1160. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  1161. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  1162. data/lib/stripe/services/payment_intent_service.rb +253 -0
  1163. data/lib/stripe/services/payment_link_line_item_service.rb +17 -0
  1164. data/lib/stripe/services/payment_link_service.rb +57 -0
  1165. data/lib/stripe/services/payment_method_configuration_service.rb +50 -0
  1166. data/lib/stripe/services/payment_method_domain_service.rb +66 -0
  1167. data/lib/stripe/services/payment_method_service.rb +86 -0
  1168. data/lib/stripe/services/payment_record_service.rb +101 -0
  1169. data/lib/stripe/services/payout_service.rb +66 -0
  1170. data/lib/stripe/services/plan_service.rb +49 -0
  1171. data/lib/stripe/services/price_service.rb +52 -0
  1172. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1173. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1174. data/lib/stripe/services/privacy_service.rb +13 -0
  1175. data/lib/stripe/services/product_feature_service.rb +50 -0
  1176. data/lib/stripe/services/product_service.rb +70 -0
  1177. data/lib/stripe/services/promotion_code_service.rb +50 -0
  1178. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
  1179. data/lib/stripe/services/quote_line_item_service.rb +17 -0
  1180. data/lib/stripe/services/quote_line_service.rb +17 -0
  1181. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1182. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1183. data/lib/stripe/services/quote_service.rb +140 -0
  1184. data/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
  1185. data/lib/stripe/services/radar/value_list_item_service.rb +52 -0
  1186. data/lib/stripe/services/radar/value_list_service.rb +63 -0
  1187. data/lib/stripe/services/radar_service.rb +15 -0
  1188. data/lib/stripe/services/refund_service.rb +63 -0
  1189. data/lib/stripe/services/reporting/report_run_service.rb +41 -0
  1190. data/lib/stripe/services/reporting/report_type_service.rb +30 -0
  1191. data/lib/stripe/services/reporting_service.rb +14 -0
  1192. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1193. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1194. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1195. data/lib/stripe/services/reserve_service.rb +15 -0
  1196. data/lib/stripe/services/review_service.rb +33 -0
  1197. data/lib/stripe/services/setup_attempt_service.rb +17 -0
  1198. data/lib/stripe/services/setup_intent_service.rb +105 -0
  1199. data/lib/stripe/services/shipping_rate_service.rb +50 -0
  1200. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  1201. data/lib/stripe/services/sigma_service.rb +13 -0
  1202. data/lib/stripe/services/source_service.rb +64 -0
  1203. data/lib/stripe/services/source_transaction_service.rb +17 -0
  1204. data/lib/stripe/services/subscription_item_service.rb +61 -0
  1205. data/lib/stripe/services/subscription_schedule_service.rb +83 -0
  1206. data/lib/stripe/services/subscription_service.rb +149 -0
  1207. data/lib/stripe/services/tax/association_service.rb +19 -0
  1208. data/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
  1209. data/lib/stripe/services/tax/calculation_service.rb +37 -0
  1210. data/lib/stripe/services/tax/form_service.rb +37 -0
  1211. data/lib/stripe/services/tax/registration_service.rb +54 -0
  1212. data/lib/stripe/services/tax/settings_service.rb +30 -0
  1213. data/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
  1214. data/lib/stripe/services/tax/transaction_service.rb +48 -0
  1215. data/lib/stripe/services/tax_code_service.rb +22 -0
  1216. data/lib/stripe/services/tax_id_service.rb +38 -0
  1217. data/lib/stripe/services/tax_rate_service.rb +38 -0
  1218. data/lib/stripe/services/tax_service.rb +18 -0
  1219. data/lib/stripe/services/terminal/configuration_service.rb +63 -0
  1220. data/lib/stripe/services/terminal/connection_token_service.rb +19 -0
  1221. data/lib/stripe/services/terminal/location_service.rb +64 -0
  1222. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  1223. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1224. data/lib/stripe/services/terminal/reader_service.rb +151 -0
  1225. data/lib/stripe/services/terminal_service.rb +18 -0
  1226. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
  1227. data/lib/stripe/services/test_helpers/customer_service.rb +19 -0
  1228. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +87 -0
  1229. data/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
  1230. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  1231. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +43 -0
  1232. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  1233. data/lib/stripe/services/test_helpers/refund_service.rb +19 -0
  1234. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  1235. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  1236. data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  1237. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
  1238. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
  1239. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
  1240. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
  1241. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
  1242. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  1243. data/lib/stripe/services/test_helpers_service.rb +19 -0
  1244. data/lib/stripe/services/token_service.rb +23 -0
  1245. data/lib/stripe/services/topup_service.rb +49 -0
  1246. data/lib/stripe/services/transfer_reversal_service.rb +56 -0
  1247. data/lib/stripe/services/transfer_service.rb +47 -0
  1248. data/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
  1249. data/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
  1250. data/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
  1251. data/lib/stripe/services/treasury/financial_account_service.rb +70 -0
  1252. data/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
  1253. data/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
  1254. data/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
  1255. data/lib/stripe/services/treasury/received_credit_service.rb +30 -0
  1256. data/lib/stripe/services/treasury/received_debit_service.rb +30 -0
  1257. data/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
  1258. data/lib/stripe/services/treasury/transaction_service.rb +30 -0
  1259. data/lib/stripe/services/treasury_service.rb +22 -0
  1260. data/lib/stripe/services/v1_services.rb +101 -0
  1261. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1262. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1263. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  1264. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  1265. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1266. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
  1267. data/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
  1268. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
  1269. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
  1270. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1271. data/lib/stripe/services/v2/billing_service.rb +22 -0
  1272. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  1273. data/lib/stripe/services/v2/core/account_service.rb +73 -0
  1274. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  1275. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  1276. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  1277. data/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
  1278. data/lib/stripe/services/v2/core/event_service.rb +32 -0
  1279. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1280. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  1281. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1282. data/lib/stripe/services/v2/core_service.rb +20 -0
  1283. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1284. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  1285. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1286. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1287. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1288. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1289. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1290. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1291. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  1292. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1293. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1294. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1295. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1296. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1297. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  1298. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  1299. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1300. data/lib/stripe/services/v2_services.rb +16 -0
  1301. data/lib/stripe/services/webhook_endpoint_service.rb +61 -0
  1302. data/lib/stripe/services.rb +246 -0
  1303. data/lib/stripe/singleton_api_resource.rb +3 -3
  1304. data/lib/stripe/stripe_client.rb +61 -1023
  1305. data/lib/stripe/stripe_configuration.rb +60 -42
  1306. data/lib/stripe/stripe_context.rb +68 -0
  1307. data/lib/stripe/stripe_event_notification_handler.rb +425 -0
  1308. data/lib/stripe/stripe_object.rb +142 -47
  1309. data/lib/stripe/stripe_response.rb +1 -3
  1310. data/lib/stripe/stripe_service.rb +34 -0
  1311. data/lib/stripe/util.rb +134 -45
  1312. data/lib/stripe/v2_list_object.rb +84 -0
  1313. data/lib/stripe/version.rb +1 -1
  1314. data/lib/stripe/webhook.rb +3 -2
  1315. data/lib/stripe.rb +98 -0
  1316. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  1317. data/rbi/stripe/stripe_client.rbi +30 -0
  1318. data/rbi/stripe.rbi +219587 -0
  1319. metadata +1210 -28
  1320. data/CHANGELOG.md +0 -1036
  1321. data/CODE_OF_CONDUCT.md +0 -77
  1322. data/CONTRIBUTORS +0 -3
  1323. data/Gemfile +0 -33
  1324. data/History.txt +0 -1
  1325. data/LICENSE +0 -21
  1326. data/Makefile +0 -7
  1327. data/README.md +0 -350
  1328. data/Rakefile +0 -37
  1329. data/VERSION +0 -1
  1330. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  1331. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  1332. data/lib/stripe/resources/order_return.rb +0 -10
  1333. data/lib/stripe/resources/recipient.rb +0 -14
  1334. data/lib/stripe/resources/sku.rb +0 -13
  1335. data/lib/stripe/resources/three_d_secure.rb +0 -14
  1336. data/stripe.gemspec +0 -41
@@ -3,25 +3,2475 @@
3
3
 
4
4
  module Stripe
5
5
  module Checkout
6
+ # A Checkout Session represents your customer's session as they pay for
7
+ # one-time purchases or subscriptions through [Checkout](https://docs.stripe.com/payments/checkout)
8
+ # or [Payment Links](https://docs.stripe.com/payments/payment-links). We recommend creating a
9
+ # new Session each time your customer attempts to pay.
10
+ #
11
+ # Once payment is successful, the Checkout Session will contain a reference
12
+ # to the [Customer](https://docs.stripe.com/api/customers), and either the successful
13
+ # [PaymentIntent](https://docs.stripe.com/api/payment_intents) or an active
14
+ # [Subscription](https://docs.stripe.com/api/subscriptions).
15
+ #
16
+ # You can create a Checkout Session on your server and redirect to its URL
17
+ # to begin Checkout.
18
+ #
19
+ # Related guide: [Checkout quickstart](https://docs.stripe.com/checkout/quickstart)
6
20
  class Session < APIResource
7
21
  extend Stripe::APIOperations::Create
8
22
  extend Stripe::APIOperations::List
9
- extend Stripe::APIOperations::NestedResource
23
+ include Stripe::APIOperations::Save
10
24
 
11
25
  OBJECT_NAME = "checkout.session"
26
+ def self.object_name
27
+ "checkout.session"
28
+ end
29
+
30
+ class AdaptivePricing < ::Stripe::StripeObject
31
+ # If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions).
32
+ attr_reader :enabled
33
+
34
+ def self.inner_class_types
35
+ @inner_class_types = {}
36
+ end
37
+
38
+ def self.field_remappings
39
+ @field_remappings = {}
40
+ end
41
+ end
42
+
43
+ class AfterExpiration < ::Stripe::StripeObject
44
+ class Recovery < ::Stripe::StripeObject
45
+ # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
46
+ attr_reader :allow_promotion_codes
47
+ # If `true`, a recovery url will be generated to recover this Checkout Session if it
48
+ # expires before a transaction is completed. It will be attached to the
49
+ # Checkout Session object upon expiration.
50
+ attr_reader :enabled
51
+ # The timestamp at which the recovery URL will expire.
52
+ attr_reader :expires_at
53
+ # URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session
54
+ attr_reader :url
55
+
56
+ def self.inner_class_types
57
+ @inner_class_types = {}
58
+ end
59
+
60
+ def self.field_remappings
61
+ @field_remappings = {}
62
+ end
63
+ end
64
+ # When set, configuration used to recover the Checkout Session on expiry.
65
+ attr_reader :recovery
66
+
67
+ def self.inner_class_types
68
+ @inner_class_types = { recovery: Recovery }
69
+ end
70
+
71
+ def self.field_remappings
72
+ @field_remappings = {}
73
+ end
74
+ end
75
+
76
+ class AutomaticTax < ::Stripe::StripeObject
77
+ class Liability < ::Stripe::StripeObject
78
+ # The connected account being referenced when `type` is `account`.
79
+ attr_reader :account
80
+ # Type of the account referenced.
81
+ attr_reader :type
82
+
83
+ def self.inner_class_types
84
+ @inner_class_types = {}
85
+ end
86
+
87
+ def self.field_remappings
88
+ @field_remappings = {}
89
+ end
90
+ end
91
+ # Indicates whether automatic tax is enabled for the session
92
+ attr_reader :enabled
93
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
94
+ attr_reader :liability
95
+ # The tax provider powering automatic tax.
96
+ attr_reader :provider
97
+ # The status of the most recent automated tax calculation for this session.
98
+ attr_reader :status
99
+
100
+ def self.inner_class_types
101
+ @inner_class_types = { liability: Liability }
102
+ end
103
+
104
+ def self.field_remappings
105
+ @field_remappings = {}
106
+ end
107
+ end
108
+
109
+ class BrandingSettings < ::Stripe::StripeObject
110
+ class Icon < ::Stripe::StripeObject
111
+ # 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.
112
+ attr_reader :file
113
+ # The type of image for the icon. Must be one of `file` or `url`.
114
+ attr_reader :type
115
+ # The URL of the image. Present when `type` is `url`.
116
+ attr_reader :url
117
+
118
+ def self.inner_class_types
119
+ @inner_class_types = {}
120
+ end
121
+
122
+ def self.field_remappings
123
+ @field_remappings = {}
124
+ end
125
+ end
126
+
127
+ class Logo < ::Stripe::StripeObject
128
+ # 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.
129
+ attr_reader :file
130
+ # The type of image for the logo. Must be one of `file` or `url`.
131
+ attr_reader :type
132
+ # The URL of the image. Present when `type` is `url`.
133
+ attr_reader :url
134
+
135
+ def self.inner_class_types
136
+ @inner_class_types = {}
137
+ end
138
+
139
+ def self.field_remappings
140
+ @field_remappings = {}
141
+ end
142
+ end
143
+ # A hex color value starting with `#` representing the background color for the Checkout Session.
144
+ attr_reader :background_color
145
+ # The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`.
146
+ attr_reader :border_style
147
+ # A hex color value starting with `#` representing the button color for the Checkout Session.
148
+ attr_reader :button_color
149
+ # The display name shown on the Checkout Session.
150
+ attr_reader :display_name
151
+ # The font family for the Checkout Session. Must be one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
152
+ attr_reader :font_family
153
+ # The icon for the Checkout Session. You cannot set both `logo` and `icon`.
154
+ attr_reader :icon
155
+ # The logo for the Checkout Session. You cannot set both `logo` and `icon`.
156
+ attr_reader :logo
157
+
158
+ def self.inner_class_types
159
+ @inner_class_types = { icon: Icon, logo: Logo }
160
+ end
161
+
162
+ def self.field_remappings
163
+ @field_remappings = {}
164
+ end
165
+ end
166
+
167
+ class CollectedInformation < ::Stripe::StripeObject
168
+ class ShippingDetails < ::Stripe::StripeObject
169
+ class Address < ::Stripe::StripeObject
170
+ # City, district, suburb, town, or village.
171
+ attr_reader :city
172
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
173
+ attr_reader :country
174
+ # Address line 1, such as the street, PO Box, or company name.
175
+ attr_reader :line1
176
+ # Address line 2, such as the apartment, suite, unit, or building.
177
+ attr_reader :line2
178
+ # ZIP or postal code.
179
+ attr_reader :postal_code
180
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
181
+ attr_reader :state
182
+
183
+ def self.inner_class_types
184
+ @inner_class_types = {}
185
+ end
186
+
187
+ def self.field_remappings
188
+ @field_remappings = {}
189
+ end
190
+ end
191
+ # Attribute for field address
192
+ attr_reader :address
193
+ # Customer name.
194
+ attr_reader :name
195
+
196
+ def self.inner_class_types
197
+ @inner_class_types = { address: Address }
198
+ end
199
+
200
+ def self.field_remappings
201
+ @field_remappings = {}
202
+ end
203
+ end
204
+
205
+ class TaxId < ::Stripe::StripeObject
206
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
207
+ attr_reader :type
208
+ # The value of the tax ID.
209
+ attr_reader :value
210
+
211
+ def self.inner_class_types
212
+ @inner_class_types = {}
213
+ end
214
+
215
+ def self.field_remappings
216
+ @field_remappings = {}
217
+ end
218
+ end
219
+ # Customer’s business name for this Checkout Session
220
+ attr_reader :business_name
221
+ # Customer’s email for this Checkout Session
222
+ attr_reader :email
223
+ # Customer’s individual name for this Checkout Session
224
+ attr_reader :individual_name
225
+ # Customer’s phone number for this Checkout Session
226
+ attr_reader :phone
227
+ # Shipping information for this Checkout Session.
228
+ attr_reader :shipping_details
229
+ # Customer’s tax ids for this Checkout Session.
230
+ attr_reader :tax_ids
231
+
232
+ def self.inner_class_types
233
+ @inner_class_types = { shipping_details: ShippingDetails, tax_ids: TaxId }
234
+ end
235
+
236
+ def self.field_remappings
237
+ @field_remappings = {}
238
+ end
239
+ end
240
+
241
+ class Consent < ::Stripe::StripeObject
242
+ # If `opt_in`, the customer consents to receiving promotional communications
243
+ # from the merchant about this Checkout Session.
244
+ attr_reader :promotions
245
+ # If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service.
246
+ attr_reader :terms_of_service
247
+
248
+ def self.inner_class_types
249
+ @inner_class_types = {}
250
+ end
251
+
252
+ def self.field_remappings
253
+ @field_remappings = {}
254
+ end
255
+ end
256
+
257
+ class ConsentCollection < ::Stripe::StripeObject
258
+ class PaymentMethodReuseAgreement < ::Stripe::StripeObject
259
+ # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.
260
+ #
261
+ # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
262
+ attr_reader :position
263
+
264
+ def self.inner_class_types
265
+ @inner_class_types = {}
266
+ end
267
+
268
+ def self.field_remappings
269
+ @field_remappings = {}
270
+ end
271
+ end
272
+ # If set to `hidden`, it will hide legal text related to the reuse of a payment method.
273
+ attr_reader :payment_method_reuse_agreement
274
+ # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
275
+ # Session will determine whether to display an option to opt into promotional communication
276
+ # from the merchant depending on the customer's locale. Only available to US merchants.
277
+ attr_reader :promotions
278
+ # If set to `required`, it requires customers to accept the terms of service before being able to pay.
279
+ attr_reader :terms_of_service
280
+
281
+ def self.inner_class_types
282
+ @inner_class_types = { payment_method_reuse_agreement: PaymentMethodReuseAgreement }
283
+ end
284
+
285
+ def self.field_remappings
286
+ @field_remappings = {}
287
+ end
288
+ end
289
+
290
+ class CurrencyConversion < ::Stripe::StripeObject
291
+ # Total of all items in source currency before discounts or taxes are applied.
292
+ attr_reader :amount_subtotal
293
+ # Total of all items in source currency after discounts and taxes are applied.
294
+ attr_reader :amount_total
295
+ # Exchange rate used to convert source currency amounts to customer currency amounts
296
+ attr_reader :fx_rate
297
+ # Creation currency of the CheckoutSession before localization
298
+ attr_reader :source_currency
299
+
300
+ def self.inner_class_types
301
+ @inner_class_types = {}
302
+ end
303
+
304
+ def self.field_remappings
305
+ @field_remappings = {}
306
+ end
307
+ end
308
+
309
+ class CustomField < ::Stripe::StripeObject
310
+ class Dropdown < ::Stripe::StripeObject
311
+ class Option < ::Stripe::StripeObject
312
+ # The label for the option, displayed to the customer. Up to 100 characters.
313
+ attr_reader :label
314
+ # 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.
315
+ attr_reader :value
316
+
317
+ def self.inner_class_types
318
+ @inner_class_types = {}
319
+ end
320
+
321
+ def self.field_remappings
322
+ @field_remappings = {}
323
+ end
324
+ end
325
+ # The value that will pre-fill on the payment page.
326
+ attr_reader :default_value
327
+ # The options available for the customer to select. Up to 200 options allowed.
328
+ attr_reader :options
329
+ # The option selected by the customer. This will be the `value` for the option.
330
+ attr_reader :value
331
+
332
+ def self.inner_class_types
333
+ @inner_class_types = { options: Option }
334
+ end
335
+
336
+ def self.field_remappings
337
+ @field_remappings = {}
338
+ end
339
+ end
340
+
341
+ class Label < ::Stripe::StripeObject
342
+ # Custom text for the label, displayed to the customer. Up to 50 characters.
343
+ attr_reader :custom
344
+ # The type of the label.
345
+ attr_reader :type
346
+
347
+ def self.inner_class_types
348
+ @inner_class_types = {}
349
+ end
350
+
351
+ def self.field_remappings
352
+ @field_remappings = {}
353
+ end
354
+ end
355
+
356
+ class Numeric < ::Stripe::StripeObject
357
+ # The value that will pre-fill the field on the payment page.
358
+ attr_reader :default_value
359
+ # The maximum character length constraint for the customer's input.
360
+ attr_reader :maximum_length
361
+ # The minimum character length requirement for the customer's input.
362
+ attr_reader :minimum_length
363
+ # The value entered by the customer, containing only digits.
364
+ attr_reader :value
365
+
366
+ def self.inner_class_types
367
+ @inner_class_types = {}
368
+ end
369
+
370
+ def self.field_remappings
371
+ @field_remappings = {}
372
+ end
373
+ end
374
+
375
+ class Text < ::Stripe::StripeObject
376
+ # The value that will pre-fill the field on the payment page.
377
+ attr_reader :default_value
378
+ # The maximum character length constraint for the customer's input.
379
+ attr_reader :maximum_length
380
+ # The minimum character length requirement for the customer's input.
381
+ attr_reader :minimum_length
382
+ # The value entered by the customer.
383
+ attr_reader :value
384
+
385
+ def self.inner_class_types
386
+ @inner_class_types = {}
387
+ end
388
+
389
+ def self.field_remappings
390
+ @field_remappings = {}
391
+ end
392
+ end
393
+ # Attribute for field dropdown
394
+ attr_reader :dropdown
395
+ # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
396
+ attr_reader :key
397
+ # Attribute for field label
398
+ attr_reader :label
399
+ # Attribute for field numeric
400
+ attr_reader :numeric
401
+ # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
402
+ attr_reader :optional
403
+ # Attribute for field text
404
+ attr_reader :text
405
+ # The type of the field.
406
+ attr_reader :type
407
+
408
+ def self.inner_class_types
409
+ @inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text }
410
+ end
411
+
412
+ def self.field_remappings
413
+ @field_remappings = {}
414
+ end
415
+ end
416
+
417
+ class CustomText < ::Stripe::StripeObject
418
+ class AfterSubmit < ::Stripe::StripeObject
419
+ # Text may be up to 1200 characters in length.
420
+ attr_reader :message
421
+
422
+ def self.inner_class_types
423
+ @inner_class_types = {}
424
+ end
425
+
426
+ def self.field_remappings
427
+ @field_remappings = {}
428
+ end
429
+ end
430
+
431
+ class ShippingAddress < ::Stripe::StripeObject
432
+ # Text may be up to 1200 characters in length.
433
+ attr_reader :message
434
+
435
+ def self.inner_class_types
436
+ @inner_class_types = {}
437
+ end
438
+
439
+ def self.field_remappings
440
+ @field_remappings = {}
441
+ end
442
+ end
443
+
444
+ class Submit < ::Stripe::StripeObject
445
+ # Text may be up to 1200 characters in length.
446
+ attr_reader :message
447
+
448
+ def self.inner_class_types
449
+ @inner_class_types = {}
450
+ end
451
+
452
+ def self.field_remappings
453
+ @field_remappings = {}
454
+ end
455
+ end
456
+
457
+ class TermsOfServiceAcceptance < ::Stripe::StripeObject
458
+ # Text may be up to 1200 characters in length.
459
+ attr_reader :message
460
+
461
+ def self.inner_class_types
462
+ @inner_class_types = {}
463
+ end
464
+
465
+ def self.field_remappings
466
+ @field_remappings = {}
467
+ end
468
+ end
469
+ # Custom text that should be displayed after the payment confirmation button.
470
+ attr_reader :after_submit
471
+ # Custom text that should be displayed alongside shipping address collection.
472
+ attr_reader :shipping_address
473
+ # Custom text that should be displayed alongside the payment confirmation button.
474
+ attr_reader :submit
475
+ # Custom text that should be displayed in place of the default terms of service agreement text.
476
+ attr_reader :terms_of_service_acceptance
477
+
478
+ def self.inner_class_types
479
+ @inner_class_types = {
480
+ after_submit: AfterSubmit,
481
+ shipping_address: ShippingAddress,
482
+ submit: Submit,
483
+ terms_of_service_acceptance: TermsOfServiceAcceptance,
484
+ }
485
+ end
486
+
487
+ def self.field_remappings
488
+ @field_remappings = {}
489
+ end
490
+ end
491
+
492
+ class CustomerDetails < ::Stripe::StripeObject
493
+ class Address < ::Stripe::StripeObject
494
+ # City, district, suburb, town, or village.
495
+ attr_reader :city
496
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
497
+ attr_reader :country
498
+ # Address line 1, such as the street, PO Box, or company name.
499
+ attr_reader :line1
500
+ # Address line 2, such as the apartment, suite, unit, or building.
501
+ attr_reader :line2
502
+ # ZIP or postal code.
503
+ attr_reader :postal_code
504
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
505
+ attr_reader :state
506
+
507
+ def self.inner_class_types
508
+ @inner_class_types = {}
509
+ end
510
+
511
+ def self.field_remappings
512
+ @field_remappings = {}
513
+ end
514
+ end
515
+
516
+ class TaxId < ::Stripe::StripeObject
517
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
518
+ attr_reader :type
519
+ # The value of the tax ID.
520
+ attr_reader :value
521
+
522
+ def self.inner_class_types
523
+ @inner_class_types = {}
524
+ end
525
+
526
+ def self.field_remappings
527
+ @field_remappings = {}
528
+ end
529
+ end
530
+ # The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
531
+ attr_reader :address
532
+ # The customer's business name after a completed Checkout Session.
533
+ attr_reader :business_name
534
+ # The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry.
535
+ # Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.
536
+ attr_reader :email
537
+ # The customer's individual name after a completed Checkout Session.
538
+ attr_reader :individual_name
539
+ # The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
540
+ attr_reader :name
541
+ # The customer's phone number after a completed Checkout Session.
542
+ attr_reader :phone
543
+ # The customer’s tax exempt status after a completed Checkout Session.
544
+ attr_reader :tax_exempt
545
+ # The customer’s tax IDs after a completed Checkout Session.
546
+ attr_reader :tax_ids
547
+
548
+ def self.inner_class_types
549
+ @inner_class_types = { address: Address, tax_ids: TaxId }
550
+ end
551
+
552
+ def self.field_remappings
553
+ @field_remappings = {}
554
+ end
555
+ end
556
+
557
+ class Discount < ::Stripe::StripeObject
558
+ # Coupon attached to the Checkout Session.
559
+ attr_reader :coupon
560
+ # Promotion code attached to the Checkout Session.
561
+ attr_reader :promotion_code
562
+
563
+ def self.inner_class_types
564
+ @inner_class_types = {}
565
+ end
566
+
567
+ def self.field_remappings
568
+ @field_remappings = {}
569
+ end
570
+ end
571
+
572
+ class InvoiceCreation < ::Stripe::StripeObject
573
+ class InvoiceData < ::Stripe::StripeObject
574
+ class CustomField < ::Stripe::StripeObject
575
+ # The name of the custom field.
576
+ attr_reader :name
577
+ # The value of the custom field.
578
+ attr_reader :value
579
+
580
+ def self.inner_class_types
581
+ @inner_class_types = {}
582
+ end
583
+
584
+ def self.field_remappings
585
+ @field_remappings = {}
586
+ end
587
+ end
588
+
589
+ class Issuer < ::Stripe::StripeObject
590
+ # The connected account being referenced when `type` is `account`.
591
+ attr_reader :account
592
+ # Type of the account referenced.
593
+ attr_reader :type
594
+
595
+ def self.inner_class_types
596
+ @inner_class_types = {}
597
+ end
598
+
599
+ def self.field_remappings
600
+ @field_remappings = {}
601
+ end
602
+ end
603
+
604
+ class RenderingOptions < ::Stripe::StripeObject
605
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
606
+ attr_reader :amount_tax_display
607
+ # ID of the invoice rendering template to be used for the generated invoice.
608
+ attr_reader :template
609
+
610
+ def self.inner_class_types
611
+ @inner_class_types = {}
612
+ end
613
+
614
+ def self.field_remappings
615
+ @field_remappings = {}
616
+ end
617
+ end
618
+ # The account tax IDs associated with the invoice.
619
+ attr_reader :account_tax_ids
620
+ # Custom fields displayed on the invoice.
621
+ attr_reader :custom_fields
622
+ # An arbitrary string attached to the object. Often useful for displaying to users.
623
+ attr_reader :description
624
+ # Footer displayed on the invoice.
625
+ attr_reader :footer
626
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
627
+ attr_reader :issuer
628
+ # 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.
629
+ attr_reader :metadata
630
+ # Options for invoice PDF rendering.
631
+ attr_reader :rendering_options
632
+
633
+ def self.inner_class_types
634
+ @inner_class_types = {
635
+ custom_fields: CustomField,
636
+ issuer: Issuer,
637
+ rendering_options: RenderingOptions,
638
+ }
639
+ end
640
+
641
+ def self.field_remappings
642
+ @field_remappings = {}
643
+ end
644
+ end
645
+ # Indicates whether invoice creation is enabled for the Checkout Session.
646
+ attr_reader :enabled
647
+ # Attribute for field invoice_data
648
+ attr_reader :invoice_data
649
+
650
+ def self.inner_class_types
651
+ @inner_class_types = { invoice_data: InvoiceData }
652
+ end
653
+
654
+ def self.field_remappings
655
+ @field_remappings = {}
656
+ end
657
+ end
658
+
659
+ class NameCollection < ::Stripe::StripeObject
660
+ class Business < ::Stripe::StripeObject
661
+ # Indicates whether business name collection is enabled for the session
662
+ attr_reader :enabled
663
+ # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
664
+ attr_reader :optional
665
+
666
+ def self.inner_class_types
667
+ @inner_class_types = {}
668
+ end
669
+
670
+ def self.field_remappings
671
+ @field_remappings = {}
672
+ end
673
+ end
674
+
675
+ class Individual < ::Stripe::StripeObject
676
+ # Indicates whether individual name collection is enabled for the session
677
+ attr_reader :enabled
678
+ # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
679
+ attr_reader :optional
680
+
681
+ def self.inner_class_types
682
+ @inner_class_types = {}
683
+ end
684
+
685
+ def self.field_remappings
686
+ @field_remappings = {}
687
+ end
688
+ end
689
+ # Attribute for field business
690
+ attr_reader :business
691
+ # Attribute for field individual
692
+ attr_reader :individual
693
+
694
+ def self.inner_class_types
695
+ @inner_class_types = { business: Business, individual: Individual }
696
+ end
697
+
698
+ def self.field_remappings
699
+ @field_remappings = {}
700
+ end
701
+ end
702
+
703
+ class OptionalItem < ::Stripe::StripeObject
704
+ class AdjustableQuantity < ::Stripe::StripeObject
705
+ # Set to true if the quantity can be adjusted to any non-negative integer.
706
+ attr_reader :enabled
707
+ # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
708
+ attr_reader :maximum
709
+ # The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
710
+ attr_reader :minimum
711
+
712
+ def self.inner_class_types
713
+ @inner_class_types = {}
714
+ end
715
+
716
+ def self.field_remappings
717
+ @field_remappings = {}
718
+ end
719
+ end
720
+ # Attribute for field adjustable_quantity
721
+ attr_reader :adjustable_quantity
722
+ # Attribute for field price
723
+ attr_reader :price
724
+ # Attribute for field quantity
725
+ attr_reader :quantity
726
+
727
+ def self.inner_class_types
728
+ @inner_class_types = { adjustable_quantity: AdjustableQuantity }
729
+ end
730
+
731
+ def self.field_remappings
732
+ @field_remappings = {}
733
+ end
734
+ end
735
+
736
+ class PaymentMethodConfigurationDetails < ::Stripe::StripeObject
737
+ # ID of the payment method configuration used.
738
+ attr_reader :id
739
+ # ID of the parent payment method configuration used.
740
+ attr_reader :parent
741
+
742
+ def self.inner_class_types
743
+ @inner_class_types = {}
744
+ end
745
+
746
+ def self.field_remappings
747
+ @field_remappings = {}
748
+ end
749
+ end
750
+
751
+ class PaymentMethodOptions < ::Stripe::StripeObject
752
+ class AcssDebit < ::Stripe::StripeObject
753
+ class MandateOptions < ::Stripe::StripeObject
754
+ # A URL for custom mandate text
755
+ attr_reader :custom_mandate_url
756
+ # List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode.
757
+ attr_reader :default_for
758
+ # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
759
+ attr_reader :interval_description
760
+ # Payment schedule for the mandate.
761
+ attr_reader :payment_schedule
762
+ # Transaction type of the mandate.
763
+ attr_reader :transaction_type
764
+
765
+ def self.inner_class_types
766
+ @inner_class_types = {}
767
+ end
768
+
769
+ def self.field_remappings
770
+ @field_remappings = {}
771
+ end
772
+ end
773
+ # Currency supported by the bank account. Returned when the Session is in `setup` mode.
774
+ attr_reader :currency
775
+ # Attribute for field mandate_options
776
+ attr_reader :mandate_options
777
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
778
+ #
779
+ # 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.
780
+ #
781
+ # 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.
782
+ #
783
+ # 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).
784
+ attr_reader :setup_future_usage
785
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
786
+ attr_reader :target_date
787
+ # Bank account verification method.
788
+ attr_reader :verification_method
789
+
790
+ def self.inner_class_types
791
+ @inner_class_types = { mandate_options: MandateOptions }
792
+ end
793
+
794
+ def self.field_remappings
795
+ @field_remappings = {}
796
+ end
797
+ end
798
+
799
+ class Affirm < ::Stripe::StripeObject
800
+ # Controls when the funds will be captured from the customer's account.
801
+ attr_reader :capture_method
802
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
803
+ #
804
+ # 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.
805
+ #
806
+ # 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.
807
+ #
808
+ # 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).
809
+ attr_reader :setup_future_usage
810
+
811
+ def self.inner_class_types
812
+ @inner_class_types = {}
813
+ end
814
+
815
+ def self.field_remappings
816
+ @field_remappings = {}
817
+ end
818
+ end
819
+
820
+ class AfterpayClearpay < ::Stripe::StripeObject
821
+ # Controls when the funds will be captured from the customer's account.
822
+ attr_reader :capture_method
823
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
824
+ #
825
+ # 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.
826
+ #
827
+ # 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.
828
+ #
829
+ # 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).
830
+ attr_reader :setup_future_usage
831
+
832
+ def self.inner_class_types
833
+ @inner_class_types = {}
834
+ end
835
+
836
+ def self.field_remappings
837
+ @field_remappings = {}
838
+ end
839
+ end
840
+
841
+ class Alipay < ::Stripe::StripeObject
842
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
843
+ #
844
+ # 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.
845
+ #
846
+ # 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.
847
+ #
848
+ # 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).
849
+ attr_reader :setup_future_usage
850
+
851
+ def self.inner_class_types
852
+ @inner_class_types = {}
853
+ end
854
+
855
+ def self.field_remappings
856
+ @field_remappings = {}
857
+ end
858
+ end
859
+
860
+ class Alma < ::Stripe::StripeObject
861
+ # Controls when the funds will be captured from the customer's account.
862
+ attr_reader :capture_method
863
+
864
+ def self.inner_class_types
865
+ @inner_class_types = {}
866
+ end
867
+
868
+ def self.field_remappings
869
+ @field_remappings = {}
870
+ end
871
+ end
872
+
873
+ class AmazonPay < ::Stripe::StripeObject
874
+ # Controls when the funds will be captured from the customer's account.
875
+ attr_reader :capture_method
876
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
877
+ #
878
+ # 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.
879
+ #
880
+ # 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.
881
+ #
882
+ # 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).
883
+ attr_reader :setup_future_usage
884
+
885
+ def self.inner_class_types
886
+ @inner_class_types = {}
887
+ end
888
+
889
+ def self.field_remappings
890
+ @field_remappings = {}
891
+ end
892
+ end
893
+
894
+ class AuBecsDebit < ::Stripe::StripeObject
895
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
896
+ #
897
+ # 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.
898
+ #
899
+ # 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.
900
+ #
901
+ # 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).
902
+ attr_reader :setup_future_usage
903
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
904
+ attr_reader :target_date
905
+
906
+ def self.inner_class_types
907
+ @inner_class_types = {}
908
+ end
909
+
910
+ def self.field_remappings
911
+ @field_remappings = {}
912
+ end
913
+ end
914
+
915
+ class BacsDebit < ::Stripe::StripeObject
916
+ class MandateOptions < ::Stripe::StripeObject
917
+ # 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'.
918
+ attr_reader :reference_prefix
919
+
920
+ def self.inner_class_types
921
+ @inner_class_types = {}
922
+ end
923
+
924
+ def self.field_remappings
925
+ @field_remappings = {}
926
+ end
927
+ end
928
+ # Attribute for field mandate_options
929
+ attr_reader :mandate_options
930
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
931
+ #
932
+ # 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.
933
+ #
934
+ # 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.
935
+ #
936
+ # 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).
937
+ attr_reader :setup_future_usage
938
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
939
+ attr_reader :target_date
940
+
941
+ def self.inner_class_types
942
+ @inner_class_types = { mandate_options: MandateOptions }
943
+ end
944
+
945
+ def self.field_remappings
946
+ @field_remappings = {}
947
+ end
948
+ end
949
+
950
+ class Bancontact < ::Stripe::StripeObject
951
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
952
+ #
953
+ # 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.
954
+ #
955
+ # 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.
956
+ #
957
+ # 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).
958
+ attr_reader :setup_future_usage
959
+
960
+ def self.inner_class_types
961
+ @inner_class_types = {}
962
+ end
963
+
964
+ def self.field_remappings
965
+ @field_remappings = {}
966
+ end
967
+ end
968
+
969
+ class Billie < ::Stripe::StripeObject
970
+ # Controls when the funds will be captured from the customer's account.
971
+ attr_reader :capture_method
972
+
973
+ def self.inner_class_types
974
+ @inner_class_types = {}
975
+ end
976
+
977
+ def self.field_remappings
978
+ @field_remappings = {}
979
+ end
980
+ end
981
+
982
+ class Boleto < ::Stripe::StripeObject
983
+ # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
984
+ attr_reader :expires_after_days
985
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
986
+ #
987
+ # 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.
988
+ #
989
+ # 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.
990
+ #
991
+ # 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).
992
+ attr_reader :setup_future_usage
993
+
994
+ def self.inner_class_types
995
+ @inner_class_types = {}
996
+ end
997
+
998
+ def self.field_remappings
999
+ @field_remappings = {}
1000
+ end
1001
+ end
1002
+
1003
+ class Card < ::Stripe::StripeObject
1004
+ class Installments < ::Stripe::StripeObject
1005
+ # Indicates if installments are enabled
1006
+ attr_reader :enabled
1007
+
1008
+ def self.inner_class_types
1009
+ @inner_class_types = {}
1010
+ end
1011
+
1012
+ def self.field_remappings
1013
+ @field_remappings = {}
1014
+ end
1015
+ end
1016
+
1017
+ class Restrictions < ::Stripe::StripeObject
1018
+ # 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.
1019
+ attr_reader :brands_blocked
1020
+
1021
+ def self.inner_class_types
1022
+ @inner_class_types = {}
1023
+ end
1024
+
1025
+ def self.field_remappings
1026
+ @field_remappings = {}
1027
+ end
1028
+ end
1029
+ # Controls when the funds will be captured from the customer's account.
1030
+ attr_reader :capture_method
1031
+ # Attribute for field installments
1032
+ attr_reader :installments
1033
+ # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
1034
+ attr_reader :request_decremental_authorization
1035
+ # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
1036
+ attr_reader :request_extended_authorization
1037
+ # Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
1038
+ attr_reader :request_incremental_authorization
1039
+ # Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.
1040
+ attr_reader :request_multicapture
1041
+ # Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
1042
+ attr_reader :request_overcapture
1043
+ # 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.
1044
+ attr_reader :request_three_d_secure
1045
+ # Attribute for field restrictions
1046
+ attr_reader :restrictions
1047
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1048
+ #
1049
+ # 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.
1050
+ #
1051
+ # 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.
1052
+ #
1053
+ # 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).
1054
+ attr_reader :setup_future_usage
1055
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
1056
+ attr_reader :statement_descriptor_suffix_kana
1057
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1058
+ attr_reader :statement_descriptor_suffix_kanji
1059
+
1060
+ def self.inner_class_types
1061
+ @inner_class_types = { installments: Installments, restrictions: Restrictions }
1062
+ end
1063
+
1064
+ def self.field_remappings
1065
+ @field_remappings = {}
1066
+ end
1067
+ end
1068
+
1069
+ class Cashapp < ::Stripe::StripeObject
1070
+ # Controls when the funds will be captured from the customer's account.
1071
+ attr_reader :capture_method
1072
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1073
+ #
1074
+ # 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.
1075
+ #
1076
+ # 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.
1077
+ #
1078
+ # 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).
1079
+ attr_reader :setup_future_usage
1080
+
1081
+ def self.inner_class_types
1082
+ @inner_class_types = {}
1083
+ end
1084
+
1085
+ def self.field_remappings
1086
+ @field_remappings = {}
1087
+ end
1088
+ end
1089
+
1090
+ class CustomerBalance < ::Stripe::StripeObject
1091
+ class BankTransfer < ::Stripe::StripeObject
1092
+ class EuBankTransfer < ::Stripe::StripeObject
1093
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1094
+ attr_reader :country
1095
+
1096
+ def self.inner_class_types
1097
+ @inner_class_types = {}
1098
+ end
1099
+
1100
+ def self.field_remappings
1101
+ @field_remappings = {}
1102
+ end
1103
+ end
1104
+ # Attribute for field eu_bank_transfer
1105
+ attr_reader :eu_bank_transfer
1106
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1107
+ #
1108
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1109
+ attr_reader :requested_address_types
1110
+ # The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
1111
+ attr_reader :type
1112
+
1113
+ def self.inner_class_types
1114
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
1115
+ end
1116
+
1117
+ def self.field_remappings
1118
+ @field_remappings = {}
1119
+ end
1120
+ end
1121
+ # Attribute for field bank_transfer
1122
+ attr_reader :bank_transfer
1123
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1124
+ attr_reader :funding_type
1125
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1126
+ #
1127
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1128
+ #
1129
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1130
+ #
1131
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1132
+ attr_reader :setup_future_usage
1133
+
1134
+ def self.inner_class_types
1135
+ @inner_class_types = { bank_transfer: BankTransfer }
1136
+ end
1137
+
1138
+ def self.field_remappings
1139
+ @field_remappings = {}
1140
+ end
1141
+ end
1142
+
1143
+ class Eps < ::Stripe::StripeObject
1144
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1145
+ #
1146
+ # 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.
1147
+ #
1148
+ # 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.
1149
+ #
1150
+ # 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).
1151
+ attr_reader :setup_future_usage
1152
+
1153
+ def self.inner_class_types
1154
+ @inner_class_types = {}
1155
+ end
1156
+
1157
+ def self.field_remappings
1158
+ @field_remappings = {}
1159
+ end
1160
+ end
1161
+
1162
+ class Fpx < ::Stripe::StripeObject
1163
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1164
+ #
1165
+ # 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.
1166
+ #
1167
+ # 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.
1168
+ #
1169
+ # 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).
1170
+ attr_reader :setup_future_usage
1171
+
1172
+ def self.inner_class_types
1173
+ @inner_class_types = {}
1174
+ end
12
1175
 
13
- custom_method :expire, http_verb: :post
1176
+ def self.field_remappings
1177
+ @field_remappings = {}
1178
+ end
1179
+ end
14
1180
 
15
- nested_resource_class_methods :line_item, operations: %i[list]
1181
+ class Giropay < ::Stripe::StripeObject
1182
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1183
+ #
1184
+ # 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.
1185
+ #
1186
+ # 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.
1187
+ #
1188
+ # 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).
1189
+ attr_reader :setup_future_usage
16
1190
 
1191
+ def self.inner_class_types
1192
+ @inner_class_types = {}
1193
+ end
1194
+
1195
+ def self.field_remappings
1196
+ @field_remappings = {}
1197
+ end
1198
+ end
1199
+
1200
+ class Grabpay < ::Stripe::StripeObject
1201
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1202
+ #
1203
+ # 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.
1204
+ #
1205
+ # 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.
1206
+ #
1207
+ # 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).
1208
+ attr_reader :setup_future_usage
1209
+
1210
+ def self.inner_class_types
1211
+ @inner_class_types = {}
1212
+ end
1213
+
1214
+ def self.field_remappings
1215
+ @field_remappings = {}
1216
+ end
1217
+ end
1218
+
1219
+ class Ideal < ::Stripe::StripeObject
1220
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1221
+ #
1222
+ # 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.
1223
+ #
1224
+ # 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.
1225
+ #
1226
+ # 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).
1227
+ attr_reader :setup_future_usage
1228
+
1229
+ def self.inner_class_types
1230
+ @inner_class_types = {}
1231
+ end
1232
+
1233
+ def self.field_remappings
1234
+ @field_remappings = {}
1235
+ end
1236
+ end
1237
+
1238
+ class KakaoPay < ::Stripe::StripeObject
1239
+ # Controls when the funds will be captured from the customer's account.
1240
+ attr_reader :capture_method
1241
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1242
+ #
1243
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1244
+ #
1245
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1246
+ #
1247
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1248
+ attr_reader :setup_future_usage
1249
+
1250
+ def self.inner_class_types
1251
+ @inner_class_types = {}
1252
+ end
1253
+
1254
+ def self.field_remappings
1255
+ @field_remappings = {}
1256
+ end
1257
+ end
1258
+
1259
+ class Klarna < ::Stripe::StripeObject
1260
+ # Controls when the funds will be captured from the customer's account.
1261
+ attr_reader :capture_method
1262
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1263
+ #
1264
+ # 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.
1265
+ #
1266
+ # 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.
1267
+ #
1268
+ # 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).
1269
+ attr_reader :setup_future_usage
1270
+
1271
+ def self.inner_class_types
1272
+ @inner_class_types = {}
1273
+ end
1274
+
1275
+ def self.field_remappings
1276
+ @field_remappings = {}
1277
+ end
1278
+ end
1279
+
1280
+ class Konbini < ::Stripe::StripeObject
1281
+ # 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.
1282
+ attr_reader :expires_after_days
1283
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1284
+ #
1285
+ # 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.
1286
+ #
1287
+ # 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.
1288
+ #
1289
+ # 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).
1290
+ attr_reader :setup_future_usage
1291
+
1292
+ def self.inner_class_types
1293
+ @inner_class_types = {}
1294
+ end
1295
+
1296
+ def self.field_remappings
1297
+ @field_remappings = {}
1298
+ end
1299
+ end
1300
+
1301
+ class KrCard < ::Stripe::StripeObject
1302
+ # Controls when the funds will be captured from the customer's account.
1303
+ attr_reader :capture_method
1304
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1305
+ #
1306
+ # 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.
1307
+ #
1308
+ # 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.
1309
+ #
1310
+ # 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).
1311
+ attr_reader :setup_future_usage
1312
+
1313
+ def self.inner_class_types
1314
+ @inner_class_types = {}
1315
+ end
1316
+
1317
+ def self.field_remappings
1318
+ @field_remappings = {}
1319
+ end
1320
+ end
1321
+
1322
+ class Link < ::Stripe::StripeObject
1323
+ # Controls when the funds will be captured from the customer's account.
1324
+ attr_reader :capture_method
1325
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1326
+ #
1327
+ # 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.
1328
+ #
1329
+ # 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.
1330
+ #
1331
+ # 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).
1332
+ attr_reader :setup_future_usage
1333
+
1334
+ def self.inner_class_types
1335
+ @inner_class_types = {}
1336
+ end
1337
+
1338
+ def self.field_remappings
1339
+ @field_remappings = {}
1340
+ end
1341
+ end
1342
+
1343
+ class Mobilepay < ::Stripe::StripeObject
1344
+ # Controls when the funds will be captured from the customer's account.
1345
+ attr_reader :capture_method
1346
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1347
+ #
1348
+ # 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.
1349
+ #
1350
+ # 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.
1351
+ #
1352
+ # 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).
1353
+ attr_reader :setup_future_usage
1354
+
1355
+ def self.inner_class_types
1356
+ @inner_class_types = {}
1357
+ end
1358
+
1359
+ def self.field_remappings
1360
+ @field_remappings = {}
1361
+ end
1362
+ end
1363
+
1364
+ class Multibanco < ::Stripe::StripeObject
1365
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1366
+ #
1367
+ # 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.
1368
+ #
1369
+ # 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.
1370
+ #
1371
+ # 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).
1372
+ attr_reader :setup_future_usage
1373
+
1374
+ def self.inner_class_types
1375
+ @inner_class_types = {}
1376
+ end
1377
+
1378
+ def self.field_remappings
1379
+ @field_remappings = {}
1380
+ end
1381
+ end
1382
+
1383
+ class NaverPay < ::Stripe::StripeObject
1384
+ # Controls when the funds will be captured from the customer's account.
1385
+ attr_reader :capture_method
1386
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1387
+ #
1388
+ # 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.
1389
+ #
1390
+ # 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.
1391
+ #
1392
+ # 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).
1393
+ attr_reader :setup_future_usage
1394
+
1395
+ def self.inner_class_types
1396
+ @inner_class_types = {}
1397
+ end
1398
+
1399
+ def self.field_remappings
1400
+ @field_remappings = {}
1401
+ end
1402
+ end
1403
+
1404
+ class Oxxo < ::Stripe::StripeObject
1405
+ # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1406
+ attr_reader :expires_after_days
1407
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1408
+ #
1409
+ # 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.
1410
+ #
1411
+ # 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.
1412
+ #
1413
+ # 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).
1414
+ attr_reader :setup_future_usage
1415
+
1416
+ def self.inner_class_types
1417
+ @inner_class_types = {}
1418
+ end
1419
+
1420
+ def self.field_remappings
1421
+ @field_remappings = {}
1422
+ end
1423
+ end
1424
+
1425
+ class P24 < ::Stripe::StripeObject
1426
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1427
+ #
1428
+ # 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.
1429
+ #
1430
+ # 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.
1431
+ #
1432
+ # 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).
1433
+ attr_reader :setup_future_usage
1434
+
1435
+ def self.inner_class_types
1436
+ @inner_class_types = {}
1437
+ end
1438
+
1439
+ def self.field_remappings
1440
+ @field_remappings = {}
1441
+ end
1442
+ end
1443
+
1444
+ class Payco < ::Stripe::StripeObject
1445
+ # Controls when the funds will be captured from the customer's account.
1446
+ attr_reader :capture_method
1447
+
1448
+ def self.inner_class_types
1449
+ @inner_class_types = {}
1450
+ end
1451
+
1452
+ def self.field_remappings
1453
+ @field_remappings = {}
1454
+ end
1455
+ end
1456
+
1457
+ class Paynow < ::Stripe::StripeObject
1458
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1459
+ #
1460
+ # 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.
1461
+ #
1462
+ # 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.
1463
+ #
1464
+ # 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).
1465
+ attr_reader :setup_future_usage
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = {}
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
1474
+ end
1475
+
1476
+ class Paypal < ::Stripe::StripeObject
1477
+ # Controls when the funds will be captured from the customer's account.
1478
+ attr_reader :capture_method
1479
+ # Preferred locale of the PayPal checkout page that the customer is redirected to.
1480
+ attr_reader :preferred_locale
1481
+ # 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.
1482
+ attr_reader :reference
1483
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1484
+ #
1485
+ # 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.
1486
+ #
1487
+ # 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.
1488
+ #
1489
+ # 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).
1490
+ attr_reader :setup_future_usage
1491
+ # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1492
+ attr_reader :subsellers
1493
+
1494
+ def self.inner_class_types
1495
+ @inner_class_types = {}
1496
+ end
1497
+
1498
+ def self.field_remappings
1499
+ @field_remappings = {}
1500
+ end
1501
+ end
1502
+
1503
+ class Payto < ::Stripe::StripeObject
1504
+ class MandateOptions < ::Stripe::StripeObject
1505
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
1506
+ attr_reader :amount
1507
+ # 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`.
1508
+ attr_reader :amount_type
1509
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1510
+ attr_reader :end_date
1511
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
1512
+ attr_reader :payment_schedule
1513
+ # 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.
1514
+ attr_reader :payments_per_period
1515
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
1516
+ attr_reader :purpose
1517
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1518
+ attr_reader :start_date
1519
+
1520
+ def self.inner_class_types
1521
+ @inner_class_types = {}
1522
+ end
1523
+
1524
+ def self.field_remappings
1525
+ @field_remappings = {}
1526
+ end
1527
+ end
1528
+ # Attribute for field mandate_options
1529
+ attr_reader :mandate_options
1530
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1531
+ #
1532
+ # 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.
1533
+ #
1534
+ # 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.
1535
+ #
1536
+ # 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).
1537
+ attr_reader :setup_future_usage
1538
+
1539
+ def self.inner_class_types
1540
+ @inner_class_types = { mandate_options: MandateOptions }
1541
+ end
1542
+
1543
+ def self.field_remappings
1544
+ @field_remappings = {}
1545
+ end
1546
+ end
1547
+
1548
+ class Pix < ::Stripe::StripeObject
1549
+ class MandateOptions < ::Stripe::StripeObject
1550
+ # Amount to be charged for future payments.
1551
+ attr_reader :amount
1552
+ # Determines if the amount includes the IOF tax.
1553
+ attr_reader :amount_includes_iof
1554
+ # Type of amount.
1555
+ attr_reader :amount_type
1556
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
1557
+ attr_reader :currency
1558
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
1559
+ attr_reader :end_date
1560
+ # Schedule at which the future payments will be charged.
1561
+ attr_reader :payment_schedule
1562
+ # Subscription name displayed to buyers in their bank app.
1563
+ attr_reader :reference
1564
+ # Start date of the mandate, in `YYYY-MM-DD`.
1565
+ attr_reader :start_date
1566
+
1567
+ def self.inner_class_types
1568
+ @inner_class_types = {}
1569
+ end
1570
+
1571
+ def self.field_remappings
1572
+ @field_remappings = {}
1573
+ end
1574
+ end
1575
+ # Determines if the amount includes the IOF tax.
1576
+ attr_reader :amount_includes_iof
1577
+ # The number of seconds after which Pix payment will expire.
1578
+ attr_reader :expires_after_seconds
1579
+ # Attribute for field mandate_options
1580
+ attr_reader :mandate_options
1581
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1582
+ #
1583
+ # 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.
1584
+ #
1585
+ # 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.
1586
+ #
1587
+ # 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).
1588
+ attr_reader :setup_future_usage
1589
+
1590
+ def self.inner_class_types
1591
+ @inner_class_types = { mandate_options: MandateOptions }
1592
+ end
1593
+
1594
+ def self.field_remappings
1595
+ @field_remappings = {}
1596
+ end
1597
+ end
1598
+
1599
+ class RevolutPay < ::Stripe::StripeObject
1600
+ # Controls when the funds will be captured from the customer's account.
1601
+ attr_reader :capture_method
1602
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1603
+ #
1604
+ # 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.
1605
+ #
1606
+ # 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.
1607
+ #
1608
+ # 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).
1609
+ attr_reader :setup_future_usage
1610
+
1611
+ def self.inner_class_types
1612
+ @inner_class_types = {}
1613
+ end
1614
+
1615
+ def self.field_remappings
1616
+ @field_remappings = {}
1617
+ end
1618
+ end
1619
+
1620
+ class SamsungPay < ::Stripe::StripeObject
1621
+ # Controls when the funds will be captured from the customer's account.
1622
+ attr_reader :capture_method
1623
+
1624
+ def self.inner_class_types
1625
+ @inner_class_types = {}
1626
+ end
1627
+
1628
+ def self.field_remappings
1629
+ @field_remappings = {}
1630
+ end
1631
+ end
1632
+
1633
+ class Satispay < ::Stripe::StripeObject
1634
+ # Controls when the funds will be captured from the customer's account.
1635
+ attr_reader :capture_method
1636
+
1637
+ def self.inner_class_types
1638
+ @inner_class_types = {}
1639
+ end
1640
+
1641
+ def self.field_remappings
1642
+ @field_remappings = {}
1643
+ end
1644
+ end
1645
+
1646
+ class SepaDebit < ::Stripe::StripeObject
1647
+ class MandateOptions < ::Stripe::StripeObject
1648
+ # 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'.
1649
+ attr_reader :reference_prefix
1650
+
1651
+ def self.inner_class_types
1652
+ @inner_class_types = {}
1653
+ end
1654
+
1655
+ def self.field_remappings
1656
+ @field_remappings = {}
1657
+ end
1658
+ end
1659
+ # Attribute for field mandate_options
1660
+ attr_reader :mandate_options
1661
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1662
+ #
1663
+ # 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.
1664
+ #
1665
+ # 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.
1666
+ #
1667
+ # 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).
1668
+ attr_reader :setup_future_usage
1669
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1670
+ attr_reader :target_date
1671
+
1672
+ def self.inner_class_types
1673
+ @inner_class_types = { mandate_options: MandateOptions }
1674
+ end
1675
+
1676
+ def self.field_remappings
1677
+ @field_remappings = {}
1678
+ end
1679
+ end
1680
+
1681
+ class Sofort < ::Stripe::StripeObject
1682
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1683
+ #
1684
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1685
+ #
1686
+ # 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.
1687
+ #
1688
+ # 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).
1689
+ attr_reader :setup_future_usage
1690
+
1691
+ def self.inner_class_types
1692
+ @inner_class_types = {}
1693
+ end
1694
+
1695
+ def self.field_remappings
1696
+ @field_remappings = {}
1697
+ end
1698
+ end
1699
+
1700
+ class Swish < ::Stripe::StripeObject
1701
+ # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
1702
+ attr_reader :reference
1703
+
1704
+ def self.inner_class_types
1705
+ @inner_class_types = {}
1706
+ end
1707
+
1708
+ def self.field_remappings
1709
+ @field_remappings = {}
1710
+ end
1711
+ end
1712
+
1713
+ class Twint < ::Stripe::StripeObject
1714
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1715
+ #
1716
+ # 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.
1717
+ #
1718
+ # 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.
1719
+ #
1720
+ # 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).
1721
+ attr_reader :setup_future_usage
1722
+
1723
+ def self.inner_class_types
1724
+ @inner_class_types = {}
1725
+ end
1726
+
1727
+ def self.field_remappings
1728
+ @field_remappings = {}
1729
+ end
1730
+ end
1731
+
1732
+ class UsBankAccount < ::Stripe::StripeObject
1733
+ class FinancialConnections < ::Stripe::StripeObject
1734
+ class Filters < ::Stripe::StripeObject
1735
+ # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1736
+ attr_reader :account_subcategories
1737
+ # The institution to use to filter for possible accounts to link.
1738
+ attr_reader :institution
1739
+
1740
+ def self.inner_class_types
1741
+ @inner_class_types = {}
1742
+ end
1743
+
1744
+ def self.field_remappings
1745
+ @field_remappings = {}
1746
+ end
1747
+ end
1748
+
1749
+ class ManualEntry < ::Stripe::StripeObject
1750
+ # Settings for configuring manual entry of account details.
1751
+ attr_reader :mode
1752
+
1753
+ def self.inner_class_types
1754
+ @inner_class_types = {}
1755
+ end
1756
+
1757
+ def self.field_remappings
1758
+ @field_remappings = {}
1759
+ end
1760
+ end
1761
+ # Attribute for field filters
1762
+ attr_reader :filters
1763
+ # Attribute for field manual_entry
1764
+ attr_reader :manual_entry
1765
+ # The list of permissions to request. The `payment_method` permission must be included.
1766
+ attr_reader :permissions
1767
+ # Data features requested to be retrieved upon account creation.
1768
+ attr_reader :prefetch
1769
+ # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
1770
+ attr_reader :return_url
1771
+
1772
+ def self.inner_class_types
1773
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
1774
+ end
1775
+
1776
+ def self.field_remappings
1777
+ @field_remappings = {}
1778
+ end
1779
+ end
1780
+ # Attribute for field financial_connections
1781
+ attr_reader :financial_connections
1782
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1783
+ #
1784
+ # 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.
1785
+ #
1786
+ # 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.
1787
+ #
1788
+ # 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).
1789
+ attr_reader :setup_future_usage
1790
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1791
+ attr_reader :target_date
1792
+ # Bank account verification method.
1793
+ attr_reader :verification_method
1794
+
1795
+ def self.inner_class_types
1796
+ @inner_class_types = { financial_connections: FinancialConnections }
1797
+ end
1798
+
1799
+ def self.field_remappings
1800
+ @field_remappings = {}
1801
+ end
1802
+ end
1803
+ # Attribute for field acss_debit
1804
+ attr_reader :acss_debit
1805
+ # Attribute for field affirm
1806
+ attr_reader :affirm
1807
+ # Attribute for field afterpay_clearpay
1808
+ attr_reader :afterpay_clearpay
1809
+ # Attribute for field alipay
1810
+ attr_reader :alipay
1811
+ # Attribute for field alma
1812
+ attr_reader :alma
1813
+ # Attribute for field amazon_pay
1814
+ attr_reader :amazon_pay
1815
+ # Attribute for field au_becs_debit
1816
+ attr_reader :au_becs_debit
1817
+ # Attribute for field bacs_debit
1818
+ attr_reader :bacs_debit
1819
+ # Attribute for field bancontact
1820
+ attr_reader :bancontact
1821
+ # Attribute for field billie
1822
+ attr_reader :billie
1823
+ # Attribute for field boleto
1824
+ attr_reader :boleto
1825
+ # Attribute for field card
1826
+ attr_reader :card
1827
+ # Attribute for field cashapp
1828
+ attr_reader :cashapp
1829
+ # Attribute for field customer_balance
1830
+ attr_reader :customer_balance
1831
+ # Attribute for field eps
1832
+ attr_reader :eps
1833
+ # Attribute for field fpx
1834
+ attr_reader :fpx
1835
+ # Attribute for field giropay
1836
+ attr_reader :giropay
1837
+ # Attribute for field grabpay
1838
+ attr_reader :grabpay
1839
+ # Attribute for field ideal
1840
+ attr_reader :ideal
1841
+ # Attribute for field kakao_pay
1842
+ attr_reader :kakao_pay
1843
+ # Attribute for field klarna
1844
+ attr_reader :klarna
1845
+ # Attribute for field konbini
1846
+ attr_reader :konbini
1847
+ # Attribute for field kr_card
1848
+ attr_reader :kr_card
1849
+ # Attribute for field link
1850
+ attr_reader :link
1851
+ # Attribute for field mobilepay
1852
+ attr_reader :mobilepay
1853
+ # Attribute for field multibanco
1854
+ attr_reader :multibanco
1855
+ # Attribute for field naver_pay
1856
+ attr_reader :naver_pay
1857
+ # Attribute for field oxxo
1858
+ attr_reader :oxxo
1859
+ # Attribute for field p24
1860
+ attr_reader :p24
1861
+ # Attribute for field payco
1862
+ attr_reader :payco
1863
+ # Attribute for field paynow
1864
+ attr_reader :paynow
1865
+ # Attribute for field paypal
1866
+ attr_reader :paypal
1867
+ # Attribute for field payto
1868
+ attr_reader :payto
1869
+ # Attribute for field pix
1870
+ attr_reader :pix
1871
+ # Attribute for field revolut_pay
1872
+ attr_reader :revolut_pay
1873
+ # Attribute for field samsung_pay
1874
+ attr_reader :samsung_pay
1875
+ # Attribute for field satispay
1876
+ attr_reader :satispay
1877
+ # Attribute for field sepa_debit
1878
+ attr_reader :sepa_debit
1879
+ # Attribute for field sofort
1880
+ attr_reader :sofort
1881
+ # Attribute for field swish
1882
+ attr_reader :swish
1883
+ # Attribute for field twint
1884
+ attr_reader :twint
1885
+ # Attribute for field us_bank_account
1886
+ attr_reader :us_bank_account
1887
+
1888
+ def self.inner_class_types
1889
+ @inner_class_types = {
1890
+ acss_debit: AcssDebit,
1891
+ affirm: Affirm,
1892
+ afterpay_clearpay: AfterpayClearpay,
1893
+ alipay: Alipay,
1894
+ alma: Alma,
1895
+ amazon_pay: AmazonPay,
1896
+ au_becs_debit: AuBecsDebit,
1897
+ bacs_debit: BacsDebit,
1898
+ bancontact: Bancontact,
1899
+ billie: Billie,
1900
+ boleto: Boleto,
1901
+ card: Card,
1902
+ cashapp: Cashapp,
1903
+ customer_balance: CustomerBalance,
1904
+ eps: Eps,
1905
+ fpx: Fpx,
1906
+ giropay: Giropay,
1907
+ grabpay: Grabpay,
1908
+ ideal: Ideal,
1909
+ kakao_pay: KakaoPay,
1910
+ klarna: Klarna,
1911
+ konbini: Konbini,
1912
+ kr_card: KrCard,
1913
+ link: Link,
1914
+ mobilepay: Mobilepay,
1915
+ multibanco: Multibanco,
1916
+ naver_pay: NaverPay,
1917
+ oxxo: Oxxo,
1918
+ p24: P24,
1919
+ payco: Payco,
1920
+ paynow: Paynow,
1921
+ paypal: Paypal,
1922
+ payto: Payto,
1923
+ pix: Pix,
1924
+ revolut_pay: RevolutPay,
1925
+ samsung_pay: SamsungPay,
1926
+ satispay: Satispay,
1927
+ sepa_debit: SepaDebit,
1928
+ sofort: Sofort,
1929
+ swish: Swish,
1930
+ twint: Twint,
1931
+ us_bank_account: UsBankAccount,
1932
+ }
1933
+ end
1934
+
1935
+ def self.field_remappings
1936
+ @field_remappings = {}
1937
+ end
1938
+ end
1939
+
1940
+ class Permissions < ::Stripe::StripeObject
1941
+ class Update < ::Stripe::StripeObject
1942
+ # Determines which entity is allowed to update the line items.
1943
+ #
1944
+ # Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
1945
+ #
1946
+ # When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
1947
+ attr_reader :line_items
1948
+ # Determines which entity is allowed to update the shipping details.
1949
+ #
1950
+ # 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.
1951
+ #
1952
+ # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
1953
+ attr_reader :shipping_details
1954
+
1955
+ def self.inner_class_types
1956
+ @inner_class_types = {}
1957
+ end
1958
+
1959
+ def self.field_remappings
1960
+ @field_remappings = {}
1961
+ end
1962
+ end
1963
+ # Permissions for updating the Checkout Session.
1964
+ attr_reader :update
1965
+ # Determines which entity is allowed to update the line items.
1966
+ #
1967
+ # Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
1968
+ #
1969
+ # When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
1970
+ attr_reader :update_line_items
1971
+ # Determines which entity is allowed to update the shipping details.
1972
+ #
1973
+ # 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.
1974
+ #
1975
+ # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
1976
+ attr_reader :update_shipping_details
1977
+
1978
+ def self.inner_class_types
1979
+ @inner_class_types = { update: Update }
1980
+ end
1981
+
1982
+ def self.field_remappings
1983
+ @field_remappings = {}
1984
+ end
1985
+ end
1986
+
1987
+ class PhoneNumberCollection < ::Stripe::StripeObject
1988
+ # Indicates whether phone number collection is enabled for the session
1989
+ attr_reader :enabled
1990
+
1991
+ def self.inner_class_types
1992
+ @inner_class_types = {}
1993
+ end
1994
+
1995
+ def self.field_remappings
1996
+ @field_remappings = {}
1997
+ end
1998
+ end
1999
+
2000
+ class PresentmentDetails < ::Stripe::StripeObject
2001
+ # Amount intended to be collected by this payment, denominated in `presentment_currency`.
2002
+ attr_reader :presentment_amount
2003
+ # Currency presented to the customer during payment.
2004
+ attr_reader :presentment_currency
2005
+
2006
+ def self.inner_class_types
2007
+ @inner_class_types = {}
2008
+ end
2009
+
2010
+ def self.field_remappings
2011
+ @field_remappings = {}
2012
+ end
2013
+ end
2014
+
2015
+ class SavedPaymentMethodOptions < ::Stripe::StripeObject
2016
+ # 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.
2017
+ attr_reader :allow_redisplay_filters
2018
+ # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
2019
+ attr_reader :payment_method_remove
2020
+ # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
2021
+ attr_reader :payment_method_save
2022
+
2023
+ def self.inner_class_types
2024
+ @inner_class_types = {}
2025
+ end
2026
+
2027
+ def self.field_remappings
2028
+ @field_remappings = {}
2029
+ end
2030
+ end
2031
+
2032
+ class ShippingAddressCollection < ::Stripe::StripeObject
2033
+ # An array of two-letter ISO country codes representing which countries Checkout should provide as options for
2034
+ # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
2035
+ attr_reader :allowed_countries
2036
+
2037
+ def self.inner_class_types
2038
+ @inner_class_types = {}
2039
+ end
2040
+
2041
+ def self.field_remappings
2042
+ @field_remappings = {}
2043
+ end
2044
+ end
2045
+
2046
+ class ShippingCost < ::Stripe::StripeObject
2047
+ class Tax < ::Stripe::StripeObject
2048
+ # Amount of tax applied for this rate.
2049
+ attr_reader :amount
2050
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
2051
+ #
2052
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
2053
+ attr_reader :rate
2054
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
2055
+ attr_reader :taxability_reason
2056
+ # The amount on which tax is calculated, in cents (or local equivalent).
2057
+ attr_reader :taxable_amount
2058
+
2059
+ def self.inner_class_types
2060
+ @inner_class_types = {}
2061
+ end
2062
+
2063
+ def self.field_remappings
2064
+ @field_remappings = {}
2065
+ end
2066
+ end
2067
+ # Total shipping cost before any discounts or taxes are applied.
2068
+ attr_reader :amount_subtotal
2069
+ # Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
2070
+ attr_reader :amount_tax
2071
+ # Total shipping cost after discounts and taxes are applied.
2072
+ attr_reader :amount_total
2073
+ # The ID of the ShippingRate for this order.
2074
+ attr_reader :shipping_rate
2075
+ # The taxes applied to the shipping rate.
2076
+ attr_reader :taxes
2077
+
2078
+ def self.inner_class_types
2079
+ @inner_class_types = { taxes: Tax }
2080
+ end
2081
+
2082
+ def self.field_remappings
2083
+ @field_remappings = {}
2084
+ end
2085
+ end
2086
+
2087
+ class ShippingOption < ::Stripe::StripeObject
2088
+ # A non-negative integer in cents representing how much to charge.
2089
+ attr_reader :shipping_amount
2090
+ # The shipping rate.
2091
+ attr_reader :shipping_rate
2092
+
2093
+ def self.inner_class_types
2094
+ @inner_class_types = {}
2095
+ end
2096
+
2097
+ def self.field_remappings
2098
+ @field_remappings = {}
2099
+ end
2100
+ end
2101
+
2102
+ class TaxIdCollection < ::Stripe::StripeObject
2103
+ # Indicates whether tax ID collection is enabled for the session
2104
+ attr_reader :enabled
2105
+ # Indicates whether a tax ID is required on the payment page
2106
+ attr_reader :required
2107
+
2108
+ def self.inner_class_types
2109
+ @inner_class_types = {}
2110
+ end
2111
+
2112
+ def self.field_remappings
2113
+ @field_remappings = {}
2114
+ end
2115
+ end
2116
+
2117
+ class TotalDetails < ::Stripe::StripeObject
2118
+ class Breakdown < ::Stripe::StripeObject
2119
+ class Discount < ::Stripe::StripeObject
2120
+ # The amount discounted.
2121
+ attr_reader :amount
2122
+ # A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
2123
+ # It contains information about when the discount began, when it will end, and what it is applied to.
2124
+ #
2125
+ # Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
2126
+ attr_reader :discount
2127
+
2128
+ def self.inner_class_types
2129
+ @inner_class_types = {}
2130
+ end
2131
+
2132
+ def self.field_remappings
2133
+ @field_remappings = {}
2134
+ end
2135
+ end
2136
+
2137
+ class Tax < ::Stripe::StripeObject
2138
+ # Amount of tax applied for this rate.
2139
+ attr_reader :amount
2140
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
2141
+ #
2142
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
2143
+ attr_reader :rate
2144
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
2145
+ attr_reader :taxability_reason
2146
+ # The amount on which tax is calculated, in cents (or local equivalent).
2147
+ attr_reader :taxable_amount
2148
+
2149
+ def self.inner_class_types
2150
+ @inner_class_types = {}
2151
+ end
2152
+
2153
+ def self.field_remappings
2154
+ @field_remappings = {}
2155
+ end
2156
+ end
2157
+ # The aggregated discounts.
2158
+ attr_reader :discounts
2159
+ # The aggregated tax amounts by rate.
2160
+ attr_reader :taxes
2161
+
2162
+ def self.inner_class_types
2163
+ @inner_class_types = { discounts: Discount, taxes: Tax }
2164
+ end
2165
+
2166
+ def self.field_remappings
2167
+ @field_remappings = {}
2168
+ end
2169
+ end
2170
+ # This is the sum of all the discounts.
2171
+ attr_reader :amount_discount
2172
+ # This is the sum of all the shipping amounts.
2173
+ attr_reader :amount_shipping
2174
+ # This is the sum of all the tax amounts.
2175
+ attr_reader :amount_tax
2176
+ # Attribute for field breakdown
2177
+ attr_reader :breakdown
2178
+
2179
+ def self.inner_class_types
2180
+ @inner_class_types = { breakdown: Breakdown }
2181
+ end
2182
+
2183
+ def self.field_remappings
2184
+ @field_remappings = {}
2185
+ end
2186
+ end
2187
+
2188
+ class WalletOptions < ::Stripe::StripeObject
2189
+ class Link < ::Stripe::StripeObject
2190
+ # Describes whether Checkout should display Link. Defaults to `auto`.
2191
+ attr_reader :display
2192
+
2193
+ def self.inner_class_types
2194
+ @inner_class_types = {}
2195
+ end
2196
+
2197
+ def self.field_remappings
2198
+ @field_remappings = {}
2199
+ end
2200
+ end
2201
+ # Attribute for field link
2202
+ attr_reader :link
2203
+
2204
+ def self.inner_class_types
2205
+ @inner_class_types = { link: Link }
2206
+ end
2207
+
2208
+ def self.field_remappings
2209
+ @field_remappings = {}
2210
+ end
2211
+ end
2212
+ # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
2213
+ attr_reader :adaptive_pricing
2214
+ # When set, provides configuration for actions to take if this Checkout Session expires.
2215
+ attr_reader :after_expiration
2216
+ # Enables user redeemable promotion codes.
2217
+ attr_reader :allow_promotion_codes
2218
+ # Total of all items before discounts or taxes are applied.
2219
+ attr_reader :amount_subtotal
2220
+ # Total of all items after discounts and taxes are applied.
2221
+ attr_reader :amount_total
2222
+ # Attribute for field automatic_tax
2223
+ attr_reader :automatic_tax
2224
+ # Describes whether Checkout should collect the customer's billing address. Defaults to `auto`.
2225
+ attr_reader :billing_address_collection
2226
+ # Attribute for field branding_settings
2227
+ attr_reader :branding_settings
2228
+ # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
2229
+ attr_reader :cancel_url
2230
+ # A unique string to reference the Checkout Session. This can be a
2231
+ # customer ID, a cart ID, or similar, and can be used to reconcile the
2232
+ # Session with your internal systems.
2233
+ attr_reader :client_reference_id
2234
+ # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
2235
+ # For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end.
2236
+ attr_reader :client_secret
2237
+ # Information about the customer collected within the Checkout Session.
2238
+ attr_reader :collected_information
2239
+ # Results of `consent_collection` for this session.
2240
+ attr_reader :consent
2241
+ # When set, provides configuration for the Checkout Session to gather active consent from customers.
2242
+ attr_reader :consent_collection
2243
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
2244
+ attr_reader :created
2245
+ # 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).
2246
+ attr_reader :currency
2247
+ # Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31.
2248
+ attr_reader :currency_conversion
2249
+ # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
2250
+ attr_reader :custom_fields
2251
+ # Attribute for field custom_text
2252
+ attr_reader :custom_text
2253
+ # The ID of the customer for this Session.
2254
+ # For Checkout Sessions in `subscription` mode or Checkout Sessions with `customer_creation` set as `always` in `payment` mode, Checkout
2255
+ # will create a new customer object based on information provided
2256
+ # during the payment flow unless an existing customer was provided when
2257
+ # the Session was created.
2258
+ attr_reader :customer
2259
+ # The ID of the account for this Session.
2260
+ attr_reader :customer_account
2261
+ # Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
2262
+ attr_reader :customer_creation
2263
+ # The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
2264
+ attr_reader :customer_details
2265
+ # If provided, this value will be used when the Customer object is created.
2266
+ # If not provided, customers will be asked to enter their email address.
2267
+ # Use this parameter to prefill customer data if you already have an email
2268
+ # on file. To access information about the customer once the payment flow is
2269
+ # complete, use the `customer` attribute.
2270
+ attr_reader :customer_email
2271
+ # List of coupons and promotion codes attached to the Checkout Session.
2272
+ attr_reader :discounts
2273
+ # A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
2274
+ attr_reader :excluded_payment_method_types
2275
+ # The timestamp at which the Checkout Session will expire.
2276
+ attr_reader :expires_at
2277
+ # Unique identifier for the object.
2278
+ attr_reader :id
2279
+ # ID of the invoice created by the Checkout Session, if it exists.
2280
+ attr_reader :invoice
2281
+ # Details on the state of invoice creation for the Checkout Session.
2282
+ attr_reader :invoice_creation
2283
+ # The line items purchased by the customer.
2284
+ attr_reader :line_items
2285
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2286
+ attr_reader :livemode
2287
+ # The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
2288
+ attr_reader :locale
2289
+ # 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.
2290
+ attr_reader :metadata
2291
+ # The mode of the Checkout Session.
2292
+ attr_reader :mode
2293
+ # Attribute for field name_collection
2294
+ attr_reader :name_collection
2295
+ # String representing the object's type. Objects of the same type share the same value.
2296
+ attr_reader :object
2297
+ # The optional items presented to the customer at checkout.
2298
+ attr_reader :optional_items
2299
+ # Where the user is coming from. This informs the optimizations that are applied to the session.
2300
+ attr_reader :origin_context
2301
+ # The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
2302
+ attr_reader :payment_intent
2303
+ # The ID of the Payment Link that created this Session.
2304
+ attr_reader :payment_link
2305
+ # Configure whether a Checkout Session should collect a payment method. Defaults to `always`.
2306
+ attr_reader :payment_method_collection
2307
+ # Information about the payment method configuration used for this Checkout session if using dynamic payment methods.
2308
+ attr_reader :payment_method_configuration_details
2309
+ # Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
2310
+ attr_reader :payment_method_options
2311
+ # A list of the types of payment methods (e.g. card) this Checkout
2312
+ # Session is allowed to accept.
2313
+ attr_reader :payment_method_types
2314
+ # The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`.
2315
+ # You can use this value to decide when to fulfill your customer's order.
2316
+ attr_reader :payment_status
2317
+ # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
2318
+ #
2319
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
2320
+ attr_reader :permissions
2321
+ # Attribute for field phone_number_collection
2322
+ attr_reader :phone_number_collection
2323
+ # Attribute for field presentment_details
2324
+ attr_reader :presentment_details
2325
+ # The ID of the original expired Checkout Session that triggered the recovery flow.
2326
+ attr_reader :recovered_from
2327
+ # 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`.
2328
+ attr_reader :redirect_on_completion
2329
+ # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
2330
+ attr_reader :return_url
2331
+ # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
2332
+ attr_reader :saved_payment_method_options
2333
+ # The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
2334
+ attr_reader :setup_intent
2335
+ # When set, provides configuration for Checkout to collect a shipping address from a customer.
2336
+ attr_reader :shipping_address_collection
2337
+ # The details of the customer cost of shipping, including the customer chosen ShippingRate.
2338
+ attr_reader :shipping_cost
2339
+ # The shipping rate options applied to this Session.
2340
+ attr_reader :shipping_options
2341
+ # The status of the Checkout Session, one of `open`, `complete`, or `expired`.
2342
+ attr_reader :status
2343
+ # Describes the type of transaction being performed by Checkout in order to customize
2344
+ # relevant text on the page, such as the submit button. `submit_type` can only be
2345
+ # specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
2346
+ attr_reader :submit_type
2347
+ # The ID of the [Subscription](https://docs.stripe.com/api/subscriptions) for Checkout Sessions in `subscription` mode.
2348
+ attr_reader :subscription
2349
+ # The URL the customer will be directed to after the payment or
2350
+ # subscription creation is successful.
2351
+ attr_reader :success_url
2352
+ # Attribute for field tax_id_collection
2353
+ attr_reader :tax_id_collection
2354
+ # Tax and discount details for the computed total amount.
2355
+ attr_reader :total_details
2356
+ # The UI mode of the Session. Defaults to `hosted`.
2357
+ attr_reader :ui_mode
2358
+ # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
2359
+ # This value is only present when the session is active.
2360
+ attr_reader :url
2361
+ # Wallet-specific configuration for this Checkout Session.
2362
+ attr_reader :wallet_options
2363
+
2364
+ # Creates a Checkout Session object.
2365
+ def self.create(params = {}, opts = {})
2366
+ request_stripe_object(
2367
+ method: :post,
2368
+ path: "/v1/checkout/sessions",
2369
+ params: params,
2370
+ opts: opts
2371
+ )
2372
+ end
2373
+
2374
+ # A Checkout Session can be expired when it is in one of these statuses: open
2375
+ #
2376
+ # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
17
2377
  def expire(params = {}, opts = {})
18
2378
  request_stripe_object(
19
2379
  method: :post,
20
- path: resource_url + "/expire",
2380
+ path: format("/v1/checkout/sessions/%<session>s/expire", { session: CGI.escape(self["id"]) }),
2381
+ params: params,
2382
+ opts: opts
2383
+ )
2384
+ end
2385
+
2386
+ # A Checkout Session can be expired when it is in one of these statuses: open
2387
+ #
2388
+ # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
2389
+ def self.expire(session, params = {}, opts = {})
2390
+ request_stripe_object(
2391
+ method: :post,
2392
+ path: format("/v1/checkout/sessions/%<session>s/expire", { session: CGI.escape(session) }),
2393
+ params: params,
2394
+ opts: opts
2395
+ )
2396
+ end
2397
+
2398
+ # Returns a list of Checkout Sessions.
2399
+ def self.list(params = {}, opts = {})
2400
+ request_stripe_object(
2401
+ method: :get,
2402
+ path: "/v1/checkout/sessions",
21
2403
  params: params,
22
2404
  opts: opts
23
2405
  )
24
2406
  end
2407
+
2408
+ # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
2409
+ def list_line_items(params = {}, opts = {})
2410
+ request_stripe_object(
2411
+ method: :get,
2412
+ path: format("/v1/checkout/sessions/%<session>s/line_items", { session: CGI.escape(self["id"]) }),
2413
+ params: params,
2414
+ opts: opts
2415
+ )
2416
+ end
2417
+
2418
+ # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
2419
+ def self.list_line_items(session, params = {}, opts = {})
2420
+ request_stripe_object(
2421
+ method: :get,
2422
+ path: format("/v1/checkout/sessions/%<session>s/line_items", { session: CGI.escape(session) }),
2423
+ params: params,
2424
+ opts: opts
2425
+ )
2426
+ end
2427
+
2428
+ # Updates a Checkout Session object.
2429
+ #
2430
+ # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
2431
+ def self.update(session, params = {}, opts = {})
2432
+ request_stripe_object(
2433
+ method: :post,
2434
+ path: format("/v1/checkout/sessions/%<session>s", { session: CGI.escape(session) }),
2435
+ params: params,
2436
+ opts: opts
2437
+ )
2438
+ end
2439
+
2440
+ def self.inner_class_types
2441
+ @inner_class_types = {
2442
+ adaptive_pricing: AdaptivePricing,
2443
+ after_expiration: AfterExpiration,
2444
+ automatic_tax: AutomaticTax,
2445
+ branding_settings: BrandingSettings,
2446
+ collected_information: CollectedInformation,
2447
+ consent: Consent,
2448
+ consent_collection: ConsentCollection,
2449
+ currency_conversion: CurrencyConversion,
2450
+ custom_fields: CustomField,
2451
+ custom_text: CustomText,
2452
+ customer_details: CustomerDetails,
2453
+ discounts: Discount,
2454
+ invoice_creation: InvoiceCreation,
2455
+ name_collection: NameCollection,
2456
+ optional_items: OptionalItem,
2457
+ payment_method_configuration_details: PaymentMethodConfigurationDetails,
2458
+ payment_method_options: PaymentMethodOptions,
2459
+ permissions: Permissions,
2460
+ phone_number_collection: PhoneNumberCollection,
2461
+ presentment_details: PresentmentDetails,
2462
+ saved_payment_method_options: SavedPaymentMethodOptions,
2463
+ shipping_address_collection: ShippingAddressCollection,
2464
+ shipping_cost: ShippingCost,
2465
+ shipping_options: ShippingOption,
2466
+ tax_id_collection: TaxIdCollection,
2467
+ total_details: TotalDetails,
2468
+ wallet_options: WalletOptions,
2469
+ }
2470
+ end
2471
+
2472
+ def self.field_remappings
2473
+ @field_remappings = {}
2474
+ end
25
2475
  end
26
2476
  end
27
2477
  end