stripe 18.0.0 → 18.1.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +209 -0
  6. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  7. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  25. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  59. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  60. data/lib/stripe/object_types.rb +54 -0
  61. data/lib/stripe/params/account_create_params.rb +317 -1
  62. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  63. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  64. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  65. data/lib/stripe/params/account_session_create_params.rb +226 -1
  66. data/lib/stripe/params/account_update_params.rb +279 -0
  67. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  68. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  69. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  70. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  71. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  72. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  73. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  74. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  75. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  77. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  78. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  79. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  80. data/lib/stripe/params/charge_update_params.rb +1648 -0
  81. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  82. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  83. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  84. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  85. data/lib/stripe/params/coupon_create_params.rb +17 -1
  86. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  87. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  88. data/lib/stripe/params/dispute_update_params.rb +10 -1
  89. data/lib/stripe/params/external_account_create_params.rb +134 -0
  90. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  91. data/lib/stripe/params/external_account_list_params.rb +25 -0
  92. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  93. data/lib/stripe/params/external_account_update_params.rb +91 -0
  94. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  95. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  96. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  97. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  98. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  99. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  100. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  101. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  102. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  103. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  104. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  105. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  106. data/lib/stripe/params/invoice_create_params.rb +112 -2
  107. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  108. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  109. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  110. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  111. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  112. data/lib/stripe/params/invoice_list_params.rb +4 -0
  113. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  114. data/lib/stripe/params/invoice_update_params.rb +108 -2
  115. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  116. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  117. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  118. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  119. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  120. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  121. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  122. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  123. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  124. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  125. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  126. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  127. data/lib/stripe/params/mandate_list_params.rb +39 -0
  128. data/lib/stripe/params/margin_create_params.rb +25 -0
  129. data/lib/stripe/params/margin_list_params.rb +25 -0
  130. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  131. data/lib/stripe/params/margin_update_params.rb +22 -0
  132. data/lib/stripe/params/order_cancel_params.rb +13 -0
  133. data/lib/stripe/params/order_create_params.rb +2061 -0
  134. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  135. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  136. data/lib/stripe/params/order_list_params.rb +25 -0
  137. data/lib/stripe/params/order_reopen_params.rb +13 -0
  138. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  139. data/lib/stripe/params/order_submit_params.rb +16 -0
  140. data/lib/stripe/params/order_update_params.rb +2065 -0
  141. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  142. data/lib/stripe/params/payment_intent_confirm_params.rb +3134 -100
  143. data/lib/stripe/params/payment_intent_create_params.rb +3126 -84
  144. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  145. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  146. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  147. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  148. data/lib/stripe/params/payment_intent_update_params.rb +3158 -85
  149. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  150. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  151. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  152. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  153. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  154. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  155. data/lib/stripe/params/price_update_params.rb +19 -0
  156. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  157. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  158. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  159. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  160. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  161. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  162. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  163. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  164. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  165. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  166. data/lib/stripe/params/quote_create_params.rb +805 -3
  167. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  168. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  169. data/lib/stripe/params/quote_list_params.rb +8 -0
  170. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  171. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  172. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  173. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  174. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  175. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  176. data/lib/stripe/params/quote_update_params.rb +813 -4
  177. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  178. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  179. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  180. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  181. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  182. data/lib/stripe/params/subscription_create_params.rb +259 -5
  183. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  184. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  185. data/lib/stripe/params/subscription_list_params.rb +4 -0
  186. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  187. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  188. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  189. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  190. data/lib/stripe/params/subscription_update_params.rb +238 -4
  191. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  192. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  193. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  194. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  195. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  196. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  197. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  198. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  199. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  200. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  201. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  202. data/lib/stripe/params/transfer_create_params.rb +4 -0
  203. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  204. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  205. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  206. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  207. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  208. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  209. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  210. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  211. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  212. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  213. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  214. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  215. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  216. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  217. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  218. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  219. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  220. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  221. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  222. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  223. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  225. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  226. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  227. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  228. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  229. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  230. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  231. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  232. data/lib/stripe/params/v2/core/account_create_params.rb +2341 -0
  233. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  234. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  235. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  236. data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
  237. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  238. data/lib/stripe/params/v2/core/account_update_params.rb +2387 -0
  239. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  240. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  241. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  242. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  243. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  244. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  245. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  246. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  247. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  248. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  249. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  250. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  251. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  252. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  253. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  254. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  255. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  256. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  257. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  258. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  259. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  260. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  261. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  262. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  263. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  264. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  266. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  268. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  269. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  270. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  271. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  272. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  273. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  274. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  275. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  276. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  277. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  278. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  279. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  280. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  281. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  283. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  284. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  285. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  286. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  288. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  289. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  290. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  291. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  292. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  293. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  295. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  296. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  297. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  298. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  299. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  300. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  301. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  302. data/lib/stripe/params.rb +161 -0
  303. data/lib/stripe/resources/account.rb +184 -1
  304. data/lib/stripe/resources/account_notice.rb +94 -0
  305. data/lib/stripe/resources/account_session.rb +81 -0
  306. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  307. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  308. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  309. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  310. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  311. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  312. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  313. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  314. data/lib/stripe/resources/card.rb +2 -0
  315. data/lib/stripe/resources/cash_balance.rb +2 -0
  316. data/lib/stripe/resources/charge.rb +237 -1
  317. data/lib/stripe/resources/checkout/session.rb +154 -4
  318. data/lib/stripe/resources/confirmation_token.rb +155 -0
  319. data/lib/stripe/resources/coupon.rb +26 -1
  320. data/lib/stripe/resources/credit_note.rb +2 -0
  321. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  322. data/lib/stripe/resources/customer.rb +2 -0
  323. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  324. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  325. data/lib/stripe/resources/customer_session.rb +38 -0
  326. data/lib/stripe/resources/discount.rb +2 -0
  327. data/lib/stripe/resources/dispute.rb +22 -0
  328. data/lib/stripe/resources/event.rb +64 -1
  329. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  330. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  331. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  332. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  333. data/lib/stripe/resources/fx_quote.rb +147 -0
  334. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  335. data/lib/stripe/resources/invoice.rb +152 -1
  336. data/lib/stripe/resources/invoice_item.rb +4 -0
  337. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  338. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  339. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  340. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  341. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  342. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  343. data/lib/stripe/resources/line_item.rb +68 -1
  344. data/lib/stripe/resources/mandate.rb +71 -0
  345. data/lib/stripe/resources/margin.rb +64 -0
  346. data/lib/stripe/resources/order.rb +987 -0
  347. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  348. data/lib/stripe/resources/payment_intent.rb +749 -4
  349. data/lib/stripe/resources/payment_method.rb +157 -0
  350. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  351. data/lib/stripe/resources/payment_record.rb +203 -1
  352. data/lib/stripe/resources/price.rb +20 -0
  353. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  354. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  355. data/lib/stripe/resources/promotion_code.rb +2 -0
  356. data/lib/stripe/resources/quote.rb +571 -2
  357. data/lib/stripe/resources/quote_line.rb +521 -0
  358. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  359. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  360. data/lib/stripe/resources/refund.rb +18 -0
  361. data/lib/stripe/resources/setup_attempt.rb +63 -0
  362. data/lib/stripe/resources/setup_intent.rb +132 -1
  363. data/lib/stripe/resources/source.rb +38 -0
  364. data/lib/stripe/resources/subscription.rb +232 -0
  365. data/lib/stripe/resources/subscription_item.rb +20 -1
  366. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  367. data/lib/stripe/resources/tax/form.rb +264 -0
  368. data/lib/stripe/resources/tax_id.rb +4 -0
  369. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  370. data/lib/stripe/resources/terminal/reader.rb +8 -0
  371. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  372. data/lib/stripe/resources/transfer.rb +2 -0
  373. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  374. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  375. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  376. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  377. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  378. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  379. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  380. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  381. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  382. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  383. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  384. data/lib/stripe/resources/v2/core/account.rb +4209 -0
  385. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  386. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  387. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  388. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  389. data/lib/stripe/resources/v2/core/event.rb +2 -0
  390. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  391. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  392. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  393. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  394. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  395. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  396. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  397. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  398. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  399. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  400. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  401. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  402. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  403. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  404. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  405. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  406. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  407. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  408. data/lib/stripe/resources.rb +105 -0
  409. data/lib/stripe/services/account_notice_service.rb +39 -0
  410. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  411. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  412. data/lib/stripe/services/billing_service.rb +2 -1
  413. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  414. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  415. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  416. data/lib/stripe/services/capital_service.rb +15 -0
  417. data/lib/stripe/services/external_account_service.rb +68 -0
  418. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  419. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  420. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  421. data/lib/stripe/services/financial_connections_service.rb +2 -1
  422. data/lib/stripe/services/fx_quote_service.rb +27 -0
  423. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  424. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  425. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  426. data/lib/stripe/services/issuing_service.rb +5 -1
  427. data/lib/stripe/services/mandate_service.rb +5 -0
  428. data/lib/stripe/services/margin_service.rb +50 -0
  429. data/lib/stripe/services/order_line_item_service.rb +17 -0
  430. data/lib/stripe/services/order_service.rb +78 -0
  431. data/lib/stripe/services/payment_intent_service.rb +37 -0
  432. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  433. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  434. data/lib/stripe/services/privacy_service.rb +13 -0
  435. data/lib/stripe/services/quote_line_service.rb +17 -0
  436. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  437. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  438. data/lib/stripe/services/quote_service.rb +49 -1
  439. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  440. data/lib/stripe/services/subscription_service.rb +11 -0
  441. data/lib/stripe/services/tax/form_service.rb +37 -0
  442. data/lib/stripe/services/tax_service.rb +2 -1
  443. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  444. data/lib/stripe/services/terminal_service.rb +2 -1
  445. data/lib/stripe/services/v1_services.rb +8 -1
  446. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  447. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  448. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  449. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  450. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  451. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  452. data/lib/stripe/services/v2/billing_service.rb +5 -1
  453. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  454. data/lib/stripe/services/v2/core/account_service.rb +77 -0
  455. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  456. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  457. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  458. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  459. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  460. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  461. data/lib/stripe/services/v2/core_service.rb +5 -1
  462. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  463. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  464. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  465. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  466. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  467. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  468. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  469. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  470. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  471. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  472. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  473. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  474. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  475. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  476. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  477. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  478. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  479. data/lib/stripe/services/v2_services.rb +3 -1
  480. data/lib/stripe/services.rb +56 -0
  481. data/lib/stripe/stripe_configuration.rb +3 -1
  482. data/lib/stripe/stripe_object.rb +1 -1
  483. data/lib/stripe/util.rb +7 -1
  484. data/lib/stripe/version.rb +1 -1
  485. data/lib/stripe.rb +53 -0
  486. data/rbi/stripe.rbi +156300 -79954
  487. metadata +325 -3
@@ -1185,19 +1185,360 @@ module Stripe
1185
1185
  end
1186
1186
 
1187
1187
  class PaymentDetails < ::Stripe::StripeObject
1188
+ class CarRental < ::Stripe::StripeObject
1189
+ class Affiliate < ::Stripe::StripeObject
1190
+ # The name of the affiliate that originated the purchase.
1191
+ attr_reader :name
1192
+
1193
+ def self.inner_class_types
1194
+ @inner_class_types = {}
1195
+ end
1196
+
1197
+ def self.field_remappings
1198
+ @field_remappings = {}
1199
+ end
1200
+ end
1201
+
1202
+ class Delivery < ::Stripe::StripeObject
1203
+ class Recipient < ::Stripe::StripeObject
1204
+ # The email of the recipient the ticket is delivered to.
1205
+ attr_reader :email
1206
+ # The name of the recipient the ticket is delivered to.
1207
+ attr_reader :name
1208
+ # The phone number of the recipient the ticket is delivered to.
1209
+ attr_reader :phone
1210
+
1211
+ def self.inner_class_types
1212
+ @inner_class_types = {}
1213
+ end
1214
+
1215
+ def self.field_remappings
1216
+ @field_remappings = {}
1217
+ end
1218
+ end
1219
+ # The delivery method for the payment
1220
+ attr_reader :mode
1221
+ # Attribute for field recipient
1222
+ attr_reader :recipient
1223
+
1224
+ def self.inner_class_types
1225
+ @inner_class_types = { recipient: Recipient }
1226
+ end
1227
+
1228
+ def self.field_remappings
1229
+ @field_remappings = {}
1230
+ end
1231
+ end
1232
+
1233
+ class Distance < ::Stripe::StripeObject
1234
+ # Distance traveled.
1235
+ attr_reader :amount
1236
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1237
+ attr_reader :unit
1238
+
1239
+ def self.inner_class_types
1240
+ @inner_class_types = {}
1241
+ end
1242
+
1243
+ def self.field_remappings
1244
+ @field_remappings = {}
1245
+ end
1246
+ end
1247
+
1248
+ class Driver < ::Stripe::StripeObject
1249
+ # Driver's identification number.
1250
+ attr_reader :driver_identification_number
1251
+ # Driver's tax number.
1252
+ attr_reader :driver_tax_number
1253
+ # Full name of the driver on the reservation.
1254
+ attr_reader :name
1255
+
1256
+ def self.inner_class_types
1257
+ @inner_class_types = {}
1258
+ end
1259
+
1260
+ def self.field_remappings
1261
+ @field_remappings = {}
1262
+ end
1263
+ end
1264
+
1265
+ class PickupAddress < ::Stripe::StripeObject
1266
+ # City, district, suburb, town, or village.
1267
+ attr_reader :city
1268
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1269
+ attr_reader :country
1270
+ # Address line 1, such as the street, PO Box, or company name.
1271
+ attr_reader :line1
1272
+ # Address line 2, such as the apartment, suite, unit, or building.
1273
+ attr_reader :line2
1274
+ # ZIP or postal code.
1275
+ attr_reader :postal_code
1276
+ # State, county, province, or region.
1277
+ attr_reader :state
1278
+
1279
+ def self.inner_class_types
1280
+ @inner_class_types = {}
1281
+ end
1282
+
1283
+ def self.field_remappings
1284
+ @field_remappings = {}
1285
+ end
1286
+ end
1287
+
1288
+ class ReturnAddress < ::Stripe::StripeObject
1289
+ # City, district, suburb, town, or village.
1290
+ attr_reader :city
1291
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1292
+ attr_reader :country
1293
+ # Address line 1, such as the street, PO Box, or company name.
1294
+ attr_reader :line1
1295
+ # Address line 2, such as the apartment, suite, unit, or building.
1296
+ attr_reader :line2
1297
+ # ZIP or postal code.
1298
+ attr_reader :postal_code
1299
+ # State, county, province, or region.
1300
+ attr_reader :state
1301
+
1302
+ def self.inner_class_types
1303
+ @inner_class_types = {}
1304
+ end
1305
+
1306
+ def self.field_remappings
1307
+ @field_remappings = {}
1308
+ end
1309
+ end
1310
+ # Attribute for field affiliate
1311
+ attr_reader :affiliate
1312
+ # The booking number associated with the car rental.
1313
+ attr_reader :booking_number
1314
+ # Class code of the car.
1315
+ attr_reader :car_class_code
1316
+ # Make of the car.
1317
+ attr_reader :car_make
1318
+ # Model of the car.
1319
+ attr_reader :car_model
1320
+ # The name of the rental car company.
1321
+ attr_reader :company
1322
+ # The customer service phone number of the car rental company.
1323
+ attr_reader :customer_service_phone_number
1324
+ # Number of days the car is being rented.
1325
+ attr_reader :days_rented
1326
+ # Attribute for field delivery
1327
+ attr_reader :delivery
1328
+ # Attribute for field distance
1329
+ attr_reader :distance
1330
+ # The details of the drivers associated with the trip.
1331
+ attr_reader :drivers
1332
+ # List of additional charges being billed.
1333
+ attr_reader :extra_charges
1334
+ # Indicates if the customer did not keep nor cancel their booking.
1335
+ attr_reader :no_show
1336
+ # Attribute for field pickup_address
1337
+ attr_reader :pickup_address
1338
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1339
+ attr_reader :pickup_at
1340
+ # Name of the pickup location.
1341
+ attr_reader :pickup_location_name
1342
+ # Rental rate.
1343
+ attr_reader :rate_amount
1344
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1345
+ attr_reader :rate_interval
1346
+ # The full name of the person or entity renting the car.
1347
+ attr_reader :renter_name
1348
+ # Attribute for field return_address
1349
+ attr_reader :return_address
1350
+ # Car return time. Measured in seconds since the Unix epoch.
1351
+ attr_reader :return_at
1352
+ # Name of the return location.
1353
+ attr_reader :return_location_name
1354
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1355
+ attr_reader :tax_exempt
1356
+ # The vehicle identification number of the car.
1357
+ attr_reader :vehicle_identification_number
1358
+
1359
+ def self.inner_class_types
1360
+ @inner_class_types = {
1361
+ affiliate: Affiliate,
1362
+ delivery: Delivery,
1363
+ distance: Distance,
1364
+ drivers: Driver,
1365
+ pickup_address: PickupAddress,
1366
+ return_address: ReturnAddress,
1367
+ }
1368
+ end
1369
+
1370
+ def self.field_remappings
1371
+ @field_remappings = {}
1372
+ end
1373
+ end
1374
+
1375
+ class EventDetails < ::Stripe::StripeObject
1376
+ class Address < ::Stripe::StripeObject
1377
+ # City, district, suburb, town, or village.
1378
+ attr_reader :city
1379
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1380
+ attr_reader :country
1381
+ # Address line 1, such as the street, PO Box, or company name.
1382
+ attr_reader :line1
1383
+ # Address line 2, such as the apartment, suite, unit, or building.
1384
+ attr_reader :line2
1385
+ # ZIP or postal code.
1386
+ attr_reader :postal_code
1387
+ # State, county, province, or region.
1388
+ attr_reader :state
1389
+
1390
+ def self.inner_class_types
1391
+ @inner_class_types = {}
1392
+ end
1393
+
1394
+ def self.field_remappings
1395
+ @field_remappings = {}
1396
+ end
1397
+ end
1398
+
1399
+ class Affiliate < ::Stripe::StripeObject
1400
+ # The name of the affiliate that originated the purchase.
1401
+ attr_reader :name
1402
+
1403
+ def self.inner_class_types
1404
+ @inner_class_types = {}
1405
+ end
1406
+
1407
+ def self.field_remappings
1408
+ @field_remappings = {}
1409
+ end
1410
+ end
1411
+
1412
+ class Delivery < ::Stripe::StripeObject
1413
+ class Recipient < ::Stripe::StripeObject
1414
+ # The email of the recipient the ticket is delivered to.
1415
+ attr_reader :email
1416
+ # The name of the recipient the ticket is delivered to.
1417
+ attr_reader :name
1418
+ # The phone number of the recipient the ticket is delivered to.
1419
+ attr_reader :phone
1420
+
1421
+ def self.inner_class_types
1422
+ @inner_class_types = {}
1423
+ end
1424
+
1425
+ def self.field_remappings
1426
+ @field_remappings = {}
1427
+ end
1428
+ end
1429
+ # The delivery method for the payment
1430
+ attr_reader :mode
1431
+ # Attribute for field recipient
1432
+ attr_reader :recipient
1433
+
1434
+ def self.inner_class_types
1435
+ @inner_class_types = { recipient: Recipient }
1436
+ end
1437
+
1438
+ def self.field_remappings
1439
+ @field_remappings = {}
1440
+ end
1441
+ end
1442
+ # Indicates if the tickets are digitally checked when entering the venue.
1443
+ attr_reader :access_controlled_venue
1444
+ # Attribute for field address
1445
+ attr_reader :address
1446
+ # Attribute for field affiliate
1447
+ attr_reader :affiliate
1448
+ # The name of the company
1449
+ attr_reader :company
1450
+ # Attribute for field delivery
1451
+ attr_reader :delivery
1452
+ # Event end time. Measured in seconds since the Unix epoch.
1453
+ attr_reader :ends_at
1454
+ # Type of the event entertainment (concert, sports event etc)
1455
+ attr_reader :genre
1456
+ # The name of the event.
1457
+ attr_reader :name
1458
+ # Event start time. Measured in seconds since the Unix epoch.
1459
+ attr_reader :starts_at
1460
+
1461
+ def self.inner_class_types
1462
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1463
+ end
1464
+
1465
+ def self.field_remappings
1466
+ @field_remappings = {}
1467
+ end
1468
+ end
1469
+
1470
+ class Subscription < ::Stripe::StripeObject
1471
+ class Affiliate < ::Stripe::StripeObject
1472
+ # The name of the affiliate that originated the purchase.
1473
+ attr_reader :name
1474
+
1475
+ def self.inner_class_types
1476
+ @inner_class_types = {}
1477
+ end
1478
+
1479
+ def self.field_remappings
1480
+ @field_remappings = {}
1481
+ end
1482
+ end
1483
+
1484
+ class BillingInterval < ::Stripe::StripeObject
1485
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1486
+ attr_reader :count
1487
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1488
+ attr_reader :interval
1489
+
1490
+ def self.inner_class_types
1491
+ @inner_class_types = {}
1492
+ end
1493
+
1494
+ def self.field_remappings
1495
+ @field_remappings = {}
1496
+ end
1497
+ end
1498
+ # Attribute for field affiliate
1499
+ attr_reader :affiliate
1500
+ # Info whether the subscription will be auto renewed upon expiry.
1501
+ attr_reader :auto_renewal
1502
+ # Attribute for field billing_interval
1503
+ attr_reader :billing_interval
1504
+ # Subscription end time. Measured in seconds since the Unix epoch.
1505
+ attr_reader :ends_at
1506
+ # Name of the product on subscription. e.g. Apple Music Subscription.
1507
+ attr_reader :name
1508
+ # Subscription start time. Measured in seconds since the Unix epoch.
1509
+ attr_reader :starts_at
1510
+
1511
+ def self.inner_class_types
1512
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
1513
+ end
1514
+
1515
+ def self.field_remappings
1516
+ @field_remappings = {}
1517
+ end
1518
+ end
1519
+ # Attribute for field car_rental
1520
+ attr_reader :car_rental
1188
1521
  # A unique value to identify the customer. This field is available only for card payments.
1189
1522
  #
1190
1523
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1191
1524
  attr_reader :customer_reference
1525
+ # Attribute for field event_details
1526
+ attr_reader :event_details
1192
1527
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1193
1528
  #
1194
1529
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1195
1530
  #
1196
1531
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1197
1532
  attr_reader :order_reference
1533
+ # Attribute for field subscription
1534
+ attr_reader :subscription
1198
1535
 
1199
1536
  def self.inner_class_types
1200
- @inner_class_types = {}
1537
+ @inner_class_types = {
1538
+ car_rental: CarRental,
1539
+ event_details: EventDetails,
1540
+ subscription: Subscription,
1541
+ }
1201
1542
  end
1202
1543
 
1203
1544
  def self.field_remappings
@@ -1575,6 +1916,43 @@ module Stripe
1575
1916
  @field_remappings = {}
1576
1917
  end
1577
1918
  end
1919
+
1920
+ class StatementDetails < ::Stripe::StripeObject
1921
+ class Address < ::Stripe::StripeObject
1922
+ # City, district, suburb, town, or village.
1923
+ attr_reader :city
1924
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1925
+ attr_reader :country
1926
+ # Address line 1, such as the street, PO Box, or company name.
1927
+ attr_reader :line1
1928
+ # Address line 2, such as the apartment, suite, unit, or building.
1929
+ attr_reader :line2
1930
+ # ZIP or postal code.
1931
+ attr_reader :postal_code
1932
+ # State, county, province, or region.
1933
+ attr_reader :state
1934
+
1935
+ def self.inner_class_types
1936
+ @inner_class_types = {}
1937
+ end
1938
+
1939
+ def self.field_remappings
1940
+ @field_remappings = {}
1941
+ end
1942
+ end
1943
+ # Attribute for field address
1944
+ attr_reader :address
1945
+ # Phone number
1946
+ attr_reader :phone
1947
+
1948
+ def self.inner_class_types
1949
+ @inner_class_types = { address: Address }
1950
+ end
1951
+
1952
+ def self.field_remappings
1953
+ @field_remappings = {}
1954
+ end
1955
+ end
1578
1956
  # Controls when the funds will be captured from the customer's account.
1579
1957
  attr_reader :capture_method
1580
1958
  # Installment details for this payment.
@@ -1585,6 +1963,8 @@ module Stripe
1585
1963
  attr_reader :mandate_options
1586
1964
  # 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.
1587
1965
  attr_reader :network
1966
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1967
+ attr_reader :request_decremental_authorization
1588
1968
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1589
1969
  attr_reader :request_extended_authorization
1590
1970
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1593,6 +1973,8 @@ module Stripe
1593
1973
  attr_reader :request_multicapture
1594
1974
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1595
1975
  attr_reader :request_overcapture
1976
+ # Request partial authorization on this PaymentIntent.
1977
+ attr_reader :request_partial_authorization
1596
1978
  # 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.
1597
1979
  attr_reader :request_three_d_secure
1598
1980
  # 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).
@@ -1609,9 +1991,15 @@ module Stripe
1609
1991
  attr_reader :statement_descriptor_suffix_kana
1610
1992
  # 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.
1611
1993
  attr_reader :statement_descriptor_suffix_kanji
1994
+ # Attribute for field statement_details
1995
+ attr_reader :statement_details
1612
1996
 
1613
1997
  def self.inner_class_types
1614
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
1998
+ @inner_class_types = {
1999
+ installments: Installments,
2000
+ mandate_options: MandateOptions,
2001
+ statement_details: StatementDetails,
2002
+ }
1615
2003
  end
1616
2004
 
1617
2005
  def self.field_remappings
@@ -1800,6 +2188,25 @@ module Stripe
1800
2188
  end
1801
2189
  end
1802
2190
 
2191
+ class Gopay < ::Stripe::StripeObject
2192
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2193
+ #
2194
+ # 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.
2195
+ #
2196
+ # 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.
2197
+ #
2198
+ # 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).
2199
+ attr_reader :setup_future_usage
2200
+
2201
+ def self.inner_class_types
2202
+ @inner_class_types = {}
2203
+ end
2204
+
2205
+ def self.field_remappings
2206
+ @field_remappings = {}
2207
+ end
2208
+ end
2209
+
1803
2210
  class Grabpay < ::Stripe::StripeObject
1804
2211
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1805
2212
  #
@@ -1819,6 +2226,29 @@ module Stripe
1819
2226
  end
1820
2227
  end
1821
2228
 
2229
+ class IdBankTransfer < ::Stripe::StripeObject
2230
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2231
+ attr_reader :expires_after
2232
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2233
+ attr_reader :expires_at
2234
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2235
+ #
2236
+ # 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.
2237
+ #
2238
+ # 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.
2239
+ #
2240
+ # 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).
2241
+ attr_reader :setup_future_usage
2242
+
2243
+ def self.inner_class_types
2244
+ @inner_class_types = {}
2245
+ end
2246
+
2247
+ def self.field_remappings
2248
+ @field_remappings = {}
2249
+ end
2250
+ end
2251
+
1822
2252
  class Ideal < ::Stripe::StripeObject
1823
2253
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1824
2254
  #
@@ -2147,12 +2577,56 @@ module Stripe
2147
2577
  end
2148
2578
 
2149
2579
  class Paypal < ::Stripe::StripeObject
2580
+ class LineItem < ::Stripe::StripeObject
2581
+ class Tax < ::Stripe::StripeObject
2582
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2583
+ attr_reader :amount
2584
+ # The tax behavior for the line item.
2585
+ attr_reader :behavior
2586
+
2587
+ def self.inner_class_types
2588
+ @inner_class_types = {}
2589
+ end
2590
+
2591
+ def self.field_remappings
2592
+ @field_remappings = {}
2593
+ end
2594
+ end
2595
+ # Type of the line item.
2596
+ attr_reader :category
2597
+ # Description of the line item.
2598
+ attr_reader :description
2599
+ # Descriptive name of the line item.
2600
+ attr_reader :name
2601
+ # Quantity of the line item. Cannot be a negative number.
2602
+ attr_reader :quantity
2603
+ # Client facing stock keeping unit, article number or similar.
2604
+ attr_reader :sku
2605
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
2606
+ attr_reader :sold_by
2607
+ # Attribute for field tax
2608
+ attr_reader :tax
2609
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2610
+ attr_reader :unit_amount
2611
+
2612
+ def self.inner_class_types
2613
+ @inner_class_types = { tax: Tax }
2614
+ end
2615
+
2616
+ def self.field_remappings
2617
+ @field_remappings = {}
2618
+ end
2619
+ end
2150
2620
  # Controls when the funds will be captured from the customer's account.
2151
2621
  attr_reader :capture_method
2622
+ # The line items purchased by the customer.
2623
+ attr_reader :line_items
2152
2624
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2153
2625
  attr_reader :preferred_locale
2154
2626
  # 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.
2155
2627
  attr_reader :reference
2628
+ # 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.
2629
+ attr_reader :reference_id
2156
2630
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2157
2631
  #
2158
2632
  # 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.
@@ -2161,7 +2635,19 @@ module Stripe
2161
2635
  #
2162
2636
  # 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).
2163
2637
  attr_reader :setup_future_usage
2638
+ # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2639
+ attr_reader :subsellers
2164
2640
 
2641
+ def self.inner_class_types
2642
+ @inner_class_types = { line_items: LineItem }
2643
+ end
2644
+
2645
+ def self.field_remappings
2646
+ @field_remappings = {}
2647
+ end
2648
+ end
2649
+
2650
+ class Paypay < ::Stripe::StripeObject
2165
2651
  def self.inner_class_types
2166
2652
  @inner_class_types = {}
2167
2653
  end
@@ -2171,13 +2657,84 @@ module Stripe
2171
2657
  end
2172
2658
  end
2173
2659
 
2660
+ class Payto < ::Stripe::StripeObject
2661
+ class MandateOptions < ::Stripe::StripeObject
2662
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2663
+ attr_reader :amount
2664
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
2665
+ attr_reader :amount_type
2666
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2667
+ attr_reader :end_date
2668
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2669
+ attr_reader :payment_schedule
2670
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2671
+ attr_reader :payments_per_period
2672
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2673
+ attr_reader :purpose
2674
+
2675
+ def self.inner_class_types
2676
+ @inner_class_types = {}
2677
+ end
2678
+
2679
+ def self.field_remappings
2680
+ @field_remappings = {}
2681
+ end
2682
+ end
2683
+ # Attribute for field mandate_options
2684
+ attr_reader :mandate_options
2685
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2686
+ #
2687
+ # 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.
2688
+ #
2689
+ # 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.
2690
+ #
2691
+ # 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).
2692
+ attr_reader :setup_future_usage
2693
+
2694
+ def self.inner_class_types
2695
+ @inner_class_types = { mandate_options: MandateOptions }
2696
+ end
2697
+
2698
+ def self.field_remappings
2699
+ @field_remappings = {}
2700
+ end
2701
+ end
2702
+
2174
2703
  class Pix < ::Stripe::StripeObject
2704
+ class MandateOptions < ::Stripe::StripeObject
2705
+ # Amount to be charged for future payments.
2706
+ attr_reader :amount
2707
+ # Determines if the amount includes the IOF tax.
2708
+ attr_reader :amount_includes_iof
2709
+ # Type of amount.
2710
+ attr_reader :amount_type
2711
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
2712
+ attr_reader :currency
2713
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
2714
+ attr_reader :end_date
2715
+ # Schedule at which the future payments will be charged.
2716
+ attr_reader :payment_schedule
2717
+ # Subscription name displayed to buyers in their bank app.
2718
+ attr_reader :reference
2719
+ # Start date of the mandate, in `YYYY-MM-DD`.
2720
+ attr_reader :start_date
2721
+
2722
+ def self.inner_class_types
2723
+ @inner_class_types = {}
2724
+ end
2725
+
2726
+ def self.field_remappings
2727
+ @field_remappings = {}
2728
+ end
2729
+ end
2175
2730
  # Determines if the amount includes the IOF tax.
2176
2731
  attr_reader :amount_includes_iof
2177
2732
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2178
2733
  attr_reader :expires_after_seconds
2179
2734
  # The timestamp at which the Pix expires.
2180
2735
  attr_reader :expires_at
2736
+ # Attribute for field mandate_options
2737
+ attr_reader :mandate_options
2181
2738
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2182
2739
  #
2183
2740
  # 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.
@@ -2188,7 +2745,7 @@ module Stripe
2188
2745
  attr_reader :setup_future_usage
2189
2746
 
2190
2747
  def self.inner_class_types
2191
- @inner_class_types = {}
2748
+ @inner_class_types = { mandate_options: MandateOptions }
2192
2749
  end
2193
2750
 
2194
2751
  def self.field_remappings
@@ -2215,6 +2772,35 @@ module Stripe
2215
2772
  end
2216
2773
  end
2217
2774
 
2775
+ class Qris < ::Stripe::StripeObject
2776
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2777
+ #
2778
+ # 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.
2779
+ #
2780
+ # 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.
2781
+ #
2782
+ # 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).
2783
+ attr_reader :setup_future_usage
2784
+
2785
+ def self.inner_class_types
2786
+ @inner_class_types = {}
2787
+ end
2788
+
2789
+ def self.field_remappings
2790
+ @field_remappings = {}
2791
+ end
2792
+ end
2793
+
2794
+ class Rechnung < ::Stripe::StripeObject
2795
+ def self.inner_class_types
2796
+ @inner_class_types = {}
2797
+ end
2798
+
2799
+ def self.field_remappings
2800
+ @field_remappings = {}
2801
+ end
2802
+ end
2803
+
2218
2804
  class RevolutPay < ::Stripe::StripeObject
2219
2805
  # Controls when the funds will be captured from the customer's account.
2220
2806
  attr_reader :capture_method
@@ -2297,6 +2883,25 @@ module Stripe
2297
2883
  end
2298
2884
  end
2299
2885
 
2886
+ class Shopeepay < ::Stripe::StripeObject
2887
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2888
+ #
2889
+ # 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.
2890
+ #
2891
+ # 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.
2892
+ #
2893
+ # 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).
2894
+ attr_reader :setup_future_usage
2895
+
2896
+ def self.inner_class_types
2897
+ @inner_class_types = {}
2898
+ end
2899
+
2900
+ def self.field_remappings
2901
+ @field_remappings = {}
2902
+ end
2903
+ end
2904
+
2300
2905
  class Sofort < ::Stripe::StripeObject
2301
2906
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2302
2907
  attr_reader :preferred_language
@@ -2318,6 +2923,25 @@ module Stripe
2318
2923
  end
2319
2924
  end
2320
2925
 
2926
+ class StripeBalance < ::Stripe::StripeObject
2927
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2928
+ #
2929
+ # 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.
2930
+ #
2931
+ # 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.
2932
+ #
2933
+ # 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).
2934
+ attr_reader :setup_future_usage
2935
+
2936
+ def self.inner_class_types
2937
+ @inner_class_types = {}
2938
+ end
2939
+
2940
+ def self.field_remappings
2941
+ @field_remappings = {}
2942
+ end
2943
+ end
2944
+
2321
2945
  class Swish < ::Stripe::StripeObject
2322
2946
  # A reference for this payment to be displayed in the Swish app.
2323
2947
  attr_reader :reference
@@ -2363,6 +2987,21 @@ module Stripe
2363
2987
  class Filters < ::Stripe::StripeObject
2364
2988
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2365
2989
  attr_reader :account_subcategories
2990
+ # The institution to use to filter for possible accounts to link.
2991
+ attr_reader :institution
2992
+
2993
+ def self.inner_class_types
2994
+ @inner_class_types = {}
2995
+ end
2996
+
2997
+ def self.field_remappings
2998
+ @field_remappings = {}
2999
+ end
3000
+ end
3001
+
3002
+ class ManualEntry < ::Stripe::StripeObject
3003
+ # Settings for configuring manual entry of account details.
3004
+ attr_reader :mode
2366
3005
 
2367
3006
  def self.inner_class_types
2368
3007
  @inner_class_types = {}
@@ -2374,6 +3013,8 @@ module Stripe
2374
3013
  end
2375
3014
  # Attribute for field filters
2376
3015
  attr_reader :filters
3016
+ # Attribute for field manual_entry
3017
+ attr_reader :manual_entry
2377
3018
  # The list of permissions to request. The `payment_method` permission must be included.
2378
3019
  attr_reader :permissions
2379
3020
  # Data features requested to be retrieved upon account creation.
@@ -2382,7 +3023,7 @@ module Stripe
2382
3023
  attr_reader :return_url
2383
3024
 
2384
3025
  def self.inner_class_types
2385
- @inner_class_types = { filters: Filters }
3026
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
2386
3027
  end
2387
3028
 
2388
3029
  def self.field_remappings
@@ -2514,8 +3155,12 @@ module Stripe
2514
3155
  attr_reader :fpx
2515
3156
  # Attribute for field giropay
2516
3157
  attr_reader :giropay
3158
+ # Attribute for field gopay
3159
+ attr_reader :gopay
2517
3160
  # Attribute for field grabpay
2518
3161
  attr_reader :grabpay
3162
+ # Attribute for field id_bank_transfer
3163
+ attr_reader :id_bank_transfer
2519
3164
  # Attribute for field ideal
2520
3165
  attr_reader :ideal
2521
3166
  # Attribute for field interac_present
@@ -2552,10 +3197,18 @@ module Stripe
2552
3197
  attr_reader :paynow
2553
3198
  # Attribute for field paypal
2554
3199
  attr_reader :paypal
3200
+ # Attribute for field paypay
3201
+ attr_reader :paypay
3202
+ # Attribute for field payto
3203
+ attr_reader :payto
2555
3204
  # Attribute for field pix
2556
3205
  attr_reader :pix
2557
3206
  # Attribute for field promptpay
2558
3207
  attr_reader :promptpay
3208
+ # Attribute for field qris
3209
+ attr_reader :qris
3210
+ # Attribute for field rechnung
3211
+ attr_reader :rechnung
2559
3212
  # Attribute for field revolut_pay
2560
3213
  attr_reader :revolut_pay
2561
3214
  # Attribute for field samsung_pay
@@ -2564,8 +3217,12 @@ module Stripe
2564
3217
  attr_reader :satispay
2565
3218
  # Attribute for field sepa_debit
2566
3219
  attr_reader :sepa_debit
3220
+ # Attribute for field shopeepay
3221
+ attr_reader :shopeepay
2567
3222
  # Attribute for field sofort
2568
3223
  attr_reader :sofort
3224
+ # Attribute for field stripe_balance
3225
+ attr_reader :stripe_balance
2569
3226
  # Attribute for field swish
2570
3227
  attr_reader :swish
2571
3228
  # Attribute for field twint
@@ -2599,7 +3256,9 @@ module Stripe
2599
3256
  eps: Eps,
2600
3257
  fpx: Fpx,
2601
3258
  giropay: Giropay,
3259
+ gopay: Gopay,
2602
3260
  grabpay: Grabpay,
3261
+ id_bank_transfer: IdBankTransfer,
2603
3262
  ideal: Ideal,
2604
3263
  interac_present: InteracPresent,
2605
3264
  kakao_pay: KakaoPay,
@@ -2618,13 +3277,19 @@ module Stripe
2618
3277
  payco: Payco,
2619
3278
  paynow: Paynow,
2620
3279
  paypal: Paypal,
3280
+ paypay: Paypay,
3281
+ payto: Payto,
2621
3282
  pix: Pix,
2622
3283
  promptpay: Promptpay,
3284
+ qris: Qris,
3285
+ rechnung: Rechnung,
2623
3286
  revolut_pay: RevolutPay,
2624
3287
  samsung_pay: SamsungPay,
2625
3288
  satispay: Satispay,
2626
3289
  sepa_debit: SepaDebit,
3290
+ shopeepay: Shopeepay,
2627
3291
  sofort: Sofort,
3292
+ stripe_balance: StripeBalance,
2628
3293
  swish: Swish,
2629
3294
  twint: Twint,
2630
3295
  us_bank_account: UsBankAccount,
@@ -2791,10 +3456,18 @@ module Stripe
2791
3456
  #
2792
3457
  # 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.
2793
3458
  attr_reader :customer
3459
+ # ID of the Account this PaymentIntent belongs to, if one exists.
3460
+ #
3461
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3462
+ #
3463
+ # 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 Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
3464
+ attr_reader :customer_account
2794
3465
  # An arbitrary string attached to the object. Often useful for displaying to users.
2795
3466
  attr_reader :description
2796
3467
  # The list of payment method types to exclude from use with this payment.
2797
3468
  attr_reader :excluded_payment_method_types
3469
+ # The FX Quote used for the PaymentIntent.
3470
+ attr_reader :fx_quote
2798
3471
  # Attribute for field hooks
2799
3472
  attr_reader :hooks
2800
3473
  # Unique identifier for the object.
@@ -2831,6 +3504,8 @@ module Stripe
2831
3504
  attr_reader :receipt_email
2832
3505
  # ID of the review associated with this PaymentIntent, if any.
2833
3506
  attr_reader :review
3507
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3508
+ attr_reader :secret_key_confirmation
2834
3509
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2835
3510
  #
2836
3511
  # 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.
@@ -3024,6 +3699,56 @@ module Stripe
3024
3699
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
3025
3700
  end
3026
3701
 
3702
+ # Perform a decremental authorization on an eligible
3703
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3704
+ # PaymentIntent's status must be requires_capture and
3705
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3706
+ # must be available.
3707
+ #
3708
+ # Decremental authorizations decrease the authorized amount on your customer's card
3709
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3710
+ #
3711
+ # After decrement, the PaymentIntent object
3712
+ # returns with the updated
3713
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3714
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3715
+ #
3716
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3717
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3718
+ def decrement_authorization(params = {}, opts = {})
3719
+ request_stripe_object(
3720
+ method: :post,
3721
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
3722
+ params: params,
3723
+ opts: opts
3724
+ )
3725
+ end
3726
+
3727
+ # Perform a decremental authorization on an eligible
3728
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3729
+ # PaymentIntent's status must be requires_capture and
3730
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3731
+ # must be available.
3732
+ #
3733
+ # Decremental authorizations decrease the authorized amount on your customer's card
3734
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3735
+ #
3736
+ # After decrement, the PaymentIntent object
3737
+ # returns with the updated
3738
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3739
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3740
+ #
3741
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3742
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3743
+ def self.decrement_authorization(intent, params = {}, opts = {})
3744
+ request_stripe_object(
3745
+ method: :post,
3746
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
3747
+ params: params,
3748
+ opts: opts
3749
+ )
3750
+ end
3751
+
3027
3752
  # Perform an incremental authorization on an eligible
3028
3753
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3029
3754
  # PaymentIntent's status must be requires_capture and
@@ -3108,6 +3833,26 @@ module Stripe
3108
3833
  search(params, opts).auto_paging_each(&blk)
3109
3834
  end
3110
3835
 
3836
+ # Trigger an external action on a PaymentIntent.
3837
+ def trigger_action(params = {}, opts = {})
3838
+ request_stripe_object(
3839
+ method: :post,
3840
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
3841
+ params: params,
3842
+ opts: opts
3843
+ )
3844
+ end
3845
+
3846
+ # Trigger an external action on a PaymentIntent.
3847
+ def self.trigger_action(intent, params = {}, opts = {})
3848
+ request_stripe_object(
3849
+ method: :post,
3850
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
3851
+ params: params,
3852
+ opts: opts
3853
+ )
3854
+ end
3855
+
3111
3856
  # Updates properties on a PaymentIntent object without confirming.
3112
3857
  #
3113
3858
  # Depending on which properties you update, you might need to confirm the