stripe 17.1.0 → 17.2.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) 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 +233 -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_money_management_adjustment_created_event.rb +44 -0
  25. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  58. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  60. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  66. data/lib/stripe/object_types.rb +55 -0
  67. data/lib/stripe/params/account_create_params.rb +300 -1
  68. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  69. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  70. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  71. data/lib/stripe/params/account_session_create_params.rb +226 -1
  72. data/lib/stripe/params/account_update_params.rb +262 -0
  73. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  74. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  75. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  76. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  77. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  78. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  79. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  80. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  81. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  82. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  83. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  84. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  85. data/lib/stripe/params/charge_capture_params.rb +715 -0
  86. data/lib/stripe/params/charge_update_params.rb +715 -0
  87. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  88. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  89. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  90. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  91. data/lib/stripe/params/coupon_create_params.rb +17 -1
  92. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  93. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  94. data/lib/stripe/params/dispute_update_params.rb +10 -1
  95. data/lib/stripe/params/external_account_create_params.rb +134 -0
  96. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  97. data/lib/stripe/params/external_account_list_params.rb +25 -0
  98. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  99. data/lib/stripe/params/external_account_update_params.rb +91 -0
  100. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  101. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  102. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  103. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  104. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  105. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  106. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  107. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  109. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  110. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  111. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  112. data/lib/stripe/params/invoice_create_params.rb +112 -2
  113. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  114. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  115. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  116. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  117. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  118. data/lib/stripe/params/invoice_list_params.rb +4 -0
  119. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  120. data/lib/stripe/params/invoice_update_params.rb +108 -2
  121. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  122. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  123. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  124. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  125. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  126. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  127. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  128. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  129. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  130. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  131. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  132. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  133. data/lib/stripe/params/mandate_list_params.rb +39 -0
  134. data/lib/stripe/params/margin_create_params.rb +25 -0
  135. data/lib/stripe/params/margin_list_params.rb +25 -0
  136. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  137. data/lib/stripe/params/margin_update_params.rb +22 -0
  138. data/lib/stripe/params/order_cancel_params.rb +13 -0
  139. data/lib/stripe/params/order_create_params.rb +1124 -0
  140. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  141. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  142. data/lib/stripe/params/order_list_params.rb +25 -0
  143. data/lib/stripe/params/order_reopen_params.rb +13 -0
  144. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  145. data/lib/stripe/params/order_submit_params.rb +16 -0
  146. data/lib/stripe/params/order_update_params.rb +1128 -0
  147. data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
  148. data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
  149. data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
  150. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  151. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
  152. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  153. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  154. data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
  155. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  156. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  157. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  158. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  159. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  160. data/lib/stripe/params/price_update_params.rb +19 -0
  161. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  162. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  163. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  164. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  166. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  167. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  168. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  169. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  170. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  171. data/lib/stripe/params/quote_create_params.rb +805 -3
  172. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  173. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  174. data/lib/stripe/params/quote_list_params.rb +8 -0
  175. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  176. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  177. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  178. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  179. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  180. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  181. data/lib/stripe/params/quote_update_params.rb +813 -4
  182. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  183. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  184. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  185. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  186. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  187. data/lib/stripe/params/subscription_create_params.rb +259 -5
  188. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  189. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  190. data/lib/stripe/params/subscription_list_params.rb +4 -0
  191. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  192. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  193. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  194. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  195. data/lib/stripe/params/subscription_update_params.rb +238 -4
  196. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  197. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  198. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  199. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  200. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  201. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  202. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  203. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  204. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  205. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  206. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  207. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  208. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  209. data/lib/stripe/params/transfer_create_params.rb +4 -0
  210. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  211. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  212. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  213. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  214. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  215. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  216. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  217. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  218. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  219. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  220. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  221. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  222. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  223. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  225. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  226. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  227. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  228. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  229. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  230. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  231. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  232. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  233. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  234. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  235. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  236. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  237. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  238. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  239. data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
  240. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  241. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  242. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  243. data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
  244. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  245. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  246. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  247. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  248. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  249. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  250. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  251. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  252. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  253. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  254. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  255. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  256. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  257. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  258. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  259. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  260. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  261. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  262. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  263. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  264. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  265. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  266. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  269. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  270. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  271. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  272. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  273. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  274. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  276. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  277. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  278. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  279. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  280. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  283. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  284. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  285. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  286. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  288. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  289. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  290. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  291. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  292. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  293. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  295. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  296. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  297. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  298. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  299. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  300. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  301. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  302. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  303. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  304. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  305. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  306. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  307. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  308. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  309. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  310. data/lib/stripe/params.rb +164 -0
  311. data/lib/stripe/resources/account.rb +166 -1
  312. data/lib/stripe/resources/account_notice.rb +94 -0
  313. data/lib/stripe/resources/account_session.rb +81 -0
  314. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  315. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  316. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  317. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  318. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  319. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  320. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  321. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  322. data/lib/stripe/resources/card.rb +2 -0
  323. data/lib/stripe/resources/cash_balance.rb +2 -0
  324. data/lib/stripe/resources/charge.rb +237 -1
  325. data/lib/stripe/resources/checkout/session.rb +154 -4
  326. data/lib/stripe/resources/confirmation_token.rb +155 -0
  327. data/lib/stripe/resources/coupon.rb +26 -1
  328. data/lib/stripe/resources/credit_note.rb +2 -0
  329. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  330. data/lib/stripe/resources/customer.rb +2 -0
  331. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  332. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  333. data/lib/stripe/resources/customer_session.rb +38 -0
  334. data/lib/stripe/resources/discount.rb +2 -0
  335. data/lib/stripe/resources/dispute.rb +22 -0
  336. data/lib/stripe/resources/event.rb +64 -1
  337. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  338. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  339. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  340. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  341. data/lib/stripe/resources/fx_quote.rb +147 -0
  342. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  343. data/lib/stripe/resources/invoice.rb +152 -1
  344. data/lib/stripe/resources/invoice_item.rb +4 -0
  345. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  346. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  347. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  348. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  349. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  350. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  351. data/lib/stripe/resources/line_item.rb +68 -1
  352. data/lib/stripe/resources/mandate.rb +71 -0
  353. data/lib/stripe/resources/margin.rb +64 -0
  354. data/lib/stripe/resources/order.rb +987 -0
  355. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  356. data/lib/stripe/resources/payment_intent.rb +789 -4
  357. data/lib/stripe/resources/payment_method.rb +157 -0
  358. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  359. data/lib/stripe/resources/payment_record.rb +203 -1
  360. data/lib/stripe/resources/price.rb +20 -0
  361. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  362. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  363. data/lib/stripe/resources/promotion_code.rb +2 -0
  364. data/lib/stripe/resources/quote.rb +571 -2
  365. data/lib/stripe/resources/quote_line.rb +521 -0
  366. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  367. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  368. data/lib/stripe/resources/refund.rb +18 -0
  369. data/lib/stripe/resources/setup_attempt.rb +63 -0
  370. data/lib/stripe/resources/setup_intent.rb +132 -1
  371. data/lib/stripe/resources/source.rb +38 -0
  372. data/lib/stripe/resources/subscription.rb +232 -0
  373. data/lib/stripe/resources/subscription_item.rb +20 -1
  374. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  375. data/lib/stripe/resources/tax/association.rb +86 -0
  376. data/lib/stripe/resources/tax/form.rb +264 -0
  377. data/lib/stripe/resources/tax_id.rb +4 -0
  378. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  379. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  380. data/lib/stripe/resources/terminal/reader.rb +8 -0
  381. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  382. data/lib/stripe/resources/transfer.rb +2 -0
  383. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  384. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  385. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  386. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  387. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  388. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  389. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  390. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  391. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  392. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  393. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  394. data/lib/stripe/resources/v2/core/account.rb +3906 -0
  395. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  396. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  397. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  398. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  399. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  400. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  401. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  402. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  403. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  404. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  405. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  406. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  407. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  408. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  409. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  410. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  411. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  412. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  413. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  414. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  415. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  416. data/lib/stripe/resources.rb +112 -0
  417. data/lib/stripe/services/account_notice_service.rb +39 -0
  418. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  419. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  420. data/lib/stripe/services/billing_service.rb +2 -1
  421. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  422. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  423. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  424. data/lib/stripe/services/capital_service.rb +15 -0
  425. data/lib/stripe/services/external_account_service.rb +68 -0
  426. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  427. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  428. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  429. data/lib/stripe/services/financial_connections_service.rb +2 -1
  430. data/lib/stripe/services/fx_quote_service.rb +27 -0
  431. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  432. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  433. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  434. data/lib/stripe/services/issuing_service.rb +5 -1
  435. data/lib/stripe/services/mandate_service.rb +5 -0
  436. data/lib/stripe/services/margin_service.rb +50 -0
  437. data/lib/stripe/services/order_line_item_service.rb +17 -0
  438. data/lib/stripe/services/order_service.rb +78 -0
  439. data/lib/stripe/services/payment_intent_service.rb +37 -0
  440. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  441. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  442. data/lib/stripe/services/privacy_service.rb +13 -0
  443. data/lib/stripe/services/quote_line_service.rb +17 -0
  444. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  445. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  446. data/lib/stripe/services/quote_service.rb +49 -1
  447. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  448. data/lib/stripe/services/subscription_service.rb +11 -0
  449. data/lib/stripe/services/tax/association_service.rb +19 -0
  450. data/lib/stripe/services/tax/form_service.rb +37 -0
  451. data/lib/stripe/services/tax_service.rb +3 -1
  452. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +3 -1
  455. data/lib/stripe/services/v1_services.rb +8 -1
  456. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  457. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  458. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  459. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  462. data/lib/stripe/services/v2/billing_service.rb +5 -1
  463. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  464. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  465. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  466. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  467. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  468. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  469. data/lib/stripe/services/v2/core_service.rb +4 -1
  470. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  471. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  472. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  473. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  474. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  475. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  476. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  477. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  478. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  479. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  480. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  481. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  482. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  483. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  484. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  485. data/lib/stripe/services/v2/payment_service.rb +15 -0
  486. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  487. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  488. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  489. data/lib/stripe/services/v2_services.rb +4 -1
  490. data/lib/stripe/services.rb +58 -0
  491. data/lib/stripe/stripe_configuration.rb +3 -1
  492. data/lib/stripe/stripe_object.rb +1 -1
  493. data/lib/stripe/util.rb +7 -1
  494. data/lib/stripe/version.rb +1 -1
  495. data/lib/stripe.rb +53 -0
  496. data/rbi/stripe.rbi +145086 -86712
  497. metadata +337 -3
@@ -111,6 +111,43 @@ module Stripe
111
111
  end
112
112
  end
113
113
 
114
+ class Hooks < ::Stripe::StripeObject
115
+ class Inputs < ::Stripe::StripeObject
116
+ class Tax < ::Stripe::StripeObject
117
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
118
+ attr_reader :calculation
119
+
120
+ def self.inner_class_types
121
+ @inner_class_types = {}
122
+ end
123
+
124
+ def self.field_remappings
125
+ @field_remappings = {}
126
+ end
127
+ end
128
+ # Attribute for field tax
129
+ attr_reader :tax
130
+
131
+ def self.inner_class_types
132
+ @inner_class_types = { tax: Tax }
133
+ end
134
+
135
+ def self.field_remappings
136
+ @field_remappings = {}
137
+ end
138
+ end
139
+ # Attribute for field inputs
140
+ attr_reader :inputs
141
+
142
+ def self.inner_class_types
143
+ @inner_class_types = { inputs: Inputs }
144
+ end
145
+
146
+ def self.field_remappings
147
+ @field_remappings = {}
148
+ end
149
+ end
150
+
114
151
  class LastPaymentError < ::Stripe::StripeObject
115
152
  # 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.
116
153
  attr_reader :advice_code
@@ -1148,19 +1185,360 @@ module Stripe
1148
1185
  end
1149
1186
 
1150
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
1151
1521
  # A unique value to identify the customer. This field is available only for card payments.
1152
1522
  #
1153
1523
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1154
1524
  attr_reader :customer_reference
1525
+ # Attribute for field event_details
1526
+ attr_reader :event_details
1155
1527
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1156
1528
  #
1157
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`.
1158
1530
  #
1159
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.
1160
1532
  attr_reader :order_reference
1533
+ # Attribute for field subscription
1534
+ attr_reader :subscription
1161
1535
 
1162
1536
  def self.inner_class_types
1163
- @inner_class_types = {}
1537
+ @inner_class_types = {
1538
+ car_rental: CarRental,
1539
+ event_details: EventDetails,
1540
+ subscription: Subscription,
1541
+ }
1164
1542
  end
1165
1543
 
1166
1544
  def self.field_remappings
@@ -1538,6 +1916,43 @@ module Stripe
1538
1916
  @field_remappings = {}
1539
1917
  end
1540
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
1541
1956
  # Controls when the funds will be captured from the customer's account.
1542
1957
  attr_reader :capture_method
1543
1958
  # Installment details for this payment.
@@ -1548,6 +1963,8 @@ module Stripe
1548
1963
  attr_reader :mandate_options
1549
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.
1550
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
1551
1968
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1552
1969
  attr_reader :request_extended_authorization
1553
1970
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1556,6 +1973,8 @@ module Stripe
1556
1973
  attr_reader :request_multicapture
1557
1974
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1558
1975
  attr_reader :request_overcapture
1976
+ # Request partial authorization on this PaymentIntent.
1977
+ attr_reader :request_partial_authorization
1559
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.
1560
1979
  attr_reader :request_three_d_secure
1561
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).
@@ -1572,9 +1991,15 @@ module Stripe
1572
1991
  attr_reader :statement_descriptor_suffix_kana
1573
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.
1574
1993
  attr_reader :statement_descriptor_suffix_kanji
1994
+ # Attribute for field statement_details
1995
+ attr_reader :statement_details
1575
1996
 
1576
1997
  def self.inner_class_types
1577
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
1998
+ @inner_class_types = {
1999
+ installments: Installments,
2000
+ mandate_options: MandateOptions,
2001
+ statement_details: StatementDetails,
2002
+ }
1578
2003
  end
1579
2004
 
1580
2005
  def self.field_remappings
@@ -1761,6 +2186,25 @@ module Stripe
1761
2186
  end
1762
2187
  end
1763
2188
 
2189
+ class Gopay < ::Stripe::StripeObject
2190
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2191
+ #
2192
+ # 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.
2193
+ #
2194
+ # 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.
2195
+ #
2196
+ # 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).
2197
+ attr_reader :setup_future_usage
2198
+
2199
+ def self.inner_class_types
2200
+ @inner_class_types = {}
2201
+ end
2202
+
2203
+ def self.field_remappings
2204
+ @field_remappings = {}
2205
+ end
2206
+ end
2207
+
1764
2208
  class Grabpay < ::Stripe::StripeObject
1765
2209
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1766
2210
  #
@@ -1780,6 +2224,29 @@ module Stripe
1780
2224
  end
1781
2225
  end
1782
2226
 
2227
+ class IdBankTransfer < ::Stripe::StripeObject
2228
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2229
+ attr_reader :expires_after
2230
+ # 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.
2231
+ attr_reader :expires_at
2232
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2233
+ #
2234
+ # 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.
2235
+ #
2236
+ # 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.
2237
+ #
2238
+ # 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).
2239
+ attr_reader :setup_future_usage
2240
+
2241
+ def self.inner_class_types
2242
+ @inner_class_types = {}
2243
+ end
2244
+
2245
+ def self.field_remappings
2246
+ @field_remappings = {}
2247
+ end
2248
+ end
2249
+
1783
2250
  class Ideal < ::Stripe::StripeObject
1784
2251
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1785
2252
  #
@@ -2108,12 +2575,56 @@ module Stripe
2108
2575
  end
2109
2576
 
2110
2577
  class Paypal < ::Stripe::StripeObject
2578
+ class LineItem < ::Stripe::StripeObject
2579
+ class Tax < ::Stripe::StripeObject
2580
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2581
+ attr_reader :amount
2582
+ # The tax behavior for the line item.
2583
+ attr_reader :behavior
2584
+
2585
+ def self.inner_class_types
2586
+ @inner_class_types = {}
2587
+ end
2588
+
2589
+ def self.field_remappings
2590
+ @field_remappings = {}
2591
+ end
2592
+ end
2593
+ # Type of the line item.
2594
+ attr_reader :category
2595
+ # Description of the line item.
2596
+ attr_reader :description
2597
+ # Descriptive name of the line item.
2598
+ attr_reader :name
2599
+ # Quantity of the line item. Cannot be a negative number.
2600
+ attr_reader :quantity
2601
+ # Client facing stock keeping unit, article number or similar.
2602
+ attr_reader :sku
2603
+ # 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).
2604
+ attr_reader :sold_by
2605
+ # Attribute for field tax
2606
+ attr_reader :tax
2607
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2608
+ attr_reader :unit_amount
2609
+
2610
+ def self.inner_class_types
2611
+ @inner_class_types = { tax: Tax }
2612
+ end
2613
+
2614
+ def self.field_remappings
2615
+ @field_remappings = {}
2616
+ end
2617
+ end
2111
2618
  # Controls when the funds will be captured from the customer's account.
2112
2619
  attr_reader :capture_method
2620
+ # The line items purchased by the customer.
2621
+ attr_reader :line_items
2113
2622
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2114
2623
  attr_reader :preferred_locale
2115
2624
  # 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.
2116
2625
  attr_reader :reference
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.
2627
+ attr_reader :reference_id
2117
2628
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2118
2629
  #
2119
2630
  # 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.
@@ -2122,7 +2633,19 @@ module Stripe
2122
2633
  #
2123
2634
  # 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).
2124
2635
  attr_reader :setup_future_usage
2636
+ # 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.
2637
+ attr_reader :subsellers
2638
+
2639
+ def self.inner_class_types
2640
+ @inner_class_types = { line_items: LineItem }
2641
+ end
2642
+
2643
+ def self.field_remappings
2644
+ @field_remappings = {}
2645
+ end
2646
+ end
2125
2647
 
2648
+ class Paypay < ::Stripe::StripeObject
2126
2649
  def self.inner_class_types
2127
2650
  @inner_class_types = {}
2128
2651
  end
@@ -2132,13 +2655,84 @@ module Stripe
2132
2655
  end
2133
2656
  end
2134
2657
 
2658
+ class Payto < ::Stripe::StripeObject
2659
+ class MandateOptions < ::Stripe::StripeObject
2660
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2661
+ attr_reader :amount
2662
+ # 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.
2663
+ attr_reader :amount_type
2664
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2665
+ attr_reader :end_date
2666
+ # The periodicity at which payments will be collected.
2667
+ attr_reader :payment_schedule
2668
+ # 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.
2669
+ attr_reader :payments_per_period
2670
+ # The purpose for which payments are made. Defaults to retail.
2671
+ attr_reader :purpose
2672
+
2673
+ def self.inner_class_types
2674
+ @inner_class_types = {}
2675
+ end
2676
+
2677
+ def self.field_remappings
2678
+ @field_remappings = {}
2679
+ end
2680
+ end
2681
+ # Attribute for field mandate_options
2682
+ attr_reader :mandate_options
2683
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2684
+ #
2685
+ # 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.
2686
+ #
2687
+ # 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.
2688
+ #
2689
+ # 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).
2690
+ attr_reader :setup_future_usage
2691
+
2692
+ def self.inner_class_types
2693
+ @inner_class_types = { mandate_options: MandateOptions }
2694
+ end
2695
+
2696
+ def self.field_remappings
2697
+ @field_remappings = {}
2698
+ end
2699
+ end
2700
+
2135
2701
  class Pix < ::Stripe::StripeObject
2702
+ class MandateOptions < ::Stripe::StripeObject
2703
+ # Amount to be charged for future payments.
2704
+ attr_reader :amount
2705
+ # Determines if the amount includes the IOF tax.
2706
+ attr_reader :amount_includes_iof
2707
+ # Type of amount.
2708
+ attr_reader :amount_type
2709
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
2710
+ attr_reader :currency
2711
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
2712
+ attr_reader :end_date
2713
+ # Schedule at which the future payments will be charged.
2714
+ attr_reader :payment_schedule
2715
+ # Subscription name displayed to buyers in their bank app.
2716
+ attr_reader :reference
2717
+ # Start date of the mandate, in `YYYY-MM-DD`.
2718
+ attr_reader :start_date
2719
+
2720
+ def self.inner_class_types
2721
+ @inner_class_types = {}
2722
+ end
2723
+
2724
+ def self.field_remappings
2725
+ @field_remappings = {}
2726
+ end
2727
+ end
2136
2728
  # Determines if the amount includes the IOF tax.
2137
2729
  attr_reader :amount_includes_iof
2138
2730
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2139
2731
  attr_reader :expires_after_seconds
2140
2732
  # The timestamp at which the Pix expires.
2141
2733
  attr_reader :expires_at
2734
+ # Attribute for field mandate_options
2735
+ attr_reader :mandate_options
2142
2736
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2143
2737
  #
2144
2738
  # 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.
@@ -2149,7 +2743,7 @@ module Stripe
2149
2743
  attr_reader :setup_future_usage
2150
2744
 
2151
2745
  def self.inner_class_types
2152
- @inner_class_types = {}
2746
+ @inner_class_types = { mandate_options: MandateOptions }
2153
2747
  end
2154
2748
 
2155
2749
  def self.field_remappings
@@ -2176,6 +2770,35 @@ module Stripe
2176
2770
  end
2177
2771
  end
2178
2772
 
2773
+ class Qris < ::Stripe::StripeObject
2774
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2775
+ #
2776
+ # 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.
2777
+ #
2778
+ # 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.
2779
+ #
2780
+ # 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).
2781
+ attr_reader :setup_future_usage
2782
+
2783
+ def self.inner_class_types
2784
+ @inner_class_types = {}
2785
+ end
2786
+
2787
+ def self.field_remappings
2788
+ @field_remappings = {}
2789
+ end
2790
+ end
2791
+
2792
+ class Rechnung < ::Stripe::StripeObject
2793
+ def self.inner_class_types
2794
+ @inner_class_types = {}
2795
+ end
2796
+
2797
+ def self.field_remappings
2798
+ @field_remappings = {}
2799
+ end
2800
+ end
2801
+
2179
2802
  class RevolutPay < ::Stripe::StripeObject
2180
2803
  # Controls when the funds will be captured from the customer's account.
2181
2804
  attr_reader :capture_method
@@ -2258,6 +2881,25 @@ module Stripe
2258
2881
  end
2259
2882
  end
2260
2883
 
2884
+ class Shopeepay < ::Stripe::StripeObject
2885
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2886
+ #
2887
+ # 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.
2888
+ #
2889
+ # 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.
2890
+ #
2891
+ # 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).
2892
+ attr_reader :setup_future_usage
2893
+
2894
+ def self.inner_class_types
2895
+ @inner_class_types = {}
2896
+ end
2897
+
2898
+ def self.field_remappings
2899
+ @field_remappings = {}
2900
+ end
2901
+ end
2902
+
2261
2903
  class Sofort < ::Stripe::StripeObject
2262
2904
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2263
2905
  attr_reader :preferred_language
@@ -2279,6 +2921,25 @@ module Stripe
2279
2921
  end
2280
2922
  end
2281
2923
 
2924
+ class StripeBalance < ::Stripe::StripeObject
2925
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2926
+ #
2927
+ # 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.
2928
+ #
2929
+ # 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.
2930
+ #
2931
+ # 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).
2932
+ attr_reader :setup_future_usage
2933
+
2934
+ def self.inner_class_types
2935
+ @inner_class_types = {}
2936
+ end
2937
+
2938
+ def self.field_remappings
2939
+ @field_remappings = {}
2940
+ end
2941
+ end
2942
+
2282
2943
  class Swish < ::Stripe::StripeObject
2283
2944
  # A reference for this payment to be displayed in the Swish app.
2284
2945
  attr_reader :reference
@@ -2324,6 +2985,21 @@ module Stripe
2324
2985
  class Filters < ::Stripe::StripeObject
2325
2986
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2326
2987
  attr_reader :account_subcategories
2988
+ # The institution to use to filter for possible accounts to link.
2989
+ attr_reader :institution
2990
+
2991
+ def self.inner_class_types
2992
+ @inner_class_types = {}
2993
+ end
2994
+
2995
+ def self.field_remappings
2996
+ @field_remappings = {}
2997
+ end
2998
+ end
2999
+
3000
+ class ManualEntry < ::Stripe::StripeObject
3001
+ # Settings for configuring manual entry of account details.
3002
+ attr_reader :mode
2327
3003
 
2328
3004
  def self.inner_class_types
2329
3005
  @inner_class_types = {}
@@ -2335,6 +3011,8 @@ module Stripe
2335
3011
  end
2336
3012
  # Attribute for field filters
2337
3013
  attr_reader :filters
3014
+ # Attribute for field manual_entry
3015
+ attr_reader :manual_entry
2338
3016
  # The list of permissions to request. The `payment_method` permission must be included.
2339
3017
  attr_reader :permissions
2340
3018
  # Data features requested to be retrieved upon account creation.
@@ -2343,7 +3021,7 @@ module Stripe
2343
3021
  attr_reader :return_url
2344
3022
 
2345
3023
  def self.inner_class_types
2346
- @inner_class_types = { filters: Filters }
3024
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
2347
3025
  end
2348
3026
 
2349
3027
  def self.field_remappings
@@ -2475,8 +3153,12 @@ module Stripe
2475
3153
  attr_reader :fpx
2476
3154
  # Attribute for field giropay
2477
3155
  attr_reader :giropay
3156
+ # Attribute for field gopay
3157
+ attr_reader :gopay
2478
3158
  # Attribute for field grabpay
2479
3159
  attr_reader :grabpay
3160
+ # Attribute for field id_bank_transfer
3161
+ attr_reader :id_bank_transfer
2480
3162
  # Attribute for field ideal
2481
3163
  attr_reader :ideal
2482
3164
  # Attribute for field interac_present
@@ -2513,10 +3195,18 @@ module Stripe
2513
3195
  attr_reader :paynow
2514
3196
  # Attribute for field paypal
2515
3197
  attr_reader :paypal
3198
+ # Attribute for field paypay
3199
+ attr_reader :paypay
3200
+ # Attribute for field payto
3201
+ attr_reader :payto
2516
3202
  # Attribute for field pix
2517
3203
  attr_reader :pix
2518
3204
  # Attribute for field promptpay
2519
3205
  attr_reader :promptpay
3206
+ # Attribute for field qris
3207
+ attr_reader :qris
3208
+ # Attribute for field rechnung
3209
+ attr_reader :rechnung
2520
3210
  # Attribute for field revolut_pay
2521
3211
  attr_reader :revolut_pay
2522
3212
  # Attribute for field samsung_pay
@@ -2525,8 +3215,12 @@ module Stripe
2525
3215
  attr_reader :satispay
2526
3216
  # Attribute for field sepa_debit
2527
3217
  attr_reader :sepa_debit
3218
+ # Attribute for field shopeepay
3219
+ attr_reader :shopeepay
2528
3220
  # Attribute for field sofort
2529
3221
  attr_reader :sofort
3222
+ # Attribute for field stripe_balance
3223
+ attr_reader :stripe_balance
2530
3224
  # Attribute for field swish
2531
3225
  attr_reader :swish
2532
3226
  # Attribute for field twint
@@ -2560,7 +3254,9 @@ module Stripe
2560
3254
  eps: Eps,
2561
3255
  fpx: Fpx,
2562
3256
  giropay: Giropay,
3257
+ gopay: Gopay,
2563
3258
  grabpay: Grabpay,
3259
+ id_bank_transfer: IdBankTransfer,
2564
3260
  ideal: Ideal,
2565
3261
  interac_present: InteracPresent,
2566
3262
  kakao_pay: KakaoPay,
@@ -2579,13 +3275,19 @@ module Stripe
2579
3275
  payco: Payco,
2580
3276
  paynow: Paynow,
2581
3277
  paypal: Paypal,
3278
+ paypay: Paypay,
3279
+ payto: Payto,
2582
3280
  pix: Pix,
2583
3281
  promptpay: Promptpay,
3282
+ qris: Qris,
3283
+ rechnung: Rechnung,
2584
3284
  revolut_pay: RevolutPay,
2585
3285
  samsung_pay: SamsungPay,
2586
3286
  satispay: Satispay,
2587
3287
  sepa_debit: SepaDebit,
3288
+ shopeepay: Shopeepay,
2588
3289
  sofort: Sofort,
3290
+ stripe_balance: StripeBalance,
2589
3291
  swish: Swish,
2590
3292
  twint: Twint,
2591
3293
  us_bank_account: UsBankAccount,
@@ -2752,10 +3454,20 @@ module Stripe
2752
3454
  #
2753
3455
  # 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.
2754
3456
  attr_reader :customer
3457
+ # ID of the Account this PaymentIntent belongs to, if one exists.
3458
+ #
3459
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3460
+ #
3461
+ # 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.
3462
+ attr_reader :customer_account
2755
3463
  # An arbitrary string attached to the object. Often useful for displaying to users.
2756
3464
  attr_reader :description
2757
3465
  # The list of payment method types to exclude from use with this payment.
2758
3466
  attr_reader :excluded_payment_method_types
3467
+ # The FX Quote used for the PaymentIntent.
3468
+ attr_reader :fx_quote
3469
+ # Attribute for field hooks
3470
+ attr_reader :hooks
2759
3471
  # Unique identifier for the object.
2760
3472
  attr_reader :id
2761
3473
  # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
@@ -2790,6 +3502,8 @@ module Stripe
2790
3502
  attr_reader :receipt_email
2791
3503
  # ID of the review associated with this PaymentIntent, if any.
2792
3504
  attr_reader :review
3505
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3506
+ attr_reader :secret_key_confirmation
2793
3507
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2794
3508
  #
2795
3509
  # 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.
@@ -2983,6 +3697,56 @@ module Stripe
2983
3697
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
2984
3698
  end
2985
3699
 
3700
+ # Perform a decremental authorization on an eligible
3701
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3702
+ # PaymentIntent's status must be requires_capture and
3703
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3704
+ # must be available.
3705
+ #
3706
+ # Decremental authorizations decrease the authorized amount on your customer's card
3707
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3708
+ #
3709
+ # After decrement, the PaymentIntent object
3710
+ # returns with the updated
3711
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3712
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3713
+ #
3714
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3715
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3716
+ def decrement_authorization(params = {}, opts = {})
3717
+ request_stripe_object(
3718
+ method: :post,
3719
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
3720
+ params: params,
3721
+ opts: opts
3722
+ )
3723
+ end
3724
+
3725
+ # Perform a decremental authorization on an eligible
3726
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3727
+ # PaymentIntent's status must be requires_capture and
3728
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3729
+ # must be available.
3730
+ #
3731
+ # Decremental authorizations decrease the authorized amount on your customer's card
3732
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3733
+ #
3734
+ # After decrement, the PaymentIntent object
3735
+ # returns with the updated
3736
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3737
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3738
+ #
3739
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3740
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3741
+ def self.decrement_authorization(intent, params = {}, opts = {})
3742
+ request_stripe_object(
3743
+ method: :post,
3744
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
3745
+ params: params,
3746
+ opts: opts
3747
+ )
3748
+ end
3749
+
2986
3750
  # Perform an incremental authorization on an eligible
2987
3751
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
2988
3752
  # PaymentIntent's status must be requires_capture and
@@ -3067,6 +3831,26 @@ module Stripe
3067
3831
  search(params, opts).auto_paging_each(&blk)
3068
3832
  end
3069
3833
 
3834
+ # Trigger an external action on a PaymentIntent.
3835
+ def trigger_action(params = {}, opts = {})
3836
+ request_stripe_object(
3837
+ method: :post,
3838
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
3839
+ params: params,
3840
+ opts: opts
3841
+ )
3842
+ end
3843
+
3844
+ # Trigger an external action on a PaymentIntent.
3845
+ def self.trigger_action(intent, params = {}, opts = {})
3846
+ request_stripe_object(
3847
+ method: :post,
3848
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
3849
+ params: params,
3850
+ opts: opts
3851
+ )
3852
+ end
3853
+
3070
3854
  # Updates properties on a PaymentIntent object without confirming.
3071
3855
  #
3072
3856
  # Depending on which properties you update, you might need to confirm the
@@ -3107,6 +3891,7 @@ module Stripe
3107
3891
  @inner_class_types = {
3108
3892
  amount_details: AmountDetails,
3109
3893
  automatic_payment_methods: AutomaticPaymentMethods,
3894
+ hooks: Hooks,
3110
3895
  last_payment_error: LastPaymentError,
3111
3896
  next_action: NextAction,
3112
3897
  payment_details: PaymentDetails,