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
@@ -2,81 +2,3953 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
+ # A PaymentIntent guides you through the process of collecting a payment from your customer.
6
+ # We recommend that you create exactly one PaymentIntent for each order or
7
+ # customer session in your system. You can reference the PaymentIntent later to
8
+ # see the history of payment attempts for a particular session.
9
+ #
10
+ # A PaymentIntent transitions through
11
+ # [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
12
+ # throughout its lifetime as it interfaces with Stripe.js to perform
13
+ # authentication flows and ultimately creates at most one successful charge.
14
+ #
15
+ # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
5
16
  class PaymentIntent < APIResource
6
17
  extend Stripe::APIOperations::Create
7
18
  extend Stripe::APIOperations::List
19
+ extend Stripe::APIOperations::NestedResource
8
20
  extend Stripe::APIOperations::Search
9
21
  include Stripe::APIOperations::Save
10
22
 
11
23
  OBJECT_NAME = "payment_intent"
24
+ def self.object_name
25
+ "payment_intent"
26
+ end
27
+
28
+ nested_resource_class_methods :amount_details_line_item, operations: %i[list]
29
+
30
+ class AmountDetails < ::Stripe::StripeObject
31
+ class Shipping < ::Stripe::StripeObject
32
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
33
+ attr_reader :amount
34
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
35
+ attr_reader :from_postal_code
36
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
37
+ attr_reader :to_postal_code
38
+
39
+ def self.inner_class_types
40
+ @inner_class_types = {}
41
+ end
42
+
43
+ def self.field_remappings
44
+ @field_remappings = {}
45
+ end
46
+ end
47
+
48
+ class Tax < ::Stripe::StripeObject
49
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
50
+ #
51
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
52
+ attr_reader :total_tax_amount
53
+
54
+ def self.inner_class_types
55
+ @inner_class_types = {}
56
+ end
57
+
58
+ def self.field_remappings
59
+ @field_remappings = {}
60
+ end
61
+ end
62
+
63
+ class Tip < ::Stripe::StripeObject
64
+ # Portion of the amount that corresponds to a tip.
65
+ attr_reader :amount
66
+
67
+ def self.inner_class_types
68
+ @inner_class_types = {}
69
+ end
70
+
71
+ def self.field_remappings
72
+ @field_remappings = {}
73
+ end
74
+ end
75
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
76
+ #
77
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
78
+ attr_reader :discount_amount
79
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
80
+ attr_reader :line_items
81
+ # Attribute for field shipping
82
+ attr_reader :shipping
83
+ # Attribute for field tax
84
+ attr_reader :tax
85
+ # Attribute for field tip
86
+ attr_reader :tip
87
+
88
+ def self.inner_class_types
89
+ @inner_class_types = { shipping: Shipping, tax: Tax, tip: Tip }
90
+ end
91
+
92
+ def self.field_remappings
93
+ @field_remappings = {}
94
+ end
95
+ end
96
+
97
+ class AsyncWorkflows < ::Stripe::StripeObject
98
+ class Inputs < ::Stripe::StripeObject
99
+ class Tax < ::Stripe::StripeObject
100
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
101
+ attr_reader :calculation
102
+
103
+ def self.inner_class_types
104
+ @inner_class_types = {}
105
+ end
106
+
107
+ def self.field_remappings
108
+ @field_remappings = {}
109
+ end
110
+ end
111
+ # Attribute for field tax
112
+ attr_reader :tax
113
+
114
+ def self.inner_class_types
115
+ @inner_class_types = { tax: Tax }
116
+ end
117
+
118
+ def self.field_remappings
119
+ @field_remappings = {}
120
+ end
121
+ end
122
+ # Attribute for field inputs
123
+ attr_reader :inputs
124
+
125
+ def self.inner_class_types
126
+ @inner_class_types = { inputs: Inputs }
127
+ end
128
+
129
+ def self.field_remappings
130
+ @field_remappings = {}
131
+ end
132
+ end
133
+
134
+ class AutomaticPaymentMethods < ::Stripe::StripeObject
135
+ # Controls whether this PaymentIntent will accept redirect-based payment methods.
136
+ #
137
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
138
+ attr_reader :allow_redirects
139
+ # Automatically calculates compatible payment methods
140
+ attr_reader :enabled
141
+
142
+ def self.inner_class_types
143
+ @inner_class_types = {}
144
+ end
145
+
146
+ def self.field_remappings
147
+ @field_remappings = {}
148
+ end
149
+ end
150
+
151
+ class Hooks < ::Stripe::StripeObject
152
+ class Inputs < ::Stripe::StripeObject
153
+ class Tax < ::Stripe::StripeObject
154
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
155
+ attr_reader :calculation
156
+
157
+ def self.inner_class_types
158
+ @inner_class_types = {}
159
+ end
160
+
161
+ def self.field_remappings
162
+ @field_remappings = {}
163
+ end
164
+ end
165
+ # Attribute for field tax
166
+ attr_reader :tax
167
+
168
+ def self.inner_class_types
169
+ @inner_class_types = { tax: Tax }
170
+ end
171
+
172
+ def self.field_remappings
173
+ @field_remappings = {}
174
+ end
175
+ end
176
+ # Attribute for field inputs
177
+ attr_reader :inputs
178
+
179
+ def self.inner_class_types
180
+ @inner_class_types = { inputs: Inputs }
181
+ end
182
+
183
+ def self.field_remappings
184
+ @field_remappings = {}
185
+ end
186
+ end
187
+
188
+ class LastPaymentError < ::Stripe::StripeObject
189
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
190
+ attr_reader :advice_code
191
+ # For card errors, the ID of the failed charge.
192
+ attr_reader :charge
193
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
194
+ attr_reader :code
195
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
196
+ attr_reader :decline_code
197
+ # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
198
+ attr_reader :doc_url
199
+ # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
200
+ attr_reader :message
201
+ # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
202
+ attr_reader :network_advice_code
203
+ # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
204
+ attr_reader :network_decline_code
205
+ # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
206
+ attr_reader :param
207
+ # A PaymentIntent guides you through the process of collecting a payment from your customer.
208
+ # We recommend that you create exactly one PaymentIntent for each order or
209
+ # customer session in your system. You can reference the PaymentIntent later to
210
+ # see the history of payment attempts for a particular session.
211
+ #
212
+ # A PaymentIntent transitions through
213
+ # [multiple statuses](/payments/paymentintents/lifecycle)
214
+ # throughout its lifetime as it interfaces with Stripe.js to perform
215
+ # authentication flows and ultimately creates at most one successful charge.
216
+ #
217
+ # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
218
+ attr_reader :payment_intent
219
+ # PaymentMethod objects represent your customer's payment instruments.
220
+ # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
221
+ # Customer objects to store instrument details for future payments.
222
+ #
223
+ # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
224
+ attr_reader :payment_method
225
+ # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
226
+ attr_reader :payment_method_type
227
+ # A URL to the request log entry in your dashboard.
228
+ attr_reader :request_log_url
229
+ # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
230
+ # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
231
+ # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
232
+ #
233
+ # Create a SetupIntent when you're ready to collect your customer's payment credentials.
234
+ # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
235
+ # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
236
+ # you through the setup process.
237
+ #
238
+ # Successful SetupIntents result in payment credentials that are optimized for future payments.
239
+ # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
240
+ # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
241
+ # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
242
+ # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
243
+ # it automatically attaches the resulting payment method to that Customer after successful setup.
244
+ # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
245
+ # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
246
+ #
247
+ # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
248
+ #
249
+ # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
250
+ attr_reader :setup_intent
251
+ # Attribute for field source
252
+ attr_reader :source
253
+ # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
254
+ attr_reader :type
255
+
256
+ def self.inner_class_types
257
+ @inner_class_types = {}
258
+ end
259
+
260
+ def self.field_remappings
261
+ @field_remappings = {}
262
+ end
263
+ end
264
+
265
+ class NextAction < ::Stripe::StripeObject
266
+ class AlipayHandleRedirect < ::Stripe::StripeObject
267
+ # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App.
268
+ attr_reader :native_data
269
+ # The native URL you must redirect your customer to in order to authenticate the payment in an iOS App.
270
+ attr_reader :native_url
271
+ # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
272
+ attr_reader :return_url
273
+ # The URL you must redirect your customer to in order to authenticate the payment.
274
+ attr_reader :url
275
+
276
+ def self.inner_class_types
277
+ @inner_class_types = {}
278
+ end
279
+
280
+ def self.field_remappings
281
+ @field_remappings = {}
282
+ end
283
+ end
284
+
285
+ class BoletoDisplayDetails < ::Stripe::StripeObject
286
+ # The timestamp after which the boleto expires.
287
+ attr_reader :expires_at
288
+ # The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher.
289
+ attr_reader :hosted_voucher_url
290
+ # The boleto number.
291
+ attr_reader :number
292
+ # The URL to the downloadable boleto voucher PDF.
293
+ attr_reader :pdf
294
+
295
+ def self.inner_class_types
296
+ @inner_class_types = {}
297
+ end
298
+
299
+ def self.field_remappings
300
+ @field_remappings = {}
301
+ end
302
+ end
303
+
304
+ class CardAwaitNotification < ::Stripe::StripeObject
305
+ # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time.
306
+ attr_reader :charge_attempt_at
307
+ # For payments greater than INR 15000, the customer must provide explicit approval of the payment with their bank. For payments of lower amount, no customer action is required.
308
+ attr_reader :customer_approval_required
309
+
310
+ def self.inner_class_types
311
+ @inner_class_types = {}
312
+ end
313
+
314
+ def self.field_remappings
315
+ @field_remappings = {}
316
+ end
317
+ end
318
+
319
+ class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
320
+ class QrCode < ::Stripe::StripeObject
321
+ # The date (unix timestamp) when the QR code expires.
322
+ attr_reader :expires_at
323
+ # The image_url_png string used to render QR code
324
+ attr_reader :image_url_png
325
+ # The image_url_svg string used to render QR code
326
+ attr_reader :image_url_svg
327
+
328
+ def self.inner_class_types
329
+ @inner_class_types = {}
330
+ end
331
+
332
+ def self.field_remappings
333
+ @field_remappings = {}
334
+ end
335
+ end
336
+ # The URL to the hosted Cash App Pay instructions page, which allows customers to view the QR code, and supports QR code refreshing on expiration.
337
+ attr_reader :hosted_instructions_url
338
+ # The url for mobile redirect based auth
339
+ attr_reader :mobile_auth_url
340
+ # Attribute for field qr_code
341
+ attr_reader :qr_code
342
+
343
+ def self.inner_class_types
344
+ @inner_class_types = { qr_code: QrCode }
345
+ end
346
+
347
+ def self.field_remappings
348
+ @field_remappings = {}
349
+ end
350
+ end
351
+
352
+ class DisplayBankTransferInstructions < ::Stripe::StripeObject
353
+ class FinancialAddress < ::Stripe::StripeObject
354
+ class Aba < ::Stripe::StripeObject
355
+ class AccountHolderAddress < ::Stripe::StripeObject
356
+ # City, district, suburb, town, or village.
357
+ attr_reader :city
358
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
359
+ attr_reader :country
360
+ # Address line 1, such as the street, PO Box, or company name.
361
+ attr_reader :line1
362
+ # Address line 2, such as the apartment, suite, unit, or building.
363
+ attr_reader :line2
364
+ # ZIP or postal code.
365
+ attr_reader :postal_code
366
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
367
+ attr_reader :state
368
+
369
+ def self.inner_class_types
370
+ @inner_class_types = {}
371
+ end
372
+
373
+ def self.field_remappings
374
+ @field_remappings = {}
375
+ end
376
+ end
377
+
378
+ class BankAddress < ::Stripe::StripeObject
379
+ # City, district, suburb, town, or village.
380
+ attr_reader :city
381
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
382
+ attr_reader :country
383
+ # Address line 1, such as the street, PO Box, or company name.
384
+ attr_reader :line1
385
+ # Address line 2, such as the apartment, suite, unit, or building.
386
+ attr_reader :line2
387
+ # ZIP or postal code.
388
+ attr_reader :postal_code
389
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
390
+ attr_reader :state
391
+
392
+ def self.inner_class_types
393
+ @inner_class_types = {}
394
+ end
395
+
396
+ def self.field_remappings
397
+ @field_remappings = {}
398
+ end
399
+ end
400
+ # Attribute for field account_holder_address
401
+ attr_reader :account_holder_address
402
+ # The account holder name
403
+ attr_reader :account_holder_name
404
+ # The ABA account number
405
+ attr_reader :account_number
406
+ # The account type
407
+ attr_reader :account_type
408
+ # Attribute for field bank_address
409
+ attr_reader :bank_address
410
+ # The bank name
411
+ attr_reader :bank_name
412
+ # The ABA routing number
413
+ attr_reader :routing_number
414
+
415
+ def self.inner_class_types
416
+ @inner_class_types = {
417
+ account_holder_address: AccountHolderAddress,
418
+ bank_address: BankAddress,
419
+ }
420
+ end
421
+
422
+ def self.field_remappings
423
+ @field_remappings = {}
424
+ end
425
+ end
426
+
427
+ class Iban < ::Stripe::StripeObject
428
+ class AccountHolderAddress < ::Stripe::StripeObject
429
+ # City, district, suburb, town, or village.
430
+ attr_reader :city
431
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
432
+ attr_reader :country
433
+ # Address line 1, such as the street, PO Box, or company name.
434
+ attr_reader :line1
435
+ # Address line 2, such as the apartment, suite, unit, or building.
436
+ attr_reader :line2
437
+ # ZIP or postal code.
438
+ attr_reader :postal_code
439
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
440
+ attr_reader :state
441
+
442
+ def self.inner_class_types
443
+ @inner_class_types = {}
444
+ end
445
+
446
+ def self.field_remappings
447
+ @field_remappings = {}
448
+ end
449
+ end
450
+
451
+ class BankAddress < ::Stripe::StripeObject
452
+ # City, district, suburb, town, or village.
453
+ attr_reader :city
454
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
455
+ attr_reader :country
456
+ # Address line 1, such as the street, PO Box, or company name.
457
+ attr_reader :line1
458
+ # Address line 2, such as the apartment, suite, unit, or building.
459
+ attr_reader :line2
460
+ # ZIP or postal code.
461
+ attr_reader :postal_code
462
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
463
+ attr_reader :state
464
+
465
+ def self.inner_class_types
466
+ @inner_class_types = {}
467
+ end
468
+
469
+ def self.field_remappings
470
+ @field_remappings = {}
471
+ end
472
+ end
473
+ # Attribute for field account_holder_address
474
+ attr_reader :account_holder_address
475
+ # The name of the person or business that owns the bank account
476
+ attr_reader :account_holder_name
477
+ # Attribute for field bank_address
478
+ attr_reader :bank_address
479
+ # The BIC/SWIFT code of the account.
480
+ attr_reader :bic
481
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
482
+ attr_reader :country
483
+ # The IBAN of the account.
484
+ attr_reader :iban
485
+
486
+ def self.inner_class_types
487
+ @inner_class_types = {
488
+ account_holder_address: AccountHolderAddress,
489
+ bank_address: BankAddress,
490
+ }
491
+ end
492
+
493
+ def self.field_remappings
494
+ @field_remappings = {}
495
+ end
496
+ end
497
+
498
+ class SortCode < ::Stripe::StripeObject
499
+ class AccountHolderAddress < ::Stripe::StripeObject
500
+ # City, district, suburb, town, or village.
501
+ attr_reader :city
502
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
503
+ attr_reader :country
504
+ # Address line 1, such as the street, PO Box, or company name.
505
+ attr_reader :line1
506
+ # Address line 2, such as the apartment, suite, unit, or building.
507
+ attr_reader :line2
508
+ # ZIP or postal code.
509
+ attr_reader :postal_code
510
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
511
+ attr_reader :state
512
+
513
+ def self.inner_class_types
514
+ @inner_class_types = {}
515
+ end
516
+
517
+ def self.field_remappings
518
+ @field_remappings = {}
519
+ end
520
+ end
521
+
522
+ class BankAddress < ::Stripe::StripeObject
523
+ # City, district, suburb, town, or village.
524
+ attr_reader :city
525
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
526
+ attr_reader :country
527
+ # Address line 1, such as the street, PO Box, or company name.
528
+ attr_reader :line1
529
+ # Address line 2, such as the apartment, suite, unit, or building.
530
+ attr_reader :line2
531
+ # ZIP or postal code.
532
+ attr_reader :postal_code
533
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
534
+ attr_reader :state
535
+
536
+ def self.inner_class_types
537
+ @inner_class_types = {}
538
+ end
539
+
540
+ def self.field_remappings
541
+ @field_remappings = {}
542
+ end
543
+ end
544
+ # Attribute for field account_holder_address
545
+ attr_reader :account_holder_address
546
+ # The name of the person or business that owns the bank account
547
+ attr_reader :account_holder_name
548
+ # The account number
549
+ attr_reader :account_number
550
+ # Attribute for field bank_address
551
+ attr_reader :bank_address
552
+ # The six-digit sort code
553
+ attr_reader :sort_code
554
+
555
+ def self.inner_class_types
556
+ @inner_class_types = {
557
+ account_holder_address: AccountHolderAddress,
558
+ bank_address: BankAddress,
559
+ }
560
+ end
561
+
562
+ def self.field_remappings
563
+ @field_remappings = {}
564
+ end
565
+ end
566
+
567
+ class Spei < ::Stripe::StripeObject
568
+ class AccountHolderAddress < ::Stripe::StripeObject
569
+ # City, district, suburb, town, or village.
570
+ attr_reader :city
571
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
572
+ attr_reader :country
573
+ # Address line 1, such as the street, PO Box, or company name.
574
+ attr_reader :line1
575
+ # Address line 2, such as the apartment, suite, unit, or building.
576
+ attr_reader :line2
577
+ # ZIP or postal code.
578
+ attr_reader :postal_code
579
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
580
+ attr_reader :state
581
+
582
+ def self.inner_class_types
583
+ @inner_class_types = {}
584
+ end
585
+
586
+ def self.field_remappings
587
+ @field_remappings = {}
588
+ end
589
+ end
590
+
591
+ class BankAddress < ::Stripe::StripeObject
592
+ # City, district, suburb, town, or village.
593
+ attr_reader :city
594
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
595
+ attr_reader :country
596
+ # Address line 1, such as the street, PO Box, or company name.
597
+ attr_reader :line1
598
+ # Address line 2, such as the apartment, suite, unit, or building.
599
+ attr_reader :line2
600
+ # ZIP or postal code.
601
+ attr_reader :postal_code
602
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
603
+ attr_reader :state
604
+
605
+ def self.inner_class_types
606
+ @inner_class_types = {}
607
+ end
608
+
609
+ def self.field_remappings
610
+ @field_remappings = {}
611
+ end
612
+ end
613
+ # Attribute for field account_holder_address
614
+ attr_reader :account_holder_address
615
+ # The account holder name
616
+ attr_reader :account_holder_name
617
+ # Attribute for field bank_address
618
+ attr_reader :bank_address
619
+ # The three-digit bank code
620
+ attr_reader :bank_code
621
+ # The short banking institution name
622
+ attr_reader :bank_name
623
+ # The CLABE number
624
+ attr_reader :clabe
625
+
626
+ def self.inner_class_types
627
+ @inner_class_types = {
628
+ account_holder_address: AccountHolderAddress,
629
+ bank_address: BankAddress,
630
+ }
631
+ end
632
+
633
+ def self.field_remappings
634
+ @field_remappings = {}
635
+ end
636
+ end
637
+
638
+ class Swift < ::Stripe::StripeObject
639
+ class AccountHolderAddress < ::Stripe::StripeObject
640
+ # City, district, suburb, town, or village.
641
+ attr_reader :city
642
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
643
+ attr_reader :country
644
+ # Address line 1, such as the street, PO Box, or company name.
645
+ attr_reader :line1
646
+ # Address line 2, such as the apartment, suite, unit, or building.
647
+ attr_reader :line2
648
+ # ZIP or postal code.
649
+ attr_reader :postal_code
650
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
651
+ attr_reader :state
652
+
653
+ def self.inner_class_types
654
+ @inner_class_types = {}
655
+ end
656
+
657
+ def self.field_remappings
658
+ @field_remappings = {}
659
+ end
660
+ end
661
+
662
+ class BankAddress < ::Stripe::StripeObject
663
+ # City, district, suburb, town, or village.
664
+ attr_reader :city
665
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
666
+ attr_reader :country
667
+ # Address line 1, such as the street, PO Box, or company name.
668
+ attr_reader :line1
669
+ # Address line 2, such as the apartment, suite, unit, or building.
670
+ attr_reader :line2
671
+ # ZIP or postal code.
672
+ attr_reader :postal_code
673
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
674
+ attr_reader :state
675
+
676
+ def self.inner_class_types
677
+ @inner_class_types = {}
678
+ end
679
+
680
+ def self.field_remappings
681
+ @field_remappings = {}
682
+ end
683
+ end
684
+ # Attribute for field account_holder_address
685
+ attr_reader :account_holder_address
686
+ # The account holder name
687
+ attr_reader :account_holder_name
688
+ # The account number
689
+ attr_reader :account_number
690
+ # The account type
691
+ attr_reader :account_type
692
+ # Attribute for field bank_address
693
+ attr_reader :bank_address
694
+ # The bank name
695
+ attr_reader :bank_name
696
+ # The SWIFT code
697
+ attr_reader :swift_code
698
+
699
+ def self.inner_class_types
700
+ @inner_class_types = {
701
+ account_holder_address: AccountHolderAddress,
702
+ bank_address: BankAddress,
703
+ }
704
+ end
705
+
706
+ def self.field_remappings
707
+ @field_remappings = {}
708
+ end
709
+ end
710
+
711
+ class Zengin < ::Stripe::StripeObject
712
+ class AccountHolderAddress < ::Stripe::StripeObject
713
+ # City, district, suburb, town, or village.
714
+ attr_reader :city
715
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
716
+ attr_reader :country
717
+ # Address line 1, such as the street, PO Box, or company name.
718
+ attr_reader :line1
719
+ # Address line 2, such as the apartment, suite, unit, or building.
720
+ attr_reader :line2
721
+ # ZIP or postal code.
722
+ attr_reader :postal_code
723
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
724
+ attr_reader :state
725
+
726
+ def self.inner_class_types
727
+ @inner_class_types = {}
728
+ end
729
+
730
+ def self.field_remappings
731
+ @field_remappings = {}
732
+ end
733
+ end
734
+
735
+ class BankAddress < ::Stripe::StripeObject
736
+ # City, district, suburb, town, or village.
737
+ attr_reader :city
738
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
739
+ attr_reader :country
740
+ # Address line 1, such as the street, PO Box, or company name.
741
+ attr_reader :line1
742
+ # Address line 2, such as the apartment, suite, unit, or building.
743
+ attr_reader :line2
744
+ # ZIP or postal code.
745
+ attr_reader :postal_code
746
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
747
+ attr_reader :state
748
+
749
+ def self.inner_class_types
750
+ @inner_class_types = {}
751
+ end
752
+
753
+ def self.field_remappings
754
+ @field_remappings = {}
755
+ end
756
+ end
757
+ # Attribute for field account_holder_address
758
+ attr_reader :account_holder_address
759
+ # The account holder name
760
+ attr_reader :account_holder_name
761
+ # The account number
762
+ attr_reader :account_number
763
+ # The bank account type. In Japan, this can only be `futsu` or `toza`.
764
+ attr_reader :account_type
765
+ # Attribute for field bank_address
766
+ attr_reader :bank_address
767
+ # The bank code of the account
768
+ attr_reader :bank_code
769
+ # The bank name of the account
770
+ attr_reader :bank_name
771
+ # The branch code of the account
772
+ attr_reader :branch_code
773
+ # The branch name of the account
774
+ attr_reader :branch_name
775
+
776
+ def self.inner_class_types
777
+ @inner_class_types = {
778
+ account_holder_address: AccountHolderAddress,
779
+ bank_address: BankAddress,
780
+ }
781
+ end
782
+
783
+ def self.field_remappings
784
+ @field_remappings = {}
785
+ end
786
+ end
787
+ # ABA Records contain U.S. bank account details per the ABA format.
788
+ attr_reader :aba
789
+ # Iban Records contain E.U. bank account details per the SEPA format.
790
+ attr_reader :iban
791
+ # Sort Code Records contain U.K. bank account details per the sort code format.
792
+ attr_reader :sort_code
793
+ # SPEI Records contain Mexico bank account details per the SPEI format.
794
+ attr_reader :spei
795
+ # The payment networks supported by this FinancialAddress
796
+ attr_reader :supported_networks
797
+ # SWIFT Records contain U.S. bank account details per the SWIFT format.
798
+ attr_reader :swift
799
+ # The type of financial address
800
+ attr_reader :type
801
+ # Zengin Records contain Japan bank account details per the Zengin format.
802
+ attr_reader :zengin
803
+
804
+ def self.inner_class_types
805
+ @inner_class_types = {
806
+ aba: Aba,
807
+ iban: Iban,
808
+ sort_code: SortCode,
809
+ spei: Spei,
810
+ swift: Swift,
811
+ zengin: Zengin,
812
+ }
813
+ end
814
+
815
+ def self.field_remappings
816
+ @field_remappings = {}
817
+ end
818
+ end
819
+ # The remaining amount that needs to be transferred to complete the payment.
820
+ attr_reader :amount_remaining
821
+ # 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).
822
+ attr_reader :currency
823
+ # A list of financial addresses that can be used to fund the customer balance
824
+ attr_reader :financial_addresses
825
+ # A link to a hosted page that guides your customer through completing the transfer.
826
+ attr_reader :hosted_instructions_url
827
+ # A string identifying this payment. Instruct your customer to include this code in the reference or memo field of their bank transfer.
828
+ attr_reader :reference
829
+ # Type of bank transfer
830
+ attr_reader :type
831
+
832
+ def self.inner_class_types
833
+ @inner_class_types = { financial_addresses: FinancialAddress }
834
+ end
835
+
836
+ def self.field_remappings
837
+ @field_remappings = {}
838
+ end
839
+ end
840
+
841
+ class KonbiniDisplayDetails < ::Stripe::StripeObject
842
+ class Stores < ::Stripe::StripeObject
843
+ class Familymart < ::Stripe::StripeObject
844
+ # The confirmation number.
845
+ attr_reader :confirmation_number
846
+ # The payment code.
847
+ attr_reader :payment_code
848
+
849
+ def self.inner_class_types
850
+ @inner_class_types = {}
851
+ end
852
+
853
+ def self.field_remappings
854
+ @field_remappings = {}
855
+ end
856
+ end
857
+
858
+ class Lawson < ::Stripe::StripeObject
859
+ # The confirmation number.
860
+ attr_reader :confirmation_number
861
+ # The payment code.
862
+ attr_reader :payment_code
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 Ministop < ::Stripe::StripeObject
874
+ # The confirmation number.
875
+ attr_reader :confirmation_number
876
+ # The payment code.
877
+ attr_reader :payment_code
878
+
879
+ def self.inner_class_types
880
+ @inner_class_types = {}
881
+ end
882
+
883
+ def self.field_remappings
884
+ @field_remappings = {}
885
+ end
886
+ end
887
+
888
+ class Seicomart < ::Stripe::StripeObject
889
+ # The confirmation number.
890
+ attr_reader :confirmation_number
891
+ # The payment code.
892
+ attr_reader :payment_code
893
+
894
+ def self.inner_class_types
895
+ @inner_class_types = {}
896
+ end
897
+
898
+ def self.field_remappings
899
+ @field_remappings = {}
900
+ end
901
+ end
902
+ # FamilyMart instruction details.
903
+ attr_reader :familymart
904
+ # Lawson instruction details.
905
+ attr_reader :lawson
906
+ # Ministop instruction details.
907
+ attr_reader :ministop
908
+ # Seicomart instruction details.
909
+ attr_reader :seicomart
910
+
911
+ def self.inner_class_types
912
+ @inner_class_types = {
913
+ familymart: Familymart,
914
+ lawson: Lawson,
915
+ ministop: Ministop,
916
+ seicomart: Seicomart,
917
+ }
918
+ end
919
+
920
+ def self.field_remappings
921
+ @field_remappings = {}
922
+ end
923
+ end
924
+ # The timestamp at which the pending Konbini payment expires.
925
+ attr_reader :expires_at
926
+ # The URL for the Konbini payment instructions page, which allows customers to view and print a Konbini voucher.
927
+ attr_reader :hosted_voucher_url
928
+ # Attribute for field stores
929
+ attr_reader :stores
930
+
931
+ def self.inner_class_types
932
+ @inner_class_types = { stores: Stores }
933
+ end
934
+
935
+ def self.field_remappings
936
+ @field_remappings = {}
937
+ end
938
+ end
939
+
940
+ class MultibancoDisplayDetails < ::Stripe::StripeObject
941
+ # Entity number associated with this Multibanco payment.
942
+ attr_reader :entity
943
+ # The timestamp at which the Multibanco voucher expires.
944
+ attr_reader :expires_at
945
+ # The URL for the hosted Multibanco voucher page, which allows customers to view a Multibanco voucher.
946
+ attr_reader :hosted_voucher_url
947
+ # Reference number associated with this Multibanco payment.
948
+ attr_reader :reference
949
+
950
+ def self.inner_class_types
951
+ @inner_class_types = {}
952
+ end
953
+
954
+ def self.field_remappings
955
+ @field_remappings = {}
956
+ end
957
+ end
958
+
959
+ class OxxoDisplayDetails < ::Stripe::StripeObject
960
+ # The timestamp after which the OXXO voucher expires.
961
+ attr_reader :expires_after
962
+ # The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher.
963
+ attr_reader :hosted_voucher_url
964
+ # OXXO reference number.
965
+ attr_reader :number
966
+
967
+ def self.inner_class_types
968
+ @inner_class_types = {}
969
+ end
970
+
971
+ def self.field_remappings
972
+ @field_remappings = {}
973
+ end
974
+ end
975
+
976
+ class PaynowDisplayQrCode < ::Stripe::StripeObject
977
+ # The raw data string used to generate QR code, it should be used together with QR code library.
978
+ attr_reader :data
979
+ # The URL to the hosted PayNow instructions page, which allows customers to view the PayNow QR code.
980
+ attr_reader :hosted_instructions_url
981
+ # The image_url_png string used to render QR code
982
+ attr_reader :image_url_png
983
+ # The image_url_svg string used to render QR code
984
+ attr_reader :image_url_svg
985
+
986
+ def self.inner_class_types
987
+ @inner_class_types = {}
988
+ end
989
+
990
+ def self.field_remappings
991
+ @field_remappings = {}
992
+ end
993
+ end
994
+
995
+ class PixDisplayQrCode < ::Stripe::StripeObject
996
+ # The raw data string used to generate QR code, it should be used together with QR code library.
997
+ attr_reader :data
998
+ # The date (unix timestamp) when the PIX expires.
999
+ attr_reader :expires_at
1000
+ # The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
1001
+ attr_reader :hosted_instructions_url
1002
+ # The image_url_png string used to render png QR code
1003
+ attr_reader :image_url_png
1004
+ # The image_url_svg string used to render svg QR code
1005
+ attr_reader :image_url_svg
1006
+
1007
+ def self.inner_class_types
1008
+ @inner_class_types = {}
1009
+ end
1010
+
1011
+ def self.field_remappings
1012
+ @field_remappings = {}
1013
+ end
1014
+ end
1015
+
1016
+ class PromptpayDisplayQrCode < ::Stripe::StripeObject
1017
+ # The raw data string used to generate QR code, it should be used together with QR code library.
1018
+ attr_reader :data
1019
+ # The URL to the hosted PromptPay instructions page, which allows customers to view the PromptPay QR code.
1020
+ attr_reader :hosted_instructions_url
1021
+ # The PNG path used to render the QR code, can be used as the source in an HTML img tag
1022
+ attr_reader :image_url_png
1023
+ # The SVG path used to render the QR code, can be used as the source in an HTML img tag
1024
+ attr_reader :image_url_svg
1025
+
1026
+ def self.inner_class_types
1027
+ @inner_class_types = {}
1028
+ end
1029
+
1030
+ def self.field_remappings
1031
+ @field_remappings = {}
1032
+ end
1033
+ end
1034
+
1035
+ class RedirectToUrl < ::Stripe::StripeObject
1036
+ # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
1037
+ attr_reader :return_url
1038
+ # The URL you must redirect your customer to in order to authenticate the payment.
1039
+ attr_reader :url
1040
+
1041
+ def self.inner_class_types
1042
+ @inner_class_types = {}
1043
+ end
1044
+
1045
+ def self.field_remappings
1046
+ @field_remappings = {}
1047
+ end
1048
+ end
1049
+
1050
+ class SwishHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
1051
+ class QrCode < ::Stripe::StripeObject
1052
+ # The raw data string used to generate QR code, it should be used together with QR code library.
1053
+ attr_reader :data
1054
+ # The image_url_png string used to render QR code
1055
+ attr_reader :image_url_png
1056
+ # The image_url_svg string used to render QR code
1057
+ attr_reader :image_url_svg
1058
+
1059
+ def self.inner_class_types
1060
+ @inner_class_types = {}
1061
+ end
1062
+
1063
+ def self.field_remappings
1064
+ @field_remappings = {}
1065
+ end
1066
+ end
1067
+ # The URL to the hosted Swish instructions page, which allows customers to view the QR code.
1068
+ attr_reader :hosted_instructions_url
1069
+ # The url for mobile redirect based auth (for internal use only and not typically available in standard API requests).
1070
+ attr_reader :mobile_auth_url
1071
+ # Attribute for field qr_code
1072
+ attr_reader :qr_code
1073
+
1074
+ def self.inner_class_types
1075
+ @inner_class_types = { qr_code: QrCode }
1076
+ end
1077
+
1078
+ def self.field_remappings
1079
+ @field_remappings = {}
1080
+ end
1081
+ end
1082
+
1083
+ class VerifyWithMicrodeposits < ::Stripe::StripeObject
1084
+ # The timestamp when the microdeposits are expected to land.
1085
+ attr_reader :arrival_date
1086
+ # The URL for the hosted verification page, which allows customers to verify their bank account.
1087
+ attr_reader :hosted_verification_url
1088
+ # The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
1089
+ attr_reader :microdeposit_type
1090
+
1091
+ def self.inner_class_types
1092
+ @inner_class_types = {}
1093
+ end
1094
+
1095
+ def self.field_remappings
1096
+ @field_remappings = {}
1097
+ end
1098
+ end
1099
+
1100
+ class WechatPayDisplayQrCode < ::Stripe::StripeObject
1101
+ # The data being used to generate QR code
1102
+ attr_reader :data
1103
+ # The URL to the hosted WeChat Pay instructions page, which allows customers to view the WeChat Pay QR code.
1104
+ attr_reader :hosted_instructions_url
1105
+ # The base64 image data for a pre-generated QR code
1106
+ attr_reader :image_data_url
1107
+ # The image_url_png string used to render QR code
1108
+ attr_reader :image_url_png
1109
+ # The image_url_svg string used to render QR code
1110
+ attr_reader :image_url_svg
1111
+
1112
+ def self.inner_class_types
1113
+ @inner_class_types = {}
1114
+ end
1115
+
1116
+ def self.field_remappings
1117
+ @field_remappings = {}
1118
+ end
1119
+ end
1120
+
1121
+ class WechatPayRedirectToAndroidApp < ::Stripe::StripeObject
1122
+ # app_id is the APP ID registered on WeChat open platform
1123
+ attr_reader :app_id
1124
+ # nonce_str is a random string
1125
+ attr_reader :nonce_str
1126
+ # package is static value
1127
+ attr_reader :package
1128
+ # an unique merchant ID assigned by WeChat Pay
1129
+ attr_reader :partner_id
1130
+ # an unique trading ID assigned by WeChat Pay
1131
+ attr_reader :prepay_id
1132
+ # A signature
1133
+ attr_reader :sign
1134
+ # Specifies the current time in epoch format
1135
+ attr_reader :timestamp
1136
+
1137
+ def self.inner_class_types
1138
+ @inner_class_types = {}
1139
+ end
1140
+
1141
+ def self.field_remappings
1142
+ @field_remappings = {}
1143
+ end
1144
+ end
1145
+
1146
+ class WechatPayRedirectToIosApp < ::Stripe::StripeObject
1147
+ # An universal link that redirect to WeChat Pay app
1148
+ attr_reader :native_url
1149
+
1150
+ def self.inner_class_types
1151
+ @inner_class_types = {}
1152
+ end
1153
+
1154
+ def self.field_remappings
1155
+ @field_remappings = {}
1156
+ end
1157
+ end
1158
+ # Attribute for field alipay_handle_redirect
1159
+ attr_reader :alipay_handle_redirect
1160
+ # Attribute for field boleto_display_details
1161
+ attr_reader :boleto_display_details
1162
+ # Attribute for field card_await_notification
1163
+ attr_reader :card_await_notification
1164
+ # Attribute for field cashapp_handle_redirect_or_display_qr_code
1165
+ attr_reader :cashapp_handle_redirect_or_display_qr_code
1166
+ # Attribute for field display_bank_transfer_instructions
1167
+ attr_reader :display_bank_transfer_instructions
1168
+ # Attribute for field konbini_display_details
1169
+ attr_reader :konbini_display_details
1170
+ # Attribute for field multibanco_display_details
1171
+ attr_reader :multibanco_display_details
1172
+ # Attribute for field oxxo_display_details
1173
+ attr_reader :oxxo_display_details
1174
+ # Attribute for field paynow_display_qr_code
1175
+ attr_reader :paynow_display_qr_code
1176
+ # Attribute for field pix_display_qr_code
1177
+ attr_reader :pix_display_qr_code
1178
+ # Attribute for field promptpay_display_qr_code
1179
+ attr_reader :promptpay_display_qr_code
1180
+ # Attribute for field redirect_to_url
1181
+ attr_reader :redirect_to_url
1182
+ # Attribute for field swish_handle_redirect_or_display_qr_code
1183
+ attr_reader :swish_handle_redirect_or_display_qr_code
1184
+ # Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
1185
+ attr_reader :type
1186
+ # When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
1187
+ attr_reader :use_stripe_sdk
1188
+ # Attribute for field verify_with_microdeposits
1189
+ attr_reader :verify_with_microdeposits
1190
+ # Attribute for field wechat_pay_display_qr_code
1191
+ attr_reader :wechat_pay_display_qr_code
1192
+ # Attribute for field wechat_pay_redirect_to_android_app
1193
+ attr_reader :wechat_pay_redirect_to_android_app
1194
+ # Attribute for field wechat_pay_redirect_to_ios_app
1195
+ attr_reader :wechat_pay_redirect_to_ios_app
1196
+
1197
+ def self.inner_class_types
1198
+ @inner_class_types = {
1199
+ alipay_handle_redirect: AlipayHandleRedirect,
1200
+ boleto_display_details: BoletoDisplayDetails,
1201
+ card_await_notification: CardAwaitNotification,
1202
+ cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
1203
+ display_bank_transfer_instructions: DisplayBankTransferInstructions,
1204
+ konbini_display_details: KonbiniDisplayDetails,
1205
+ multibanco_display_details: MultibancoDisplayDetails,
1206
+ oxxo_display_details: OxxoDisplayDetails,
1207
+ paynow_display_qr_code: PaynowDisplayQrCode,
1208
+ pix_display_qr_code: PixDisplayQrCode,
1209
+ promptpay_display_qr_code: PromptpayDisplayQrCode,
1210
+ redirect_to_url: RedirectToUrl,
1211
+ swish_handle_redirect_or_display_qr_code: SwishHandleRedirectOrDisplayQrCode,
1212
+ verify_with_microdeposits: VerifyWithMicrodeposits,
1213
+ wechat_pay_display_qr_code: WechatPayDisplayQrCode,
1214
+ wechat_pay_redirect_to_android_app: WechatPayRedirectToAndroidApp,
1215
+ wechat_pay_redirect_to_ios_app: WechatPayRedirectToIosApp,
1216
+ }
1217
+ end
1218
+
1219
+ def self.field_remappings
1220
+ @field_remappings = {}
1221
+ end
1222
+ end
1223
+
1224
+ class PaymentDetails < ::Stripe::StripeObject
1225
+ class CarRental < ::Stripe::StripeObject
1226
+ class Affiliate < ::Stripe::StripeObject
1227
+ # The name of the affiliate that originated the purchase.
1228
+ attr_reader :name
1229
+
1230
+ def self.inner_class_types
1231
+ @inner_class_types = {}
1232
+ end
1233
+
1234
+ def self.field_remappings
1235
+ @field_remappings = {}
1236
+ end
1237
+ end
1238
+
1239
+ class Delivery < ::Stripe::StripeObject
1240
+ class Recipient < ::Stripe::StripeObject
1241
+ # The email of the recipient the ticket is delivered to.
1242
+ attr_reader :email
1243
+ # The name of the recipient the ticket is delivered to.
1244
+ attr_reader :name
1245
+ # The phone number of the recipient the ticket is delivered to.
1246
+ attr_reader :phone
1247
+
1248
+ def self.inner_class_types
1249
+ @inner_class_types = {}
1250
+ end
1251
+
1252
+ def self.field_remappings
1253
+ @field_remappings = {}
1254
+ end
1255
+ end
1256
+ # The delivery method for the payment
1257
+ attr_reader :mode
1258
+ # Attribute for field recipient
1259
+ attr_reader :recipient
1260
+
1261
+ def self.inner_class_types
1262
+ @inner_class_types = { recipient: Recipient }
1263
+ end
1264
+
1265
+ def self.field_remappings
1266
+ @field_remappings = {}
1267
+ end
1268
+ end
1269
+
1270
+ class Distance < ::Stripe::StripeObject
1271
+ # Distance traveled.
1272
+ attr_reader :amount
1273
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1274
+ attr_reader :unit
1275
+
1276
+ def self.inner_class_types
1277
+ @inner_class_types = {}
1278
+ end
1279
+
1280
+ def self.field_remappings
1281
+ @field_remappings = {}
1282
+ end
1283
+ end
1284
+
1285
+ class Driver < ::Stripe::StripeObject
1286
+ # Driver's identification number.
1287
+ attr_reader :driver_identification_number
1288
+ # Driver's tax number.
1289
+ attr_reader :driver_tax_number
1290
+ # Full name of the driver on the reservation.
1291
+ attr_reader :name
1292
+
1293
+ def self.inner_class_types
1294
+ @inner_class_types = {}
1295
+ end
1296
+
1297
+ def self.field_remappings
1298
+ @field_remappings = {}
1299
+ end
1300
+ end
1301
+
1302
+ class PickupAddress < ::Stripe::StripeObject
1303
+ # City, district, suburb, town, or village.
1304
+ attr_reader :city
1305
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1306
+ attr_reader :country
1307
+ # Address line 1, such as the street, PO Box, or company name.
1308
+ attr_reader :line1
1309
+ # Address line 2, such as the apartment, suite, unit, or building.
1310
+ attr_reader :line2
1311
+ # ZIP or postal code.
1312
+ attr_reader :postal_code
1313
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1314
+ attr_reader :state
1315
+
1316
+ def self.inner_class_types
1317
+ @inner_class_types = {}
1318
+ end
1319
+
1320
+ def self.field_remappings
1321
+ @field_remappings = {}
1322
+ end
1323
+ end
1324
+
1325
+ class ReturnAddress < ::Stripe::StripeObject
1326
+ # City, district, suburb, town, or village.
1327
+ attr_reader :city
1328
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1329
+ attr_reader :country
1330
+ # Address line 1, such as the street, PO Box, or company name.
1331
+ attr_reader :line1
1332
+ # Address line 2, such as the apartment, suite, unit, or building.
1333
+ attr_reader :line2
1334
+ # ZIP or postal code.
1335
+ attr_reader :postal_code
1336
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1337
+ attr_reader :state
1338
+
1339
+ def self.inner_class_types
1340
+ @inner_class_types = {}
1341
+ end
1342
+
1343
+ def self.field_remappings
1344
+ @field_remappings = {}
1345
+ end
1346
+ end
1347
+ # Attribute for field affiliate
1348
+ attr_reader :affiliate
1349
+ # The booking number associated with the car rental.
1350
+ attr_reader :booking_number
1351
+ # Class code of the car.
1352
+ attr_reader :car_class_code
1353
+ # Make of the car.
1354
+ attr_reader :car_make
1355
+ # Model of the car.
1356
+ attr_reader :car_model
1357
+ # The name of the rental car company.
1358
+ attr_reader :company
1359
+ # The customer service phone number of the car rental company.
1360
+ attr_reader :customer_service_phone_number
1361
+ # Number of days the car is being rented.
1362
+ attr_reader :days_rented
1363
+ # Attribute for field delivery
1364
+ attr_reader :delivery
1365
+ # Attribute for field distance
1366
+ attr_reader :distance
1367
+ # The details of the drivers associated with the trip.
1368
+ attr_reader :drivers
1369
+ # List of additional charges being billed.
1370
+ attr_reader :extra_charges
1371
+ # Indicates if the customer did not keep nor cancel their booking.
1372
+ attr_reader :no_show
1373
+ # Attribute for field pickup_address
1374
+ attr_reader :pickup_address
1375
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1376
+ attr_reader :pickup_at
1377
+ # Name of the pickup location.
1378
+ attr_reader :pickup_location_name
1379
+ # Rental rate.
1380
+ attr_reader :rate_amount
1381
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1382
+ attr_reader :rate_interval
1383
+ # The full name of the person or entity renting the car.
1384
+ attr_reader :renter_name
1385
+ # Attribute for field return_address
1386
+ attr_reader :return_address
1387
+ # Car return time. Measured in seconds since the Unix epoch.
1388
+ attr_reader :return_at
1389
+ # Name of the return location.
1390
+ attr_reader :return_location_name
1391
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1392
+ attr_reader :tax_exempt
1393
+ # The vehicle identification number of the car.
1394
+ attr_reader :vehicle_identification_number
1395
+
1396
+ def self.inner_class_types
1397
+ @inner_class_types = {
1398
+ affiliate: Affiliate,
1399
+ delivery: Delivery,
1400
+ distance: Distance,
1401
+ drivers: Driver,
1402
+ pickup_address: PickupAddress,
1403
+ return_address: ReturnAddress,
1404
+ }
1405
+ end
1406
+
1407
+ def self.field_remappings
1408
+ @field_remappings = {}
1409
+ end
1410
+ end
1411
+
1412
+ class EventDetails < ::Stripe::StripeObject
1413
+ class Address < ::Stripe::StripeObject
1414
+ # City, district, suburb, town, or village.
1415
+ attr_reader :city
1416
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1417
+ attr_reader :country
1418
+ # Address line 1, such as the street, PO Box, or company name.
1419
+ attr_reader :line1
1420
+ # Address line 2, such as the apartment, suite, unit, or building.
1421
+ attr_reader :line2
1422
+ # ZIP or postal code.
1423
+ attr_reader :postal_code
1424
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1425
+ attr_reader :state
1426
+
1427
+ def self.inner_class_types
1428
+ @inner_class_types = {}
1429
+ end
1430
+
1431
+ def self.field_remappings
1432
+ @field_remappings = {}
1433
+ end
1434
+ end
1435
+
1436
+ class Affiliate < ::Stripe::StripeObject
1437
+ # The name of the affiliate that originated the purchase.
1438
+ attr_reader :name
1439
+
1440
+ def self.inner_class_types
1441
+ @inner_class_types = {}
1442
+ end
1443
+
1444
+ def self.field_remappings
1445
+ @field_remappings = {}
1446
+ end
1447
+ end
1448
+
1449
+ class Delivery < ::Stripe::StripeObject
1450
+ class Recipient < ::Stripe::StripeObject
1451
+ # The email of the recipient the ticket is delivered to.
1452
+ attr_reader :email
1453
+ # The name of the recipient the ticket is delivered to.
1454
+ attr_reader :name
1455
+ # The phone number of the recipient the ticket is delivered to.
1456
+ attr_reader :phone
1457
+
1458
+ def self.inner_class_types
1459
+ @inner_class_types = {}
1460
+ end
1461
+
1462
+ def self.field_remappings
1463
+ @field_remappings = {}
1464
+ end
1465
+ end
1466
+ # The delivery method for the payment
1467
+ attr_reader :mode
1468
+ # Attribute for field recipient
1469
+ attr_reader :recipient
1470
+
1471
+ def self.inner_class_types
1472
+ @inner_class_types = { recipient: Recipient }
1473
+ end
1474
+
1475
+ def self.field_remappings
1476
+ @field_remappings = {}
1477
+ end
1478
+ end
1479
+ # Indicates if the tickets are digitally checked when entering the venue.
1480
+ attr_reader :access_controlled_venue
1481
+ # Attribute for field address
1482
+ attr_reader :address
1483
+ # Attribute for field affiliate
1484
+ attr_reader :affiliate
1485
+ # The name of the company
1486
+ attr_reader :company
1487
+ # Attribute for field delivery
1488
+ attr_reader :delivery
1489
+ # Event end time. Measured in seconds since the Unix epoch.
1490
+ attr_reader :ends_at
1491
+ # Type of the event entertainment (concert, sports event etc)
1492
+ attr_reader :genre
1493
+ # The name of the event.
1494
+ attr_reader :name
1495
+ # Event start time. Measured in seconds since the Unix epoch.
1496
+ attr_reader :starts_at
1497
+
1498
+ def self.inner_class_types
1499
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1500
+ end
1501
+
1502
+ def self.field_remappings
1503
+ @field_remappings = {}
1504
+ end
1505
+ end
1506
+
1507
+ class Subscription < ::Stripe::StripeObject
1508
+ class Affiliate < ::Stripe::StripeObject
1509
+ # The name of the affiliate that originated the purchase.
1510
+ attr_reader :name
1511
+
1512
+ def self.inner_class_types
1513
+ @inner_class_types = {}
1514
+ end
1515
+
1516
+ def self.field_remappings
1517
+ @field_remappings = {}
1518
+ end
1519
+ end
1520
+
1521
+ class BillingInterval < ::Stripe::StripeObject
1522
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1523
+ attr_reader :count
1524
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1525
+ attr_reader :interval
1526
+
1527
+ def self.inner_class_types
1528
+ @inner_class_types = {}
1529
+ end
1530
+
1531
+ def self.field_remappings
1532
+ @field_remappings = {}
1533
+ end
1534
+ end
1535
+ # Attribute for field affiliate
1536
+ attr_reader :affiliate
1537
+ # Info whether the subscription will be auto renewed upon expiry.
1538
+ attr_reader :auto_renewal
1539
+ # Attribute for field billing_interval
1540
+ attr_reader :billing_interval
1541
+ # Subscription end time. Measured in seconds since the Unix epoch.
1542
+ attr_reader :ends_at
1543
+ # Name of the product on subscription. e.g. Apple Music Subscription.
1544
+ attr_reader :name
1545
+ # Subscription start time. Measured in seconds since the Unix epoch.
1546
+ attr_reader :starts_at
1547
+
1548
+ def self.inner_class_types
1549
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
1550
+ end
1551
+
1552
+ def self.field_remappings
1553
+ @field_remappings = {}
1554
+ end
1555
+ end
1556
+ # Attribute for field car_rental
1557
+ attr_reader :car_rental
1558
+ # A unique value to identify the customer. This field is available only for card payments.
1559
+ #
1560
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1561
+ attr_reader :customer_reference
1562
+ # Attribute for field event_details
1563
+ attr_reader :event_details
1564
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1565
+ #
1566
+ # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1567
+ #
1568
+ # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1569
+ attr_reader :order_reference
1570
+ # Attribute for field subscription
1571
+ attr_reader :subscription
1572
+
1573
+ def self.inner_class_types
1574
+ @inner_class_types = {
1575
+ car_rental: CarRental,
1576
+ event_details: EventDetails,
1577
+ subscription: Subscription,
1578
+ }
1579
+ end
1580
+
1581
+ def self.field_remappings
1582
+ @field_remappings = {}
1583
+ end
1584
+ end
1585
+
1586
+ class PaymentMethodConfigurationDetails < ::Stripe::StripeObject
1587
+ # ID of the payment method configuration used.
1588
+ attr_reader :id
1589
+ # ID of the parent payment method configuration used.
1590
+ attr_reader :parent
1591
+
1592
+ def self.inner_class_types
1593
+ @inner_class_types = {}
1594
+ end
1595
+
1596
+ def self.field_remappings
1597
+ @field_remappings = {}
1598
+ end
1599
+ end
1600
+
1601
+ class PaymentMethodOptions < ::Stripe::StripeObject
1602
+ class AcssDebit < ::Stripe::StripeObject
1603
+ class MandateOptions < ::Stripe::StripeObject
1604
+ # A URL for custom mandate text
1605
+ attr_reader :custom_mandate_url
1606
+ # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
1607
+ attr_reader :interval_description
1608
+ # Payment schedule for the mandate.
1609
+ attr_reader :payment_schedule
1610
+ # Transaction type of the mandate.
1611
+ attr_reader :transaction_type
1612
+
1613
+ def self.inner_class_types
1614
+ @inner_class_types = {}
1615
+ end
1616
+
1617
+ def self.field_remappings
1618
+ @field_remappings = {}
1619
+ end
1620
+ end
1621
+ # Attribute for field mandate_options
1622
+ attr_reader :mandate_options
1623
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1624
+ #
1625
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1626
+ #
1627
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1628
+ #
1629
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1630
+ attr_reader :setup_future_usage
1631
+ # 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.
1632
+ attr_reader :target_date
1633
+ # Bank account verification method.
1634
+ attr_reader :verification_method
1635
+
1636
+ def self.inner_class_types
1637
+ @inner_class_types = { mandate_options: MandateOptions }
1638
+ end
1639
+
1640
+ def self.field_remappings
1641
+ @field_remappings = {}
1642
+ end
1643
+ end
1644
+
1645
+ class Affirm < ::Stripe::StripeObject
1646
+ # Controls when the funds will be captured from the customer's account.
1647
+ attr_reader :capture_method
1648
+ # Preferred language of the Affirm authorization page that the customer is redirected to.
1649
+ attr_reader :preferred_locale
1650
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1651
+ #
1652
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1653
+ #
1654
+ # 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.
1655
+ #
1656
+ # 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).
1657
+ attr_reader :setup_future_usage
1658
+
1659
+ def self.inner_class_types
1660
+ @inner_class_types = {}
1661
+ end
1662
+
1663
+ def self.field_remappings
1664
+ @field_remappings = {}
1665
+ end
1666
+ end
1667
+
1668
+ class AfterpayClearpay < ::Stripe::StripeObject
1669
+ # Controls when the funds will be captured from the customer's account.
1670
+ attr_reader :capture_method
1671
+ # An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
1672
+ # This field differs from the statement descriptor and item name.
1673
+ attr_reader :reference
1674
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1675
+ #
1676
+ # 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.
1677
+ #
1678
+ # 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.
1679
+ #
1680
+ # 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).
1681
+ attr_reader :setup_future_usage
1682
+
1683
+ def self.inner_class_types
1684
+ @inner_class_types = {}
1685
+ end
1686
+
1687
+ def self.field_remappings
1688
+ @field_remappings = {}
1689
+ end
1690
+ end
1691
+
1692
+ class Alipay < ::Stripe::StripeObject
1693
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1694
+ #
1695
+ # 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.
1696
+ #
1697
+ # 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.
1698
+ #
1699
+ # 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).
1700
+ attr_reader :setup_future_usage
1701
+
1702
+ def self.inner_class_types
1703
+ @inner_class_types = {}
1704
+ end
1705
+
1706
+ def self.field_remappings
1707
+ @field_remappings = {}
1708
+ end
1709
+ end
1710
+
1711
+ class Alma < ::Stripe::StripeObject
1712
+ # Controls when the funds will be captured from the customer's account.
1713
+ attr_reader :capture_method
1714
+
1715
+ def self.inner_class_types
1716
+ @inner_class_types = {}
1717
+ end
1718
+
1719
+ def self.field_remappings
1720
+ @field_remappings = {}
1721
+ end
1722
+ end
1723
+
1724
+ class AmazonPay < ::Stripe::StripeObject
1725
+ # Controls when the funds will be captured from the customer's account.
1726
+ attr_reader :capture_method
1727
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1728
+ #
1729
+ # 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.
1730
+ #
1731
+ # 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.
1732
+ #
1733
+ # 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).
1734
+ attr_reader :setup_future_usage
1735
+
1736
+ def self.inner_class_types
1737
+ @inner_class_types = {}
1738
+ end
1739
+
1740
+ def self.field_remappings
1741
+ @field_remappings = {}
1742
+ end
1743
+ end
1744
+
1745
+ class AuBecsDebit < ::Stripe::StripeObject
1746
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1747
+ #
1748
+ # 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.
1749
+ #
1750
+ # 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.
1751
+ #
1752
+ # 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).
1753
+ attr_reader :setup_future_usage
1754
+ # 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.
1755
+ attr_reader :target_date
1756
+
1757
+ def self.inner_class_types
1758
+ @inner_class_types = {}
1759
+ end
1760
+
1761
+ def self.field_remappings
1762
+ @field_remappings = {}
1763
+ end
1764
+ end
1765
+
1766
+ class BacsDebit < ::Stripe::StripeObject
1767
+ class MandateOptions < ::Stripe::StripeObject
1768
+ # 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'.
1769
+ attr_reader :reference_prefix
1770
+
1771
+ def self.inner_class_types
1772
+ @inner_class_types = {}
1773
+ end
1774
+
1775
+ def self.field_remappings
1776
+ @field_remappings = {}
1777
+ end
1778
+ end
1779
+ # Attribute for field mandate_options
1780
+ attr_reader :mandate_options
1781
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1782
+ #
1783
+ # 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.
1784
+ #
1785
+ # 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.
1786
+ #
1787
+ # 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).
1788
+ attr_reader :setup_future_usage
1789
+ # 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.
1790
+ attr_reader :target_date
1791
+
1792
+ def self.inner_class_types
1793
+ @inner_class_types = { mandate_options: MandateOptions }
1794
+ end
1795
+
1796
+ def self.field_remappings
1797
+ @field_remappings = {}
1798
+ end
1799
+ end
1800
+
1801
+ class Bancontact < ::Stripe::StripeObject
1802
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
1803
+ attr_reader :preferred_language
1804
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1805
+ #
1806
+ # 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.
1807
+ #
1808
+ # 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.
1809
+ #
1810
+ # 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).
1811
+ attr_reader :setup_future_usage
1812
+
1813
+ def self.inner_class_types
1814
+ @inner_class_types = {}
1815
+ end
1816
+
1817
+ def self.field_remappings
1818
+ @field_remappings = {}
1819
+ end
1820
+ end
1821
+
1822
+ class Billie < ::Stripe::StripeObject
1823
+ # Controls when the funds will be captured from the customer's account.
1824
+ attr_reader :capture_method
1825
+
1826
+ def self.inner_class_types
1827
+ @inner_class_types = {}
1828
+ end
1829
+
1830
+ def self.field_remappings
1831
+ @field_remappings = {}
1832
+ end
1833
+ end
1834
+
1835
+ class Blik < ::Stripe::StripeObject
1836
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1837
+ #
1838
+ # 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.
1839
+ #
1840
+ # 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.
1841
+ #
1842
+ # 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).
1843
+ attr_reader :setup_future_usage
1844
+
1845
+ def self.inner_class_types
1846
+ @inner_class_types = {}
1847
+ end
1848
+
1849
+ def self.field_remappings
1850
+ @field_remappings = {}
1851
+ end
1852
+ end
1853
+
1854
+ class Boleto < ::Stripe::StripeObject
1855
+ # 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.
1856
+ attr_reader :expires_after_days
1857
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1858
+ #
1859
+ # 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.
1860
+ #
1861
+ # 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.
1862
+ #
1863
+ # 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).
1864
+ attr_reader :setup_future_usage
1865
+
1866
+ def self.inner_class_types
1867
+ @inner_class_types = {}
1868
+ end
1869
+
1870
+ def self.field_remappings
1871
+ @field_remappings = {}
1872
+ end
1873
+ end
1874
+
1875
+ class Card < ::Stripe::StripeObject
1876
+ class Installments < ::Stripe::StripeObject
1877
+ class AvailablePlan < ::Stripe::StripeObject
1878
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1879
+ attr_reader :count
1880
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
1881
+ # One of `month`.
1882
+ attr_reader :interval
1883
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1884
+ attr_reader :type
1885
+
1886
+ def self.inner_class_types
1887
+ @inner_class_types = {}
1888
+ end
1889
+
1890
+ def self.field_remappings
1891
+ @field_remappings = {}
1892
+ end
1893
+ end
1894
+
1895
+ class Plan < ::Stripe::StripeObject
1896
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1897
+ attr_reader :count
1898
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
1899
+ # One of `month`.
1900
+ attr_reader :interval
1901
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1902
+ attr_reader :type
1903
+
1904
+ def self.inner_class_types
1905
+ @inner_class_types = {}
1906
+ end
1907
+
1908
+ def self.field_remappings
1909
+ @field_remappings = {}
1910
+ end
1911
+ end
1912
+ # Installment plans that may be selected for this PaymentIntent.
1913
+ attr_reader :available_plans
1914
+ # Whether Installments are enabled for this PaymentIntent.
1915
+ attr_reader :enabled
1916
+ # Installment plan selected for this PaymentIntent.
1917
+ attr_reader :plan
1918
+
1919
+ def self.inner_class_types
1920
+ @inner_class_types = { available_plans: AvailablePlan, plan: Plan }
1921
+ end
1922
+
1923
+ def self.field_remappings
1924
+ @field_remappings = {}
1925
+ end
1926
+ end
1927
+
1928
+ class MandateOptions < ::Stripe::StripeObject
1929
+ # Amount to be charged for future payments.
1930
+ attr_reader :amount
1931
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1932
+ attr_reader :amount_type
1933
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
1934
+ attr_reader :description
1935
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
1936
+ attr_reader :end_date
1937
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
1938
+ attr_reader :interval
1939
+ # The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
1940
+ attr_reader :interval_count
1941
+ # Unique identifier for the mandate or subscription.
1942
+ attr_reader :reference
1943
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
1944
+ attr_reader :start_date
1945
+ # Specifies the type of mandates supported. Possible values are `india`.
1946
+ attr_reader :supported_types
1947
+
1948
+ def self.inner_class_types
1949
+ @inner_class_types = {}
1950
+ end
1951
+
1952
+ def self.field_remappings
1953
+ @field_remappings = {}
1954
+ end
1955
+ end
1956
+
1957
+ class StatementDetails < ::Stripe::StripeObject
1958
+ class Address < ::Stripe::StripeObject
1959
+ # City, district, suburb, town, or village.
1960
+ attr_reader :city
1961
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1962
+ attr_reader :country
1963
+ # Address line 1, such as the street, PO Box, or company name.
1964
+ attr_reader :line1
1965
+ # Address line 2, such as the apartment, suite, unit, or building.
1966
+ attr_reader :line2
1967
+ # ZIP or postal code.
1968
+ attr_reader :postal_code
1969
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1970
+ attr_reader :state
1971
+
1972
+ def self.inner_class_types
1973
+ @inner_class_types = {}
1974
+ end
1975
+
1976
+ def self.field_remappings
1977
+ @field_remappings = {}
1978
+ end
1979
+ end
1980
+ # Attribute for field address
1981
+ attr_reader :address
1982
+ # Phone number
1983
+ attr_reader :phone
1984
+
1985
+ def self.inner_class_types
1986
+ @inner_class_types = { address: Address }
1987
+ end
1988
+
1989
+ def self.field_remappings
1990
+ @field_remappings = {}
1991
+ end
1992
+ end
1993
+ # Controls when the funds will be captured from the customer's account.
1994
+ attr_reader :capture_method
1995
+ # Installment details for this payment.
1996
+ #
1997
+ # For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
1998
+ attr_reader :installments
1999
+ # Configuration options for setting up an eMandate for cards issued in India.
2000
+ attr_reader :mandate_options
2001
+ # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
2002
+ attr_reader :network
2003
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
2004
+ attr_reader :request_decremental_authorization
2005
+ # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
2006
+ attr_reader :request_extended_authorization
2007
+ # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
2008
+ attr_reader :request_incremental_authorization
2009
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
2010
+ attr_reader :request_multicapture
2011
+ # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
2012
+ attr_reader :request_overcapture
2013
+ # Request partial authorization on this PaymentIntent.
2014
+ attr_reader :request_partial_authorization
2015
+ # 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.
2016
+ attr_reader :request_three_d_secure
2017
+ # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
2018
+ attr_reader :require_cvc_recollection
2019
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2020
+ #
2021
+ # 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.
2022
+ #
2023
+ # 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.
2024
+ #
2025
+ # 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).
2026
+ attr_reader :setup_future_usage
2027
+ # 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.
2028
+ attr_reader :statement_descriptor_suffix_kana
2029
+ # 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.
2030
+ attr_reader :statement_descriptor_suffix_kanji
2031
+ # Attribute for field statement_details
2032
+ attr_reader :statement_details
2033
+
2034
+ def self.inner_class_types
2035
+ @inner_class_types = {
2036
+ installments: Installments,
2037
+ mandate_options: MandateOptions,
2038
+ statement_details: StatementDetails,
2039
+ }
2040
+ end
2041
+
2042
+ def self.field_remappings
2043
+ @field_remappings = {}
2044
+ end
2045
+ end
2046
+
2047
+ class CardPresent < ::Stripe::StripeObject
2048
+ class Routing < ::Stripe::StripeObject
2049
+ # Requested routing priority
2050
+ attr_reader :requested_priority
2051
+
2052
+ def self.inner_class_types
2053
+ @inner_class_types = {}
2054
+ end
2055
+
2056
+ def self.field_remappings
2057
+ @field_remappings = {}
2058
+ end
2059
+ end
2060
+ # Controls when the funds will be captured from the customer's account.
2061
+ attr_reader :capture_method
2062
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
2063
+ attr_reader :request_extended_authorization
2064
+ # Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
2065
+ attr_reader :request_incremental_authorization_support
2066
+ # Attribute for field routing
2067
+ attr_reader :routing
2068
+
2069
+ def self.inner_class_types
2070
+ @inner_class_types = { routing: Routing }
2071
+ end
2072
+
2073
+ def self.field_remappings
2074
+ @field_remappings = {}
2075
+ end
2076
+ end
2077
+
2078
+ class Cashapp < ::Stripe::StripeObject
2079
+ # Controls when the funds will be captured from the customer's account.
2080
+ attr_reader :capture_method
2081
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2082
+ #
2083
+ # 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.
2084
+ #
2085
+ # 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.
2086
+ #
2087
+ # 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).
2088
+ attr_reader :setup_future_usage
2089
+
2090
+ def self.inner_class_types
2091
+ @inner_class_types = {}
2092
+ end
2093
+
2094
+ def self.field_remappings
2095
+ @field_remappings = {}
2096
+ end
2097
+ end
2098
+
2099
+ class Crypto < ::Stripe::StripeObject
2100
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2101
+ #
2102
+ # 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.
2103
+ #
2104
+ # 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.
2105
+ #
2106
+ # 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).
2107
+ attr_reader :setup_future_usage
2108
+
2109
+ def self.inner_class_types
2110
+ @inner_class_types = {}
2111
+ end
2112
+
2113
+ def self.field_remappings
2114
+ @field_remappings = {}
2115
+ end
2116
+ end
2117
+
2118
+ class CustomerBalance < ::Stripe::StripeObject
2119
+ class BankTransfer < ::Stripe::StripeObject
2120
+ class EuBankTransfer < ::Stripe::StripeObject
2121
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
2122
+ attr_reader :country
2123
+
2124
+ def self.inner_class_types
2125
+ @inner_class_types = {}
2126
+ end
2127
+
2128
+ def self.field_remappings
2129
+ @field_remappings = {}
2130
+ end
2131
+ end
2132
+ # Attribute for field eu_bank_transfer
2133
+ attr_reader :eu_bank_transfer
2134
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
2135
+ #
2136
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
2137
+ attr_reader :requested_address_types
2138
+ # 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`.
2139
+ attr_reader :type
2140
+
2141
+ def self.inner_class_types
2142
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
2143
+ end
2144
+
2145
+ def self.field_remappings
2146
+ @field_remappings = {}
2147
+ end
2148
+ end
2149
+ # Attribute for field bank_transfer
2150
+ attr_reader :bank_transfer
2151
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
2152
+ attr_reader :funding_type
2153
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2154
+ #
2155
+ # 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.
2156
+ #
2157
+ # 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.
2158
+ #
2159
+ # 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).
2160
+ attr_reader :setup_future_usage
2161
+
2162
+ def self.inner_class_types
2163
+ @inner_class_types = { bank_transfer: BankTransfer }
2164
+ end
2165
+
2166
+ def self.field_remappings
2167
+ @field_remappings = {}
2168
+ end
2169
+ end
2170
+
2171
+ class Eps < ::Stripe::StripeObject
2172
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2173
+ #
2174
+ # 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.
2175
+ #
2176
+ # 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.
2177
+ #
2178
+ # 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).
2179
+ attr_reader :setup_future_usage
12
2180
 
13
- custom_method :apply_customer_balance, http_verb: :post
14
- custom_method :cancel, http_verb: :post
15
- custom_method :capture, http_verb: :post
16
- custom_method :confirm, http_verb: :post
17
- custom_method :increment_authorization, http_verb: :post
18
- custom_method :verify_microdeposits, http_verb: :post
2181
+ def self.inner_class_types
2182
+ @inner_class_types = {}
2183
+ end
19
2184
 
2185
+ def self.field_remappings
2186
+ @field_remappings = {}
2187
+ end
2188
+ end
2189
+
2190
+ class Fpx < ::Stripe::StripeObject
2191
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2192
+ #
2193
+ # 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.
2194
+ #
2195
+ # 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.
2196
+ #
2197
+ # 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).
2198
+ attr_reader :setup_future_usage
2199
+
2200
+ def self.inner_class_types
2201
+ @inner_class_types = {}
2202
+ end
2203
+
2204
+ def self.field_remappings
2205
+ @field_remappings = {}
2206
+ end
2207
+ end
2208
+
2209
+ class Giropay < ::Stripe::StripeObject
2210
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2211
+ #
2212
+ # 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.
2213
+ #
2214
+ # 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.
2215
+ #
2216
+ # 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).
2217
+ attr_reader :setup_future_usage
2218
+
2219
+ def self.inner_class_types
2220
+ @inner_class_types = {}
2221
+ end
2222
+
2223
+ def self.field_remappings
2224
+ @field_remappings = {}
2225
+ end
2226
+ end
2227
+
2228
+ class Gopay < ::Stripe::StripeObject
2229
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2230
+ #
2231
+ # 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.
2232
+ #
2233
+ # 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.
2234
+ #
2235
+ # 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).
2236
+ attr_reader :setup_future_usage
2237
+
2238
+ def self.inner_class_types
2239
+ @inner_class_types = {}
2240
+ end
2241
+
2242
+ def self.field_remappings
2243
+ @field_remappings = {}
2244
+ end
2245
+ end
2246
+
2247
+ class Grabpay < ::Stripe::StripeObject
2248
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2249
+ #
2250
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2251
+ #
2252
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2253
+ #
2254
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2255
+ attr_reader :setup_future_usage
2256
+
2257
+ def self.inner_class_types
2258
+ @inner_class_types = {}
2259
+ end
2260
+
2261
+ def self.field_remappings
2262
+ @field_remappings = {}
2263
+ end
2264
+ end
2265
+
2266
+ class IdBankTransfer < ::Stripe::StripeObject
2267
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2268
+ attr_reader :expires_after
2269
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2270
+ attr_reader :expires_at
2271
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2272
+ #
2273
+ # 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.
2274
+ #
2275
+ # 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.
2276
+ #
2277
+ # 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).
2278
+ attr_reader :setup_future_usage
2279
+
2280
+ def self.inner_class_types
2281
+ @inner_class_types = {}
2282
+ end
2283
+
2284
+ def self.field_remappings
2285
+ @field_remappings = {}
2286
+ end
2287
+ end
2288
+
2289
+ class Ideal < ::Stripe::StripeObject
2290
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2291
+ #
2292
+ # 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.
2293
+ #
2294
+ # 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.
2295
+ #
2296
+ # 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).
2297
+ attr_reader :setup_future_usage
2298
+
2299
+ def self.inner_class_types
2300
+ @inner_class_types = {}
2301
+ end
2302
+
2303
+ def self.field_remappings
2304
+ @field_remappings = {}
2305
+ end
2306
+ end
2307
+
2308
+ class InteracPresent < ::Stripe::StripeObject
2309
+ def self.inner_class_types
2310
+ @inner_class_types = {}
2311
+ end
2312
+
2313
+ def self.field_remappings
2314
+ @field_remappings = {}
2315
+ end
2316
+ end
2317
+
2318
+ class KakaoPay < ::Stripe::StripeObject
2319
+ # Controls when the funds will be captured from the customer's account.
2320
+ attr_reader :capture_method
2321
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2322
+ #
2323
+ # 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.
2324
+ #
2325
+ # 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.
2326
+ #
2327
+ # 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).
2328
+ attr_reader :setup_future_usage
2329
+
2330
+ def self.inner_class_types
2331
+ @inner_class_types = {}
2332
+ end
2333
+
2334
+ def self.field_remappings
2335
+ @field_remappings = {}
2336
+ end
2337
+ end
2338
+
2339
+ class Klarna < ::Stripe::StripeObject
2340
+ # Controls when the funds will be captured from the customer's account.
2341
+ attr_reader :capture_method
2342
+ # Preferred locale of the Klarna checkout page that the customer is redirected to.
2343
+ attr_reader :preferred_locale
2344
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2345
+ #
2346
+ # 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.
2347
+ #
2348
+ # 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.
2349
+ #
2350
+ # 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).
2351
+ attr_reader :setup_future_usage
2352
+
2353
+ def self.inner_class_types
2354
+ @inner_class_types = {}
2355
+ end
2356
+
2357
+ def self.field_remappings
2358
+ @field_remappings = {}
2359
+ end
2360
+ end
2361
+
2362
+ class Konbini < ::Stripe::StripeObject
2363
+ # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores.
2364
+ attr_reader :confirmation_number
2365
+ # 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.
2366
+ attr_reader :expires_after_days
2367
+ # The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
2368
+ attr_reader :expires_at
2369
+ # A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
2370
+ attr_reader :product_description
2371
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2372
+ #
2373
+ # 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.
2374
+ #
2375
+ # 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.
2376
+ #
2377
+ # 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).
2378
+ attr_reader :setup_future_usage
2379
+
2380
+ def self.inner_class_types
2381
+ @inner_class_types = {}
2382
+ end
2383
+
2384
+ def self.field_remappings
2385
+ @field_remappings = {}
2386
+ end
2387
+ end
2388
+
2389
+ class KrCard < ::Stripe::StripeObject
2390
+ # Controls when the funds will be captured from the customer's account.
2391
+ attr_reader :capture_method
2392
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2393
+ #
2394
+ # 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.
2395
+ #
2396
+ # 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.
2397
+ #
2398
+ # 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).
2399
+ attr_reader :setup_future_usage
2400
+
2401
+ def self.inner_class_types
2402
+ @inner_class_types = {}
2403
+ end
2404
+
2405
+ def self.field_remappings
2406
+ @field_remappings = {}
2407
+ end
2408
+ end
2409
+
2410
+ class Link < ::Stripe::StripeObject
2411
+ # Controls when the funds will be captured from the customer's account.
2412
+ attr_reader :capture_method
2413
+ # [Deprecated] This is a legacy parameter that no longer has any function.
2414
+ attr_reader :persistent_token
2415
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2416
+ #
2417
+ # 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.
2418
+ #
2419
+ # 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.
2420
+ #
2421
+ # 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).
2422
+ attr_reader :setup_future_usage
2423
+
2424
+ def self.inner_class_types
2425
+ @inner_class_types = {}
2426
+ end
2427
+
2428
+ def self.field_remappings
2429
+ @field_remappings = {}
2430
+ end
2431
+ end
2432
+
2433
+ class MbWay < ::Stripe::StripeObject
2434
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2435
+ #
2436
+ # 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.
2437
+ #
2438
+ # 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.
2439
+ #
2440
+ # 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).
2441
+ attr_reader :setup_future_usage
2442
+
2443
+ def self.inner_class_types
2444
+ @inner_class_types = {}
2445
+ end
2446
+
2447
+ def self.field_remappings
2448
+ @field_remappings = {}
2449
+ end
2450
+ end
2451
+
2452
+ class Mobilepay < ::Stripe::StripeObject
2453
+ # Controls when the funds will be captured from the customer's account.
2454
+ attr_reader :capture_method
2455
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2456
+ #
2457
+ # 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.
2458
+ #
2459
+ # 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.
2460
+ #
2461
+ # 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).
2462
+ attr_reader :setup_future_usage
2463
+
2464
+ def self.inner_class_types
2465
+ @inner_class_types = {}
2466
+ end
2467
+
2468
+ def self.field_remappings
2469
+ @field_remappings = {}
2470
+ end
2471
+ end
2472
+
2473
+ class Multibanco < ::Stripe::StripeObject
2474
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2475
+ #
2476
+ # 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.
2477
+ #
2478
+ # 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.
2479
+ #
2480
+ # 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).
2481
+ attr_reader :setup_future_usage
2482
+
2483
+ def self.inner_class_types
2484
+ @inner_class_types = {}
2485
+ end
2486
+
2487
+ def self.field_remappings
2488
+ @field_remappings = {}
2489
+ end
2490
+ end
2491
+
2492
+ class NaverPay < ::Stripe::StripeObject
2493
+ # Controls when the funds will be captured from the customer's account.
2494
+ attr_reader :capture_method
2495
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2496
+ #
2497
+ # 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.
2498
+ #
2499
+ # 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.
2500
+ #
2501
+ # 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).
2502
+ attr_reader :setup_future_usage
2503
+
2504
+ def self.inner_class_types
2505
+ @inner_class_types = {}
2506
+ end
2507
+
2508
+ def self.field_remappings
2509
+ @field_remappings = {}
2510
+ end
2511
+ end
2512
+
2513
+ class NzBankAccount < ::Stripe::StripeObject
2514
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2515
+ #
2516
+ # 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.
2517
+ #
2518
+ # 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.
2519
+ #
2520
+ # 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).
2521
+ attr_reader :setup_future_usage
2522
+ # 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.
2523
+ attr_reader :target_date
2524
+
2525
+ def self.inner_class_types
2526
+ @inner_class_types = {}
2527
+ end
2528
+
2529
+ def self.field_remappings
2530
+ @field_remappings = {}
2531
+ end
2532
+ end
2533
+
2534
+ class Oxxo < ::Stripe::StripeObject
2535
+ # 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.
2536
+ attr_reader :expires_after_days
2537
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2538
+ #
2539
+ # 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.
2540
+ #
2541
+ # 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.
2542
+ #
2543
+ # 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).
2544
+ attr_reader :setup_future_usage
2545
+
2546
+ def self.inner_class_types
2547
+ @inner_class_types = {}
2548
+ end
2549
+
2550
+ def self.field_remappings
2551
+ @field_remappings = {}
2552
+ end
2553
+ end
2554
+
2555
+ class P24 < ::Stripe::StripeObject
2556
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2557
+ #
2558
+ # 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.
2559
+ #
2560
+ # 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.
2561
+ #
2562
+ # 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).
2563
+ attr_reader :setup_future_usage
2564
+
2565
+ def self.inner_class_types
2566
+ @inner_class_types = {}
2567
+ end
2568
+
2569
+ def self.field_remappings
2570
+ @field_remappings = {}
2571
+ end
2572
+ end
2573
+
2574
+ class PayByBank < ::Stripe::StripeObject
2575
+ def self.inner_class_types
2576
+ @inner_class_types = {}
2577
+ end
2578
+
2579
+ def self.field_remappings
2580
+ @field_remappings = {}
2581
+ end
2582
+ end
2583
+
2584
+ class Payco < ::Stripe::StripeObject
2585
+ # Controls when the funds will be captured from the customer's account.
2586
+ attr_reader :capture_method
2587
+
2588
+ def self.inner_class_types
2589
+ @inner_class_types = {}
2590
+ end
2591
+
2592
+ def self.field_remappings
2593
+ @field_remappings = {}
2594
+ end
2595
+ end
2596
+
2597
+ class Paynow < ::Stripe::StripeObject
2598
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2599
+ #
2600
+ # 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.
2601
+ #
2602
+ # 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.
2603
+ #
2604
+ # 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).
2605
+ attr_reader :setup_future_usage
2606
+
2607
+ def self.inner_class_types
2608
+ @inner_class_types = {}
2609
+ end
2610
+
2611
+ def self.field_remappings
2612
+ @field_remappings = {}
2613
+ end
2614
+ end
2615
+
2616
+ class Paypal < ::Stripe::StripeObject
2617
+ class LineItem < ::Stripe::StripeObject
2618
+ class Tax < ::Stripe::StripeObject
2619
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2620
+ attr_reader :amount
2621
+ # The tax behavior for the line item.
2622
+ attr_reader :behavior
2623
+
2624
+ def self.inner_class_types
2625
+ @inner_class_types = {}
2626
+ end
2627
+
2628
+ def self.field_remappings
2629
+ @field_remappings = {}
2630
+ end
2631
+ end
2632
+ # Type of the line item.
2633
+ attr_reader :category
2634
+ # Description of the line item.
2635
+ attr_reader :description
2636
+ # Descriptive name of the line item.
2637
+ attr_reader :name
2638
+ # Quantity of the line item. Cannot be a negative number.
2639
+ attr_reader :quantity
2640
+ # Client facing stock keeping unit, article number or similar.
2641
+ attr_reader :sku
2642
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
2643
+ attr_reader :sold_by
2644
+ # Attribute for field tax
2645
+ attr_reader :tax
2646
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2647
+ attr_reader :unit_amount
2648
+
2649
+ def self.inner_class_types
2650
+ @inner_class_types = { tax: Tax }
2651
+ end
2652
+
2653
+ def self.field_remappings
2654
+ @field_remappings = {}
2655
+ end
2656
+ end
2657
+ # Controls when the funds will be captured from the customer's account.
2658
+ attr_reader :capture_method
2659
+ # The line items purchased by the customer.
2660
+ attr_reader :line_items
2661
+ # Preferred locale of the PayPal checkout page that the customer is redirected to.
2662
+ attr_reader :preferred_locale
2663
+ # 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.
2664
+ attr_reader :reference
2665
+ # 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.
2666
+ attr_reader :reference_id
2667
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2668
+ #
2669
+ # 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.
2670
+ #
2671
+ # 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.
2672
+ #
2673
+ # 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).
2674
+ attr_reader :setup_future_usage
2675
+ # 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.
2676
+ attr_reader :subsellers
2677
+
2678
+ def self.inner_class_types
2679
+ @inner_class_types = { line_items: LineItem }
2680
+ end
2681
+
2682
+ def self.field_remappings
2683
+ @field_remappings = {}
2684
+ end
2685
+ end
2686
+
2687
+ class Paypay < ::Stripe::StripeObject
2688
+ def self.inner_class_types
2689
+ @inner_class_types = {}
2690
+ end
2691
+
2692
+ def self.field_remappings
2693
+ @field_remappings = {}
2694
+ end
2695
+ end
2696
+
2697
+ class Payto < ::Stripe::StripeObject
2698
+ class MandateOptions < ::Stripe::StripeObject
2699
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2700
+ attr_reader :amount
2701
+ # 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`.
2702
+ attr_reader :amount_type
2703
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2704
+ attr_reader :end_date
2705
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2706
+ attr_reader :payment_schedule
2707
+ # 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.
2708
+ attr_reader :payments_per_period
2709
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2710
+ attr_reader :purpose
2711
+
2712
+ def self.inner_class_types
2713
+ @inner_class_types = {}
2714
+ end
2715
+
2716
+ def self.field_remappings
2717
+ @field_remappings = {}
2718
+ end
2719
+ end
2720
+ # Attribute for field mandate_options
2721
+ attr_reader :mandate_options
2722
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2723
+ #
2724
+ # 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.
2725
+ #
2726
+ # 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.
2727
+ #
2728
+ # 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).
2729
+ attr_reader :setup_future_usage
2730
+
2731
+ def self.inner_class_types
2732
+ @inner_class_types = { mandate_options: MandateOptions }
2733
+ end
2734
+
2735
+ def self.field_remappings
2736
+ @field_remappings = {}
2737
+ end
2738
+ end
2739
+
2740
+ class Pix < ::Stripe::StripeObject
2741
+ class MandateOptions < ::Stripe::StripeObject
2742
+ # Amount to be charged for future payments.
2743
+ attr_reader :amount
2744
+ # Determines if the amount includes the IOF tax.
2745
+ attr_reader :amount_includes_iof
2746
+ # Type of amount.
2747
+ attr_reader :amount_type
2748
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
2749
+ attr_reader :currency
2750
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
2751
+ attr_reader :end_date
2752
+ # Schedule at which the future payments will be charged.
2753
+ attr_reader :payment_schedule
2754
+ # Subscription name displayed to buyers in their bank app.
2755
+ attr_reader :reference
2756
+ # Start date of the mandate, in `YYYY-MM-DD`.
2757
+ attr_reader :start_date
2758
+
2759
+ def self.inner_class_types
2760
+ @inner_class_types = {}
2761
+ end
2762
+
2763
+ def self.field_remappings
2764
+ @field_remappings = {}
2765
+ end
2766
+ end
2767
+ # Determines if the amount includes the IOF tax.
2768
+ attr_reader :amount_includes_iof
2769
+ # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2770
+ attr_reader :expires_after_seconds
2771
+ # The timestamp at which the Pix expires.
2772
+ attr_reader :expires_at
2773
+ # Attribute for field mandate_options
2774
+ attr_reader :mandate_options
2775
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2776
+ #
2777
+ # 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.
2778
+ #
2779
+ # 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.
2780
+ #
2781
+ # 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).
2782
+ attr_reader :setup_future_usage
2783
+
2784
+ def self.inner_class_types
2785
+ @inner_class_types = { mandate_options: MandateOptions }
2786
+ end
2787
+
2788
+ def self.field_remappings
2789
+ @field_remappings = {}
2790
+ end
2791
+ end
2792
+
2793
+ class Promptpay < ::Stripe::StripeObject
2794
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2795
+ #
2796
+ # 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.
2797
+ #
2798
+ # 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.
2799
+ #
2800
+ # 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).
2801
+ attr_reader :setup_future_usage
2802
+
2803
+ def self.inner_class_types
2804
+ @inner_class_types = {}
2805
+ end
2806
+
2807
+ def self.field_remappings
2808
+ @field_remappings = {}
2809
+ end
2810
+ end
2811
+
2812
+ class Qris < ::Stripe::StripeObject
2813
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2814
+ #
2815
+ # 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.
2816
+ #
2817
+ # 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.
2818
+ #
2819
+ # 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).
2820
+ attr_reader :setup_future_usage
2821
+
2822
+ def self.inner_class_types
2823
+ @inner_class_types = {}
2824
+ end
2825
+
2826
+ def self.field_remappings
2827
+ @field_remappings = {}
2828
+ end
2829
+ end
2830
+
2831
+ class Rechnung < ::Stripe::StripeObject
2832
+ def self.inner_class_types
2833
+ @inner_class_types = {}
2834
+ end
2835
+
2836
+ def self.field_remappings
2837
+ @field_remappings = {}
2838
+ end
2839
+ end
2840
+
2841
+ class RevolutPay < ::Stripe::StripeObject
2842
+ # Controls when the funds will be captured from the customer's account.
2843
+ attr_reader :capture_method
2844
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2845
+ #
2846
+ # 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.
2847
+ #
2848
+ # 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.
2849
+ #
2850
+ # 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).
2851
+ attr_reader :setup_future_usage
2852
+
2853
+ def self.inner_class_types
2854
+ @inner_class_types = {}
2855
+ end
2856
+
2857
+ def self.field_remappings
2858
+ @field_remappings = {}
2859
+ end
2860
+ end
2861
+
2862
+ class SamsungPay < ::Stripe::StripeObject
2863
+ # Controls when the funds will be captured from the customer's account.
2864
+ attr_reader :capture_method
2865
+
2866
+ def self.inner_class_types
2867
+ @inner_class_types = {}
2868
+ end
2869
+
2870
+ def self.field_remappings
2871
+ @field_remappings = {}
2872
+ end
2873
+ end
2874
+
2875
+ class Satispay < ::Stripe::StripeObject
2876
+ # Controls when the funds will be captured from the customer's account.
2877
+ attr_reader :capture_method
2878
+
2879
+ def self.inner_class_types
2880
+ @inner_class_types = {}
2881
+ end
2882
+
2883
+ def self.field_remappings
2884
+ @field_remappings = {}
2885
+ end
2886
+ end
2887
+
2888
+ class SepaDebit < ::Stripe::StripeObject
2889
+ class MandateOptions < ::Stripe::StripeObject
2890
+ # 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'.
2891
+ attr_reader :reference_prefix
2892
+
2893
+ def self.inner_class_types
2894
+ @inner_class_types = {}
2895
+ end
2896
+
2897
+ def self.field_remappings
2898
+ @field_remappings = {}
2899
+ end
2900
+ end
2901
+ # Attribute for field mandate_options
2902
+ attr_reader :mandate_options
2903
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2904
+ #
2905
+ # 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.
2906
+ #
2907
+ # 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.
2908
+ #
2909
+ # 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).
2910
+ attr_reader :setup_future_usage
2911
+ # 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.
2912
+ attr_reader :target_date
2913
+
2914
+ def self.inner_class_types
2915
+ @inner_class_types = { mandate_options: MandateOptions }
2916
+ end
2917
+
2918
+ def self.field_remappings
2919
+ @field_remappings = {}
2920
+ end
2921
+ end
2922
+
2923
+ class Shopeepay < ::Stripe::StripeObject
2924
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2925
+ #
2926
+ # 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.
2927
+ #
2928
+ # 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.
2929
+ #
2930
+ # 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).
2931
+ attr_reader :setup_future_usage
2932
+
2933
+ def self.inner_class_types
2934
+ @inner_class_types = {}
2935
+ end
2936
+
2937
+ def self.field_remappings
2938
+ @field_remappings = {}
2939
+ end
2940
+ end
2941
+
2942
+ class Sofort < ::Stripe::StripeObject
2943
+ # Preferred language of the SOFORT authorization page that the customer is redirected to.
2944
+ attr_reader :preferred_language
2945
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2946
+ #
2947
+ # 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.
2948
+ #
2949
+ # 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.
2950
+ #
2951
+ # 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).
2952
+ attr_reader :setup_future_usage
2953
+
2954
+ def self.inner_class_types
2955
+ @inner_class_types = {}
2956
+ end
2957
+
2958
+ def self.field_remappings
2959
+ @field_remappings = {}
2960
+ end
2961
+ end
2962
+
2963
+ class StripeBalance < ::Stripe::StripeObject
2964
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2965
+ #
2966
+ # 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.
2967
+ #
2968
+ # 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.
2969
+ #
2970
+ # 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).
2971
+ attr_reader :setup_future_usage
2972
+
2973
+ def self.inner_class_types
2974
+ @inner_class_types = {}
2975
+ end
2976
+
2977
+ def self.field_remappings
2978
+ @field_remappings = {}
2979
+ end
2980
+ end
2981
+
2982
+ class Swish < ::Stripe::StripeObject
2983
+ # A reference for this payment to be displayed in the Swish app.
2984
+ attr_reader :reference
2985
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2986
+ #
2987
+ # 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.
2988
+ #
2989
+ # 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.
2990
+ #
2991
+ # 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).
2992
+ attr_reader :setup_future_usage
2993
+
2994
+ def self.inner_class_types
2995
+ @inner_class_types = {}
2996
+ end
2997
+
2998
+ def self.field_remappings
2999
+ @field_remappings = {}
3000
+ end
3001
+ end
3002
+
3003
+ class Twint < ::Stripe::StripeObject
3004
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3005
+ #
3006
+ # 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.
3007
+ #
3008
+ # 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.
3009
+ #
3010
+ # 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).
3011
+ attr_reader :setup_future_usage
3012
+
3013
+ def self.inner_class_types
3014
+ @inner_class_types = {}
3015
+ end
3016
+
3017
+ def self.field_remappings
3018
+ @field_remappings = {}
3019
+ end
3020
+ end
3021
+
3022
+ class UsBankAccount < ::Stripe::StripeObject
3023
+ class FinancialConnections < ::Stripe::StripeObject
3024
+ class Filters < ::Stripe::StripeObject
3025
+ # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
3026
+ attr_reader :account_subcategories
3027
+ # The institution to use to filter for possible accounts to link.
3028
+ attr_reader :institution
3029
+
3030
+ def self.inner_class_types
3031
+ @inner_class_types = {}
3032
+ end
3033
+
3034
+ def self.field_remappings
3035
+ @field_remappings = {}
3036
+ end
3037
+ end
3038
+
3039
+ class ManualEntry < ::Stripe::StripeObject
3040
+ # Settings for configuring manual entry of account details.
3041
+ attr_reader :mode
3042
+
3043
+ def self.inner_class_types
3044
+ @inner_class_types = {}
3045
+ end
3046
+
3047
+ def self.field_remappings
3048
+ @field_remappings = {}
3049
+ end
3050
+ end
3051
+ # Attribute for field filters
3052
+ attr_reader :filters
3053
+ # Attribute for field manual_entry
3054
+ attr_reader :manual_entry
3055
+ # The list of permissions to request. The `payment_method` permission must be included.
3056
+ attr_reader :permissions
3057
+ # Data features requested to be retrieved upon account creation.
3058
+ attr_reader :prefetch
3059
+ # 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.
3060
+ attr_reader :return_url
3061
+
3062
+ def self.inner_class_types
3063
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
3064
+ end
3065
+
3066
+ def self.field_remappings
3067
+ @field_remappings = {}
3068
+ end
3069
+ end
3070
+
3071
+ class MandateOptions < ::Stripe::StripeObject
3072
+ # Mandate collection method
3073
+ attr_reader :collection_method
3074
+
3075
+ def self.inner_class_types
3076
+ @inner_class_types = {}
3077
+ end
3078
+
3079
+ def self.field_remappings
3080
+ @field_remappings = {}
3081
+ end
3082
+ end
3083
+ # Attribute for field financial_connections
3084
+ attr_reader :financial_connections
3085
+ # Attribute for field mandate_options
3086
+ attr_reader :mandate_options
3087
+ # Preferred transaction settlement speed
3088
+ attr_reader :preferred_settlement_speed
3089
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3090
+ #
3091
+ # 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.
3092
+ #
3093
+ # 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.
3094
+ #
3095
+ # 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).
3096
+ attr_reader :setup_future_usage
3097
+ # 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.
3098
+ attr_reader :target_date
3099
+ # Bank account verification method.
3100
+ attr_reader :verification_method
3101
+
3102
+ def self.inner_class_types
3103
+ @inner_class_types = {
3104
+ financial_connections: FinancialConnections,
3105
+ mandate_options: MandateOptions,
3106
+ }
3107
+ end
3108
+
3109
+ def self.field_remappings
3110
+ @field_remappings = {}
3111
+ end
3112
+ end
3113
+
3114
+ class WechatPay < ::Stripe::StripeObject
3115
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
3116
+ attr_reader :app_id
3117
+ # The client type that the end customer will pay from
3118
+ attr_reader :client
3119
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3120
+ #
3121
+ # 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.
3122
+ #
3123
+ # 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.
3124
+ #
3125
+ # 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).
3126
+ attr_reader :setup_future_usage
3127
+
3128
+ def self.inner_class_types
3129
+ @inner_class_types = {}
3130
+ end
3131
+
3132
+ def self.field_remappings
3133
+ @field_remappings = {}
3134
+ end
3135
+ end
3136
+
3137
+ class Zip < ::Stripe::StripeObject
3138
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3139
+ #
3140
+ # 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.
3141
+ #
3142
+ # 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.
3143
+ #
3144
+ # 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).
3145
+ attr_reader :setup_future_usage
3146
+
3147
+ def self.inner_class_types
3148
+ @inner_class_types = {}
3149
+ end
3150
+
3151
+ def self.field_remappings
3152
+ @field_remappings = {}
3153
+ end
3154
+ end
3155
+ # Attribute for field acss_debit
3156
+ attr_reader :acss_debit
3157
+ # Attribute for field affirm
3158
+ attr_reader :affirm
3159
+ # Attribute for field afterpay_clearpay
3160
+ attr_reader :afterpay_clearpay
3161
+ # Attribute for field alipay
3162
+ attr_reader :alipay
3163
+ # Attribute for field alma
3164
+ attr_reader :alma
3165
+ # Attribute for field amazon_pay
3166
+ attr_reader :amazon_pay
3167
+ # Attribute for field au_becs_debit
3168
+ attr_reader :au_becs_debit
3169
+ # Attribute for field bacs_debit
3170
+ attr_reader :bacs_debit
3171
+ # Attribute for field bancontact
3172
+ attr_reader :bancontact
3173
+ # Attribute for field billie
3174
+ attr_reader :billie
3175
+ # Attribute for field blik
3176
+ attr_reader :blik
3177
+ # Attribute for field boleto
3178
+ attr_reader :boleto
3179
+ # Attribute for field card
3180
+ attr_reader :card
3181
+ # Attribute for field card_present
3182
+ attr_reader :card_present
3183
+ # Attribute for field cashapp
3184
+ attr_reader :cashapp
3185
+ # Attribute for field crypto
3186
+ attr_reader :crypto
3187
+ # Attribute for field customer_balance
3188
+ attr_reader :customer_balance
3189
+ # Attribute for field eps
3190
+ attr_reader :eps
3191
+ # Attribute for field fpx
3192
+ attr_reader :fpx
3193
+ # Attribute for field giropay
3194
+ attr_reader :giropay
3195
+ # Attribute for field gopay
3196
+ attr_reader :gopay
3197
+ # Attribute for field grabpay
3198
+ attr_reader :grabpay
3199
+ # Attribute for field id_bank_transfer
3200
+ attr_reader :id_bank_transfer
3201
+ # Attribute for field ideal
3202
+ attr_reader :ideal
3203
+ # Attribute for field interac_present
3204
+ attr_reader :interac_present
3205
+ # Attribute for field kakao_pay
3206
+ attr_reader :kakao_pay
3207
+ # Attribute for field klarna
3208
+ attr_reader :klarna
3209
+ # Attribute for field konbini
3210
+ attr_reader :konbini
3211
+ # Attribute for field kr_card
3212
+ attr_reader :kr_card
3213
+ # Attribute for field link
3214
+ attr_reader :link
3215
+ # Attribute for field mb_way
3216
+ attr_reader :mb_way
3217
+ # Attribute for field mobilepay
3218
+ attr_reader :mobilepay
3219
+ # Attribute for field multibanco
3220
+ attr_reader :multibanco
3221
+ # Attribute for field naver_pay
3222
+ attr_reader :naver_pay
3223
+ # Attribute for field nz_bank_account
3224
+ attr_reader :nz_bank_account
3225
+ # Attribute for field oxxo
3226
+ attr_reader :oxxo
3227
+ # Attribute for field p24
3228
+ attr_reader :p24
3229
+ # Attribute for field pay_by_bank
3230
+ attr_reader :pay_by_bank
3231
+ # Attribute for field payco
3232
+ attr_reader :payco
3233
+ # Attribute for field paynow
3234
+ attr_reader :paynow
3235
+ # Attribute for field paypal
3236
+ attr_reader :paypal
3237
+ # Attribute for field paypay
3238
+ attr_reader :paypay
3239
+ # Attribute for field payto
3240
+ attr_reader :payto
3241
+ # Attribute for field pix
3242
+ attr_reader :pix
3243
+ # Attribute for field promptpay
3244
+ attr_reader :promptpay
3245
+ # Attribute for field qris
3246
+ attr_reader :qris
3247
+ # Attribute for field rechnung
3248
+ attr_reader :rechnung
3249
+ # Attribute for field revolut_pay
3250
+ attr_reader :revolut_pay
3251
+ # Attribute for field samsung_pay
3252
+ attr_reader :samsung_pay
3253
+ # Attribute for field satispay
3254
+ attr_reader :satispay
3255
+ # Attribute for field sepa_debit
3256
+ attr_reader :sepa_debit
3257
+ # Attribute for field shopeepay
3258
+ attr_reader :shopeepay
3259
+ # Attribute for field sofort
3260
+ attr_reader :sofort
3261
+ # Attribute for field stripe_balance
3262
+ attr_reader :stripe_balance
3263
+ # Attribute for field swish
3264
+ attr_reader :swish
3265
+ # Attribute for field twint
3266
+ attr_reader :twint
3267
+ # Attribute for field us_bank_account
3268
+ attr_reader :us_bank_account
3269
+ # Attribute for field wechat_pay
3270
+ attr_reader :wechat_pay
3271
+ # Attribute for field zip
3272
+ attr_reader :zip
3273
+
3274
+ def self.inner_class_types
3275
+ @inner_class_types = {
3276
+ acss_debit: AcssDebit,
3277
+ affirm: Affirm,
3278
+ afterpay_clearpay: AfterpayClearpay,
3279
+ alipay: Alipay,
3280
+ alma: Alma,
3281
+ amazon_pay: AmazonPay,
3282
+ au_becs_debit: AuBecsDebit,
3283
+ bacs_debit: BacsDebit,
3284
+ bancontact: Bancontact,
3285
+ billie: Billie,
3286
+ blik: Blik,
3287
+ boleto: Boleto,
3288
+ card: Card,
3289
+ card_present: CardPresent,
3290
+ cashapp: Cashapp,
3291
+ crypto: Crypto,
3292
+ customer_balance: CustomerBalance,
3293
+ eps: Eps,
3294
+ fpx: Fpx,
3295
+ giropay: Giropay,
3296
+ gopay: Gopay,
3297
+ grabpay: Grabpay,
3298
+ id_bank_transfer: IdBankTransfer,
3299
+ ideal: Ideal,
3300
+ interac_present: InteracPresent,
3301
+ kakao_pay: KakaoPay,
3302
+ klarna: Klarna,
3303
+ konbini: Konbini,
3304
+ kr_card: KrCard,
3305
+ link: Link,
3306
+ mb_way: MbWay,
3307
+ mobilepay: Mobilepay,
3308
+ multibanco: Multibanco,
3309
+ naver_pay: NaverPay,
3310
+ nz_bank_account: NzBankAccount,
3311
+ oxxo: Oxxo,
3312
+ p24: P24,
3313
+ pay_by_bank: PayByBank,
3314
+ payco: Payco,
3315
+ paynow: Paynow,
3316
+ paypal: Paypal,
3317
+ paypay: Paypay,
3318
+ payto: Payto,
3319
+ pix: Pix,
3320
+ promptpay: Promptpay,
3321
+ qris: Qris,
3322
+ rechnung: Rechnung,
3323
+ revolut_pay: RevolutPay,
3324
+ samsung_pay: SamsungPay,
3325
+ satispay: Satispay,
3326
+ sepa_debit: SepaDebit,
3327
+ shopeepay: Shopeepay,
3328
+ sofort: Sofort,
3329
+ stripe_balance: StripeBalance,
3330
+ swish: Swish,
3331
+ twint: Twint,
3332
+ us_bank_account: UsBankAccount,
3333
+ wechat_pay: WechatPay,
3334
+ zip: Zip,
3335
+ }
3336
+ end
3337
+
3338
+ def self.field_remappings
3339
+ @field_remappings = {}
3340
+ end
3341
+ end
3342
+
3343
+ class PresentmentDetails < ::Stripe::StripeObject
3344
+ # Amount intended to be collected by this payment, denominated in `presentment_currency`.
3345
+ attr_reader :presentment_amount
3346
+ # Currency presented to the customer during payment.
3347
+ attr_reader :presentment_currency
3348
+
3349
+ def self.inner_class_types
3350
+ @inner_class_types = {}
3351
+ end
3352
+
3353
+ def self.field_remappings
3354
+ @field_remappings = {}
3355
+ end
3356
+ end
3357
+
3358
+ class Processing < ::Stripe::StripeObject
3359
+ class Card < ::Stripe::StripeObject
3360
+ class CustomerNotification < ::Stripe::StripeObject
3361
+ # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank.
3362
+ attr_reader :approval_requested
3363
+ # If customer approval is required, they need to provide approval before this time.
3364
+ attr_reader :completes_at
3365
+
3366
+ def self.inner_class_types
3367
+ @inner_class_types = {}
3368
+ end
3369
+
3370
+ def self.field_remappings
3371
+ @field_remappings = {}
3372
+ end
3373
+ end
3374
+ # Attribute for field customer_notification
3375
+ attr_reader :customer_notification
3376
+
3377
+ def self.inner_class_types
3378
+ @inner_class_types = { customer_notification: CustomerNotification }
3379
+ end
3380
+
3381
+ def self.field_remappings
3382
+ @field_remappings = {}
3383
+ end
3384
+ end
3385
+ # Attribute for field card
3386
+ attr_reader :card
3387
+ # Type of the payment method for which payment is in `processing` state, one of `card`.
3388
+ attr_reader :type
3389
+
3390
+ def self.inner_class_types
3391
+ @inner_class_types = { card: Card }
3392
+ end
3393
+
3394
+ def self.field_remappings
3395
+ @field_remappings = {}
3396
+ end
3397
+ end
3398
+
3399
+ class Shipping < ::Stripe::StripeObject
3400
+ class Address < ::Stripe::StripeObject
3401
+ # City, district, suburb, town, or village.
3402
+ attr_reader :city
3403
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3404
+ attr_reader :country
3405
+ # Address line 1, such as the street, PO Box, or company name.
3406
+ attr_reader :line1
3407
+ # Address line 2, such as the apartment, suite, unit, or building.
3408
+ attr_reader :line2
3409
+ # ZIP or postal code.
3410
+ attr_reader :postal_code
3411
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3412
+ attr_reader :state
3413
+
3414
+ def self.inner_class_types
3415
+ @inner_class_types = {}
3416
+ end
3417
+
3418
+ def self.field_remappings
3419
+ @field_remappings = {}
3420
+ end
3421
+ end
3422
+ # Attribute for field address
3423
+ attr_reader :address
3424
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
3425
+ attr_reader :carrier
3426
+ # Recipient name.
3427
+ attr_reader :name
3428
+ # Recipient phone (including extension).
3429
+ attr_reader :phone
3430
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
3431
+ attr_reader :tracking_number
3432
+
3433
+ def self.inner_class_types
3434
+ @inner_class_types = { address: Address }
3435
+ end
3436
+
3437
+ def self.field_remappings
3438
+ @field_remappings = {}
3439
+ end
3440
+ end
3441
+
3442
+ class TransferData < ::Stripe::StripeObject
3443
+ # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
3444
+ # The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
3445
+ # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
3446
+ attr_reader :amount
3447
+ # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
3448
+ attr_reader :destination
3449
+
3450
+ def self.inner_class_types
3451
+ @inner_class_types = {}
3452
+ end
3453
+
3454
+ def self.field_remappings
3455
+ @field_remappings = {}
3456
+ end
3457
+ end
3458
+ # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3459
+ attr_reader :amount
3460
+ # Amount that can be captured from this PaymentIntent.
3461
+ attr_reader :amount_capturable
3462
+ # Attribute for field amount_details
3463
+ attr_reader :amount_details
3464
+ # Amount that this PaymentIntent collects.
3465
+ attr_reader :amount_received
3466
+ # ID of the Connect application that created the PaymentIntent.
3467
+ attr_reader :application
3468
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
3469
+ attr_reader :application_fee_amount
3470
+ # Attribute for field async_workflows
3471
+ attr_reader :async_workflows
3472
+ # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
3473
+ attr_reader :automatic_payment_methods
3474
+ # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
3475
+ attr_reader :canceled_at
3476
+ # Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, `automatic`, or `expired`).
3477
+ attr_reader :cancellation_reason
3478
+ # Controls when the funds will be captured from the customer's account.
3479
+ attr_reader :capture_method
3480
+ # The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
3481
+ #
3482
+ # The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
3483
+ #
3484
+ # Refer to our docs to [accept a payment](https://docs.stripe.com/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
3485
+ attr_reader :client_secret
3486
+ # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
3487
+ attr_reader :confirmation_method
3488
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
3489
+ attr_reader :created
3490
+ # 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).
3491
+ attr_reader :currency
3492
+ # ID of the Customer this PaymentIntent belongs to, if one exists.
3493
+ #
3494
+ # Payment methods attached to other Customers cannot be used with this PaymentIntent.
3495
+ #
3496
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
3497
+ attr_reader :customer
3498
+ # ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
3499
+ #
3500
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3501
+ #
3502
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
3503
+ attr_reader :customer_account
3504
+ # An arbitrary string attached to the object. Often useful for displaying to users.
3505
+ attr_reader :description
3506
+ # The list of payment method types to exclude from use with this payment.
3507
+ attr_reader :excluded_payment_method_types
3508
+ # The FX Quote used for the PaymentIntent.
3509
+ attr_reader :fx_quote
3510
+ # Attribute for field hooks
3511
+ attr_reader :hooks
3512
+ # Unique identifier for the object.
3513
+ attr_reader :id
3514
+ # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
3515
+ attr_reader :last_payment_error
3516
+ # ID of the latest [Charge object](https://docs.stripe.com/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
3517
+ attr_reader :latest_charge
3518
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
3519
+ attr_reader :livemode
3520
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Learn more about [storing information in metadata](https://docs.stripe.com/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
3521
+ attr_reader :metadata
3522
+ # If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
3523
+ attr_reader :next_action
3524
+ # String representing the object's type. Objects of the same type share the same value.
3525
+ attr_reader :object
3526
+ # You can specify the settlement merchant as the
3527
+ # connected account using the `on_behalf_of` attribute on the charge. See the PaymentIntents [use case for connected accounts](/payments/connected-accounts) for details.
3528
+ attr_reader :on_behalf_of
3529
+ # Attribute for field payment_details
3530
+ attr_reader :payment_details
3531
+ # ID of the payment method used in this PaymentIntent.
3532
+ attr_reader :payment_method
3533
+ # Information about the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) used for this PaymentIntent.
3534
+ attr_reader :payment_method_configuration_details
3535
+ # Payment-method-specific configuration for this PaymentIntent.
3536
+ attr_reader :payment_method_options
3537
+ # The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
3538
+ attr_reader :payment_method_types
3539
+ # Attribute for field presentment_details
3540
+ attr_reader :presentment_details
3541
+ # If present, this property tells you about the processing state of the payment.
3542
+ attr_reader :processing
3543
+ # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
3544
+ attr_reader :receipt_email
3545
+ # ID of the review associated with this PaymentIntent, if any.
3546
+ attr_reader :review
3547
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3548
+ attr_reader :secret_key_confirmation
3549
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3550
+ #
3551
+ # 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.
3552
+ #
3553
+ # 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.
3554
+ #
3555
+ # 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).
3556
+ attr_reader :setup_future_usage
3557
+ # Shipping information for this PaymentIntent.
3558
+ attr_reader :shipping
3559
+ # This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied.
3560
+ attr_reader :source
3561
+ # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
3562
+ #
3563
+ # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
3564
+ attr_reader :statement_descriptor
3565
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
3566
+ attr_reader :statement_descriptor_suffix
3567
+ # Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses).
3568
+ attr_reader :status
3569
+ # The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
3570
+ attr_reader :transfer_data
3571
+ # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
3572
+ attr_reader :transfer_group
3573
+
3574
+ # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
20
3575
  def apply_customer_balance(params = {}, opts = {})
21
3576
  request_stripe_object(
22
3577
  method: :post,
23
- path: resource_url + "/apply_customer_balance",
3578
+ path: format("/v1/payment_intents/%<intent>s/apply_customer_balance", { intent: CGI.escape(self["id"]) }),
3579
+ params: params,
3580
+ opts: opts
3581
+ )
3582
+ end
3583
+
3584
+ # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
3585
+ def self.apply_customer_balance(intent, params = {}, opts = {})
3586
+ request_stripe_object(
3587
+ method: :post,
3588
+ path: format("/v1/payment_intents/%<intent>s/apply_customer_balance", { intent: CGI.escape(intent) }),
24
3589
  params: params,
25
3590
  opts: opts
26
3591
  )
27
3592
  end
28
3593
 
3594
+ # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
3595
+ #
3596
+ # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
3597
+ #
3598
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
29
3599
  def cancel(params = {}, opts = {})
30
3600
  request_stripe_object(
31
3601
  method: :post,
32
- path: resource_url + "/cancel",
3602
+ path: format("/v1/payment_intents/%<intent>s/cancel", { intent: CGI.escape(self["id"]) }),
3603
+ params: params,
3604
+ opts: opts
3605
+ )
3606
+ end
3607
+
3608
+ # You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
3609
+ #
3610
+ # After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
3611
+ #
3612
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
3613
+ def self.cancel(intent, params = {}, opts = {})
3614
+ request_stripe_object(
3615
+ method: :post,
3616
+ path: format("/v1/payment_intents/%<intent>s/cancel", { intent: CGI.escape(intent) }),
33
3617
  params: params,
34
3618
  opts: opts
35
3619
  )
36
3620
  end
37
3621
 
3622
+ # Capture the funds of an existing uncaptured PaymentIntent when its status is requires_capture.
3623
+ #
3624
+ # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
3625
+ #
3626
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
38
3627
  def capture(params = {}, opts = {})
39
3628
  request_stripe_object(
40
3629
  method: :post,
41
- path: resource_url + "/capture",
3630
+ path: format("/v1/payment_intents/%<intent>s/capture", { intent: CGI.escape(self["id"]) }),
3631
+ params: params,
3632
+ opts: opts
3633
+ )
3634
+ end
3635
+
3636
+ # Capture the funds of an existing uncaptured PaymentIntent when its status is requires_capture.
3637
+ #
3638
+ # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
3639
+ #
3640
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
3641
+ def self.capture(intent, params = {}, opts = {})
3642
+ request_stripe_object(
3643
+ method: :post,
3644
+ path: format("/v1/payment_intents/%<intent>s/capture", { intent: CGI.escape(intent) }),
42
3645
  params: params,
43
3646
  opts: opts
44
3647
  )
45
3648
  end
46
3649
 
3650
+ # Confirm that your customer intends to pay with current or provided
3651
+ # payment method. Upon confirmation, the PaymentIntent will attempt to initiate
3652
+ # a payment.
3653
+ #
3654
+ # If the selected payment method requires additional authentication steps, the
3655
+ # PaymentIntent will transition to the requires_action status and
3656
+ # suggest additional actions via next_action. If payment fails,
3657
+ # the PaymentIntent transitions to the requires_payment_method status or the
3658
+ # canceled status if the confirmation limit is reached. If
3659
+ # payment succeeds, the PaymentIntent will transition to the succeeded
3660
+ # status (or requires_capture, if capture_method is set to manual).
3661
+ #
3662
+ # If the confirmation_method is automatic, payment may be attempted
3663
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
3664
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
3665
+ # After next_actions are handled by the client, no additional
3666
+ # confirmation is required to complete the payment.
3667
+ #
3668
+ # If the confirmation_method is manual, all payment attempts must be
3669
+ # initiated using a secret key.
3670
+ #
3671
+ # If any actions are required for the payment, the PaymentIntent will
3672
+ # return to the requires_confirmation state
3673
+ # after those actions are completed. Your server needs to then
3674
+ # explicitly re-confirm the PaymentIntent to initiate the next payment
3675
+ # attempt.
3676
+ #
3677
+ # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
3678
+ # After this limit is reached, any further calls to this endpoint will
3679
+ # transition the PaymentIntent to the canceled state.
47
3680
  def confirm(params = {}, opts = {})
48
3681
  request_stripe_object(
49
3682
  method: :post,
50
- path: resource_url + "/confirm",
3683
+ path: format("/v1/payment_intents/%<intent>s/confirm", { intent: CGI.escape(self["id"]) }),
3684
+ params: params,
3685
+ opts: opts
3686
+ )
3687
+ end
3688
+
3689
+ # Confirm that your customer intends to pay with current or provided
3690
+ # payment method. Upon confirmation, the PaymentIntent will attempt to initiate
3691
+ # a payment.
3692
+ #
3693
+ # If the selected payment method requires additional authentication steps, the
3694
+ # PaymentIntent will transition to the requires_action status and
3695
+ # suggest additional actions via next_action. If payment fails,
3696
+ # the PaymentIntent transitions to the requires_payment_method status or the
3697
+ # canceled status if the confirmation limit is reached. If
3698
+ # payment succeeds, the PaymentIntent will transition to the succeeded
3699
+ # status (or requires_capture, if capture_method is set to manual).
3700
+ #
3701
+ # If the confirmation_method is automatic, payment may be attempted
3702
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
3703
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
3704
+ # After next_actions are handled by the client, no additional
3705
+ # confirmation is required to complete the payment.
3706
+ #
3707
+ # If the confirmation_method is manual, all payment attempts must be
3708
+ # initiated using a secret key.
3709
+ #
3710
+ # If any actions are required for the payment, the PaymentIntent will
3711
+ # return to the requires_confirmation state
3712
+ # after those actions are completed. Your server needs to then
3713
+ # explicitly re-confirm the PaymentIntent to initiate the next payment
3714
+ # attempt.
3715
+ #
3716
+ # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
3717
+ # After this limit is reached, any further calls to this endpoint will
3718
+ # transition the PaymentIntent to the canceled state.
3719
+ def self.confirm(intent, params = {}, opts = {})
3720
+ request_stripe_object(
3721
+ method: :post,
3722
+ path: format("/v1/payment_intents/%<intent>s/confirm", { intent: CGI.escape(intent) }),
3723
+ params: params,
3724
+ opts: opts
3725
+ )
3726
+ end
3727
+
3728
+ # Creates a PaymentIntent object.
3729
+ #
3730
+ # After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
3731
+ # to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
3732
+ # with the Payment Intents API.
3733
+ #
3734
+ # When you use confirm=true during creation, it's equivalent to creating
3735
+ # and confirming the PaymentIntent in the same call. You can use any parameters
3736
+ # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
3737
+ # confirm=true.
3738
+ def self.create(params = {}, opts = {})
3739
+ request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
3740
+ end
3741
+
3742
+ # Perform a decremental authorization on an eligible
3743
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3744
+ # PaymentIntent's status must be requires_capture and
3745
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3746
+ # must be available.
3747
+ #
3748
+ # Decremental authorizations decrease the authorized amount on your customer's card
3749
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3750
+ #
3751
+ # After decrement, the PaymentIntent object
3752
+ # returns with the updated
3753
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3754
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3755
+ #
3756
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3757
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3758
+ def decrement_authorization(params = {}, opts = {})
3759
+ request_stripe_object(
3760
+ method: :post,
3761
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
3762
+ params: params,
3763
+ opts: opts
3764
+ )
3765
+ end
3766
+
3767
+ # Perform a decremental authorization on an eligible
3768
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3769
+ # PaymentIntent's status must be requires_capture and
3770
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3771
+ # must be available.
3772
+ #
3773
+ # Decremental authorizations decrease the authorized amount on your customer's card
3774
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3775
+ #
3776
+ # After decrement, the PaymentIntent object
3777
+ # returns with the updated
3778
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3779
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3780
+ #
3781
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3782
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3783
+ def self.decrement_authorization(intent, params = {}, opts = {})
3784
+ request_stripe_object(
3785
+ method: :post,
3786
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
51
3787
  params: params,
52
3788
  opts: opts
53
3789
  )
54
3790
  end
55
3791
 
3792
+ # Perform an incremental authorization on an eligible
3793
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3794
+ # PaymentIntent's status must be requires_capture and
3795
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
3796
+ # must be true.
3797
+ #
3798
+ # Incremental authorizations attempt to increase the authorized amount on
3799
+ # your customer's card to the new, higher amount provided. Similar to the
3800
+ # initial authorization, incremental authorizations can be declined. A
3801
+ # single PaymentIntent can call this endpoint multiple times to further
3802
+ # increase the authorized amount.
3803
+ #
3804
+ # If the incremental authorization succeeds, the PaymentIntent object
3805
+ # returns with the updated
3806
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3807
+ # If the incremental authorization fails, a
3808
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
3809
+ # fields on the PaymentIntent or Charge update. The PaymentIntent
3810
+ # object remains capturable for the previously authorized amount.
3811
+ #
3812
+ # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
3813
+ # After it's captured, a PaymentIntent can no longer be incremented.
3814
+ #
3815
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
56
3816
  def increment_authorization(params = {}, opts = {})
57
3817
  request_stripe_object(
58
3818
  method: :post,
59
- path: resource_url + "/increment_authorization",
3819
+ path: format("/v1/payment_intents/%<intent>s/increment_authorization", { intent: CGI.escape(self["id"]) }),
60
3820
  params: params,
61
3821
  opts: opts
62
3822
  )
63
3823
  end
64
3824
 
65
- def verify_microdeposits(params = {}, opts = {})
3825
+ # Perform an incremental authorization on an eligible
3826
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3827
+ # PaymentIntent's status must be requires_capture and
3828
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
3829
+ # must be true.
3830
+ #
3831
+ # Incremental authorizations attempt to increase the authorized amount on
3832
+ # your customer's card to the new, higher amount provided. Similar to the
3833
+ # initial authorization, incremental authorizations can be declined. A
3834
+ # single PaymentIntent can call this endpoint multiple times to further
3835
+ # increase the authorized amount.
3836
+ #
3837
+ # If the incremental authorization succeeds, the PaymentIntent object
3838
+ # returns with the updated
3839
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3840
+ # If the incremental authorization fails, a
3841
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
3842
+ # fields on the PaymentIntent or Charge update. The PaymentIntent
3843
+ # object remains capturable for the previously authorized amount.
3844
+ #
3845
+ # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
3846
+ # After it's captured, a PaymentIntent can no longer be incremented.
3847
+ #
3848
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
3849
+ def self.increment_authorization(intent, params = {}, opts = {})
66
3850
  request_stripe_object(
67
3851
  method: :post,
68
- path: resource_url + "/verify_microdeposits",
3852
+ path: format("/v1/payment_intents/%<intent>s/increment_authorization", { intent: CGI.escape(intent) }),
69
3853
  params: params,
70
3854
  opts: opts
71
3855
  )
72
3856
  end
73
3857
 
3858
+ # Returns a list of PaymentIntents.
3859
+ def self.list(params = {}, opts = {})
3860
+ request_stripe_object(method: :get, path: "/v1/payment_intents", params: params, opts: opts)
3861
+ end
3862
+
74
3863
  def self.search(params = {}, opts = {})
75
- _search("/v1/payment_intents/search", params, opts)
3864
+ request_stripe_object(
3865
+ method: :get,
3866
+ path: "/v1/payment_intents/search",
3867
+ params: params,
3868
+ opts: opts
3869
+ )
76
3870
  end
77
3871
 
78
3872
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
79
3873
  search(params, opts).auto_paging_each(&blk)
80
3874
  end
3875
+
3876
+ # Trigger an external action on a PaymentIntent.
3877
+ def trigger_action(params = {}, opts = {})
3878
+ request_stripe_object(
3879
+ method: :post,
3880
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
3881
+ params: params,
3882
+ opts: opts
3883
+ )
3884
+ end
3885
+
3886
+ # Trigger an external action on a PaymentIntent.
3887
+ def self.trigger_action(intent, params = {}, opts = {})
3888
+ request_stripe_object(
3889
+ method: :post,
3890
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
3891
+ params: params,
3892
+ opts: opts
3893
+ )
3894
+ end
3895
+
3896
+ # Updates properties on a PaymentIntent object without confirming.
3897
+ #
3898
+ # Depending on which properties you update, you might need to confirm the
3899
+ # PaymentIntent again. For example, updating the payment_method
3900
+ # always requires you to confirm the PaymentIntent again. If you prefer to
3901
+ # update and confirm at the same time, we recommend updating properties through
3902
+ # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
3903
+ def self.update(intent, params = {}, opts = {})
3904
+ request_stripe_object(
3905
+ method: :post,
3906
+ path: format("/v1/payment_intents/%<intent>s", { intent: CGI.escape(intent) }),
3907
+ params: params,
3908
+ opts: opts
3909
+ )
3910
+ end
3911
+
3912
+ # Verifies microdeposits on a PaymentIntent object.
3913
+ def verify_microdeposits(params = {}, opts = {})
3914
+ request_stripe_object(
3915
+ method: :post,
3916
+ path: format("/v1/payment_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(self["id"]) }),
3917
+ params: params,
3918
+ opts: opts
3919
+ )
3920
+ end
3921
+
3922
+ # Verifies microdeposits on a PaymentIntent object.
3923
+ def self.verify_microdeposits(intent, params = {}, opts = {})
3924
+ request_stripe_object(
3925
+ method: :post,
3926
+ path: format("/v1/payment_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(intent) }),
3927
+ params: params,
3928
+ opts: opts
3929
+ )
3930
+ end
3931
+
3932
+ def self.inner_class_types
3933
+ @inner_class_types = {
3934
+ amount_details: AmountDetails,
3935
+ async_workflows: AsyncWorkflows,
3936
+ automatic_payment_methods: AutomaticPaymentMethods,
3937
+ hooks: Hooks,
3938
+ last_payment_error: LastPaymentError,
3939
+ next_action: NextAction,
3940
+ payment_details: PaymentDetails,
3941
+ payment_method_configuration_details: PaymentMethodConfigurationDetails,
3942
+ payment_method_options: PaymentMethodOptions,
3943
+ presentment_details: PresentmentDetails,
3944
+ processing: Processing,
3945
+ shipping: Shipping,
3946
+ transfer_data: TransferData,
3947
+ }
3948
+ end
3949
+
3950
+ def self.field_remappings
3951
+ @field_remappings = {}
3952
+ end
81
3953
  end
82
3954
  end