stripe 13.4.1 → 17.0.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 (861) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  3. data/lib/stripe/api_operations/request.rb +1 -0
  4. data/lib/stripe/api_operations/save.rb +2 -1
  5. data/lib/stripe/api_operations/singleton_save.rb +2 -1
  6. data/lib/stripe/api_requestor.rb +12 -4
  7. data/lib/stripe/api_resource.rb +13 -3
  8. data/lib/stripe/api_version.rb +2 -1
  9. data/lib/stripe/connection_manager.rb +1 -3
  10. data/lib/stripe/errors.rb +0 -7
  11. data/lib/stripe/event_types.rb +20 -5
  12. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  13. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
  14. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
  15. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  16. data/lib/stripe/oauth.rb +1 -1
  17. data/lib/stripe/object_types.rb +11 -4
  18. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  19. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  20. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  21. data/lib/stripe/params/account_create_params.rb +2083 -0
  22. data/lib/stripe/params/account_delete_params.rb +6 -0
  23. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  24. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  25. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  26. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  27. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  28. data/lib/stripe/params/account_link_create_params.rb +52 -0
  29. data/lib/stripe/params/account_list_params.rb +42 -0
  30. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  31. data/lib/stripe/params/account_person_create_params.rb +435 -0
  32. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  33. data/lib/stripe/params/account_person_list_params.rb +61 -0
  34. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  35. data/lib/stripe/params/account_person_update_params.rb +435 -0
  36. data/lib/stripe/params/account_persons_params.rb +61 -0
  37. data/lib/stripe/params/account_reject_params.rb +16 -0
  38. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  39. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  40. data/lib/stripe/params/account_session_create_params.rb +598 -0
  41. data/lib/stripe/params/account_update_params.rb +2030 -0
  42. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  43. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  44. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  45. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  46. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  47. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  48. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  49. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  50. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  51. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  52. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  53. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  54. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  55. data/lib/stripe/params/apps/secret_list_params.rb +38 -0
  56. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  57. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  58. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  59. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  60. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  61. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  62. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  63. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  64. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  65. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  66. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  67. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
  68. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
  69. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  70. data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
  71. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  72. data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
  73. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  74. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  75. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  76. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  77. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  78. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  79. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  80. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  81. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  82. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  83. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  84. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  85. data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
  86. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  87. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  88. data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
  89. data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
  90. data/lib/stripe/params/charge_capture_params.rb +57 -0
  91. data/lib/stripe/params/charge_create_params.rb +172 -0
  92. data/lib/stripe/params/charge_list_params.rb +60 -0
  93. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  94. data/lib/stripe/params/charge_search_params.rb +22 -0
  95. data/lib/stripe/params/charge_update_params.rb +102 -0
  96. data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
  97. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  98. data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  99. data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  100. data/lib/stripe/params/checkout/session_list_params.rb +83 -0
  101. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  102. data/lib/stripe/params/checkout/session_update_params.rb +179 -0
  103. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  104. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  105. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  106. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  107. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  108. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  109. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  110. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  111. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  112. data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
  113. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  115. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  116. data/lib/stripe/params/coupon_create_params.rb +80 -0
  117. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  118. data/lib/stripe/params/coupon_list_params.rb +42 -0
  119. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/coupon_update_params.rb +30 -0
  121. data/lib/stripe/params/credit_note_create_params.rb +144 -0
  122. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  123. data/lib/stripe/params/credit_note_list_params.rb +56 -0
  124. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
  125. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
  126. data/lib/stripe/params/credit_note_preview_params.rb +144 -0
  127. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  128. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  129. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  130. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  131. data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
  132. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  133. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  134. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  135. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  136. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  137. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  138. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  139. data/lib/stripe/params/customer_create_params.rb +259 -0
  140. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  141. data/lib/stripe/params/customer_delete_params.rb +6 -0
  142. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  143. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  144. data/lib/stripe/params/customer_list_params.rb +56 -0
  145. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  146. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  147. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  148. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  149. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  150. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  151. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  152. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  153. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  154. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  155. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  156. data/lib/stripe/params/customer_search_params.rb +22 -0
  157. data/lib/stripe/params/customer_session_create_params.rb +100 -0
  158. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  159. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  160. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  161. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  162. data/lib/stripe/params/customer_update_params.rb +243 -0
  163. data/lib/stripe/params/dispute_close_params.rb +13 -0
  164. data/lib/stripe/params/dispute_list_params.rb +56 -0
  165. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  166. data/lib/stripe/params/dispute_update_params.rb +308 -0
  167. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  168. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  169. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  170. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  171. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  172. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  173. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  174. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  175. data/lib/stripe/params/event_list_params.rb +60 -0
  176. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  177. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  178. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  179. data/lib/stripe/params/file_create_params.rb +36 -0
  180. data/lib/stripe/params/file_link_create_params.rb +22 -0
  181. data/lib/stripe/params/file_link_list_params.rb +56 -0
  182. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  183. data/lib/stripe/params/file_link_update_params.rb +19 -0
  184. data/lib/stripe/params/file_list_params.rb +52 -0
  185. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  186. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  187. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  188. data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
  189. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  190. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  191. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  192. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  193. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  194. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  195. data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
  196. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  197. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  198. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  199. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  200. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  201. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  202. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  203. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  204. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  205. data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
  206. data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
  207. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  208. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  209. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  210. data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
  211. data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
  212. data/lib/stripe/params/invoice_create_params.rb +589 -0
  213. data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
  214. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  215. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  216. data/lib/stripe/params/invoice_item_create_params.rb +145 -0
  217. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  218. data/lib/stripe/params/invoice_item_list_params.rb +60 -0
  219. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  220. data/lib/stripe/params/invoice_item_update_params.rb +129 -0
  221. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  222. data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
  223. data/lib/stripe/params/invoice_list_params.rb +86 -0
  224. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  225. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  226. data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
  227. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  228. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  229. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  230. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  231. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  232. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  233. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  234. data/lib/stripe/params/invoice_search_params.rb +22 -0
  235. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  236. data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
  237. data/lib/stripe/params/invoice_update_params.rb +557 -0
  238. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  239. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  240. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  241. data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
  242. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  243. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  244. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  245. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  246. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  247. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  248. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  249. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  250. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  251. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  252. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  253. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  254. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  255. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  256. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  257. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  258. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  259. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  260. data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
  261. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  262. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  263. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  264. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  265. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  266. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  267. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  268. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  269. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  270. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  271. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  272. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  273. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  274. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  275. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  276. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  277. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  278. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  279. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  281. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  282. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  283. data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
  284. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  285. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  286. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  287. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  288. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  289. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  290. data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
  291. data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
  292. data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
  293. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
  294. data/lib/stripe/params/payment_intent_list_params.rb +52 -0
  295. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  296. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  297. data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
  298. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  299. data/lib/stripe/params/payment_link_create_params.rb +776 -0
  300. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  301. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  302. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  303. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  304. data/lib/stripe/params/payment_link_update_params.rb +564 -0
  305. data/lib/stripe/params/payment_method_attach_params.rb +16 -0
  306. data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
  307. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  308. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  309. data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
  310. data/lib/stripe/params/payment_method_create_params.rb +583 -0
  311. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  312. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  313. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  314. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  315. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  316. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  317. data/lib/stripe/params/payment_method_list_params.rb +35 -0
  318. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  319. data/lib/stripe/params/payment_method_update_params.rb +120 -0
  320. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  321. data/lib/stripe/params/payout_create_params.rb +51 -0
  322. data/lib/stripe/params/payout_list_params.rb +78 -0
  323. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  324. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  325. data/lib/stripe/params/payout_update_params.rb +16 -0
  326. data/lib/stripe/params/plan_create_params.rb +158 -0
  327. data/lib/stripe/params/plan_delete_params.rb +6 -0
  328. data/lib/stripe/params/plan_list_params.rb +56 -0
  329. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  330. data/lib/stripe/params/plan_update_params.rb +35 -0
  331. data/lib/stripe/params/price_create_params.rb +278 -0
  332. data/lib/stripe/params/price_list_params.rb +87 -0
  333. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  334. data/lib/stripe/params/price_search_params.rb +22 -0
  335. data/lib/stripe/params/price_update_params.rb +113 -0
  336. data/lib/stripe/params/product_create_params.rb +243 -0
  337. data/lib/stripe/params/product_delete_params.rb +6 -0
  338. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  339. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  340. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  341. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  342. data/lib/stripe/params/product_list_params.rb +68 -0
  343. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  344. data/lib/stripe/params/product_search_params.rb +22 -0
  345. data/lib/stripe/params/product_update_params.rb +96 -0
  346. data/lib/stripe/params/promotion_code_create_params.rb +91 -0
  347. data/lib/stripe/params/promotion_code_list_params.rb +64 -0
  348. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  349. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  350. data/lib/stripe/params/quote_accept_params.rb +13 -0
  351. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  352. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  353. data/lib/stripe/params/quote_create_params.rb +301 -0
  354. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  355. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  356. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  357. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  358. data/lib/stripe/params/quote_list_params.rb +39 -0
  359. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  360. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  361. data/lib/stripe/params/quote_update_params.rb +263 -0
  362. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  363. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  364. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  365. data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
  366. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  367. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  368. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  369. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  370. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  371. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  372. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  373. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  374. data/lib/stripe/params/refund_create_params.rb +59 -0
  375. data/lib/stripe/params/refund_expire_params.rb +13 -0
  376. data/lib/stripe/params/refund_list_params.rb +56 -0
  377. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  378. data/lib/stripe/params/refund_update_params.rb +16 -0
  379. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  380. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  381. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  382. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  383. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  384. data/lib/stripe/params/review_approve_params.rb +13 -0
  385. data/lib/stripe/params/review_list_params.rb +42 -0
  386. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  387. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  388. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  389. data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
  390. data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
  391. data/lib/stripe/params/setup_intent_list_params.rb +62 -0
  392. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  393. data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
  394. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  395. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  396. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  397. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  398. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  399. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  400. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  401. data/lib/stripe/params/source_create_params.rb +317 -0
  402. data/lib/stripe/params/source_detach_params.rb +13 -0
  403. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  404. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  405. data/lib/stripe/params/source_update_params.rb +259 -0
  406. data/lib/stripe/params/source_verify_params.rb +16 -0
  407. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  408. data/lib/stripe/params/subscription_create_params.rb +704 -0
  409. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  410. data/lib/stripe/params/subscription_item_create_params.rb +134 -0
  411. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  412. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  413. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  414. data/lib/stripe/params/subscription_item_update_params.rb +134 -0
  415. data/lib/stripe/params/subscription_list_params.rb +129 -0
  416. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  417. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  418. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  419. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  420. data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
  421. data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
  422. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  423. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  424. data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
  425. data/lib/stripe/params/subscription_search_params.rb +22 -0
  426. data/lib/stripe/params/subscription_update_params.rb +683 -0
  427. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  428. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  429. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  430. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  431. data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
  432. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  433. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  434. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  435. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  436. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  437. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  438. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  439. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  440. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  441. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  442. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  443. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  444. data/lib/stripe/params/tax_id_create_params.rb +36 -0
  445. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  446. data/lib/stripe/params/tax_id_list_params.rb +39 -0
  447. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  448. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  449. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  450. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  451. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  452. data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
  453. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  454. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  455. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
  457. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  458. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  459. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  460. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  461. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  462. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  463. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  464. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  465. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  466. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  467. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  468. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  469. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  470. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  471. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  472. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  473. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  474. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  475. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  476. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  477. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  478. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  479. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
  480. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  481. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  482. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
  483. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  484. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  485. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  486. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  487. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  488. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  489. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  490. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  491. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  492. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  493. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  494. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  495. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  496. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  497. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  498. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  499. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  500. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  501. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  502. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  503. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  504. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  505. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  506. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  507. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  508. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  509. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  510. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  511. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  512. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  513. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  514. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  515. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  516. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  517. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  518. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  519. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
  520. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
  521. data/lib/stripe/params/token_create_params.rb +1191 -0
  522. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  523. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  524. data/lib/stripe/params/topup_create_params.rb +43 -0
  525. data/lib/stripe/params/topup_list_params.rb +74 -0
  526. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  527. data/lib/stripe/params/topup_update_params.rb +19 -0
  528. data/lib/stripe/params/transfer_create_params.rb +47 -0
  529. data/lib/stripe/params/transfer_list_params.rb +56 -0
  530. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  531. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  532. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  533. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  534. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  535. data/lib/stripe/params/transfer_update_params.rb +19 -0
  536. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  537. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  538. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  539. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  540. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  541. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  542. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  543. data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
  544. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  545. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
  546. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  547. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  548. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  549. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
  550. data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
  551. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  552. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  553. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  554. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  555. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  556. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  557. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  558. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  559. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  560. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  561. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  562. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  563. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  564. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  565. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  566. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  567. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
  568. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  569. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  570. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  571. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  572. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  573. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  574. data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
  575. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  576. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  577. data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
  578. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  579. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  580. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  581. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  582. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  583. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  584. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  585. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  586. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  587. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  588. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  589. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  590. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  591. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  592. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  593. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  594. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  595. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  596. data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
  597. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  598. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  599. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  600. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  601. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  602. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  603. data/lib/stripe/params.rb +588 -0
  604. data/lib/stripe/request_options.rb +16 -6
  605. data/lib/stripe/request_params.rb +24 -0
  606. data/lib/stripe/resources/account.rb +1007 -20
  607. data/lib/stripe/resources/account_link.rb +17 -0
  608. data/lib/stripe/resources/account_session.rb +658 -0
  609. data/lib/stripe/resources/apple_pay_domain.rb +21 -0
  610. data/lib/stripe/resources/application.rb +28 -0
  611. data/lib/stripe/resources/application_fee.rb +55 -0
  612. data/lib/stripe/resources/application_fee_refund.rb +25 -0
  613. data/lib/stripe/resources/apps/secret.rb +41 -0
  614. data/lib/stripe/resources/balance.rb +325 -7
  615. data/lib/stripe/resources/balance_settings.rb +92 -0
  616. data/lib/stripe/resources/balance_transaction.rb +61 -0
  617. data/lib/stripe/resources/bank_account.rb +126 -4
  618. data/lib/stripe/resources/billing/alert.rb +55 -0
  619. data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  620. data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
  621. data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
  622. data/lib/stripe/resources/billing/credit_grant.rb +108 -0
  623. data/lib/stripe/resources/billing/meter.rb +93 -0
  624. data/lib/stripe/resources/billing/meter_event.rb +23 -0
  625. data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
  626. data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
  627. data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
  628. data/lib/stripe/resources/billing_portal/session.rb +200 -1
  629. data/lib/stripe/resources/capability.rb +140 -0
  630. data/lib/stripe/resources/card.rb +93 -0
  631. data/lib/stripe/resources/cash_balance.rb +33 -0
  632. data/lib/stripe/resources/charge.rb +2221 -7
  633. data/lib/stripe/resources/checkout/session.rb +2206 -6
  634. data/lib/stripe/resources/climate/order.rb +106 -0
  635. data/lib/stripe/resources/climate/product.rb +45 -0
  636. data/lib/stripe/resources/climate/supplier.rb +43 -0
  637. data/lib/stripe/resources/confirmation_token.rb +1679 -0
  638. data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  639. data/lib/stripe/resources/country_spec.rb +69 -1
  640. data/lib/stripe/resources/coupon.rb +70 -0
  641. data/lib/stripe/resources/credit_note.rb +213 -9
  642. data/lib/stripe/resources/credit_note_line_item.rb +111 -0
  643. data/lib/stripe/resources/customer.rb +228 -0
  644. data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
  645. data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
  646. data/lib/stripe/resources/customer_session.rb +118 -3
  647. data/lib/stripe/resources/discount.rb +49 -0
  648. data/lib/stripe/resources/dispute.rb +405 -1
  649. data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
  650. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  651. data/lib/stripe/resources/entitlements/feature.rb +23 -0
  652. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  653. data/lib/stripe/resources/event.rb +74 -26
  654. data/lib/stripe/resources/exchange_rate.rb +25 -0
  655. data/lib/stripe/resources/file.rb +32 -1
  656. data/lib/stripe/resources/file_link.rb +27 -0
  657. data/lib/stripe/resources/financial_connections/account.rb +193 -0
  658. data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
  659. data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
  660. data/lib/stripe/resources/financial_connections/session.rb +60 -0
  661. data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
  662. data/lib/stripe/resources/forwarding/request.rb +111 -0
  663. data/lib/stripe/resources/funding_instructions.rb +502 -1
  664. data/lib/stripe/resources/identity/verification_report.rb +372 -0
  665. data/lib/stripe/resources/identity/verification_session.rb +290 -11
  666. data/lib/stripe/resources/invoice.rb +997 -34
  667. data/lib/stripe/resources/invoice_item.rb +160 -4
  668. data/lib/stripe/resources/invoice_line_item.rb +278 -1
  669. data/lib/stripe/resources/invoice_payment.rb +90 -0
  670. data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
  671. data/lib/stripe/resources/issuing/authorization.rb +449 -8
  672. data/lib/stripe/resources/issuing/card.rb +264 -0
  673. data/lib/stripe/resources/issuing/cardholder.rb +242 -0
  674. data/lib/stripe/resources/issuing/dispute.rb +257 -3
  675. data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
  676. data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
  677. data/lib/stripe/resources/issuing/token.rb +163 -0
  678. data/lib/stripe/resources/issuing/transaction.rb +363 -0
  679. data/lib/stripe/resources/line_item.rb +71 -0
  680. data/lib/stripe/resources/login_link.rb +17 -1
  681. data/lib/stripe/resources/mandate.rb +358 -0
  682. data/lib/stripe/resources/payment_intent.rb +2775 -23
  683. data/lib/stripe/resources/payment_link.rb +686 -0
  684. data/lib/stripe/resources/payment_method.rb +1536 -12
  685. data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
  686. data/lib/stripe/resources/payment_method_domain.rb +209 -8
  687. data/lib/stripe/resources/payout.rb +81 -4
  688. data/lib/stripe/resources/person.rb +469 -2
  689. data/lib/stripe/resources/plan.rb +87 -1
  690. data/lib/stripe/resources/price.rb +192 -2
  691. data/lib/stripe/resources/product.rb +83 -0
  692. data/lib/stripe/resources/product_feature.rb +20 -0
  693. data/lib/stripe/resources/promotion_code.rb +86 -3
  694. data/lib/stripe/resources/quote.rb +510 -0
  695. data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
  696. data/lib/stripe/resources/radar/value_list.rb +31 -0
  697. data/lib/stripe/resources/radar/value_list_item.rb +25 -0
  698. data/lib/stripe/resources/refund.rb +614 -0
  699. data/lib/stripe/resources/reporting/report_run.rb +60 -0
  700. data/lib/stripe/resources/reporting/report_type.rb +27 -0
  701. data/lib/stripe/resources/reserve_transaction.rb +30 -0
  702. data/lib/stripe/resources/reversal.rb +30 -1
  703. data/lib/stripe/resources/review.rb +77 -1
  704. data/lib/stripe/resources/setup_attempt.rb +589 -0
  705. data/lib/stripe/resources/setup_intent.rb +574 -3
  706. data/lib/stripe/resources/shipping_rate.rb +107 -0
  707. data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
  708. data/lib/stripe/resources/source.rb +885 -2
  709. data/lib/stripe/resources/source_mandate_notification.rb +98 -0
  710. data/lib/stripe/resources/source_transaction.rb +139 -0
  711. data/lib/stripe/resources/subscription.rb +606 -9
  712. data/lib/stripe/resources/subscription_item.rb +60 -5
  713. data/lib/stripe/resources/subscription_schedule.rb +526 -0
  714. data/lib/stripe/resources/tax/calculation.rb +273 -0
  715. data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
  716. data/lib/stripe/resources/tax/registration.rb +2189 -0
  717. data/lib/stripe/resources/tax/settings.rb +114 -0
  718. data/lib/stripe/resources/tax/transaction.rb +231 -0
  719. data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
  720. data/lib/stripe/resources/tax_code.rb +17 -0
  721. data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  722. data/lib/stripe/resources/tax_id.rb +66 -0
  723. data/lib/stripe/resources/tax_rate.rb +63 -2
  724. data/lib/stripe/resources/terminal/configuration.rb +634 -0
  725. data/lib/stripe/resources/terminal/connection_token.rb +15 -0
  726. data/lib/stripe/resources/terminal/location.rb +112 -1
  727. data/lib/stripe/resources/terminal/reader.rb +605 -0
  728. data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
  729. data/lib/stripe/resources/token.rb +39 -2
  730. data/lib/stripe/resources/topup.rb +41 -0
  731. data/lib/stripe/resources/transfer.rb +44 -1
  732. data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
  733. data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
  734. data/lib/stripe/resources/treasury/financial_account.rb +145 -1
  735. data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
  736. data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
  737. data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
  738. data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
  739. data/lib/stripe/resources/treasury/received_credit.rb +214 -0
  740. data/lib/stripe/resources/treasury/received_debit.rb +177 -0
  741. data/lib/stripe/resources/treasury/transaction.rb +117 -0
  742. data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
  743. data/lib/stripe/resources/v2/amount.rb +9 -0
  744. data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
  745. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
  746. data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
  747. data/lib/stripe/resources/v2/core/event.rb +67 -0
  748. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  749. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  750. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  751. data/lib/stripe/resources/webhook_endpoint.rb +35 -0
  752. data/lib/stripe/resources.rb +13 -4
  753. data/lib/stripe/services/account_external_account_service.rb +1 -1
  754. data/lib/stripe/services/account_login_link_service.rb +1 -1
  755. data/lib/stripe/services/account_service.rb +12 -12
  756. data/lib/stripe/services/application_fee_service.rb +1 -1
  757. data/lib/stripe/services/apps_service.rb +1 -1
  758. data/lib/stripe/services/balance_service.rb +1 -1
  759. data/lib/stripe/services/balance_settings_service.rb +30 -0
  760. data/lib/stripe/services/billing/meter_service.rb +1 -1
  761. data/lib/stripe/services/billing_portal_service.rb +1 -1
  762. data/lib/stripe/services/billing_service.rb +1 -1
  763. data/lib/stripe/services/charge_service.rb +4 -4
  764. data/lib/stripe/services/checkout/session_service.rb +8 -6
  765. data/lib/stripe/services/checkout_service.rb +1 -1
  766. data/lib/stripe/services/climate_service.rb +1 -1
  767. data/lib/stripe/services/credit_note_service.rb +8 -9
  768. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  769. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  770. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  771. data/lib/stripe/services/customer_service.rb +6 -6
  772. data/lib/stripe/services/dispute_service.rb +1 -1
  773. data/lib/stripe/services/entitlements_service.rb +1 -1
  774. data/lib/stripe/services/exchange_rate_service.rb +4 -0
  775. data/lib/stripe/services/file_service.rb +1 -1
  776. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  777. data/lib/stripe/services/financial_connections_service.rb +1 -1
  778. data/lib/stripe/services/forwarding_service.rb +1 -1
  779. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  780. data/lib/stripe/services/identity_service.rb +1 -1
  781. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  782. data/lib/stripe/services/invoice_service.rb +34 -30
  783. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  784. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  785. data/lib/stripe/services/issuing_service.rb +1 -1
  786. data/lib/stripe/services/payment_intent_service.rb +20 -15
  787. data/lib/stripe/services/payment_link_service.rb +1 -1
  788. data/lib/stripe/services/payment_method_domain_service.rb +4 -4
  789. data/lib/stripe/services/payment_method_service.rb +9 -9
  790. data/lib/stripe/services/payout_service.rb +2 -2
  791. data/lib/stripe/services/plan_service.rb +1 -1
  792. data/lib/stripe/services/price_service.rb +3 -3
  793. data/lib/stripe/services/product_service.rb +2 -2
  794. data/lib/stripe/services/promotion_code_service.rb +2 -2
  795. data/lib/stripe/services/quote_service.rb +3 -3
  796. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  797. data/lib/stripe/services/radar_service.rb +1 -1
  798. data/lib/stripe/services/reporting_service.rb +1 -1
  799. data/lib/stripe/services/setup_intent_service.rb +3 -3
  800. data/lib/stripe/services/sigma_service.rb +1 -1
  801. data/lib/stripe/services/source_service.rb +2 -2
  802. data/lib/stripe/services/subscription_item_service.rb +0 -8
  803. data/lib/stripe/services/subscription_service.rb +19 -8
  804. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  805. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  806. data/lib/stripe/services/tax_service.rb +1 -1
  807. data/lib/stripe/services/terminal/location_service.rb +1 -1
  808. data/lib/stripe/services/terminal/reader_service.rb +33 -0
  809. data/lib/stripe/services/terminal_service.rb +1 -1
  810. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  811. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
  812. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  813. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  814. data/lib/stripe/services/test_helpers_service.rb +1 -1
  815. data/lib/stripe/services/token_service.rb +1 -1
  816. data/lib/stripe/services/transfer_service.rb +2 -2
  817. data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
  818. data/lib/stripe/services/treasury_service.rb +1 -1
  819. data/lib/stripe/services/v1_services.rb +7 -5
  820. data/lib/stripe/services/v2/billing_service.rb +4 -4
  821. data/lib/stripe/services/v2/core_service.rb +3 -3
  822. data/lib/stripe/services/v2_services.rb +1 -1
  823. data/lib/stripe/services.rb +2 -3
  824. data/lib/stripe/stripe_client.rb +10 -6
  825. data/lib/stripe/stripe_configuration.rb +1 -6
  826. data/lib/stripe/stripe_context.rb +68 -0
  827. data/lib/stripe/stripe_object.rb +57 -12
  828. data/lib/stripe/stripe_service.rb +3 -1
  829. data/lib/stripe/util.rb +34 -12
  830. data/lib/stripe/version.rb +1 -1
  831. data/lib/stripe/webhook.rb +1 -1
  832. data/lib/stripe.rb +6 -1
  833. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  834. data/rbi/stripe/stripe_client.rbi +17 -0
  835. data/rbi/stripe.rbi +132984 -0
  836. metadata +612 -28
  837. data/CHANGELOG.md +0 -1589
  838. data/CODE_OF_CONDUCT.md +0 -77
  839. data/CONTRIBUTORS +0 -3
  840. data/Gemfile +0 -37
  841. data/History.txt +0 -1
  842. data/LICENSE +0 -21
  843. data/Makefile +0 -22
  844. data/OPENAPI_VERSION +0 -1
  845. data/README.md +0 -422
  846. data/Rakefile +0 -34
  847. data/VERSION +0 -1
  848. data/examples/README.md +0 -16
  849. data/examples/example_template.rb +0 -36
  850. data/examples/meter_event_stream.rb +0 -57
  851. data/examples/thinevent_webhook_handler.rb +0 -39
  852. data/justfile +0 -43
  853. data/lib/stripe/resources/usage_record.rb +0 -17
  854. data/lib/stripe/resources/usage_record_summary.rb +0 -12
  855. data/lib/stripe/resources/v2/event.rb +0 -13
  856. data/lib/stripe/resources/v2/event_destination.rb +0 -13
  857. data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
  858. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
  859. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
  860. data/lib/stripe/thin_event.rb +0 -37
  861. data/stripe.gemspec +0 -44
@@ -24,6 +24,2729 @@ module Stripe
24
24
  "payment_intent"
25
25
  end
26
26
 
27
+ class AmountDetails < Stripe::StripeObject
28
+ class Tip < Stripe::StripeObject
29
+ # Portion of the amount that corresponds to a tip.
30
+ attr_reader :amount
31
+
32
+ def self.inner_class_types
33
+ @inner_class_types = {}
34
+ end
35
+
36
+ def self.field_remappings
37
+ @field_remappings = {}
38
+ end
39
+ end
40
+ # Attribute for field tip
41
+ attr_reader :tip
42
+
43
+ def self.inner_class_types
44
+ @inner_class_types = { tip: Tip }
45
+ end
46
+
47
+ def self.field_remappings
48
+ @field_remappings = {}
49
+ end
50
+ end
51
+
52
+ class AutomaticPaymentMethods < Stripe::StripeObject
53
+ # Controls whether this PaymentIntent will accept redirect-based payment methods.
54
+ #
55
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
56
+ attr_reader :allow_redirects
57
+ # Automatically calculates compatible payment methods
58
+ attr_reader :enabled
59
+
60
+ def self.inner_class_types
61
+ @inner_class_types = {}
62
+ end
63
+
64
+ def self.field_remappings
65
+ @field_remappings = {}
66
+ end
67
+ end
68
+
69
+ class LastPaymentError < Stripe::StripeObject
70
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
71
+ attr_reader :advice_code
72
+ # For card errors, the ID of the failed charge.
73
+ attr_reader :charge
74
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
75
+ attr_reader :code
76
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
77
+ attr_reader :decline_code
78
+ # A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
79
+ attr_reader :doc_url
80
+ # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
81
+ attr_reader :message
82
+ # 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.
83
+ attr_reader :network_advice_code
84
+ # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
85
+ attr_reader :network_decline_code
86
+ # 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.
87
+ attr_reader :param
88
+ # A PaymentIntent guides you through the process of collecting a payment from your customer.
89
+ # We recommend that you create exactly one PaymentIntent for each order or
90
+ # customer session in your system. You can reference the PaymentIntent later to
91
+ # see the history of payment attempts for a particular session.
92
+ #
93
+ # A PaymentIntent transitions through
94
+ # [multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
95
+ # throughout its lifetime as it interfaces with Stripe.js to perform
96
+ # authentication flows and ultimately creates at most one successful charge.
97
+ #
98
+ # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents)
99
+ attr_reader :payment_intent
100
+ # PaymentMethod objects represent your customer's payment instruments.
101
+ # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
102
+ # Customer objects to store instrument details for future payments.
103
+ #
104
+ # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
105
+ attr_reader :payment_method
106
+ # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
107
+ attr_reader :payment_method_type
108
+ # A URL to the request log entry in your dashboard.
109
+ attr_reader :request_log_url
110
+ # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
111
+ # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
112
+ # Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.
113
+ #
114
+ # Create a SetupIntent when you're ready to collect your customer's payment credentials.
115
+ # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
116
+ # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
117
+ # you through the setup process.
118
+ #
119
+ # Successful SetupIntents result in payment credentials that are optimized for future payments.
120
+ # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
121
+ # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
122
+ # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
123
+ # If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
124
+ # it automatically attaches the resulting payment method to that Customer after successful setup.
125
+ # We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
126
+ # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
127
+ #
128
+ # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
129
+ #
130
+ # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
131
+ attr_reader :setup_intent
132
+ # Attribute for field source
133
+ attr_reader :source
134
+ # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
135
+ attr_reader :type
136
+
137
+ def self.inner_class_types
138
+ @inner_class_types = {}
139
+ end
140
+
141
+ def self.field_remappings
142
+ @field_remappings = {}
143
+ end
144
+ end
145
+
146
+ class NextAction < Stripe::StripeObject
147
+ class AlipayHandleRedirect < Stripe::StripeObject
148
+ # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App.
149
+ attr_reader :native_data
150
+ # The native URL you must redirect your customer to in order to authenticate the payment in an iOS App.
151
+ attr_reader :native_url
152
+ # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
153
+ attr_reader :return_url
154
+ # The URL you must redirect your customer to in order to authenticate the payment.
155
+ attr_reader :url
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
+
166
+ class BoletoDisplayDetails < Stripe::StripeObject
167
+ # The timestamp after which the boleto expires.
168
+ attr_reader :expires_at
169
+ # The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher.
170
+ attr_reader :hosted_voucher_url
171
+ # The boleto number.
172
+ attr_reader :number
173
+ # The URL to the downloadable boleto voucher PDF.
174
+ attr_reader :pdf
175
+
176
+ def self.inner_class_types
177
+ @inner_class_types = {}
178
+ end
179
+
180
+ def self.field_remappings
181
+ @field_remappings = {}
182
+ end
183
+ end
184
+
185
+ class CardAwaitNotification < Stripe::StripeObject
186
+ # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time.
187
+ attr_reader :charge_attempt_at
188
+ # 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.
189
+ attr_reader :customer_approval_required
190
+
191
+ def self.inner_class_types
192
+ @inner_class_types = {}
193
+ end
194
+
195
+ def self.field_remappings
196
+ @field_remappings = {}
197
+ end
198
+ end
199
+
200
+ class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject
201
+ class QrCode < Stripe::StripeObject
202
+ # The date (unix timestamp) when the QR code expires.
203
+ attr_reader :expires_at
204
+ # The image_url_png string used to render QR code
205
+ attr_reader :image_url_png
206
+ # The image_url_svg string used to render QR code
207
+ attr_reader :image_url_svg
208
+
209
+ def self.inner_class_types
210
+ @inner_class_types = {}
211
+ end
212
+
213
+ def self.field_remappings
214
+ @field_remappings = {}
215
+ end
216
+ end
217
+ # 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.
218
+ attr_reader :hosted_instructions_url
219
+ # The url for mobile redirect based auth
220
+ attr_reader :mobile_auth_url
221
+ # Attribute for field qr_code
222
+ attr_reader :qr_code
223
+
224
+ def self.inner_class_types
225
+ @inner_class_types = { qr_code: QrCode }
226
+ end
227
+
228
+ def self.field_remappings
229
+ @field_remappings = {}
230
+ end
231
+ end
232
+
233
+ class DisplayBankTransferInstructions < Stripe::StripeObject
234
+ class FinancialAddress < Stripe::StripeObject
235
+ class Aba < Stripe::StripeObject
236
+ class AccountHolderAddress < Stripe::StripeObject
237
+ # City, district, suburb, town, or village.
238
+ attr_reader :city
239
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
240
+ attr_reader :country
241
+ # Address line 1, such as the street, PO Box, or company name.
242
+ attr_reader :line1
243
+ # Address line 2, such as the apartment, suite, unit, or building.
244
+ attr_reader :line2
245
+ # ZIP or postal code.
246
+ attr_reader :postal_code
247
+ # State, county, province, or region.
248
+ attr_reader :state
249
+
250
+ def self.inner_class_types
251
+ @inner_class_types = {}
252
+ end
253
+
254
+ def self.field_remappings
255
+ @field_remappings = {}
256
+ end
257
+ end
258
+
259
+ class BankAddress < Stripe::StripeObject
260
+ # City, district, suburb, town, or village.
261
+ attr_reader :city
262
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
263
+ attr_reader :country
264
+ # Address line 1, such as the street, PO Box, or company name.
265
+ attr_reader :line1
266
+ # Address line 2, such as the apartment, suite, unit, or building.
267
+ attr_reader :line2
268
+ # ZIP or postal code.
269
+ attr_reader :postal_code
270
+ # State, county, province, or region.
271
+ attr_reader :state
272
+
273
+ def self.inner_class_types
274
+ @inner_class_types = {}
275
+ end
276
+
277
+ def self.field_remappings
278
+ @field_remappings = {}
279
+ end
280
+ end
281
+ # Attribute for field account_holder_address
282
+ attr_reader :account_holder_address
283
+ # The account holder name
284
+ attr_reader :account_holder_name
285
+ # The ABA account number
286
+ attr_reader :account_number
287
+ # The account type
288
+ attr_reader :account_type
289
+ # Attribute for field bank_address
290
+ attr_reader :bank_address
291
+ # The bank name
292
+ attr_reader :bank_name
293
+ # The ABA routing number
294
+ attr_reader :routing_number
295
+
296
+ def self.inner_class_types
297
+ @inner_class_types = {
298
+ account_holder_address: AccountHolderAddress,
299
+ bank_address: BankAddress,
300
+ }
301
+ end
302
+
303
+ def self.field_remappings
304
+ @field_remappings = {}
305
+ end
306
+ end
307
+
308
+ class Iban < Stripe::StripeObject
309
+ class AccountHolderAddress < Stripe::StripeObject
310
+ # City, district, suburb, town, or village.
311
+ attr_reader :city
312
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
313
+ attr_reader :country
314
+ # Address line 1, such as the street, PO Box, or company name.
315
+ attr_reader :line1
316
+ # Address line 2, such as the apartment, suite, unit, or building.
317
+ attr_reader :line2
318
+ # ZIP or postal code.
319
+ attr_reader :postal_code
320
+ # State, county, province, or region.
321
+ attr_reader :state
322
+
323
+ def self.inner_class_types
324
+ @inner_class_types = {}
325
+ end
326
+
327
+ def self.field_remappings
328
+ @field_remappings = {}
329
+ end
330
+ end
331
+
332
+ class BankAddress < Stripe::StripeObject
333
+ # City, district, suburb, town, or village.
334
+ attr_reader :city
335
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
336
+ attr_reader :country
337
+ # Address line 1, such as the street, PO Box, or company name.
338
+ attr_reader :line1
339
+ # Address line 2, such as the apartment, suite, unit, or building.
340
+ attr_reader :line2
341
+ # ZIP or postal code.
342
+ attr_reader :postal_code
343
+ # State, county, province, or region.
344
+ attr_reader :state
345
+
346
+ def self.inner_class_types
347
+ @inner_class_types = {}
348
+ end
349
+
350
+ def self.field_remappings
351
+ @field_remappings = {}
352
+ end
353
+ end
354
+ # Attribute for field account_holder_address
355
+ attr_reader :account_holder_address
356
+ # The name of the person or business that owns the bank account
357
+ attr_reader :account_holder_name
358
+ # Attribute for field bank_address
359
+ attr_reader :bank_address
360
+ # The BIC/SWIFT code of the account.
361
+ attr_reader :bic
362
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
363
+ attr_reader :country
364
+ # The IBAN of the account.
365
+ attr_reader :iban
366
+
367
+ def self.inner_class_types
368
+ @inner_class_types = {
369
+ account_holder_address: AccountHolderAddress,
370
+ bank_address: BankAddress,
371
+ }
372
+ end
373
+
374
+ def self.field_remappings
375
+ @field_remappings = {}
376
+ end
377
+ end
378
+
379
+ class SortCode < Stripe::StripeObject
380
+ class AccountHolderAddress < Stripe::StripeObject
381
+ # City, district, suburb, town, or village.
382
+ attr_reader :city
383
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
384
+ attr_reader :country
385
+ # Address line 1, such as the street, PO Box, or company name.
386
+ attr_reader :line1
387
+ # Address line 2, such as the apartment, suite, unit, or building.
388
+ attr_reader :line2
389
+ # ZIP or postal code.
390
+ attr_reader :postal_code
391
+ # State, county, province, or region.
392
+ attr_reader :state
393
+
394
+ def self.inner_class_types
395
+ @inner_class_types = {}
396
+ end
397
+
398
+ def self.field_remappings
399
+ @field_remappings = {}
400
+ end
401
+ end
402
+
403
+ class BankAddress < Stripe::StripeObject
404
+ # City, district, suburb, town, or village.
405
+ attr_reader :city
406
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
407
+ attr_reader :country
408
+ # Address line 1, such as the street, PO Box, or company name.
409
+ attr_reader :line1
410
+ # Address line 2, such as the apartment, suite, unit, or building.
411
+ attr_reader :line2
412
+ # ZIP or postal code.
413
+ attr_reader :postal_code
414
+ # State, county, province, or region.
415
+ attr_reader :state
416
+
417
+ def self.inner_class_types
418
+ @inner_class_types = {}
419
+ end
420
+
421
+ def self.field_remappings
422
+ @field_remappings = {}
423
+ end
424
+ end
425
+ # Attribute for field account_holder_address
426
+ attr_reader :account_holder_address
427
+ # The name of the person or business that owns the bank account
428
+ attr_reader :account_holder_name
429
+ # The account number
430
+ attr_reader :account_number
431
+ # Attribute for field bank_address
432
+ attr_reader :bank_address
433
+ # The six-digit sort code
434
+ attr_reader :sort_code
435
+
436
+ def self.inner_class_types
437
+ @inner_class_types = {
438
+ account_holder_address: AccountHolderAddress,
439
+ bank_address: BankAddress,
440
+ }
441
+ end
442
+
443
+ def self.field_remappings
444
+ @field_remappings = {}
445
+ end
446
+ end
447
+
448
+ class Spei < Stripe::StripeObject
449
+ class AccountHolderAddress < Stripe::StripeObject
450
+ # City, district, suburb, town, or village.
451
+ attr_reader :city
452
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
453
+ attr_reader :country
454
+ # Address line 1, such as the street, PO Box, or company name.
455
+ attr_reader :line1
456
+ # Address line 2, such as the apartment, suite, unit, or building.
457
+ attr_reader :line2
458
+ # ZIP or postal code.
459
+ attr_reader :postal_code
460
+ # State, county, province, or region.
461
+ attr_reader :state
462
+
463
+ def self.inner_class_types
464
+ @inner_class_types = {}
465
+ end
466
+
467
+ def self.field_remappings
468
+ @field_remappings = {}
469
+ end
470
+ end
471
+
472
+ class BankAddress < Stripe::StripeObject
473
+ # City, district, suburb, town, or village.
474
+ attr_reader :city
475
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
476
+ attr_reader :country
477
+ # Address line 1, such as the street, PO Box, or company name.
478
+ attr_reader :line1
479
+ # Address line 2, such as the apartment, suite, unit, or building.
480
+ attr_reader :line2
481
+ # ZIP or postal code.
482
+ attr_reader :postal_code
483
+ # State, county, province, or region.
484
+ attr_reader :state
485
+
486
+ def self.inner_class_types
487
+ @inner_class_types = {}
488
+ end
489
+
490
+ def self.field_remappings
491
+ @field_remappings = {}
492
+ end
493
+ end
494
+ # Attribute for field account_holder_address
495
+ attr_reader :account_holder_address
496
+ # The account holder name
497
+ attr_reader :account_holder_name
498
+ # Attribute for field bank_address
499
+ attr_reader :bank_address
500
+ # The three-digit bank code
501
+ attr_reader :bank_code
502
+ # The short banking institution name
503
+ attr_reader :bank_name
504
+ # The CLABE number
505
+ attr_reader :clabe
506
+
507
+ def self.inner_class_types
508
+ @inner_class_types = {
509
+ account_holder_address: AccountHolderAddress,
510
+ bank_address: BankAddress,
511
+ }
512
+ end
513
+
514
+ def self.field_remappings
515
+ @field_remappings = {}
516
+ end
517
+ end
518
+
519
+ class Swift < Stripe::StripeObject
520
+ class AccountHolderAddress < Stripe::StripeObject
521
+ # City, district, suburb, town, or village.
522
+ attr_reader :city
523
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
524
+ attr_reader :country
525
+ # Address line 1, such as the street, PO Box, or company name.
526
+ attr_reader :line1
527
+ # Address line 2, such as the apartment, suite, unit, or building.
528
+ attr_reader :line2
529
+ # ZIP or postal code.
530
+ attr_reader :postal_code
531
+ # State, county, province, or region.
532
+ attr_reader :state
533
+
534
+ def self.inner_class_types
535
+ @inner_class_types = {}
536
+ end
537
+
538
+ def self.field_remappings
539
+ @field_remappings = {}
540
+ end
541
+ end
542
+
543
+ class BankAddress < Stripe::StripeObject
544
+ # City, district, suburb, town, or village.
545
+ attr_reader :city
546
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
547
+ attr_reader :country
548
+ # Address line 1, such as the street, PO Box, or company name.
549
+ attr_reader :line1
550
+ # Address line 2, such as the apartment, suite, unit, or building.
551
+ attr_reader :line2
552
+ # ZIP or postal code.
553
+ attr_reader :postal_code
554
+ # State, county, province, or region.
555
+ attr_reader :state
556
+
557
+ def self.inner_class_types
558
+ @inner_class_types = {}
559
+ end
560
+
561
+ def self.field_remappings
562
+ @field_remappings = {}
563
+ end
564
+ end
565
+ # Attribute for field account_holder_address
566
+ attr_reader :account_holder_address
567
+ # The account holder name
568
+ attr_reader :account_holder_name
569
+ # The account number
570
+ attr_reader :account_number
571
+ # The account type
572
+ attr_reader :account_type
573
+ # Attribute for field bank_address
574
+ attr_reader :bank_address
575
+ # The bank name
576
+ attr_reader :bank_name
577
+ # The SWIFT code
578
+ attr_reader :swift_code
579
+
580
+ def self.inner_class_types
581
+ @inner_class_types = {
582
+ account_holder_address: AccountHolderAddress,
583
+ bank_address: BankAddress,
584
+ }
585
+ end
586
+
587
+ def self.field_remappings
588
+ @field_remappings = {}
589
+ end
590
+ end
591
+
592
+ class Zengin < Stripe::StripeObject
593
+ class AccountHolderAddress < Stripe::StripeObject
594
+ # City, district, suburb, town, or village.
595
+ attr_reader :city
596
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
597
+ attr_reader :country
598
+ # Address line 1, such as the street, PO Box, or company name.
599
+ attr_reader :line1
600
+ # Address line 2, such as the apartment, suite, unit, or building.
601
+ attr_reader :line2
602
+ # ZIP or postal code.
603
+ attr_reader :postal_code
604
+ # State, county, province, or region.
605
+ attr_reader :state
606
+
607
+ def self.inner_class_types
608
+ @inner_class_types = {}
609
+ end
610
+
611
+ def self.field_remappings
612
+ @field_remappings = {}
613
+ end
614
+ end
615
+
616
+ class BankAddress < Stripe::StripeObject
617
+ # City, district, suburb, town, or village.
618
+ attr_reader :city
619
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
620
+ attr_reader :country
621
+ # Address line 1, such as the street, PO Box, or company name.
622
+ attr_reader :line1
623
+ # Address line 2, such as the apartment, suite, unit, or building.
624
+ attr_reader :line2
625
+ # ZIP or postal code.
626
+ attr_reader :postal_code
627
+ # State, county, province, or region.
628
+ attr_reader :state
629
+
630
+ def self.inner_class_types
631
+ @inner_class_types = {}
632
+ end
633
+
634
+ def self.field_remappings
635
+ @field_remappings = {}
636
+ end
637
+ end
638
+ # Attribute for field account_holder_address
639
+ attr_reader :account_holder_address
640
+ # The account holder name
641
+ attr_reader :account_holder_name
642
+ # The account number
643
+ attr_reader :account_number
644
+ # The bank account type. In Japan, this can only be `futsu` or `toza`.
645
+ attr_reader :account_type
646
+ # Attribute for field bank_address
647
+ attr_reader :bank_address
648
+ # The bank code of the account
649
+ attr_reader :bank_code
650
+ # The bank name of the account
651
+ attr_reader :bank_name
652
+ # The branch code of the account
653
+ attr_reader :branch_code
654
+ # The branch name of the account
655
+ attr_reader :branch_name
656
+
657
+ def self.inner_class_types
658
+ @inner_class_types = {
659
+ account_holder_address: AccountHolderAddress,
660
+ bank_address: BankAddress,
661
+ }
662
+ end
663
+
664
+ def self.field_remappings
665
+ @field_remappings = {}
666
+ end
667
+ end
668
+ # ABA Records contain U.S. bank account details per the ABA format.
669
+ attr_reader :aba
670
+ # Iban Records contain E.U. bank account details per the SEPA format.
671
+ attr_reader :iban
672
+ # Sort Code Records contain U.K. bank account details per the sort code format.
673
+ attr_reader :sort_code
674
+ # SPEI Records contain Mexico bank account details per the SPEI format.
675
+ attr_reader :spei
676
+ # The payment networks supported by this FinancialAddress
677
+ attr_reader :supported_networks
678
+ # SWIFT Records contain U.S. bank account details per the SWIFT format.
679
+ attr_reader :swift
680
+ # The type of financial address
681
+ attr_reader :type
682
+ # Zengin Records contain Japan bank account details per the Zengin format.
683
+ attr_reader :zengin
684
+
685
+ def self.inner_class_types
686
+ @inner_class_types = {
687
+ aba: Aba,
688
+ iban: Iban,
689
+ sort_code: SortCode,
690
+ spei: Spei,
691
+ swift: Swift,
692
+ zengin: Zengin,
693
+ }
694
+ end
695
+
696
+ def self.field_remappings
697
+ @field_remappings = {}
698
+ end
699
+ end
700
+ # The remaining amount that needs to be transferred to complete the payment.
701
+ attr_reader :amount_remaining
702
+ # 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).
703
+ attr_reader :currency
704
+ # A list of financial addresses that can be used to fund the customer balance
705
+ attr_reader :financial_addresses
706
+ # A link to a hosted page that guides your customer through completing the transfer.
707
+ attr_reader :hosted_instructions_url
708
+ # A string identifying this payment. Instruct your customer to include this code in the reference or memo field of their bank transfer.
709
+ attr_reader :reference
710
+ # Type of bank transfer
711
+ attr_reader :type
712
+
713
+ def self.inner_class_types
714
+ @inner_class_types = { financial_addresses: FinancialAddress }
715
+ end
716
+
717
+ def self.field_remappings
718
+ @field_remappings = {}
719
+ end
720
+ end
721
+
722
+ class KonbiniDisplayDetails < Stripe::StripeObject
723
+ class Stores < Stripe::StripeObject
724
+ class Familymart < Stripe::StripeObject
725
+ # The confirmation number.
726
+ attr_reader :confirmation_number
727
+ # The payment code.
728
+ attr_reader :payment_code
729
+
730
+ def self.inner_class_types
731
+ @inner_class_types = {}
732
+ end
733
+
734
+ def self.field_remappings
735
+ @field_remappings = {}
736
+ end
737
+ end
738
+
739
+ class Lawson < Stripe::StripeObject
740
+ # The confirmation number.
741
+ attr_reader :confirmation_number
742
+ # The payment code.
743
+ attr_reader :payment_code
744
+
745
+ def self.inner_class_types
746
+ @inner_class_types = {}
747
+ end
748
+
749
+ def self.field_remappings
750
+ @field_remappings = {}
751
+ end
752
+ end
753
+
754
+ class Ministop < Stripe::StripeObject
755
+ # The confirmation number.
756
+ attr_reader :confirmation_number
757
+ # The payment code.
758
+ attr_reader :payment_code
759
+
760
+ def self.inner_class_types
761
+ @inner_class_types = {}
762
+ end
763
+
764
+ def self.field_remappings
765
+ @field_remappings = {}
766
+ end
767
+ end
768
+
769
+ class Seicomart < Stripe::StripeObject
770
+ # The confirmation number.
771
+ attr_reader :confirmation_number
772
+ # The payment code.
773
+ attr_reader :payment_code
774
+
775
+ def self.inner_class_types
776
+ @inner_class_types = {}
777
+ end
778
+
779
+ def self.field_remappings
780
+ @field_remappings = {}
781
+ end
782
+ end
783
+ # FamilyMart instruction details.
784
+ attr_reader :familymart
785
+ # Lawson instruction details.
786
+ attr_reader :lawson
787
+ # Ministop instruction details.
788
+ attr_reader :ministop
789
+ # Seicomart instruction details.
790
+ attr_reader :seicomart
791
+
792
+ def self.inner_class_types
793
+ @inner_class_types = {
794
+ familymart: Familymart,
795
+ lawson: Lawson,
796
+ ministop: Ministop,
797
+ seicomart: Seicomart,
798
+ }
799
+ end
800
+
801
+ def self.field_remappings
802
+ @field_remappings = {}
803
+ end
804
+ end
805
+ # The timestamp at which the pending Konbini payment expires.
806
+ attr_reader :expires_at
807
+ # The URL for the Konbini payment instructions page, which allows customers to view and print a Konbini voucher.
808
+ attr_reader :hosted_voucher_url
809
+ # Attribute for field stores
810
+ attr_reader :stores
811
+
812
+ def self.inner_class_types
813
+ @inner_class_types = { stores: Stores }
814
+ end
815
+
816
+ def self.field_remappings
817
+ @field_remappings = {}
818
+ end
819
+ end
820
+
821
+ class MultibancoDisplayDetails < Stripe::StripeObject
822
+ # Entity number associated with this Multibanco payment.
823
+ attr_reader :entity
824
+ # The timestamp at which the Multibanco voucher expires.
825
+ attr_reader :expires_at
826
+ # The URL for the hosted Multibanco voucher page, which allows customers to view a Multibanco voucher.
827
+ attr_reader :hosted_voucher_url
828
+ # Reference number associated with this Multibanco payment.
829
+ attr_reader :reference
830
+
831
+ def self.inner_class_types
832
+ @inner_class_types = {}
833
+ end
834
+
835
+ def self.field_remappings
836
+ @field_remappings = {}
837
+ end
838
+ end
839
+
840
+ class OxxoDisplayDetails < Stripe::StripeObject
841
+ # The timestamp after which the OXXO voucher expires.
842
+ attr_reader :expires_after
843
+ # The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher.
844
+ attr_reader :hosted_voucher_url
845
+ # OXXO reference number.
846
+ attr_reader :number
847
+
848
+ def self.inner_class_types
849
+ @inner_class_types = {}
850
+ end
851
+
852
+ def self.field_remappings
853
+ @field_remappings = {}
854
+ end
855
+ end
856
+
857
+ class PaynowDisplayQrCode < Stripe::StripeObject
858
+ # The raw data string used to generate QR code, it should be used together with QR code library.
859
+ attr_reader :data
860
+ # The URL to the hosted PayNow instructions page, which allows customers to view the PayNow QR code.
861
+ attr_reader :hosted_instructions_url
862
+ # The image_url_png string used to render QR code
863
+ attr_reader :image_url_png
864
+ # The image_url_svg string used to render QR code
865
+ attr_reader :image_url_svg
866
+
867
+ def self.inner_class_types
868
+ @inner_class_types = {}
869
+ end
870
+
871
+ def self.field_remappings
872
+ @field_remappings = {}
873
+ end
874
+ end
875
+
876
+ class PixDisplayQrCode < Stripe::StripeObject
877
+ # The raw data string used to generate QR code, it should be used together with QR code library.
878
+ attr_reader :data
879
+ # The date (unix timestamp) when the PIX expires.
880
+ attr_reader :expires_at
881
+ # The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
882
+ attr_reader :hosted_instructions_url
883
+ # The image_url_png string used to render png QR code
884
+ attr_reader :image_url_png
885
+ # The image_url_svg string used to render svg QR code
886
+ attr_reader :image_url_svg
887
+
888
+ def self.inner_class_types
889
+ @inner_class_types = {}
890
+ end
891
+
892
+ def self.field_remappings
893
+ @field_remappings = {}
894
+ end
895
+ end
896
+
897
+ class PromptpayDisplayQrCode < Stripe::StripeObject
898
+ # The raw data string used to generate QR code, it should be used together with QR code library.
899
+ attr_reader :data
900
+ # The URL to the hosted PromptPay instructions page, which allows customers to view the PromptPay QR code.
901
+ attr_reader :hosted_instructions_url
902
+ # The PNG path used to render the QR code, can be used as the source in an HTML img tag
903
+ attr_reader :image_url_png
904
+ # The SVG path used to render the QR code, can be used as the source in an HTML img tag
905
+ attr_reader :image_url_svg
906
+
907
+ def self.inner_class_types
908
+ @inner_class_types = {}
909
+ end
910
+
911
+ def self.field_remappings
912
+ @field_remappings = {}
913
+ end
914
+ end
915
+
916
+ class RedirectToUrl < Stripe::StripeObject
917
+ # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
918
+ attr_reader :return_url
919
+ # The URL you must redirect your customer to in order to authenticate the payment.
920
+ attr_reader :url
921
+
922
+ def self.inner_class_types
923
+ @inner_class_types = {}
924
+ end
925
+
926
+ def self.field_remappings
927
+ @field_remappings = {}
928
+ end
929
+ end
930
+
931
+ class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject
932
+ class QrCode < Stripe::StripeObject
933
+ # The raw data string used to generate QR code, it should be used together with QR code library.
934
+ attr_reader :data
935
+ # The image_url_png string used to render QR code
936
+ attr_reader :image_url_png
937
+ # The image_url_svg string used to render QR code
938
+ attr_reader :image_url_svg
939
+
940
+ def self.inner_class_types
941
+ @inner_class_types = {}
942
+ end
943
+
944
+ def self.field_remappings
945
+ @field_remappings = {}
946
+ end
947
+ end
948
+ # The URL to the hosted Swish instructions page, which allows customers to view the QR code.
949
+ attr_reader :hosted_instructions_url
950
+ # The url for mobile redirect based auth (for internal use only and not typically available in standard API requests).
951
+ attr_reader :mobile_auth_url
952
+ # Attribute for field qr_code
953
+ attr_reader :qr_code
954
+
955
+ def self.inner_class_types
956
+ @inner_class_types = { qr_code: QrCode }
957
+ end
958
+
959
+ def self.field_remappings
960
+ @field_remappings = {}
961
+ end
962
+ end
963
+
964
+ class VerifyWithMicrodeposits < Stripe::StripeObject
965
+ # The timestamp when the microdeposits are expected to land.
966
+ attr_reader :arrival_date
967
+ # The URL for the hosted verification page, which allows customers to verify their bank account.
968
+ attr_reader :hosted_verification_url
969
+ # The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
970
+ attr_reader :microdeposit_type
971
+
972
+ def self.inner_class_types
973
+ @inner_class_types = {}
974
+ end
975
+
976
+ def self.field_remappings
977
+ @field_remappings = {}
978
+ end
979
+ end
980
+
981
+ class WechatPayDisplayQrCode < Stripe::StripeObject
982
+ # The data being used to generate QR code
983
+ attr_reader :data
984
+ # The URL to the hosted WeChat Pay instructions page, which allows customers to view the WeChat Pay QR code.
985
+ attr_reader :hosted_instructions_url
986
+ # The base64 image data for a pre-generated QR code
987
+ attr_reader :image_data_url
988
+ # The image_url_png string used to render QR code
989
+ attr_reader :image_url_png
990
+ # The image_url_svg string used to render QR code
991
+ attr_reader :image_url_svg
992
+
993
+ def self.inner_class_types
994
+ @inner_class_types = {}
995
+ end
996
+
997
+ def self.field_remappings
998
+ @field_remappings = {}
999
+ end
1000
+ end
1001
+
1002
+ class WechatPayRedirectToAndroidApp < Stripe::StripeObject
1003
+ # app_id is the APP ID registered on WeChat open platform
1004
+ attr_reader :app_id
1005
+ # nonce_str is a random string
1006
+ attr_reader :nonce_str
1007
+ # package is static value
1008
+ attr_reader :package
1009
+ # an unique merchant ID assigned by WeChat Pay
1010
+ attr_reader :partner_id
1011
+ # an unique trading ID assigned by WeChat Pay
1012
+ attr_reader :prepay_id
1013
+ # A signature
1014
+ attr_reader :sign
1015
+ # Specifies the current time in epoch format
1016
+ attr_reader :timestamp
1017
+
1018
+ def self.inner_class_types
1019
+ @inner_class_types = {}
1020
+ end
1021
+
1022
+ def self.field_remappings
1023
+ @field_remappings = {}
1024
+ end
1025
+ end
1026
+
1027
+ class WechatPayRedirectToIosApp < Stripe::StripeObject
1028
+ # An universal link that redirect to WeChat Pay app
1029
+ attr_reader :native_url
1030
+
1031
+ def self.inner_class_types
1032
+ @inner_class_types = {}
1033
+ end
1034
+
1035
+ def self.field_remappings
1036
+ @field_remappings = {}
1037
+ end
1038
+ end
1039
+ # Attribute for field alipay_handle_redirect
1040
+ attr_reader :alipay_handle_redirect
1041
+ # Attribute for field boleto_display_details
1042
+ attr_reader :boleto_display_details
1043
+ # Attribute for field card_await_notification
1044
+ attr_reader :card_await_notification
1045
+ # Attribute for field cashapp_handle_redirect_or_display_qr_code
1046
+ attr_reader :cashapp_handle_redirect_or_display_qr_code
1047
+ # Attribute for field display_bank_transfer_instructions
1048
+ attr_reader :display_bank_transfer_instructions
1049
+ # Attribute for field konbini_display_details
1050
+ attr_reader :konbini_display_details
1051
+ # Attribute for field multibanco_display_details
1052
+ attr_reader :multibanco_display_details
1053
+ # Attribute for field oxxo_display_details
1054
+ attr_reader :oxxo_display_details
1055
+ # Attribute for field paynow_display_qr_code
1056
+ attr_reader :paynow_display_qr_code
1057
+ # Attribute for field pix_display_qr_code
1058
+ attr_reader :pix_display_qr_code
1059
+ # Attribute for field promptpay_display_qr_code
1060
+ attr_reader :promptpay_display_qr_code
1061
+ # Attribute for field redirect_to_url
1062
+ attr_reader :redirect_to_url
1063
+ # Attribute for field swish_handle_redirect_or_display_qr_code
1064
+ attr_reader :swish_handle_redirect_or_display_qr_code
1065
+ # Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
1066
+ attr_reader :type
1067
+ # When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
1068
+ attr_reader :use_stripe_sdk
1069
+ # Attribute for field verify_with_microdeposits
1070
+ attr_reader :verify_with_microdeposits
1071
+ # Attribute for field wechat_pay_display_qr_code
1072
+ attr_reader :wechat_pay_display_qr_code
1073
+ # Attribute for field wechat_pay_redirect_to_android_app
1074
+ attr_reader :wechat_pay_redirect_to_android_app
1075
+ # Attribute for field wechat_pay_redirect_to_ios_app
1076
+ attr_reader :wechat_pay_redirect_to_ios_app
1077
+
1078
+ def self.inner_class_types
1079
+ @inner_class_types = {
1080
+ alipay_handle_redirect: AlipayHandleRedirect,
1081
+ boleto_display_details: BoletoDisplayDetails,
1082
+ card_await_notification: CardAwaitNotification,
1083
+ cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
1084
+ display_bank_transfer_instructions: DisplayBankTransferInstructions,
1085
+ konbini_display_details: KonbiniDisplayDetails,
1086
+ multibanco_display_details: MultibancoDisplayDetails,
1087
+ oxxo_display_details: OxxoDisplayDetails,
1088
+ paynow_display_qr_code: PaynowDisplayQrCode,
1089
+ pix_display_qr_code: PixDisplayQrCode,
1090
+ promptpay_display_qr_code: PromptpayDisplayQrCode,
1091
+ redirect_to_url: RedirectToUrl,
1092
+ swish_handle_redirect_or_display_qr_code: SwishHandleRedirectOrDisplayQrCode,
1093
+ verify_with_microdeposits: VerifyWithMicrodeposits,
1094
+ wechat_pay_display_qr_code: WechatPayDisplayQrCode,
1095
+ wechat_pay_redirect_to_android_app: WechatPayRedirectToAndroidApp,
1096
+ wechat_pay_redirect_to_ios_app: WechatPayRedirectToIosApp,
1097
+ }
1098
+ end
1099
+
1100
+ def self.field_remappings
1101
+ @field_remappings = {}
1102
+ end
1103
+ end
1104
+
1105
+ class PaymentMethodConfigurationDetails < Stripe::StripeObject
1106
+ # ID of the payment method configuration used.
1107
+ attr_reader :id
1108
+ # ID of the parent payment method configuration used.
1109
+ attr_reader :parent
1110
+
1111
+ def self.inner_class_types
1112
+ @inner_class_types = {}
1113
+ end
1114
+
1115
+ def self.field_remappings
1116
+ @field_remappings = {}
1117
+ end
1118
+ end
1119
+
1120
+ class PaymentMethodOptions < Stripe::StripeObject
1121
+ class AcssDebit < Stripe::StripeObject
1122
+ class MandateOptions < Stripe::StripeObject
1123
+ # A URL for custom mandate text
1124
+ attr_reader :custom_mandate_url
1125
+ # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
1126
+ attr_reader :interval_description
1127
+ # Payment schedule for the mandate.
1128
+ attr_reader :payment_schedule
1129
+ # Transaction type of the mandate.
1130
+ attr_reader :transaction_type
1131
+
1132
+ def self.inner_class_types
1133
+ @inner_class_types = {}
1134
+ end
1135
+
1136
+ def self.field_remappings
1137
+ @field_remappings = {}
1138
+ end
1139
+ end
1140
+ # Attribute for field mandate_options
1141
+ attr_reader :mandate_options
1142
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1143
+ #
1144
+ # 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.
1145
+ #
1146
+ # 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.
1147
+ #
1148
+ # 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).
1149
+ attr_reader :setup_future_usage
1150
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1151
+ attr_reader :target_date
1152
+ # Bank account verification method.
1153
+ attr_reader :verification_method
1154
+
1155
+ def self.inner_class_types
1156
+ @inner_class_types = { mandate_options: MandateOptions }
1157
+ end
1158
+
1159
+ def self.field_remappings
1160
+ @field_remappings = {}
1161
+ end
1162
+ end
1163
+
1164
+ class Affirm < Stripe::StripeObject
1165
+ # Controls when the funds will be captured from the customer's account.
1166
+ attr_reader :capture_method
1167
+ # Preferred language of the Affirm authorization page that the customer is redirected to.
1168
+ attr_reader :preferred_locale
1169
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1170
+ #
1171
+ # 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.
1172
+ #
1173
+ # 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.
1174
+ #
1175
+ # 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).
1176
+ attr_reader :setup_future_usage
1177
+
1178
+ def self.inner_class_types
1179
+ @inner_class_types = {}
1180
+ end
1181
+
1182
+ def self.field_remappings
1183
+ @field_remappings = {}
1184
+ end
1185
+ end
1186
+
1187
+ class AfterpayClearpay < Stripe::StripeObject
1188
+ # Controls when the funds will be captured from the customer's account.
1189
+ attr_reader :capture_method
1190
+ # 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.
1191
+ # This field differs from the statement descriptor and item name.
1192
+ attr_reader :reference
1193
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1194
+ #
1195
+ # 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.
1196
+ #
1197
+ # 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.
1198
+ #
1199
+ # 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).
1200
+ attr_reader :setup_future_usage
1201
+
1202
+ def self.inner_class_types
1203
+ @inner_class_types = {}
1204
+ end
1205
+
1206
+ def self.field_remappings
1207
+ @field_remappings = {}
1208
+ end
1209
+ end
1210
+
1211
+ class Alipay < Stripe::StripeObject
1212
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1213
+ #
1214
+ # 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.
1215
+ #
1216
+ # 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.
1217
+ #
1218
+ # 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).
1219
+ attr_reader :setup_future_usage
1220
+
1221
+ def self.inner_class_types
1222
+ @inner_class_types = {}
1223
+ end
1224
+
1225
+ def self.field_remappings
1226
+ @field_remappings = {}
1227
+ end
1228
+ end
1229
+
1230
+ class Alma < Stripe::StripeObject
1231
+ # Controls when the funds will be captured from the customer's account.
1232
+ attr_reader :capture_method
1233
+
1234
+ def self.inner_class_types
1235
+ @inner_class_types = {}
1236
+ end
1237
+
1238
+ def self.field_remappings
1239
+ @field_remappings = {}
1240
+ end
1241
+ end
1242
+
1243
+ class AmazonPay < Stripe::StripeObject
1244
+ # Controls when the funds will be captured from the customer's account.
1245
+ attr_reader :capture_method
1246
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1247
+ #
1248
+ # 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.
1249
+ #
1250
+ # 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.
1251
+ #
1252
+ # 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).
1253
+ attr_reader :setup_future_usage
1254
+
1255
+ def self.inner_class_types
1256
+ @inner_class_types = {}
1257
+ end
1258
+
1259
+ def self.field_remappings
1260
+ @field_remappings = {}
1261
+ end
1262
+ end
1263
+
1264
+ class AuBecsDebit < Stripe::StripeObject
1265
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1266
+ #
1267
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1268
+ #
1269
+ # 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.
1270
+ #
1271
+ # 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).
1272
+ attr_reader :setup_future_usage
1273
+ # 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.
1274
+ attr_reader :target_date
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 BacsDebit < Stripe::StripeObject
1286
+ class MandateOptions < Stripe::StripeObject
1287
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
1288
+ attr_reader :reference_prefix
1289
+
1290
+ def self.inner_class_types
1291
+ @inner_class_types = {}
1292
+ end
1293
+
1294
+ def self.field_remappings
1295
+ @field_remappings = {}
1296
+ end
1297
+ end
1298
+ # Attribute for field mandate_options
1299
+ attr_reader :mandate_options
1300
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1301
+ #
1302
+ # 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.
1303
+ #
1304
+ # 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.
1305
+ #
1306
+ # 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).
1307
+ attr_reader :setup_future_usage
1308
+ # 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.
1309
+ attr_reader :target_date
1310
+
1311
+ def self.inner_class_types
1312
+ @inner_class_types = { mandate_options: MandateOptions }
1313
+ end
1314
+
1315
+ def self.field_remappings
1316
+ @field_remappings = {}
1317
+ end
1318
+ end
1319
+
1320
+ class Bancontact < Stripe::StripeObject
1321
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
1322
+ attr_reader :preferred_language
1323
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1324
+ #
1325
+ # 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.
1326
+ #
1327
+ # 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.
1328
+ #
1329
+ # 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).
1330
+ attr_reader :setup_future_usage
1331
+
1332
+ def self.inner_class_types
1333
+ @inner_class_types = {}
1334
+ end
1335
+
1336
+ def self.field_remappings
1337
+ @field_remappings = {}
1338
+ end
1339
+ end
1340
+
1341
+ class Billie < Stripe::StripeObject
1342
+ # Controls when the funds will be captured from the customer's account.
1343
+ attr_reader :capture_method
1344
+
1345
+ def self.inner_class_types
1346
+ @inner_class_types = {}
1347
+ end
1348
+
1349
+ def self.field_remappings
1350
+ @field_remappings = {}
1351
+ end
1352
+ end
1353
+
1354
+ class Blik < Stripe::StripeObject
1355
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1356
+ #
1357
+ # 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.
1358
+ #
1359
+ # 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.
1360
+ #
1361
+ # 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).
1362
+ attr_reader :setup_future_usage
1363
+
1364
+ def self.inner_class_types
1365
+ @inner_class_types = {}
1366
+ end
1367
+
1368
+ def self.field_remappings
1369
+ @field_remappings = {}
1370
+ end
1371
+ end
1372
+
1373
+ class Boleto < Stripe::StripeObject
1374
+ # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
1375
+ attr_reader :expires_after_days
1376
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1377
+ #
1378
+ # 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.
1379
+ #
1380
+ # 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.
1381
+ #
1382
+ # 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).
1383
+ attr_reader :setup_future_usage
1384
+
1385
+ def self.inner_class_types
1386
+ @inner_class_types = {}
1387
+ end
1388
+
1389
+ def self.field_remappings
1390
+ @field_remappings = {}
1391
+ end
1392
+ end
1393
+
1394
+ class Card < Stripe::StripeObject
1395
+ class Installments < Stripe::StripeObject
1396
+ class AvailablePlan < Stripe::StripeObject
1397
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1398
+ attr_reader :count
1399
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
1400
+ # One of `month`.
1401
+ attr_reader :interval
1402
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1403
+ attr_reader :type
1404
+
1405
+ def self.inner_class_types
1406
+ @inner_class_types = {}
1407
+ end
1408
+
1409
+ def self.field_remappings
1410
+ @field_remappings = {}
1411
+ end
1412
+ end
1413
+
1414
+ class Plan < Stripe::StripeObject
1415
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
1416
+ attr_reader :count
1417
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
1418
+ # One of `month`.
1419
+ attr_reader :interval
1420
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1421
+ attr_reader :type
1422
+
1423
+ def self.inner_class_types
1424
+ @inner_class_types = {}
1425
+ end
1426
+
1427
+ def self.field_remappings
1428
+ @field_remappings = {}
1429
+ end
1430
+ end
1431
+ # Installment plans that may be selected for this PaymentIntent.
1432
+ attr_reader :available_plans
1433
+ # Whether Installments are enabled for this PaymentIntent.
1434
+ attr_reader :enabled
1435
+ # Installment plan selected for this PaymentIntent.
1436
+ attr_reader :plan
1437
+
1438
+ def self.inner_class_types
1439
+ @inner_class_types = { available_plans: AvailablePlan, plan: Plan }
1440
+ end
1441
+
1442
+ def self.field_remappings
1443
+ @field_remappings = {}
1444
+ end
1445
+ end
1446
+
1447
+ class MandateOptions < Stripe::StripeObject
1448
+ # Amount to be charged for future payments.
1449
+ attr_reader :amount
1450
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1451
+ attr_reader :amount_type
1452
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
1453
+ attr_reader :description
1454
+ # 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.
1455
+ attr_reader :end_date
1456
+ # Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
1457
+ attr_reader :interval
1458
+ # 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`.
1459
+ attr_reader :interval_count
1460
+ # Unique identifier for the mandate or subscription.
1461
+ attr_reader :reference
1462
+ # Start date of the mandate or subscription. Start date should not be lesser than yesterday.
1463
+ attr_reader :start_date
1464
+ # Specifies the type of mandates supported. Possible values are `india`.
1465
+ attr_reader :supported_types
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = {}
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
1474
+ end
1475
+ # Controls when the funds will be captured from the customer's account.
1476
+ attr_reader :capture_method
1477
+ # Installment details for this payment.
1478
+ #
1479
+ # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1480
+ attr_reader :installments
1481
+ # Configuration options for setting up an eMandate for cards issued in India.
1482
+ attr_reader :mandate_options
1483
+ # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
1484
+ attr_reader :network
1485
+ # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1486
+ attr_reader :request_extended_authorization
1487
+ # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
1488
+ attr_reader :request_incremental_authorization
1489
+ # Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent.
1490
+ attr_reader :request_multicapture
1491
+ # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1492
+ attr_reader :request_overcapture
1493
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1494
+ attr_reader :request_three_d_secure
1495
+ # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
1496
+ attr_reader :require_cvc_recollection
1497
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1498
+ #
1499
+ # 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.
1500
+ #
1501
+ # 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.
1502
+ #
1503
+ # 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).
1504
+ attr_reader :setup_future_usage
1505
+ # 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.
1506
+ attr_reader :statement_descriptor_suffix_kana
1507
+ # 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.
1508
+ attr_reader :statement_descriptor_suffix_kanji
1509
+
1510
+ def self.inner_class_types
1511
+ @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
1512
+ end
1513
+
1514
+ def self.field_remappings
1515
+ @field_remappings = {}
1516
+ end
1517
+ end
1518
+
1519
+ class CardPresent < Stripe::StripeObject
1520
+ class Routing < Stripe::StripeObject
1521
+ # Requested routing priority
1522
+ attr_reader :requested_priority
1523
+
1524
+ def self.inner_class_types
1525
+ @inner_class_types = {}
1526
+ end
1527
+
1528
+ def self.field_remappings
1529
+ @field_remappings = {}
1530
+ end
1531
+ end
1532
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
1533
+ attr_reader :request_extended_authorization
1534
+ # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
1535
+ attr_reader :request_incremental_authorization_support
1536
+ # Attribute for field routing
1537
+ attr_reader :routing
1538
+
1539
+ def self.inner_class_types
1540
+ @inner_class_types = { routing: Routing }
1541
+ end
1542
+
1543
+ def self.field_remappings
1544
+ @field_remappings = {}
1545
+ end
1546
+ end
1547
+
1548
+ class Cashapp < Stripe::StripeObject
1549
+ # Controls when the funds will be captured from the customer's account.
1550
+ attr_reader :capture_method
1551
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1552
+ #
1553
+ # 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.
1554
+ #
1555
+ # 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.
1556
+ #
1557
+ # 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).
1558
+ attr_reader :setup_future_usage
1559
+
1560
+ def self.inner_class_types
1561
+ @inner_class_types = {}
1562
+ end
1563
+
1564
+ def self.field_remappings
1565
+ @field_remappings = {}
1566
+ end
1567
+ end
1568
+
1569
+ class Crypto < Stripe::StripeObject
1570
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1571
+ #
1572
+ # 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.
1573
+ #
1574
+ # 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.
1575
+ #
1576
+ # 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).
1577
+ attr_reader :setup_future_usage
1578
+
1579
+ def self.inner_class_types
1580
+ @inner_class_types = {}
1581
+ end
1582
+
1583
+ def self.field_remappings
1584
+ @field_remappings = {}
1585
+ end
1586
+ end
1587
+
1588
+ class CustomerBalance < Stripe::StripeObject
1589
+ class BankTransfer < Stripe::StripeObject
1590
+ class EuBankTransfer < Stripe::StripeObject
1591
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1592
+ attr_reader :country
1593
+
1594
+ def self.inner_class_types
1595
+ @inner_class_types = {}
1596
+ end
1597
+
1598
+ def self.field_remappings
1599
+ @field_remappings = {}
1600
+ end
1601
+ end
1602
+ # Attribute for field eu_bank_transfer
1603
+ attr_reader :eu_bank_transfer
1604
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1605
+ #
1606
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1607
+ attr_reader :requested_address_types
1608
+ # 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`.
1609
+ attr_reader :type
1610
+
1611
+ def self.inner_class_types
1612
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
1613
+ end
1614
+
1615
+ def self.field_remappings
1616
+ @field_remappings = {}
1617
+ end
1618
+ end
1619
+ # Attribute for field bank_transfer
1620
+ attr_reader :bank_transfer
1621
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1622
+ attr_reader :funding_type
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
+
1632
+ def self.inner_class_types
1633
+ @inner_class_types = { bank_transfer: BankTransfer }
1634
+ end
1635
+
1636
+ def self.field_remappings
1637
+ @field_remappings = {}
1638
+ end
1639
+ end
1640
+
1641
+ class Eps < Stripe::StripeObject
1642
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1643
+ #
1644
+ # 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.
1645
+ #
1646
+ # 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.
1647
+ #
1648
+ # 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).
1649
+ attr_reader :setup_future_usage
1650
+
1651
+ def self.inner_class_types
1652
+ @inner_class_types = {}
1653
+ end
1654
+
1655
+ def self.field_remappings
1656
+ @field_remappings = {}
1657
+ end
1658
+ end
1659
+
1660
+ class Fpx < Stripe::StripeObject
1661
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1662
+ #
1663
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1664
+ #
1665
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1666
+ #
1667
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1668
+ attr_reader :setup_future_usage
1669
+
1670
+ def self.inner_class_types
1671
+ @inner_class_types = {}
1672
+ end
1673
+
1674
+ def self.field_remappings
1675
+ @field_remappings = {}
1676
+ end
1677
+ end
1678
+
1679
+ class Giropay < Stripe::StripeObject
1680
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1681
+ #
1682
+ # 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.
1683
+ #
1684
+ # 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.
1685
+ #
1686
+ # 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).
1687
+ attr_reader :setup_future_usage
1688
+
1689
+ def self.inner_class_types
1690
+ @inner_class_types = {}
1691
+ end
1692
+
1693
+ def self.field_remappings
1694
+ @field_remappings = {}
1695
+ end
1696
+ end
1697
+
1698
+ class Grabpay < Stripe::StripeObject
1699
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1700
+ #
1701
+ # 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.
1702
+ #
1703
+ # 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.
1704
+ #
1705
+ # 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).
1706
+ attr_reader :setup_future_usage
1707
+
1708
+ def self.inner_class_types
1709
+ @inner_class_types = {}
1710
+ end
1711
+
1712
+ def self.field_remappings
1713
+ @field_remappings = {}
1714
+ end
1715
+ end
1716
+
1717
+ class Ideal < Stripe::StripeObject
1718
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1719
+ #
1720
+ # 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.
1721
+ #
1722
+ # 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.
1723
+ #
1724
+ # 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).
1725
+ attr_reader :setup_future_usage
1726
+
1727
+ def self.inner_class_types
1728
+ @inner_class_types = {}
1729
+ end
1730
+
1731
+ def self.field_remappings
1732
+ @field_remappings = {}
1733
+ end
1734
+ end
1735
+
1736
+ class InteracPresent < Stripe::StripeObject
1737
+ def self.inner_class_types
1738
+ @inner_class_types = {}
1739
+ end
1740
+
1741
+ def self.field_remappings
1742
+ @field_remappings = {}
1743
+ end
1744
+ end
1745
+
1746
+ class KakaoPay < Stripe::StripeObject
1747
+ # Controls when the funds will be captured from the customer's account.
1748
+ attr_reader :capture_method
1749
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1750
+ #
1751
+ # 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.
1752
+ #
1753
+ # 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.
1754
+ #
1755
+ # 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).
1756
+ attr_reader :setup_future_usage
1757
+
1758
+ def self.inner_class_types
1759
+ @inner_class_types = {}
1760
+ end
1761
+
1762
+ def self.field_remappings
1763
+ @field_remappings = {}
1764
+ end
1765
+ end
1766
+
1767
+ class Klarna < Stripe::StripeObject
1768
+ # Controls when the funds will be captured from the customer's account.
1769
+ attr_reader :capture_method
1770
+ # Preferred locale of the Klarna checkout page that the customer is redirected to.
1771
+ attr_reader :preferred_locale
1772
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1773
+ #
1774
+ # 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.
1775
+ #
1776
+ # 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.
1777
+ #
1778
+ # 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).
1779
+ attr_reader :setup_future_usage
1780
+
1781
+ def self.inner_class_types
1782
+ @inner_class_types = {}
1783
+ end
1784
+
1785
+ def self.field_remappings
1786
+ @field_remappings = {}
1787
+ end
1788
+ end
1789
+
1790
+ class Konbini < Stripe::StripeObject
1791
+ # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores.
1792
+ attr_reader :confirmation_number
1793
+ # 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.
1794
+ attr_reader :expires_after_days
1795
+ # The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
1796
+ attr_reader :expires_at
1797
+ # A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
1798
+ attr_reader :product_description
1799
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1800
+ #
1801
+ # 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.
1802
+ #
1803
+ # 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.
1804
+ #
1805
+ # 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).
1806
+ attr_reader :setup_future_usage
1807
+
1808
+ def self.inner_class_types
1809
+ @inner_class_types = {}
1810
+ end
1811
+
1812
+ def self.field_remappings
1813
+ @field_remappings = {}
1814
+ end
1815
+ end
1816
+
1817
+ class KrCard < Stripe::StripeObject
1818
+ # Controls when the funds will be captured from the customer's account.
1819
+ attr_reader :capture_method
1820
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1821
+ #
1822
+ # 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.
1823
+ #
1824
+ # 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.
1825
+ #
1826
+ # 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).
1827
+ attr_reader :setup_future_usage
1828
+
1829
+ def self.inner_class_types
1830
+ @inner_class_types = {}
1831
+ end
1832
+
1833
+ def self.field_remappings
1834
+ @field_remappings = {}
1835
+ end
1836
+ end
1837
+
1838
+ class Link < Stripe::StripeObject
1839
+ # Controls when the funds will be captured from the customer's account.
1840
+ attr_reader :capture_method
1841
+ # [Deprecated] This is a legacy parameter that no longer has any function.
1842
+ attr_reader :persistent_token
1843
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1844
+ #
1845
+ # 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.
1846
+ #
1847
+ # 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.
1848
+ #
1849
+ # 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).
1850
+ attr_reader :setup_future_usage
1851
+
1852
+ def self.inner_class_types
1853
+ @inner_class_types = {}
1854
+ end
1855
+
1856
+ def self.field_remappings
1857
+ @field_remappings = {}
1858
+ end
1859
+ end
1860
+
1861
+ class MbWay < Stripe::StripeObject
1862
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1863
+ #
1864
+ # 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.
1865
+ #
1866
+ # 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.
1867
+ #
1868
+ # 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).
1869
+ attr_reader :setup_future_usage
1870
+
1871
+ def self.inner_class_types
1872
+ @inner_class_types = {}
1873
+ end
1874
+
1875
+ def self.field_remappings
1876
+ @field_remappings = {}
1877
+ end
1878
+ end
1879
+
1880
+ class Mobilepay < Stripe::StripeObject
1881
+ # Controls when the funds will be captured from the customer's account.
1882
+ attr_reader :capture_method
1883
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1884
+ #
1885
+ # 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.
1886
+ #
1887
+ # 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.
1888
+ #
1889
+ # 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).
1890
+ attr_reader :setup_future_usage
1891
+
1892
+ def self.inner_class_types
1893
+ @inner_class_types = {}
1894
+ end
1895
+
1896
+ def self.field_remappings
1897
+ @field_remappings = {}
1898
+ end
1899
+ end
1900
+
1901
+ class Multibanco < Stripe::StripeObject
1902
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1903
+ #
1904
+ # 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.
1905
+ #
1906
+ # 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.
1907
+ #
1908
+ # 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).
1909
+ attr_reader :setup_future_usage
1910
+
1911
+ def self.inner_class_types
1912
+ @inner_class_types = {}
1913
+ end
1914
+
1915
+ def self.field_remappings
1916
+ @field_remappings = {}
1917
+ end
1918
+ end
1919
+
1920
+ class NaverPay < Stripe::StripeObject
1921
+ # Controls when the funds will be captured from the customer's account.
1922
+ attr_reader :capture_method
1923
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1924
+ #
1925
+ # 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.
1926
+ #
1927
+ # 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.
1928
+ #
1929
+ # 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).
1930
+ attr_reader :setup_future_usage
1931
+
1932
+ def self.inner_class_types
1933
+ @inner_class_types = {}
1934
+ end
1935
+
1936
+ def self.field_remappings
1937
+ @field_remappings = {}
1938
+ end
1939
+ end
1940
+
1941
+ class NzBankAccount < Stripe::StripeObject
1942
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1943
+ #
1944
+ # 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.
1945
+ #
1946
+ # 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.
1947
+ #
1948
+ # 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).
1949
+ attr_reader :setup_future_usage
1950
+ # 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.
1951
+ attr_reader :target_date
1952
+
1953
+ def self.inner_class_types
1954
+ @inner_class_types = {}
1955
+ end
1956
+
1957
+ def self.field_remappings
1958
+ @field_remappings = {}
1959
+ end
1960
+ end
1961
+
1962
+ class Oxxo < Stripe::StripeObject
1963
+ # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1964
+ attr_reader :expires_after_days
1965
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1966
+ #
1967
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1968
+ #
1969
+ # 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.
1970
+ #
1971
+ # 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).
1972
+ attr_reader :setup_future_usage
1973
+
1974
+ def self.inner_class_types
1975
+ @inner_class_types = {}
1976
+ end
1977
+
1978
+ def self.field_remappings
1979
+ @field_remappings = {}
1980
+ end
1981
+ end
1982
+
1983
+ class P24 < Stripe::StripeObject
1984
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1985
+ #
1986
+ # 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.
1987
+ #
1988
+ # 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.
1989
+ #
1990
+ # 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).
1991
+ attr_reader :setup_future_usage
1992
+
1993
+ def self.inner_class_types
1994
+ @inner_class_types = {}
1995
+ end
1996
+
1997
+ def self.field_remappings
1998
+ @field_remappings = {}
1999
+ end
2000
+ end
2001
+
2002
+ class PayByBank < Stripe::StripeObject
2003
+ def self.inner_class_types
2004
+ @inner_class_types = {}
2005
+ end
2006
+
2007
+ def self.field_remappings
2008
+ @field_remappings = {}
2009
+ end
2010
+ end
2011
+
2012
+ class Payco < Stripe::StripeObject
2013
+ # Controls when the funds will be captured from the customer's account.
2014
+ attr_reader :capture_method
2015
+
2016
+ def self.inner_class_types
2017
+ @inner_class_types = {}
2018
+ end
2019
+
2020
+ def self.field_remappings
2021
+ @field_remappings = {}
2022
+ end
2023
+ end
2024
+
2025
+ class Paynow < Stripe::StripeObject
2026
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2027
+ #
2028
+ # 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.
2029
+ #
2030
+ # 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.
2031
+ #
2032
+ # 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).
2033
+ attr_reader :setup_future_usage
2034
+
2035
+ def self.inner_class_types
2036
+ @inner_class_types = {}
2037
+ end
2038
+
2039
+ def self.field_remappings
2040
+ @field_remappings = {}
2041
+ end
2042
+ end
2043
+
2044
+ class Paypal < Stripe::StripeObject
2045
+ # Controls when the funds will be captured from the customer's account.
2046
+ attr_reader :capture_method
2047
+ # Preferred locale of the PayPal checkout page that the customer is redirected to.
2048
+ attr_reader :preferred_locale
2049
+ # 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.
2050
+ attr_reader :reference
2051
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2052
+ #
2053
+ # 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.
2054
+ #
2055
+ # 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.
2056
+ #
2057
+ # 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).
2058
+ attr_reader :setup_future_usage
2059
+
2060
+ def self.inner_class_types
2061
+ @inner_class_types = {}
2062
+ end
2063
+
2064
+ def self.field_remappings
2065
+ @field_remappings = {}
2066
+ end
2067
+ end
2068
+
2069
+ class Pix < Stripe::StripeObject
2070
+ # Determines if the amount includes the IOF tax.
2071
+ attr_reader :amount_includes_iof
2072
+ # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2073
+ attr_reader :expires_after_seconds
2074
+ # The timestamp at which the Pix expires.
2075
+ attr_reader :expires_at
2076
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2077
+ #
2078
+ # 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.
2079
+ #
2080
+ # 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.
2081
+ #
2082
+ # 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).
2083
+ attr_reader :setup_future_usage
2084
+
2085
+ def self.inner_class_types
2086
+ @inner_class_types = {}
2087
+ end
2088
+
2089
+ def self.field_remappings
2090
+ @field_remappings = {}
2091
+ end
2092
+ end
2093
+
2094
+ class Promptpay < Stripe::StripeObject
2095
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2096
+ #
2097
+ # 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.
2098
+ #
2099
+ # 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.
2100
+ #
2101
+ # 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).
2102
+ attr_reader :setup_future_usage
2103
+
2104
+ def self.inner_class_types
2105
+ @inner_class_types = {}
2106
+ end
2107
+
2108
+ def self.field_remappings
2109
+ @field_remappings = {}
2110
+ end
2111
+ end
2112
+
2113
+ class RevolutPay < Stripe::StripeObject
2114
+ # Controls when the funds will be captured from the customer's account.
2115
+ attr_reader :capture_method
2116
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2117
+ #
2118
+ # 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.
2119
+ #
2120
+ # 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.
2121
+ #
2122
+ # 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).
2123
+ attr_reader :setup_future_usage
2124
+
2125
+ def self.inner_class_types
2126
+ @inner_class_types = {}
2127
+ end
2128
+
2129
+ def self.field_remappings
2130
+ @field_remappings = {}
2131
+ end
2132
+ end
2133
+
2134
+ class SamsungPay < Stripe::StripeObject
2135
+ # Controls when the funds will be captured from the customer's account.
2136
+ attr_reader :capture_method
2137
+
2138
+ def self.inner_class_types
2139
+ @inner_class_types = {}
2140
+ end
2141
+
2142
+ def self.field_remappings
2143
+ @field_remappings = {}
2144
+ end
2145
+ end
2146
+
2147
+ class Satispay < Stripe::StripeObject
2148
+ # Controls when the funds will be captured from the customer's account.
2149
+ attr_reader :capture_method
2150
+
2151
+ def self.inner_class_types
2152
+ @inner_class_types = {}
2153
+ end
2154
+
2155
+ def self.field_remappings
2156
+ @field_remappings = {}
2157
+ end
2158
+ end
2159
+
2160
+ class SepaDebit < Stripe::StripeObject
2161
+ class MandateOptions < Stripe::StripeObject
2162
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
2163
+ attr_reader :reference_prefix
2164
+
2165
+ def self.inner_class_types
2166
+ @inner_class_types = {}
2167
+ end
2168
+
2169
+ def self.field_remappings
2170
+ @field_remappings = {}
2171
+ end
2172
+ end
2173
+ # Attribute for field mandate_options
2174
+ attr_reader :mandate_options
2175
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2176
+ #
2177
+ # 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.
2178
+ #
2179
+ # 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.
2180
+ #
2181
+ # 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).
2182
+ attr_reader :setup_future_usage
2183
+ # 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.
2184
+ attr_reader :target_date
2185
+
2186
+ def self.inner_class_types
2187
+ @inner_class_types = { mandate_options: MandateOptions }
2188
+ end
2189
+
2190
+ def self.field_remappings
2191
+ @field_remappings = {}
2192
+ end
2193
+ end
2194
+
2195
+ class Sofort < Stripe::StripeObject
2196
+ # Preferred language of the SOFORT authorization page that the customer is redirected to.
2197
+ attr_reader :preferred_language
2198
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2199
+ #
2200
+ # 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.
2201
+ #
2202
+ # 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.
2203
+ #
2204
+ # 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).
2205
+ attr_reader :setup_future_usage
2206
+
2207
+ def self.inner_class_types
2208
+ @inner_class_types = {}
2209
+ end
2210
+
2211
+ def self.field_remappings
2212
+ @field_remappings = {}
2213
+ end
2214
+ end
2215
+
2216
+ class Swish < Stripe::StripeObject
2217
+ # A reference for this payment to be displayed in the Swish app.
2218
+ attr_reader :reference
2219
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2220
+ #
2221
+ # 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.
2222
+ #
2223
+ # 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.
2224
+ #
2225
+ # 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).
2226
+ attr_reader :setup_future_usage
2227
+
2228
+ def self.inner_class_types
2229
+ @inner_class_types = {}
2230
+ end
2231
+
2232
+ def self.field_remappings
2233
+ @field_remappings = {}
2234
+ end
2235
+ end
2236
+
2237
+ class Twint < Stripe::StripeObject
2238
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2239
+ #
2240
+ # 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.
2241
+ #
2242
+ # 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.
2243
+ #
2244
+ # 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).
2245
+ attr_reader :setup_future_usage
2246
+
2247
+ def self.inner_class_types
2248
+ @inner_class_types = {}
2249
+ end
2250
+
2251
+ def self.field_remappings
2252
+ @field_remappings = {}
2253
+ end
2254
+ end
2255
+
2256
+ class UsBankAccount < Stripe::StripeObject
2257
+ class FinancialConnections < Stripe::StripeObject
2258
+ class Filters < Stripe::StripeObject
2259
+ # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2260
+ attr_reader :account_subcategories
2261
+
2262
+ def self.inner_class_types
2263
+ @inner_class_types = {}
2264
+ end
2265
+
2266
+ def self.field_remappings
2267
+ @field_remappings = {}
2268
+ end
2269
+ end
2270
+ # Attribute for field filters
2271
+ attr_reader :filters
2272
+ # The list of permissions to request. The `payment_method` permission must be included.
2273
+ attr_reader :permissions
2274
+ # Data features requested to be retrieved upon account creation.
2275
+ attr_reader :prefetch
2276
+ # 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.
2277
+ attr_reader :return_url
2278
+
2279
+ def self.inner_class_types
2280
+ @inner_class_types = { filters: Filters }
2281
+ end
2282
+
2283
+ def self.field_remappings
2284
+ @field_remappings = {}
2285
+ end
2286
+ end
2287
+
2288
+ class MandateOptions < Stripe::StripeObject
2289
+ # Mandate collection method
2290
+ attr_reader :collection_method
2291
+
2292
+ def self.inner_class_types
2293
+ @inner_class_types = {}
2294
+ end
2295
+
2296
+ def self.field_remappings
2297
+ @field_remappings = {}
2298
+ end
2299
+ end
2300
+ # Attribute for field financial_connections
2301
+ attr_reader :financial_connections
2302
+ # Attribute for field mandate_options
2303
+ attr_reader :mandate_options
2304
+ # Preferred transaction settlement speed
2305
+ attr_reader :preferred_settlement_speed
2306
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2307
+ #
2308
+ # 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.
2309
+ #
2310
+ # 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.
2311
+ #
2312
+ # 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).
2313
+ attr_reader :setup_future_usage
2314
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2315
+ attr_reader :target_date
2316
+ # Bank account verification method.
2317
+ attr_reader :verification_method
2318
+
2319
+ def self.inner_class_types
2320
+ @inner_class_types = {
2321
+ financial_connections: FinancialConnections,
2322
+ mandate_options: MandateOptions,
2323
+ }
2324
+ end
2325
+
2326
+ def self.field_remappings
2327
+ @field_remappings = {}
2328
+ end
2329
+ end
2330
+
2331
+ class WechatPay < Stripe::StripeObject
2332
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
2333
+ attr_reader :app_id
2334
+ # The client type that the end customer will pay from
2335
+ attr_reader :client
2336
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2337
+ #
2338
+ # 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.
2339
+ #
2340
+ # 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.
2341
+ #
2342
+ # 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).
2343
+ attr_reader :setup_future_usage
2344
+
2345
+ def self.inner_class_types
2346
+ @inner_class_types = {}
2347
+ end
2348
+
2349
+ def self.field_remappings
2350
+ @field_remappings = {}
2351
+ end
2352
+ end
2353
+
2354
+ class Zip < Stripe::StripeObject
2355
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2356
+ #
2357
+ # 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.
2358
+ #
2359
+ # 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.
2360
+ #
2361
+ # 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).
2362
+ attr_reader :setup_future_usage
2363
+
2364
+ def self.inner_class_types
2365
+ @inner_class_types = {}
2366
+ end
2367
+
2368
+ def self.field_remappings
2369
+ @field_remappings = {}
2370
+ end
2371
+ end
2372
+ # Attribute for field acss_debit
2373
+ attr_reader :acss_debit
2374
+ # Attribute for field affirm
2375
+ attr_reader :affirm
2376
+ # Attribute for field afterpay_clearpay
2377
+ attr_reader :afterpay_clearpay
2378
+ # Attribute for field alipay
2379
+ attr_reader :alipay
2380
+ # Attribute for field alma
2381
+ attr_reader :alma
2382
+ # Attribute for field amazon_pay
2383
+ attr_reader :amazon_pay
2384
+ # Attribute for field au_becs_debit
2385
+ attr_reader :au_becs_debit
2386
+ # Attribute for field bacs_debit
2387
+ attr_reader :bacs_debit
2388
+ # Attribute for field bancontact
2389
+ attr_reader :bancontact
2390
+ # Attribute for field billie
2391
+ attr_reader :billie
2392
+ # Attribute for field blik
2393
+ attr_reader :blik
2394
+ # Attribute for field boleto
2395
+ attr_reader :boleto
2396
+ # Attribute for field card
2397
+ attr_reader :card
2398
+ # Attribute for field card_present
2399
+ attr_reader :card_present
2400
+ # Attribute for field cashapp
2401
+ attr_reader :cashapp
2402
+ # Attribute for field crypto
2403
+ attr_reader :crypto
2404
+ # Attribute for field customer_balance
2405
+ attr_reader :customer_balance
2406
+ # Attribute for field eps
2407
+ attr_reader :eps
2408
+ # Attribute for field fpx
2409
+ attr_reader :fpx
2410
+ # Attribute for field giropay
2411
+ attr_reader :giropay
2412
+ # Attribute for field grabpay
2413
+ attr_reader :grabpay
2414
+ # Attribute for field ideal
2415
+ attr_reader :ideal
2416
+ # Attribute for field interac_present
2417
+ attr_reader :interac_present
2418
+ # Attribute for field kakao_pay
2419
+ attr_reader :kakao_pay
2420
+ # Attribute for field klarna
2421
+ attr_reader :klarna
2422
+ # Attribute for field konbini
2423
+ attr_reader :konbini
2424
+ # Attribute for field kr_card
2425
+ attr_reader :kr_card
2426
+ # Attribute for field link
2427
+ attr_reader :link
2428
+ # Attribute for field mb_way
2429
+ attr_reader :mb_way
2430
+ # Attribute for field mobilepay
2431
+ attr_reader :mobilepay
2432
+ # Attribute for field multibanco
2433
+ attr_reader :multibanco
2434
+ # Attribute for field naver_pay
2435
+ attr_reader :naver_pay
2436
+ # Attribute for field nz_bank_account
2437
+ attr_reader :nz_bank_account
2438
+ # Attribute for field oxxo
2439
+ attr_reader :oxxo
2440
+ # Attribute for field p24
2441
+ attr_reader :p24
2442
+ # Attribute for field pay_by_bank
2443
+ attr_reader :pay_by_bank
2444
+ # Attribute for field payco
2445
+ attr_reader :payco
2446
+ # Attribute for field paynow
2447
+ attr_reader :paynow
2448
+ # Attribute for field paypal
2449
+ attr_reader :paypal
2450
+ # Attribute for field pix
2451
+ attr_reader :pix
2452
+ # Attribute for field promptpay
2453
+ attr_reader :promptpay
2454
+ # Attribute for field revolut_pay
2455
+ attr_reader :revolut_pay
2456
+ # Attribute for field samsung_pay
2457
+ attr_reader :samsung_pay
2458
+ # Attribute for field satispay
2459
+ attr_reader :satispay
2460
+ # Attribute for field sepa_debit
2461
+ attr_reader :sepa_debit
2462
+ # Attribute for field sofort
2463
+ attr_reader :sofort
2464
+ # Attribute for field swish
2465
+ attr_reader :swish
2466
+ # Attribute for field twint
2467
+ attr_reader :twint
2468
+ # Attribute for field us_bank_account
2469
+ attr_reader :us_bank_account
2470
+ # Attribute for field wechat_pay
2471
+ attr_reader :wechat_pay
2472
+ # Attribute for field zip
2473
+ attr_reader :zip
2474
+
2475
+ def self.inner_class_types
2476
+ @inner_class_types = {
2477
+ acss_debit: AcssDebit,
2478
+ affirm: Affirm,
2479
+ afterpay_clearpay: AfterpayClearpay,
2480
+ alipay: Alipay,
2481
+ alma: Alma,
2482
+ amazon_pay: AmazonPay,
2483
+ au_becs_debit: AuBecsDebit,
2484
+ bacs_debit: BacsDebit,
2485
+ bancontact: Bancontact,
2486
+ billie: Billie,
2487
+ blik: Blik,
2488
+ boleto: Boleto,
2489
+ card: Card,
2490
+ card_present: CardPresent,
2491
+ cashapp: Cashapp,
2492
+ crypto: Crypto,
2493
+ customer_balance: CustomerBalance,
2494
+ eps: Eps,
2495
+ fpx: Fpx,
2496
+ giropay: Giropay,
2497
+ grabpay: Grabpay,
2498
+ ideal: Ideal,
2499
+ interac_present: InteracPresent,
2500
+ kakao_pay: KakaoPay,
2501
+ klarna: Klarna,
2502
+ konbini: Konbini,
2503
+ kr_card: KrCard,
2504
+ link: Link,
2505
+ mb_way: MbWay,
2506
+ mobilepay: Mobilepay,
2507
+ multibanco: Multibanco,
2508
+ naver_pay: NaverPay,
2509
+ nz_bank_account: NzBankAccount,
2510
+ oxxo: Oxxo,
2511
+ p24: P24,
2512
+ pay_by_bank: PayByBank,
2513
+ payco: Payco,
2514
+ paynow: Paynow,
2515
+ paypal: Paypal,
2516
+ pix: Pix,
2517
+ promptpay: Promptpay,
2518
+ revolut_pay: RevolutPay,
2519
+ samsung_pay: SamsungPay,
2520
+ satispay: Satispay,
2521
+ sepa_debit: SepaDebit,
2522
+ sofort: Sofort,
2523
+ swish: Swish,
2524
+ twint: Twint,
2525
+ us_bank_account: UsBankAccount,
2526
+ wechat_pay: WechatPay,
2527
+ zip: Zip,
2528
+ }
2529
+ end
2530
+
2531
+ def self.field_remappings
2532
+ @field_remappings = {}
2533
+ end
2534
+ end
2535
+
2536
+ class PresentmentDetails < Stripe::StripeObject
2537
+ # Amount intended to be collected by this payment, denominated in `presentment_currency`.
2538
+ attr_reader :presentment_amount
2539
+ # Currency presented to the customer during payment.
2540
+ attr_reader :presentment_currency
2541
+
2542
+ def self.inner_class_types
2543
+ @inner_class_types = {}
2544
+ end
2545
+
2546
+ def self.field_remappings
2547
+ @field_remappings = {}
2548
+ end
2549
+ end
2550
+
2551
+ class Processing < Stripe::StripeObject
2552
+ class Card < Stripe::StripeObject
2553
+ class CustomerNotification < Stripe::StripeObject
2554
+ # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank.
2555
+ attr_reader :approval_requested
2556
+ # If customer approval is required, they need to provide approval before this time.
2557
+ attr_reader :completes_at
2558
+
2559
+ def self.inner_class_types
2560
+ @inner_class_types = {}
2561
+ end
2562
+
2563
+ def self.field_remappings
2564
+ @field_remappings = {}
2565
+ end
2566
+ end
2567
+ # Attribute for field customer_notification
2568
+ attr_reader :customer_notification
2569
+
2570
+ def self.inner_class_types
2571
+ @inner_class_types = { customer_notification: CustomerNotification }
2572
+ end
2573
+
2574
+ def self.field_remappings
2575
+ @field_remappings = {}
2576
+ end
2577
+ end
2578
+ # Attribute for field card
2579
+ attr_reader :card
2580
+ # Type of the payment method for which payment is in `processing` state, one of `card`.
2581
+ attr_reader :type
2582
+
2583
+ def self.inner_class_types
2584
+ @inner_class_types = { card: Card }
2585
+ end
2586
+
2587
+ def self.field_remappings
2588
+ @field_remappings = {}
2589
+ end
2590
+ end
2591
+
2592
+ class Shipping < Stripe::StripeObject
2593
+ class Address < Stripe::StripeObject
2594
+ # City, district, suburb, town, or village.
2595
+ attr_reader :city
2596
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2597
+ attr_reader :country
2598
+ # Address line 1, such as the street, PO Box, or company name.
2599
+ attr_reader :line1
2600
+ # Address line 2, such as the apartment, suite, unit, or building.
2601
+ attr_reader :line2
2602
+ # ZIP or postal code.
2603
+ attr_reader :postal_code
2604
+ # State, county, province, or region.
2605
+ attr_reader :state
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
+ # Attribute for field address
2616
+ attr_reader :address
2617
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
2618
+ attr_reader :carrier
2619
+ # Recipient name.
2620
+ attr_reader :name
2621
+ # Recipient phone (including extension).
2622
+ attr_reader :phone
2623
+ # 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.
2624
+ attr_reader :tracking_number
2625
+
2626
+ def self.inner_class_types
2627
+ @inner_class_types = { address: Address }
2628
+ end
2629
+
2630
+ def self.field_remappings
2631
+ @field_remappings = {}
2632
+ end
2633
+ end
2634
+
2635
+ class TransferData < Stripe::StripeObject
2636
+ # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
2637
+ # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
2638
+ # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
2639
+ attr_reader :amount
2640
+ # 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.
2641
+ attr_reader :destination
2642
+
2643
+ def self.inner_class_types
2644
+ @inner_class_types = {}
2645
+ end
2646
+
2647
+ def self.field_remappings
2648
+ @field_remappings = {}
2649
+ end
2650
+ end
2651
+ # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2652
+ attr_reader :amount
2653
+ # Amount that can be captured from this PaymentIntent.
2654
+ attr_reader :amount_capturable
2655
+ # Attribute for field amount_details
2656
+ attr_reader :amount_details
2657
+ # Amount that this PaymentIntent collects.
2658
+ attr_reader :amount_received
2659
+ # ID of the Connect application that created the PaymentIntent.
2660
+ attr_reader :application
2661
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2662
+ attr_reader :application_fee_amount
2663
+ # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
2664
+ attr_reader :automatic_payment_methods
2665
+ # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
2666
+ attr_reader :canceled_at
2667
+ # 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`).
2668
+ attr_reader :cancellation_reason
2669
+ # Controls when the funds will be captured from the customer's account.
2670
+ attr_reader :capture_method
2671
+ # The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
2672
+ #
2673
+ # The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
2674
+ #
2675
+ # Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
2676
+ attr_reader :client_secret
2677
+ # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
2678
+ attr_reader :confirmation_method
2679
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
2680
+ attr_reader :created
2681
+ # 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).
2682
+ attr_reader :currency
2683
+ # ID of the Customer this PaymentIntent belongs to, if one exists.
2684
+ #
2685
+ # Payment methods attached to other Customers cannot be used with this PaymentIntent.
2686
+ #
2687
+ # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2688
+ attr_reader :customer
2689
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2690
+ attr_reader :description
2691
+ # The list of payment method types to exclude from use with this payment.
2692
+ attr_reader :excluded_payment_method_types
2693
+ # Unique identifier for the object.
2694
+ attr_reader :id
2695
+ # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
2696
+ attr_reader :last_payment_error
2697
+ # ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
2698
+ attr_reader :latest_charge
2699
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2700
+ attr_reader :livemode
2701
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Learn more about [storing information in metadata](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
2702
+ attr_reader :metadata
2703
+ # If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
2704
+ attr_reader :next_action
2705
+ # String representing the object's type. Objects of the same type share the same value.
2706
+ attr_reader :object
2707
+ # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
2708
+ attr_reader :on_behalf_of
2709
+ # ID of the payment method used in this PaymentIntent.
2710
+ attr_reader :payment_method
2711
+ # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
2712
+ attr_reader :payment_method_configuration_details
2713
+ # Payment-method-specific configuration for this PaymentIntent.
2714
+ attr_reader :payment_method_options
2715
+ # 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).
2716
+ attr_reader :payment_method_types
2717
+ # Attribute for field presentment_details
2718
+ attr_reader :presentment_details
2719
+ # If present, this property tells you about the processing state of the payment.
2720
+ attr_reader :processing
2721
+ # 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).
2722
+ attr_reader :receipt_email
2723
+ # ID of the review associated with this PaymentIntent, if any.
2724
+ attr_reader :review
2725
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2726
+ #
2727
+ # 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.
2728
+ #
2729
+ # 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.
2730
+ #
2731
+ # 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).
2732
+ attr_reader :setup_future_usage
2733
+ # Shipping information for this PaymentIntent.
2734
+ attr_reader :shipping
2735
+ # 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.
2736
+ attr_reader :source
2737
+ # 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).
2738
+ #
2739
+ # 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.
2740
+ attr_reader :statement_descriptor
2741
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
2742
+ attr_reader :statement_descriptor_suffix
2743
+ # Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/docs/payments/intents#intent-statuses).
2744
+ attr_reader :status
2745
+ # The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2746
+ attr_reader :transfer_data
2747
+ # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
2748
+ attr_reader :transfer_group
2749
+
27
2750
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
28
2751
  def apply_customer_balance(params = {}, opts = {})
29
2752
  request_stripe_object(
@@ -44,11 +2767,11 @@ module Stripe
44
2767
  )
45
2768
  end
46
2769
 
47
- # 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://stripe.com/docs/payments/intents), processing.
2770
+ # 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.
48
2771
  #
49
2772
  # 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.
50
2773
  #
51
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
2774
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
52
2775
  def cancel(params = {}, opts = {})
53
2776
  request_stripe_object(
54
2777
  method: :post,
@@ -58,11 +2781,11 @@ module Stripe
58
2781
  )
59
2782
  end
60
2783
 
61
- # 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://stripe.com/docs/payments/intents), processing.
2784
+ # 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.
62
2785
  #
63
2786
  # 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.
64
2787
  #
65
- # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
2788
+ # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
66
2789
  def self.cancel(intent, params = {}, opts = {})
67
2790
  request_stripe_object(
68
2791
  method: :post,
@@ -76,7 +2799,7 @@ module Stripe
76
2799
  #
77
2800
  # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
78
2801
  #
79
- # Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
2802
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
80
2803
  def capture(params = {}, opts = {})
81
2804
  request_stripe_object(
82
2805
  method: :post,
@@ -90,7 +2813,7 @@ module Stripe
90
2813
  #
91
2814
  # Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
92
2815
  #
93
- # Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
2816
+ # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
94
2817
  def self.capture(intent, params = {}, opts = {})
95
2818
  request_stripe_object(
96
2819
  method: :post,
@@ -103,6 +2826,7 @@ module Stripe
103
2826
  # Confirm that your customer intends to pay with current or provided
104
2827
  # payment method. Upon confirmation, the PaymentIntent will attempt to initiate
105
2828
  # a payment.
2829
+ #
106
2830
  # If the selected payment method requires additional authentication steps, the
107
2831
  # PaymentIntent will transition to the requires_action status and
108
2832
  # suggest additional actions via next_action. If payment fails,
@@ -110,18 +2834,22 @@ module Stripe
110
2834
  # canceled status if the confirmation limit is reached. If
111
2835
  # payment succeeds, the PaymentIntent will transition to the succeeded
112
2836
  # status (or requires_capture, if capture_method is set to manual).
2837
+ #
113
2838
  # If the confirmation_method is automatic, payment may be attempted
114
- # using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
115
- # and the PaymentIntent's [client_secret](https://stripe.com/docs/api#payment_intent_object-client_secret).
2839
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
2840
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
116
2841
  # After next_actions are handled by the client, no additional
117
2842
  # confirmation is required to complete the payment.
2843
+ #
118
2844
  # If the confirmation_method is manual, all payment attempts must be
119
2845
  # initiated using a secret key.
2846
+ #
120
2847
  # If any actions are required for the payment, the PaymentIntent will
121
2848
  # return to the requires_confirmation state
122
2849
  # after those actions are completed. Your server needs to then
123
2850
  # explicitly re-confirm the PaymentIntent to initiate the next payment
124
2851
  # attempt.
2852
+ #
125
2853
  # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
126
2854
  # After this limit is reached, any further calls to this endpoint will
127
2855
  # transition the PaymentIntent to the canceled state.
@@ -137,6 +2865,7 @@ module Stripe
137
2865
  # Confirm that your customer intends to pay with current or provided
138
2866
  # payment method. Upon confirmation, the PaymentIntent will attempt to initiate
139
2867
  # a payment.
2868
+ #
140
2869
  # If the selected payment method requires additional authentication steps, the
141
2870
  # PaymentIntent will transition to the requires_action status and
142
2871
  # suggest additional actions via next_action. If payment fails,
@@ -144,18 +2873,22 @@ module Stripe
144
2873
  # canceled status if the confirmation limit is reached. If
145
2874
  # payment succeeds, the PaymentIntent will transition to the succeeded
146
2875
  # status (or requires_capture, if capture_method is set to manual).
2876
+ #
147
2877
  # If the confirmation_method is automatic, payment may be attempted
148
- # using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
149
- # and the PaymentIntent's [client_secret](https://stripe.com/docs/api#payment_intent_object-client_secret).
2878
+ # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
2879
+ # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
150
2880
  # After next_actions are handled by the client, no additional
151
2881
  # confirmation is required to complete the payment.
2882
+ #
152
2883
  # If the confirmation_method is manual, all payment attempts must be
153
2884
  # initiated using a secret key.
2885
+ #
154
2886
  # If any actions are required for the payment, the PaymentIntent will
155
2887
  # return to the requires_confirmation state
156
2888
  # after those actions are completed. Your server needs to then
157
2889
  # explicitly re-confirm the PaymentIntent to initiate the next payment
158
2890
  # attempt.
2891
+ #
159
2892
  # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
160
2893
  # After this limit is reached, any further calls to this endpoint will
161
2894
  # transition the PaymentIntent to the canceled state.
@@ -170,22 +2903,22 @@ module Stripe
170
2903
 
171
2904
  # Creates a PaymentIntent object.
172
2905
  #
173
- # After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
2906
+ # After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
174
2907
  # to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
175
2908
  # with the Payment Intents API.
176
2909
  #
177
2910
  # When you use confirm=true during creation, it's equivalent to creating
178
2911
  # and confirming the PaymentIntent in the same call. You can use any parameters
179
- # available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
2912
+ # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
180
2913
  # confirm=true.
181
2914
  def self.create(params = {}, opts = {})
182
2915
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
183
2916
  end
184
2917
 
185
2918
  # Perform an incremental authorization on an eligible
186
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
2919
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
187
2920
  # PaymentIntent's status must be requires_capture and
188
- # [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
2921
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
189
2922
  # must be true.
190
2923
  #
191
2924
  # Incremental authorizations attempt to increase the authorized amount on
@@ -196,16 +2929,16 @@ module Stripe
196
2929
  #
197
2930
  # If the incremental authorization succeeds, the PaymentIntent object
198
2931
  # returns with the updated
199
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
2932
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
200
2933
  # If the incremental authorization fails, a
201
- # [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
2934
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
202
2935
  # fields on the PaymentIntent or Charge update. The PaymentIntent
203
2936
  # object remains capturable for the previously authorized amount.
204
2937
  #
205
2938
  # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
206
2939
  # After it's captured, a PaymentIntent can no longer be incremented.
207
2940
  #
208
- # Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
2941
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
209
2942
  def increment_authorization(params = {}, opts = {})
210
2943
  request_stripe_object(
211
2944
  method: :post,
@@ -216,9 +2949,9 @@ module Stripe
216
2949
  end
217
2950
 
218
2951
  # Perform an incremental authorization on an eligible
219
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
2952
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
220
2953
  # PaymentIntent's status must be requires_capture and
221
- # [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
2954
+ # [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
222
2955
  # must be true.
223
2956
  #
224
2957
  # Incremental authorizations attempt to increase the authorized amount on
@@ -229,16 +2962,16 @@ module Stripe
229
2962
  #
230
2963
  # If the incremental authorization succeeds, the PaymentIntent object
231
2964
  # returns with the updated
232
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
2965
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
233
2966
  # If the incremental authorization fails, a
234
- # [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
2967
+ # [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
235
2968
  # fields on the PaymentIntent or Charge update. The PaymentIntent
236
2969
  # object remains capturable for the previously authorized amount.
237
2970
  #
238
2971
  # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
239
2972
  # After it's captured, a PaymentIntent can no longer be incremented.
240
2973
  #
241
- # Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
2974
+ # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
242
2975
  def self.increment_authorization(intent, params = {}, opts = {})
243
2976
  request_stripe_object(
244
2977
  method: :post,
@@ -272,7 +3005,7 @@ module Stripe
272
3005
  # PaymentIntent again. For example, updating the payment_method
273
3006
  # always requires you to confirm the PaymentIntent again. If you prefer to
274
3007
  # update and confirm at the same time, we recommend updating properties through
275
- # the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
3008
+ # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
276
3009
  def self.update(intent, params = {}, opts = {})
277
3010
  request_stripe_object(
278
3011
  method: :post,
@@ -301,5 +3034,24 @@ module Stripe
301
3034
  opts: opts
302
3035
  )
303
3036
  end
3037
+
3038
+ def self.inner_class_types
3039
+ @inner_class_types = {
3040
+ amount_details: AmountDetails,
3041
+ automatic_payment_methods: AutomaticPaymentMethods,
3042
+ last_payment_error: LastPaymentError,
3043
+ next_action: NextAction,
3044
+ payment_method_configuration_details: PaymentMethodConfigurationDetails,
3045
+ payment_method_options: PaymentMethodOptions,
3046
+ presentment_details: PresentmentDetails,
3047
+ processing: Processing,
3048
+ shipping: Shipping,
3049
+ transfer_data: TransferData,
3050
+ }
3051
+ end
3052
+
3053
+ def self.field_remappings
3054
+ @field_remappings = {}
3055
+ end
304
3056
  end
305
3057
  end