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
@@ -174,21 +174,770 @@ module Stripe
174
174
  end
175
175
  end
176
176
 
177
+ class Hooks < ::Stripe::RequestParams
178
+ class Inputs < ::Stripe::RequestParams
179
+ class Tax < ::Stripe::RequestParams
180
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
181
+ attr_accessor :calculation
182
+
183
+ def initialize(calculation: nil)
184
+ @calculation = calculation
185
+ end
186
+ end
187
+ # Tax arguments for automations
188
+ attr_accessor :tax
189
+
190
+ def initialize(tax: nil)
191
+ @tax = tax
192
+ end
193
+ end
194
+ # Arguments passed in automations
195
+ attr_accessor :inputs
196
+
197
+ def initialize(inputs: nil)
198
+ @inputs = inputs
199
+ end
200
+ end
201
+
202
+ class MandateData < ::Stripe::RequestParams
203
+ class CustomerAcceptance < ::Stripe::RequestParams
204
+ class Online < ::Stripe::RequestParams
205
+ # The IP address from which the Mandate was accepted by the customer.
206
+ attr_accessor :ip_address
207
+ # The user agent of the browser from which the Mandate was accepted by the customer.
208
+ attr_accessor :user_agent
209
+
210
+ def initialize(ip_address: nil, user_agent: nil)
211
+ @ip_address = ip_address
212
+ @user_agent = user_agent
213
+ end
214
+ end
215
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
216
+ attr_accessor :online
217
+ # The type of customer acceptance information included with the Mandate.
218
+ attr_accessor :type
219
+
220
+ def initialize(online: nil, type: nil)
221
+ @online = online
222
+ @type = type
223
+ end
224
+ end
225
+ # This hash contains details about the customer acceptance of the Mandate.
226
+ attr_accessor :customer_acceptance
227
+
228
+ def initialize(customer_acceptance: nil)
229
+ @customer_acceptance = customer_acceptance
230
+ end
231
+ end
232
+
177
233
  class PaymentDetails < ::Stripe::RequestParams
234
+ class CarRental < ::Stripe::RequestParams
235
+ class Affiliate < ::Stripe::RequestParams
236
+ # The name of the affiliate that originated the purchase.
237
+ attr_accessor :name
238
+
239
+ def initialize(name: nil)
240
+ @name = name
241
+ end
242
+ end
243
+
244
+ class Delivery < ::Stripe::RequestParams
245
+ class Recipient < ::Stripe::RequestParams
246
+ # The email of the recipient the ticket is delivered to.
247
+ attr_accessor :email
248
+ # The name of the recipient the ticket is delivered to.
249
+ attr_accessor :name
250
+ # The phone number of the recipient the ticket is delivered to.
251
+ attr_accessor :phone
252
+
253
+ def initialize(email: nil, name: nil, phone: nil)
254
+ @email = email
255
+ @name = name
256
+ @phone = phone
257
+ end
258
+ end
259
+ # The delivery method for the payment
260
+ attr_accessor :mode
261
+ # Details of the recipient.
262
+ attr_accessor :recipient
263
+
264
+ def initialize(mode: nil, recipient: nil)
265
+ @mode = mode
266
+ @recipient = recipient
267
+ end
268
+ end
269
+
270
+ class Distance < ::Stripe::RequestParams
271
+ # Distance traveled.
272
+ attr_accessor :amount
273
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
274
+ attr_accessor :unit
275
+
276
+ def initialize(amount: nil, unit: nil)
277
+ @amount = amount
278
+ @unit = unit
279
+ end
280
+ end
281
+
282
+ class Driver < ::Stripe::RequestParams
283
+ # Driver's identification number.
284
+ attr_accessor :driver_identification_number
285
+ # Driver's tax number.
286
+ attr_accessor :driver_tax_number
287
+ # Full name of the person or entity on the car reservation.
288
+ attr_accessor :name
289
+
290
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
291
+ @driver_identification_number = driver_identification_number
292
+ @driver_tax_number = driver_tax_number
293
+ @name = name
294
+ end
295
+ end
296
+
297
+ class PickupAddress < ::Stripe::RequestParams
298
+ # City, district, suburb, town, or village.
299
+ attr_accessor :city
300
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
301
+ attr_accessor :country
302
+ # Address line 1, such as the street, PO Box, or company name.
303
+ attr_accessor :line1
304
+ # Address line 2, such as the apartment, suite, unit, or building.
305
+ attr_accessor :line2
306
+ # ZIP or postal code.
307
+ attr_accessor :postal_code
308
+ # State, county, province, or region.
309
+ attr_accessor :state
310
+
311
+ def initialize(
312
+ city: nil,
313
+ country: nil,
314
+ line1: nil,
315
+ line2: nil,
316
+ postal_code: nil,
317
+ state: nil
318
+ )
319
+ @city = city
320
+ @country = country
321
+ @line1 = line1
322
+ @line2 = line2
323
+ @postal_code = postal_code
324
+ @state = state
325
+ end
326
+ end
327
+
328
+ class ReturnAddress < ::Stripe::RequestParams
329
+ # City, district, suburb, town, or village.
330
+ attr_accessor :city
331
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
332
+ attr_accessor :country
333
+ # Address line 1, such as the street, PO Box, or company name.
334
+ attr_accessor :line1
335
+ # Address line 2, such as the apartment, suite, unit, or building.
336
+ attr_accessor :line2
337
+ # ZIP or postal code.
338
+ attr_accessor :postal_code
339
+ # State, county, province, or region.
340
+ attr_accessor :state
341
+
342
+ def initialize(
343
+ city: nil,
344
+ country: nil,
345
+ line1: nil,
346
+ line2: nil,
347
+ postal_code: nil,
348
+ state: nil
349
+ )
350
+ @city = city
351
+ @country = country
352
+ @line1 = line1
353
+ @line2 = line2
354
+ @postal_code = postal_code
355
+ @state = state
356
+ end
357
+ end
358
+ # Affiliate details for this purchase.
359
+ attr_accessor :affiliate
360
+ # The booking number associated with the car rental.
361
+ attr_accessor :booking_number
362
+ # Class code of the car.
363
+ attr_accessor :car_class_code
364
+ # Make of the car.
365
+ attr_accessor :car_make
366
+ # Model of the car.
367
+ attr_accessor :car_model
368
+ # The name of the rental car company.
369
+ attr_accessor :company
370
+ # The customer service phone number of the car rental company.
371
+ attr_accessor :customer_service_phone_number
372
+ # Number of days the car is being rented.
373
+ attr_accessor :days_rented
374
+ # Delivery details for this purchase.
375
+ attr_accessor :delivery
376
+ # The details of the distance traveled during the rental period.
377
+ attr_accessor :distance
378
+ # The details of the passengers in the travel reservation
379
+ attr_accessor :drivers
380
+ # List of additional charges being billed.
381
+ attr_accessor :extra_charges
382
+ # Indicates if the customer did not keep nor cancel their booking.
383
+ attr_accessor :no_show
384
+ # Car pick-up address.
385
+ attr_accessor :pickup_address
386
+ # Car pick-up time. Measured in seconds since the Unix epoch.
387
+ attr_accessor :pickup_at
388
+ # Name of the pickup location.
389
+ attr_accessor :pickup_location_name
390
+ # Rental rate.
391
+ attr_accessor :rate_amount
392
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
393
+ attr_accessor :rate_interval
394
+ # The name of the person or entity renting the car.
395
+ attr_accessor :renter_name
396
+ # Car return address.
397
+ attr_accessor :return_address
398
+ # Car return time. Measured in seconds since the Unix epoch.
399
+ attr_accessor :return_at
400
+ # Name of the return location.
401
+ attr_accessor :return_location_name
402
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
403
+ attr_accessor :tax_exempt
404
+ # The vehicle identification number.
405
+ attr_accessor :vehicle_identification_number
406
+
407
+ def initialize(
408
+ affiliate: nil,
409
+ booking_number: nil,
410
+ car_class_code: nil,
411
+ car_make: nil,
412
+ car_model: nil,
413
+ company: nil,
414
+ customer_service_phone_number: nil,
415
+ days_rented: nil,
416
+ delivery: nil,
417
+ distance: nil,
418
+ drivers: nil,
419
+ extra_charges: nil,
420
+ no_show: nil,
421
+ pickup_address: nil,
422
+ pickup_at: nil,
423
+ pickup_location_name: nil,
424
+ rate_amount: nil,
425
+ rate_interval: nil,
426
+ renter_name: nil,
427
+ return_address: nil,
428
+ return_at: nil,
429
+ return_location_name: nil,
430
+ tax_exempt: nil,
431
+ vehicle_identification_number: nil
432
+ )
433
+ @affiliate = affiliate
434
+ @booking_number = booking_number
435
+ @car_class_code = car_class_code
436
+ @car_make = car_make
437
+ @car_model = car_model
438
+ @company = company
439
+ @customer_service_phone_number = customer_service_phone_number
440
+ @days_rented = days_rented
441
+ @delivery = delivery
442
+ @distance = distance
443
+ @drivers = drivers
444
+ @extra_charges = extra_charges
445
+ @no_show = no_show
446
+ @pickup_address = pickup_address
447
+ @pickup_at = pickup_at
448
+ @pickup_location_name = pickup_location_name
449
+ @rate_amount = rate_amount
450
+ @rate_interval = rate_interval
451
+ @renter_name = renter_name
452
+ @return_address = return_address
453
+ @return_at = return_at
454
+ @return_location_name = return_location_name
455
+ @tax_exempt = tax_exempt
456
+ @vehicle_identification_number = vehicle_identification_number
457
+ end
458
+ end
459
+
460
+ class EventDetails < ::Stripe::RequestParams
461
+ class Address < ::Stripe::RequestParams
462
+ # City, district, suburb, town, or village.
463
+ attr_accessor :city
464
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
465
+ attr_accessor :country
466
+ # Address line 1, such as the street, PO Box, or company name.
467
+ attr_accessor :line1
468
+ # Address line 2, such as the apartment, suite, unit, or building.
469
+ attr_accessor :line2
470
+ # ZIP or postal code.
471
+ attr_accessor :postal_code
472
+ # State, county, province, or region.
473
+ attr_accessor :state
474
+
475
+ def initialize(
476
+ city: nil,
477
+ country: nil,
478
+ line1: nil,
479
+ line2: nil,
480
+ postal_code: nil,
481
+ state: nil
482
+ )
483
+ @city = city
484
+ @country = country
485
+ @line1 = line1
486
+ @line2 = line2
487
+ @postal_code = postal_code
488
+ @state = state
489
+ end
490
+ end
491
+
492
+ class Affiliate < ::Stripe::RequestParams
493
+ # The name of the affiliate that originated the purchase.
494
+ attr_accessor :name
495
+
496
+ def initialize(name: nil)
497
+ @name = name
498
+ end
499
+ end
500
+
501
+ class Delivery < ::Stripe::RequestParams
502
+ class Recipient < ::Stripe::RequestParams
503
+ # The email of the recipient the ticket is delivered to.
504
+ attr_accessor :email
505
+ # The name of the recipient the ticket is delivered to.
506
+ attr_accessor :name
507
+ # The phone number of the recipient the ticket is delivered to.
508
+ attr_accessor :phone
509
+
510
+ def initialize(email: nil, name: nil, phone: nil)
511
+ @email = email
512
+ @name = name
513
+ @phone = phone
514
+ end
515
+ end
516
+ # The delivery method for the payment
517
+ attr_accessor :mode
518
+ # Details of the recipient.
519
+ attr_accessor :recipient
520
+
521
+ def initialize(mode: nil, recipient: nil)
522
+ @mode = mode
523
+ @recipient = recipient
524
+ end
525
+ end
526
+ # Indicates if the tickets are digitally checked when entering the venue.
527
+ attr_accessor :access_controlled_venue
528
+ # The event location's address.
529
+ attr_accessor :address
530
+ # Affiliate details for this purchase.
531
+ attr_accessor :affiliate
532
+ # The name of the company
533
+ attr_accessor :company
534
+ # Delivery details for this purchase.
535
+ attr_accessor :delivery
536
+ # Event end time. Measured in seconds since the Unix epoch.
537
+ attr_accessor :ends_at
538
+ # Type of the event entertainment (concert, sports event etc)
539
+ attr_accessor :genre
540
+ # The name of the event.
541
+ attr_accessor :name
542
+ # Event start time. Measured in seconds since the Unix epoch.
543
+ attr_accessor :starts_at
544
+
545
+ def initialize(
546
+ access_controlled_venue: nil,
547
+ address: nil,
548
+ affiliate: nil,
549
+ company: nil,
550
+ delivery: nil,
551
+ ends_at: nil,
552
+ genre: nil,
553
+ name: nil,
554
+ starts_at: nil
555
+ )
556
+ @access_controlled_venue = access_controlled_venue
557
+ @address = address
558
+ @affiliate = affiliate
559
+ @company = company
560
+ @delivery = delivery
561
+ @ends_at = ends_at
562
+ @genre = genre
563
+ @name = name
564
+ @starts_at = starts_at
565
+ end
566
+ end
567
+
568
+ class Flight < ::Stripe::RequestParams
569
+ class Affiliate < ::Stripe::RequestParams
570
+ # The name of the affiliate that originated the purchase.
571
+ attr_accessor :name
572
+
573
+ def initialize(name: nil)
574
+ @name = name
575
+ end
576
+ end
577
+
578
+ class Delivery < ::Stripe::RequestParams
579
+ class Recipient < ::Stripe::RequestParams
580
+ # The email of the recipient the ticket is delivered to.
581
+ attr_accessor :email
582
+ # The name of the recipient the ticket is delivered to.
583
+ attr_accessor :name
584
+ # The phone number of the recipient the ticket is delivered to.
585
+ attr_accessor :phone
586
+
587
+ def initialize(email: nil, name: nil, phone: nil)
588
+ @email = email
589
+ @name = name
590
+ @phone = phone
591
+ end
592
+ end
593
+ # The delivery method for the payment
594
+ attr_accessor :mode
595
+ # Details of the recipient.
596
+ attr_accessor :recipient
597
+
598
+ def initialize(mode: nil, recipient: nil)
599
+ @mode = mode
600
+ @recipient = recipient
601
+ end
602
+ end
603
+
604
+ class Passenger < ::Stripe::RequestParams
605
+ # Full name of the person or entity on the flight reservation.
606
+ attr_accessor :name
607
+
608
+ def initialize(name: nil)
609
+ @name = name
610
+ end
611
+ end
612
+
613
+ class Segment < ::Stripe::RequestParams
614
+ # The flight segment amount.
615
+ attr_accessor :amount
616
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
617
+ attr_accessor :arrival_airport
618
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
619
+ attr_accessor :arrives_at
620
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
621
+ attr_accessor :carrier
622
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
623
+ attr_accessor :departs_at
624
+ # The International Air Transport Association (IATA) airport code for the departure airport.
625
+ attr_accessor :departure_airport
626
+ # The flight number associated with the segment
627
+ attr_accessor :flight_number
628
+ # The fare class for the segment.
629
+ attr_accessor :service_class
630
+
631
+ def initialize(
632
+ amount: nil,
633
+ arrival_airport: nil,
634
+ arrives_at: nil,
635
+ carrier: nil,
636
+ departs_at: nil,
637
+ departure_airport: nil,
638
+ flight_number: nil,
639
+ service_class: nil
640
+ )
641
+ @amount = amount
642
+ @arrival_airport = arrival_airport
643
+ @arrives_at = arrives_at
644
+ @carrier = carrier
645
+ @departs_at = departs_at
646
+ @departure_airport = departure_airport
647
+ @flight_number = flight_number
648
+ @service_class = service_class
649
+ end
650
+ end
651
+ # Affiliate details for this purchase.
652
+ attr_accessor :affiliate
653
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
654
+ attr_accessor :agency_number
655
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
656
+ attr_accessor :carrier
657
+ # Delivery details for this purchase.
658
+ attr_accessor :delivery
659
+ # The name of the person or entity on the reservation.
660
+ attr_accessor :passenger_name
661
+ # The details of the passengers in the travel reservation.
662
+ attr_accessor :passengers
663
+ # The individual flight segments associated with the trip.
664
+ attr_accessor :segments
665
+ # The ticket number associated with the travel reservation.
666
+ attr_accessor :ticket_number
667
+
668
+ def initialize(
669
+ affiliate: nil,
670
+ agency_number: nil,
671
+ carrier: nil,
672
+ delivery: nil,
673
+ passenger_name: nil,
674
+ passengers: nil,
675
+ segments: nil,
676
+ ticket_number: nil
677
+ )
678
+ @affiliate = affiliate
679
+ @agency_number = agency_number
680
+ @carrier = carrier
681
+ @delivery = delivery
682
+ @passenger_name = passenger_name
683
+ @passengers = passengers
684
+ @segments = segments
685
+ @ticket_number = ticket_number
686
+ end
687
+ end
688
+
689
+ class Lodging < ::Stripe::RequestParams
690
+ class Address < ::Stripe::RequestParams
691
+ # City, district, suburb, town, or village.
692
+ attr_accessor :city
693
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
694
+ attr_accessor :country
695
+ # Address line 1, such as the street, PO Box, or company name.
696
+ attr_accessor :line1
697
+ # Address line 2, such as the apartment, suite, unit, or building.
698
+ attr_accessor :line2
699
+ # ZIP or postal code.
700
+ attr_accessor :postal_code
701
+ # State, county, province, or region.
702
+ attr_accessor :state
703
+
704
+ def initialize(
705
+ city: nil,
706
+ country: nil,
707
+ line1: nil,
708
+ line2: nil,
709
+ postal_code: nil,
710
+ state: nil
711
+ )
712
+ @city = city
713
+ @country = country
714
+ @line1 = line1
715
+ @line2 = line2
716
+ @postal_code = postal_code
717
+ @state = state
718
+ end
719
+ end
720
+
721
+ class Affiliate < ::Stripe::RequestParams
722
+ # The name of the affiliate that originated the purchase.
723
+ attr_accessor :name
724
+
725
+ def initialize(name: nil)
726
+ @name = name
727
+ end
728
+ end
729
+
730
+ class Delivery < ::Stripe::RequestParams
731
+ class Recipient < ::Stripe::RequestParams
732
+ # The email of the recipient the ticket is delivered to.
733
+ attr_accessor :email
734
+ # The name of the recipient the ticket is delivered to.
735
+ attr_accessor :name
736
+ # The phone number of the recipient the ticket is delivered to.
737
+ attr_accessor :phone
738
+
739
+ def initialize(email: nil, name: nil, phone: nil)
740
+ @email = email
741
+ @name = name
742
+ @phone = phone
743
+ end
744
+ end
745
+ # The delivery method for the payment
746
+ attr_accessor :mode
747
+ # Details of the recipient.
748
+ attr_accessor :recipient
749
+
750
+ def initialize(mode: nil, recipient: nil)
751
+ @mode = mode
752
+ @recipient = recipient
753
+ end
754
+ end
755
+
756
+ class Passenger < ::Stripe::RequestParams
757
+ # Full name of the person or entity on the lodging reservation.
758
+ attr_accessor :name
759
+
760
+ def initialize(name: nil)
761
+ @name = name
762
+ end
763
+ end
764
+ # The lodging location's address.
765
+ attr_accessor :address
766
+ # The number of adults on the booking
767
+ attr_accessor :adults
768
+ # Affiliate details for this purchase.
769
+ attr_accessor :affiliate
770
+ # The booking number associated with the lodging reservation.
771
+ attr_accessor :booking_number
772
+ # The lodging category
773
+ attr_accessor :category
774
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
775
+ attr_accessor :checkin_at
776
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
777
+ attr_accessor :checkout_at
778
+ # The customer service phone number of the lodging company.
779
+ attr_accessor :customer_service_phone_number
780
+ # The daily lodging room rate.
781
+ attr_accessor :daily_room_rate_amount
782
+ # Delivery details for this purchase.
783
+ attr_accessor :delivery
784
+ # List of additional charges being billed.
785
+ attr_accessor :extra_charges
786
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
787
+ attr_accessor :fire_safety_act_compliance
788
+ # The name of the lodging location.
789
+ attr_accessor :name
790
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
791
+ attr_accessor :no_show
792
+ # The number of rooms on the booking
793
+ attr_accessor :number_of_rooms
794
+ # The details of the passengers in the travel reservation
795
+ attr_accessor :passengers
796
+ # The phone number of the lodging location.
797
+ attr_accessor :property_phone_number
798
+ # The room class for this purchase.
799
+ attr_accessor :room_class
800
+ # The number of room nights
801
+ attr_accessor :room_nights
802
+ # The total tax amount associating with the room reservation.
803
+ attr_accessor :total_room_tax_amount
804
+ # The total tax amount
805
+ attr_accessor :total_tax_amount
806
+
807
+ def initialize(
808
+ address: nil,
809
+ adults: nil,
810
+ affiliate: nil,
811
+ booking_number: nil,
812
+ category: nil,
813
+ checkin_at: nil,
814
+ checkout_at: nil,
815
+ customer_service_phone_number: nil,
816
+ daily_room_rate_amount: nil,
817
+ delivery: nil,
818
+ extra_charges: nil,
819
+ fire_safety_act_compliance: nil,
820
+ name: nil,
821
+ no_show: nil,
822
+ number_of_rooms: nil,
823
+ passengers: nil,
824
+ property_phone_number: nil,
825
+ room_class: nil,
826
+ room_nights: nil,
827
+ total_room_tax_amount: nil,
828
+ total_tax_amount: nil
829
+ )
830
+ @address = address
831
+ @adults = adults
832
+ @affiliate = affiliate
833
+ @booking_number = booking_number
834
+ @category = category
835
+ @checkin_at = checkin_at
836
+ @checkout_at = checkout_at
837
+ @customer_service_phone_number = customer_service_phone_number
838
+ @daily_room_rate_amount = daily_room_rate_amount
839
+ @delivery = delivery
840
+ @extra_charges = extra_charges
841
+ @fire_safety_act_compliance = fire_safety_act_compliance
842
+ @name = name
843
+ @no_show = no_show
844
+ @number_of_rooms = number_of_rooms
845
+ @passengers = passengers
846
+ @property_phone_number = property_phone_number
847
+ @room_class = room_class
848
+ @room_nights = room_nights
849
+ @total_room_tax_amount = total_room_tax_amount
850
+ @total_tax_amount = total_tax_amount
851
+ end
852
+ end
853
+
854
+ class Subscription < ::Stripe::RequestParams
855
+ class Affiliate < ::Stripe::RequestParams
856
+ # The name of the affiliate that originated the purchase.
857
+ attr_accessor :name
858
+
859
+ def initialize(name: nil)
860
+ @name = name
861
+ end
862
+ end
863
+
864
+ class BillingInterval < ::Stripe::RequestParams
865
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
866
+ attr_accessor :count
867
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
868
+ attr_accessor :interval
869
+
870
+ def initialize(count: nil, interval: nil)
871
+ @count = count
872
+ @interval = interval
873
+ end
874
+ end
875
+ # Affiliate details for this purchase.
876
+ attr_accessor :affiliate
877
+ # Info whether the subscription will be auto renewed upon expiry.
878
+ attr_accessor :auto_renewal
879
+ # Subscription billing details for this purchase.
880
+ attr_accessor :billing_interval
881
+ # Subscription end time. Measured in seconds since the Unix epoch.
882
+ attr_accessor :ends_at
883
+ # Name of the product on subscription. e.g. Apple Music Subscription
884
+ attr_accessor :name
885
+ # Subscription start time. Measured in seconds since the Unix epoch.
886
+ attr_accessor :starts_at
887
+
888
+ def initialize(
889
+ affiliate: nil,
890
+ auto_renewal: nil,
891
+ billing_interval: nil,
892
+ ends_at: nil,
893
+ name: nil,
894
+ starts_at: nil
895
+ )
896
+ @affiliate = affiliate
897
+ @auto_renewal = auto_renewal
898
+ @billing_interval = billing_interval
899
+ @ends_at = ends_at
900
+ @name = name
901
+ @starts_at = starts_at
902
+ end
903
+ end
904
+ # Car rental details for this PaymentIntent.
905
+ attr_accessor :car_rental
178
906
  # A unique value to identify the customer. This field is available only for card payments.
179
907
  #
180
908
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
181
909
  attr_accessor :customer_reference
910
+ # Event details for this PaymentIntent
911
+ attr_accessor :event_details
912
+ # Flight reservation details for this PaymentIntent
913
+ attr_accessor :flight
914
+ # Lodging reservation details for this PaymentIntent
915
+ attr_accessor :lodging
182
916
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
183
917
  #
184
918
  # 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`.
185
919
  #
186
920
  # 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.
187
921
  attr_accessor :order_reference
922
+ # Subscription details for this PaymentIntent
923
+ attr_accessor :subscription
188
924
 
189
- def initialize(customer_reference: nil, order_reference: nil)
925
+ def initialize(
926
+ car_rental: nil,
927
+ customer_reference: nil,
928
+ event_details: nil,
929
+ flight: nil,
930
+ lodging: nil,
931
+ order_reference: nil,
932
+ subscription: nil
933
+ )
934
+ @car_rental = car_rental
190
935
  @customer_reference = customer_reference
936
+ @event_details = event_details
937
+ @flight = flight
938
+ @lodging = lodging
191
939
  @order_reference = order_reference
940
+ @subscription = subscription
192
941
  end
193
942
  end
194
943
 
@@ -329,8 +1078,18 @@ module Stripe
329
1078
  end
330
1079
 
331
1080
  class Giropay < ::Stripe::RequestParams; end
1081
+ class Gopay < ::Stripe::RequestParams; end
332
1082
  class Grabpay < ::Stripe::RequestParams; end
333
1083
 
1084
+ class IdBankTransfer < ::Stripe::RequestParams
1085
+ # Bank where the account is held.
1086
+ attr_accessor :bank
1087
+
1088
+ def initialize(bank: nil)
1089
+ @bank = bank
1090
+ end
1091
+ end
1092
+
334
1093
  class Ideal < ::Stripe::RequestParams
335
1094
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
336
1095
  attr_accessor :bank
@@ -428,8 +1187,26 @@ module Stripe
428
1187
  class Payco < ::Stripe::RequestParams; end
429
1188
  class Paynow < ::Stripe::RequestParams; end
430
1189
  class Paypal < ::Stripe::RequestParams; end
1190
+ class Paypay < ::Stripe::RequestParams; end
1191
+
1192
+ class Payto < ::Stripe::RequestParams
1193
+ # The account number for the bank account.
1194
+ attr_accessor :account_number
1195
+ # Bank-State-Branch number of the bank account.
1196
+ attr_accessor :bsb_number
1197
+ # The PayID alias for the bank account.
1198
+ attr_accessor :pay_id
1199
+
1200
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1201
+ @account_number = account_number
1202
+ @bsb_number = bsb_number
1203
+ @pay_id = pay_id
1204
+ end
1205
+ end
1206
+
431
1207
  class Pix < ::Stripe::RequestParams; end
432
1208
  class Promptpay < ::Stripe::RequestParams; end
1209
+ class Qris < ::Stripe::RequestParams; end
433
1210
 
434
1211
  class RadarOptions < ::Stripe::RequestParams
435
1212
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -440,6 +1217,29 @@ module Stripe
440
1217
  end
441
1218
  end
442
1219
 
1220
+ class Rechnung < ::Stripe::RequestParams
1221
+ class Dob < ::Stripe::RequestParams
1222
+ # The day of birth, between 1 and 31.
1223
+ attr_accessor :day
1224
+ # The month of birth, between 1 and 12.
1225
+ attr_accessor :month
1226
+ # The four-digit year of birth.
1227
+ attr_accessor :year
1228
+
1229
+ def initialize(day: nil, month: nil, year: nil)
1230
+ @day = day
1231
+ @month = month
1232
+ @year = year
1233
+ end
1234
+ end
1235
+ # Customer's date of birth
1236
+ attr_accessor :dob
1237
+
1238
+ def initialize(dob: nil)
1239
+ @dob = dob
1240
+ end
1241
+ end
1242
+
443
1243
  class RevolutPay < ::Stripe::RequestParams; end
444
1244
  class SamsungPay < ::Stripe::RequestParams; end
445
1245
  class Satispay < ::Stripe::RequestParams; end
@@ -453,6 +1253,8 @@ module Stripe
453
1253
  end
454
1254
  end
455
1255
 
1256
+ class Shopeepay < ::Stripe::RequestParams; end
1257
+
456
1258
  class Sofort < ::Stripe::RequestParams
457
1259
  # Two-letter ISO code representing the country the bank account is located in.
458
1260
  attr_accessor :country
@@ -462,6 +1264,18 @@ module Stripe
462
1264
  end
463
1265
  end
464
1266
 
1267
+ class StripeBalance < ::Stripe::RequestParams
1268
+ # The connected account ID whose Stripe balance to use as the source of payment
1269
+ attr_accessor :account
1270
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1271
+ attr_accessor :source_type
1272
+
1273
+ def initialize(account: nil, source_type: nil)
1274
+ @account = account
1275
+ @source_type = source_type
1276
+ end
1277
+ end
1278
+
465
1279
  class Swish < ::Stripe::RequestParams; end
466
1280
  class Twint < ::Stripe::RequestParams; end
467
1281
 
@@ -534,8 +1348,12 @@ module Stripe
534
1348
  attr_accessor :fpx
535
1349
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
536
1350
  attr_accessor :giropay
1351
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1352
+ attr_accessor :gopay
537
1353
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
538
1354
  attr_accessor :grabpay
1355
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1356
+ attr_accessor :id_bank_transfer
539
1357
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
540
1358
  attr_accessor :ideal
541
1359
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -574,12 +1392,20 @@ module Stripe
574
1392
  attr_accessor :paynow
575
1393
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
576
1394
  attr_accessor :paypal
1395
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1396
+ attr_accessor :paypay
1397
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1398
+ attr_accessor :payto
577
1399
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
578
1400
  attr_accessor :pix
579
1401
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
580
1402
  attr_accessor :promptpay
1403
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1404
+ attr_accessor :qris
581
1405
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
582
1406
  attr_accessor :radar_options
1407
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1408
+ attr_accessor :rechnung
583
1409
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
584
1410
  attr_accessor :revolut_pay
585
1411
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -588,8 +1414,12 @@ module Stripe
588
1414
  attr_accessor :satispay
589
1415
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
590
1416
  attr_accessor :sepa_debit
1417
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1418
+ attr_accessor :shopeepay
591
1419
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
592
1420
  attr_accessor :sofort
1421
+ # This hash contains details about the Stripe balance payment method.
1422
+ attr_accessor :stripe_balance
593
1423
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
594
1424
  attr_accessor :swish
595
1425
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -624,7 +1454,9 @@ module Stripe
624
1454
  eps: nil,
625
1455
  fpx: nil,
626
1456
  giropay: nil,
1457
+ gopay: nil,
627
1458
  grabpay: nil,
1459
+ id_bank_transfer: nil,
628
1460
  ideal: nil,
629
1461
  interac_present: nil,
630
1462
  kakao_pay: nil,
@@ -644,14 +1476,20 @@ module Stripe
644
1476
  payco: nil,
645
1477
  paynow: nil,
646
1478
  paypal: nil,
1479
+ paypay: nil,
1480
+ payto: nil,
647
1481
  pix: nil,
648
1482
  promptpay: nil,
1483
+ qris: nil,
649
1484
  radar_options: nil,
1485
+ rechnung: nil,
650
1486
  revolut_pay: nil,
651
1487
  samsung_pay: nil,
652
1488
  satispay: nil,
653
1489
  sepa_debit: nil,
1490
+ shopeepay: nil,
654
1491
  sofort: nil,
1492
+ stripe_balance: nil,
655
1493
  swish: nil,
656
1494
  twint: nil,
657
1495
  type: nil,
@@ -679,7 +1517,9 @@ module Stripe
679
1517
  @eps = eps
680
1518
  @fpx = fpx
681
1519
  @giropay = giropay
1520
+ @gopay = gopay
682
1521
  @grabpay = grabpay
1522
+ @id_bank_transfer = id_bank_transfer
683
1523
  @ideal = ideal
684
1524
  @interac_present = interac_present
685
1525
  @kakao_pay = kakao_pay
@@ -699,14 +1539,20 @@ module Stripe
699
1539
  @payco = payco
700
1540
  @paynow = paynow
701
1541
  @paypal = paypal
1542
+ @paypay = paypay
1543
+ @payto = payto
702
1544
  @pix = pix
703
1545
  @promptpay = promptpay
1546
+ @qris = qris
704
1547
  @radar_options = radar_options
1548
+ @rechnung = rechnung
705
1549
  @revolut_pay = revolut_pay
706
1550
  @samsung_pay = samsung_pay
707
1551
  @satispay = satispay
708
1552
  @sepa_debit = sepa_debit
1553
+ @shopeepay = shopeepay
709
1554
  @sofort = sofort
1555
+ @stripe_balance = stripe_balance
710
1556
  @swish = swish
711
1557
  @twint = twint
712
1558
  @type = type
@@ -1077,6 +1923,48 @@ module Stripe
1077
1923
  end
1078
1924
  end
1079
1925
 
1926
+ class StatementDetails < ::Stripe::RequestParams
1927
+ class Address < ::Stripe::RequestParams
1928
+ # City, district, suburb, town, or village.
1929
+ attr_accessor :city
1930
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1931
+ attr_accessor :country
1932
+ # Address line 1, such as the street, PO Box, or company name.
1933
+ attr_accessor :line1
1934
+ # Address line 2, such as the apartment, suite, unit, or building.
1935
+ attr_accessor :line2
1936
+ # ZIP or postal code.
1937
+ attr_accessor :postal_code
1938
+ # State, county, province, or region.
1939
+ attr_accessor :state
1940
+
1941
+ def initialize(
1942
+ city: nil,
1943
+ country: nil,
1944
+ line1: nil,
1945
+ line2: nil,
1946
+ postal_code: nil,
1947
+ state: nil
1948
+ )
1949
+ @city = city
1950
+ @country = country
1951
+ @line1 = line1
1952
+ @line2 = line2
1953
+ @postal_code = postal_code
1954
+ @state = state
1955
+ end
1956
+ end
1957
+ # Please pass in an address that is within your Stripe user account country
1958
+ attr_accessor :address
1959
+ # Phone number (e.g., a toll-free number that customers can call)
1960
+ attr_accessor :phone
1961
+
1962
+ def initialize(address: nil, phone: nil)
1963
+ @address = address
1964
+ @phone = phone
1965
+ end
1966
+ end
1967
+
1080
1968
  class ThreeDSecure < ::Stripe::RequestParams
1081
1969
  class NetworkOptions < ::Stripe::RequestParams
1082
1970
  class CartesBancaires < ::Stripe::RequestParams
@@ -1171,6 +2059,8 @@ module Stripe
1171
2059
  attr_accessor :moto
1172
2060
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
1173
2061
  attr_accessor :network
2062
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2063
+ attr_accessor :request_decremental_authorization
1174
2064
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1175
2065
  attr_accessor :request_extended_authorization
1176
2066
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1179,6 +2069,8 @@ module Stripe
1179
2069
  attr_accessor :request_multicapture
1180
2070
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1181
2071
  attr_accessor :request_overcapture
2072
+ # Request partial authorization on this PaymentIntent.
2073
+ attr_accessor :request_partial_authorization
1182
2074
  # 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.
1183
2075
  attr_accessor :request_three_d_secure
1184
2076
  # 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).
@@ -1197,6 +2089,8 @@ module Stripe
1197
2089
  attr_accessor :statement_descriptor_suffix_kana
1198
2090
  # 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.
1199
2091
  attr_accessor :statement_descriptor_suffix_kanji
2092
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2093
+ attr_accessor :statement_details
1200
2094
  # If 3D Secure authentication was performed with a third-party provider,
1201
2095
  # the authentication details to use for this payment.
1202
2096
  attr_accessor :three_d_secure
@@ -1208,15 +2102,18 @@ module Stripe
1208
2102
  mandate_options: nil,
1209
2103
  moto: nil,
1210
2104
  network: nil,
2105
+ request_decremental_authorization: nil,
1211
2106
  request_extended_authorization: nil,
1212
2107
  request_incremental_authorization: nil,
1213
2108
  request_multicapture: nil,
1214
2109
  request_overcapture: nil,
2110
+ request_partial_authorization: nil,
1215
2111
  request_three_d_secure: nil,
1216
2112
  require_cvc_recollection: nil,
1217
2113
  setup_future_usage: nil,
1218
2114
  statement_descriptor_suffix_kana: nil,
1219
2115
  statement_descriptor_suffix_kanji: nil,
2116
+ statement_details: nil,
1220
2117
  three_d_secure: nil
1221
2118
  )
1222
2119
  @capture_method = capture_method
@@ -1225,15 +2122,18 @@ module Stripe
1225
2122
  @mandate_options = mandate_options
1226
2123
  @moto = moto
1227
2124
  @network = network
2125
+ @request_decremental_authorization = request_decremental_authorization
1228
2126
  @request_extended_authorization = request_extended_authorization
1229
2127
  @request_incremental_authorization = request_incremental_authorization
1230
2128
  @request_multicapture = request_multicapture
1231
2129
  @request_overcapture = request_overcapture
2130
+ @request_partial_authorization = request_partial_authorization
1232
2131
  @request_three_d_secure = request_three_d_secure
1233
2132
  @require_cvc_recollection = require_cvc_recollection
1234
2133
  @setup_future_usage = setup_future_usage
1235
2134
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1236
2135
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2136
+ @statement_details = statement_details
1237
2137
  @three_d_secure = three_d_secure
1238
2138
  end
1239
2139
  end
@@ -1404,6 +2304,23 @@ module Stripe
1404
2304
  end
1405
2305
  end
1406
2306
 
2307
+ class Gopay < ::Stripe::RequestParams
2308
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2309
+ #
2310
+ # 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.
2311
+ #
2312
+ # 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.
2313
+ #
2314
+ # 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).
2315
+ #
2316
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2317
+ attr_accessor :setup_future_usage
2318
+
2319
+ def initialize(setup_future_usage: nil)
2320
+ @setup_future_usage = setup_future_usage
2321
+ end
2322
+ end
2323
+
1407
2324
  class Grabpay < ::Stripe::RequestParams
1408
2325
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1409
2326
  #
@@ -1421,6 +2338,29 @@ module Stripe
1421
2338
  end
1422
2339
  end
1423
2340
 
2341
+ class IdBankTransfer < ::Stripe::RequestParams
2342
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
2343
+ attr_accessor :expires_after
2344
+ # 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.
2345
+ attr_accessor :expires_at
2346
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2347
+ #
2348
+ # 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.
2349
+ #
2350
+ # 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.
2351
+ #
2352
+ # 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).
2353
+ #
2354
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2355
+ attr_accessor :setup_future_usage
2356
+
2357
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2358
+ @expires_after = expires_after
2359
+ @expires_at = expires_at
2360
+ @setup_future_usage = setup_future_usage
2361
+ end
2362
+ end
2363
+
1424
2364
  class Ideal < ::Stripe::RequestParams
1425
2365
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1426
2366
  #
@@ -1822,12 +2762,65 @@ module Stripe
1822
2762
  end
1823
2763
 
1824
2764
  class Paypal < ::Stripe::RequestParams
2765
+ class LineItem < ::Stripe::RequestParams
2766
+ class Tax < ::Stripe::RequestParams
2767
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2768
+ attr_accessor :amount
2769
+ # The tax behavior for the line item.
2770
+ attr_accessor :behavior
2771
+
2772
+ def initialize(amount: nil, behavior: nil)
2773
+ @amount = amount
2774
+ @behavior = behavior
2775
+ end
2776
+ end
2777
+ # Type of the line item.
2778
+ attr_accessor :category
2779
+ # Description of the line item.
2780
+ attr_accessor :description
2781
+ # Descriptive name of the line item.
2782
+ attr_accessor :name
2783
+ # Quantity of the line item. Must be a positive number.
2784
+ attr_accessor :quantity
2785
+ # Client facing stock keeping unit, article number or similar.
2786
+ attr_accessor :sku
2787
+ # The Stripe account ID of the connected account that sells the item.
2788
+ attr_accessor :sold_by
2789
+ # The tax information for the line item.
2790
+ attr_accessor :tax
2791
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2792
+ attr_accessor :unit_amount
2793
+
2794
+ def initialize(
2795
+ category: nil,
2796
+ description: nil,
2797
+ name: nil,
2798
+ quantity: nil,
2799
+ sku: nil,
2800
+ sold_by: nil,
2801
+ tax: nil,
2802
+ unit_amount: nil
2803
+ )
2804
+ @category = category
2805
+ @description = description
2806
+ @name = name
2807
+ @quantity = quantity
2808
+ @sku = sku
2809
+ @sold_by = sold_by
2810
+ @tax = tax
2811
+ @unit_amount = unit_amount
2812
+ end
2813
+ end
1825
2814
  # Controls when the funds will be captured from the customer's account.
1826
2815
  attr_accessor :capture_method
2816
+ # The line items purchased by the customer.
2817
+ attr_accessor :line_items
1827
2818
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1828
2819
  attr_accessor :preferred_locale
1829
2820
  # 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.
1830
2821
  attr_accessor :reference
2822
+ # 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.
2823
+ attr_accessor :reference_id
1831
2824
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1832
2825
  attr_accessor :risk_correlation_id
1833
2826
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1840,29 +2833,140 @@ module Stripe
1840
2833
  #
1841
2834
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1842
2835
  attr_accessor :setup_future_usage
2836
+ # 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.
2837
+ attr_accessor :subsellers
1843
2838
 
1844
2839
  def initialize(
1845
2840
  capture_method: nil,
2841
+ line_items: nil,
1846
2842
  preferred_locale: nil,
1847
2843
  reference: nil,
2844
+ reference_id: nil,
1848
2845
  risk_correlation_id: nil,
1849
- setup_future_usage: nil
2846
+ setup_future_usage: nil,
2847
+ subsellers: nil
1850
2848
  )
1851
2849
  @capture_method = capture_method
2850
+ @line_items = line_items
1852
2851
  @preferred_locale = preferred_locale
1853
2852
  @reference = reference
2853
+ @reference_id = reference_id
1854
2854
  @risk_correlation_id = risk_correlation_id
1855
2855
  @setup_future_usage = setup_future_usage
2856
+ @subsellers = subsellers
2857
+ end
2858
+ end
2859
+
2860
+ class Paypay < ::Stripe::RequestParams
2861
+ # Controls when the funds are captured from the customer's account.
2862
+ #
2863
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2864
+ #
2865
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2866
+ attr_accessor :capture_method
2867
+
2868
+ def initialize(capture_method: nil)
2869
+ @capture_method = capture_method
2870
+ end
2871
+ end
2872
+
2873
+ class Payto < ::Stripe::RequestParams
2874
+ class MandateOptions < ::Stripe::RequestParams
2875
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2876
+ attr_accessor :amount
2877
+ # 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.
2878
+ attr_accessor :amount_type
2879
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2880
+ attr_accessor :end_date
2881
+ # The periodicity at which payments will be collected.
2882
+ attr_accessor :payment_schedule
2883
+ # 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.
2884
+ attr_accessor :payments_per_period
2885
+ # The purpose for which payments are made. Defaults to retail.
2886
+ attr_accessor :purpose
2887
+
2888
+ def initialize(
2889
+ amount: nil,
2890
+ amount_type: nil,
2891
+ end_date: nil,
2892
+ payment_schedule: nil,
2893
+ payments_per_period: nil,
2894
+ purpose: nil
2895
+ )
2896
+ @amount = amount
2897
+ @amount_type = amount_type
2898
+ @end_date = end_date
2899
+ @payment_schedule = payment_schedule
2900
+ @payments_per_period = payments_per_period
2901
+ @purpose = purpose
2902
+ end
2903
+ end
2904
+ # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
2905
+ attr_accessor :mandate_options
2906
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2907
+ #
2908
+ # 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.
2909
+ #
2910
+ # 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.
2911
+ #
2912
+ # 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).
2913
+ #
2914
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2915
+ attr_accessor :setup_future_usage
2916
+
2917
+ def initialize(mandate_options: nil, setup_future_usage: nil)
2918
+ @mandate_options = mandate_options
2919
+ @setup_future_usage = setup_future_usage
1856
2920
  end
1857
2921
  end
1858
2922
 
1859
2923
  class Pix < ::Stripe::RequestParams
2924
+ class MandateOptions < ::Stripe::RequestParams
2925
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2926
+ attr_accessor :amount
2927
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
2928
+ attr_accessor :amount_includes_iof
2929
+ # Type of amount. Defaults to `maximum`.
2930
+ attr_accessor :amount_type
2931
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2932
+ attr_accessor :currency
2933
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2934
+ attr_accessor :end_date
2935
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
2936
+ attr_accessor :payment_schedule
2937
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2938
+ attr_accessor :reference
2939
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
2940
+ attr_accessor :start_date
2941
+
2942
+ def initialize(
2943
+ amount: nil,
2944
+ amount_includes_iof: nil,
2945
+ amount_type: nil,
2946
+ currency: nil,
2947
+ end_date: nil,
2948
+ payment_schedule: nil,
2949
+ reference: nil,
2950
+ start_date: nil
2951
+ )
2952
+ @amount = amount
2953
+ @amount_includes_iof = amount_includes_iof
2954
+ @amount_type = amount_type
2955
+ @currency = currency
2956
+ @end_date = end_date
2957
+ @payment_schedule = payment_schedule
2958
+ @reference = reference
2959
+ @start_date = start_date
2960
+ end
2961
+ end
1860
2962
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1861
2963
  attr_accessor :amount_includes_iof
1862
2964
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1863
2965
  attr_accessor :expires_after_seconds
1864
2966
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1865
2967
  attr_accessor :expires_at
2968
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2969
+ attr_accessor :mandate_options
1866
2970
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1867
2971
  #
1868
2972
  # 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.
@@ -1878,11 +2982,13 @@ module Stripe
1878
2982
  amount_includes_iof: nil,
1879
2983
  expires_after_seconds: nil,
1880
2984
  expires_at: nil,
2985
+ mandate_options: nil,
1881
2986
  setup_future_usage: nil
1882
2987
  )
1883
2988
  @amount_includes_iof = amount_includes_iof
1884
2989
  @expires_after_seconds = expires_after_seconds
1885
2990
  @expires_at = expires_at
2991
+ @mandate_options = mandate_options
1886
2992
  @setup_future_usage = setup_future_usage
1887
2993
  end
1888
2994
  end
@@ -1904,6 +3010,25 @@ module Stripe
1904
3010
  end
1905
3011
  end
1906
3012
 
3013
+ class Qris < ::Stripe::RequestParams
3014
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3015
+ #
3016
+ # 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.
3017
+ #
3018
+ # 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.
3019
+ #
3020
+ # 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).
3021
+ #
3022
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3023
+ attr_accessor :setup_future_usage
3024
+
3025
+ def initialize(setup_future_usage: nil)
3026
+ @setup_future_usage = setup_future_usage
3027
+ end
3028
+ end
3029
+
3030
+ class Rechnung < ::Stripe::RequestParams; end
3031
+
1907
3032
  class RevolutPay < ::Stripe::RequestParams
1908
3033
  # Controls when the funds are captured from the customer's account.
1909
3034
  #
@@ -1983,6 +3108,23 @@ module Stripe
1983
3108
  end
1984
3109
  end
1985
3110
 
3111
+ class Shopeepay < ::Stripe::RequestParams
3112
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3113
+ #
3114
+ # 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.
3115
+ #
3116
+ # 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.
3117
+ #
3118
+ # 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).
3119
+ #
3120
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3121
+ attr_accessor :setup_future_usage
3122
+
3123
+ def initialize(setup_future_usage: nil)
3124
+ @setup_future_usage = setup_future_usage
3125
+ end
3126
+ end
3127
+
1986
3128
  class Sofort < ::Stripe::RequestParams
1987
3129
  # Language shown to the payer on redirect.
1988
3130
  attr_accessor :preferred_language
@@ -2003,6 +3145,23 @@ module Stripe
2003
3145
  end
2004
3146
  end
2005
3147
 
3148
+ class StripeBalance < ::Stripe::RequestParams
3149
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3150
+ #
3151
+ # 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.
3152
+ #
3153
+ # 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.
3154
+ #
3155
+ # 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).
3156
+ #
3157
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3158
+ attr_accessor :setup_future_usage
3159
+
3160
+ def initialize(setup_future_usage: nil)
3161
+ @setup_future_usage = setup_future_usage
3162
+ end
3163
+ end
3164
+
2006
3165
  class Swish < ::Stripe::RequestParams
2007
3166
  # A reference for this payment to be displayed in the Swish app.
2008
3167
  attr_accessor :reference
@@ -2045,13 +3204,27 @@ module Stripe
2045
3204
  class Filters < ::Stripe::RequestParams
2046
3205
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2047
3206
  attr_accessor :account_subcategories
3207
+ # ID of the institution to use to filter for selectable accounts.
3208
+ attr_accessor :institution
2048
3209
 
2049
- def initialize(account_subcategories: nil)
3210
+ def initialize(account_subcategories: nil, institution: nil)
2050
3211
  @account_subcategories = account_subcategories
3212
+ @institution = institution
3213
+ end
3214
+ end
3215
+
3216
+ class ManualEntry < ::Stripe::RequestParams
3217
+ # Settings for configuring manual entry of account details.
3218
+ attr_accessor :mode
3219
+
3220
+ def initialize(mode: nil)
3221
+ @mode = mode
2051
3222
  end
2052
3223
  end
2053
3224
  # Provide filters for the linked accounts that the customer can select for the payment method.
2054
3225
  attr_accessor :filters
3226
+ # Customize manual entry behavior
3227
+ attr_accessor :manual_entry
2055
3228
  # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2056
3229
  attr_accessor :permissions
2057
3230
  # List of data features that you would like to retrieve upon account creation.
@@ -2059,8 +3232,15 @@ module Stripe
2059
3232
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
2060
3233
  attr_accessor :return_url
2061
3234
 
2062
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3235
+ def initialize(
3236
+ filters: nil,
3237
+ manual_entry: nil,
3238
+ permissions: nil,
3239
+ prefetch: nil,
3240
+ return_url: nil
3241
+ )
2063
3242
  @filters = filters
3243
+ @manual_entry = manual_entry
2064
3244
  @permissions = permissions
2065
3245
  @prefetch = prefetch
2066
3246
  @return_url = return_url
@@ -2205,8 +3385,12 @@ module Stripe
2205
3385
  attr_accessor :fpx
2206
3386
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2207
3387
  attr_accessor :giropay
3388
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3389
+ attr_accessor :gopay
2208
3390
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2209
3391
  attr_accessor :grabpay
3392
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3393
+ attr_accessor :id_bank_transfer
2210
3394
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2211
3395
  attr_accessor :ideal
2212
3396
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2243,10 +3427,18 @@ module Stripe
2243
3427
  attr_accessor :paynow
2244
3428
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2245
3429
  attr_accessor :paypal
3430
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3431
+ attr_accessor :paypay
3432
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3433
+ attr_accessor :payto
2246
3434
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2247
3435
  attr_accessor :pix
2248
3436
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2249
3437
  attr_accessor :promptpay
3438
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3439
+ attr_accessor :qris
3440
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3441
+ attr_accessor :rechnung
2250
3442
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2251
3443
  attr_accessor :revolut_pay
2252
3444
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2255,8 +3447,12 @@ module Stripe
2255
3447
  attr_accessor :satispay
2256
3448
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2257
3449
  attr_accessor :sepa_debit
3450
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3451
+ attr_accessor :shopeepay
2258
3452
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2259
3453
  attr_accessor :sofort
3454
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3455
+ attr_accessor :stripe_balance
2260
3456
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2261
3457
  attr_accessor :swish
2262
3458
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2289,7 +3485,9 @@ module Stripe
2289
3485
  eps: nil,
2290
3486
  fpx: nil,
2291
3487
  giropay: nil,
3488
+ gopay: nil,
2292
3489
  grabpay: nil,
3490
+ id_bank_transfer: nil,
2293
3491
  ideal: nil,
2294
3492
  interac_present: nil,
2295
3493
  kakao_pay: nil,
@@ -2308,13 +3506,19 @@ module Stripe
2308
3506
  payco: nil,
2309
3507
  paynow: nil,
2310
3508
  paypal: nil,
3509
+ paypay: nil,
3510
+ payto: nil,
2311
3511
  pix: nil,
2312
3512
  promptpay: nil,
3513
+ qris: nil,
3514
+ rechnung: nil,
2313
3515
  revolut_pay: nil,
2314
3516
  samsung_pay: nil,
2315
3517
  satispay: nil,
2316
3518
  sepa_debit: nil,
3519
+ shopeepay: nil,
2317
3520
  sofort: nil,
3521
+ stripe_balance: nil,
2318
3522
  swish: nil,
2319
3523
  twint: nil,
2320
3524
  us_bank_account: nil,
@@ -2341,7 +3545,9 @@ module Stripe
2341
3545
  @eps = eps
2342
3546
  @fpx = fpx
2343
3547
  @giropay = giropay
3548
+ @gopay = gopay
2344
3549
  @grabpay = grabpay
3550
+ @id_bank_transfer = id_bank_transfer
2345
3551
  @ideal = ideal
2346
3552
  @interac_present = interac_present
2347
3553
  @kakao_pay = kakao_pay
@@ -2360,13 +3566,19 @@ module Stripe
2360
3566
  @payco = payco
2361
3567
  @paynow = paynow
2362
3568
  @paypal = paypal
3569
+ @paypay = paypay
3570
+ @payto = payto
2363
3571
  @pix = pix
2364
3572
  @promptpay = promptpay
3573
+ @qris = qris
3574
+ @rechnung = rechnung
2365
3575
  @revolut_pay = revolut_pay
2366
3576
  @samsung_pay = samsung_pay
2367
3577
  @satispay = satispay
2368
3578
  @sepa_debit = sepa_debit
3579
+ @shopeepay = shopeepay
2369
3580
  @sofort = sofort
3581
+ @stripe_balance = stripe_balance
2370
3582
  @swish = swish
2371
3583
  @twint = twint
2372
3584
  @us_bank_account = us_bank_account
@@ -2450,17 +3662,29 @@ module Stripe
2450
3662
  #
2451
3663
  # 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.
2452
3664
  attr_accessor :customer
3665
+ # ID of the Account this PaymentIntent belongs to, if one exists.
3666
+ #
3667
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3668
+ #
3669
+ # 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.
3670
+ attr_accessor :customer_account
2453
3671
  # An arbitrary string attached to the object. Often useful for displaying to users.
2454
3672
  attr_accessor :description
2455
3673
  # The list of payment method types to exclude from use with this payment.
2456
3674
  attr_accessor :excluded_payment_method_types
2457
3675
  # Specifies which fields in the response should be expanded.
2458
3676
  attr_accessor :expand
3677
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3678
+ attr_accessor :fx_quote
3679
+ # Automations to be run during the PaymentIntent lifecycle
3680
+ attr_accessor :hooks
3681
+ # This hash contains details about the Mandate to create.
3682
+ attr_accessor :mandate_data
2459
3683
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2460
3684
  attr_accessor :metadata
2461
3685
  # Provides industry-specific information about the charge.
2462
3686
  attr_accessor :payment_details
2463
- # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
3687
+ # Attribute for param field payment_method
2464
3688
  attr_accessor :payment_method
2465
3689
  # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
2466
3690
  attr_accessor :payment_method_configuration
@@ -2504,9 +3728,13 @@ module Stripe
2504
3728
  capture_method: nil,
2505
3729
  currency: nil,
2506
3730
  customer: nil,
3731
+ customer_account: nil,
2507
3732
  description: nil,
2508
3733
  excluded_payment_method_types: nil,
2509
3734
  expand: nil,
3735
+ fx_quote: nil,
3736
+ hooks: nil,
3737
+ mandate_data: nil,
2510
3738
  metadata: nil,
2511
3739
  payment_details: nil,
2512
3740
  payment_method: nil,
@@ -2528,9 +3756,13 @@ module Stripe
2528
3756
  @capture_method = capture_method
2529
3757
  @currency = currency
2530
3758
  @customer = customer
3759
+ @customer_account = customer_account
2531
3760
  @description = description
2532
3761
  @excluded_payment_method_types = excluded_payment_method_types
2533
3762
  @expand = expand
3763
+ @fx_quote = fx_quote
3764
+ @hooks = hooks
3765
+ @mandate_data = mandate_data
2534
3766
  @metadata = metadata
2535
3767
  @payment_details = payment_details
2536
3768
  @payment_method = payment_method