stripe 18.1.0 → 18.2.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) 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 +213 -0
  6. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  7. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  25. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  60. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +52 -0
  62. data/lib/stripe/params/account_create_params.rb +304 -1
  63. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  64. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  65. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  66. data/lib/stripe/params/account_session_create_params.rb +226 -1
  67. data/lib/stripe/params/account_update_params.rb +266 -0
  68. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  69. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  70. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  71. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  72. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  74. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  75. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  76. data/lib/stripe/params/charge_update_params.rb +1648 -0
  77. data/lib/stripe/params/checkout/session_create_params.rb +129 -3
  78. data/lib/stripe/params/checkout/session_update_params.rb +141 -1
  79. data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
  80. data/lib/stripe/params/coupon_create_params.rb +17 -1
  81. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  82. data/lib/stripe/params/dispute_update_params.rb +10 -1
  83. data/lib/stripe/params/external_account_create_params.rb +134 -0
  84. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  85. data/lib/stripe/params/external_account_list_params.rb +25 -0
  86. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  87. data/lib/stripe/params/external_account_update_params.rb +91 -0
  88. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  89. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  90. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  91. data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
  92. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  93. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  94. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  95. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  96. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  97. data/lib/stripe/params/invoice_create_params.rb +107 -2
  98. data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
  99. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  100. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  101. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  102. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  103. data/lib/stripe/params/invoice_update_params.rb +107 -2
  104. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  105. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  106. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  107. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  108. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  109. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  110. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  111. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  112. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  113. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  114. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  115. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  116. data/lib/stripe/params/mandate_list_params.rb +39 -0
  117. data/lib/stripe/params/margin_create_params.rb +25 -0
  118. data/lib/stripe/params/margin_list_params.rb +25 -0
  119. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/margin_update_params.rb +22 -0
  121. data/lib/stripe/params/order_cancel_params.rb +13 -0
  122. data/lib/stripe/params/order_create_params.rb +2061 -0
  123. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  124. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  125. data/lib/stripe/params/order_list_params.rb +25 -0
  126. data/lib/stripe/params/order_reopen_params.rb +13 -0
  127. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  128. data/lib/stripe/params/order_submit_params.rb +16 -0
  129. data/lib/stripe/params/order_update_params.rb +2065 -0
  130. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  131. data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
  132. data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
  133. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  134. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  135. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  136. data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
  137. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  138. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  139. data/lib/stripe/params/payment_method_create_params.rb +77 -0
  140. data/lib/stripe/params/price_update_params.rb +19 -0
  141. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  142. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  143. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  144. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  145. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  146. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  147. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  149. data/lib/stripe/params/quote_create_params.rb +801 -3
  150. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  151. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  152. data/lib/stripe/params/quote_list_params.rb +4 -0
  153. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  154. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  155. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  156. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  157. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  158. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  159. data/lib/stripe/params/quote_update_params.rb +809 -4
  160. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  161. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  164. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
  166. data/lib/stripe/params/setup_intent_create_params.rb +158 -3
  167. data/lib/stripe/params/setup_intent_update_params.rb +158 -3
  168. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  169. data/lib/stripe/params/subscription_create_params.rb +254 -5
  170. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  171. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  172. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  173. data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
  174. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  175. data/lib/stripe/params/subscription_update_params.rb +237 -4
  176. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  177. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  178. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  179. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  180. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  181. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  182. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
  183. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  184. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  185. data/lib/stripe/params/transfer_create_params.rb +4 -0
  186. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  187. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  188. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  189. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  190. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  191. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  192. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  193. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  194. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  195. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  196. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  197. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  198. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  199. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  200. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  201. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  202. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  203. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  204. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  205. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  206. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  207. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  208. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  209. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  210. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  211. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  212. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  213. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  214. data/lib/stripe/params/v2/core/account_create_params.rb +251 -4
  215. data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
  216. data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
  217. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  218. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  219. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  220. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  221. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  222. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  223. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  224. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  225. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  226. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  227. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  228. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  229. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  230. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  231. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  233. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  234. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  235. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  236. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  237. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  238. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  239. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  240. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  241. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  242. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  243. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  244. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
  245. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  246. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  247. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  248. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  249. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  250. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  251. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  252. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  253. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  254. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  255. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
  256. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  257. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  258. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  260. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  261. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  262. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  263. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  264. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  267. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  268. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  269. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  270. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  271. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  272. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  273. data/lib/stripe/params.rb +151 -0
  274. data/lib/stripe/resources/account.rb +182 -1
  275. data/lib/stripe/resources/account_notice.rb +94 -0
  276. data/lib/stripe/resources/account_session.rb +81 -0
  277. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  278. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  279. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  280. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  281. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  282. data/lib/stripe/resources/card.rb +2 -0
  283. data/lib/stripe/resources/charge.rb +215 -1
  284. data/lib/stripe/resources/checkout/session.rb +104 -4
  285. data/lib/stripe/resources/confirmation_token.rb +133 -0
  286. data/lib/stripe/resources/coupon.rb +26 -1
  287. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  288. data/lib/stripe/resources/customer_session.rb +36 -0
  289. data/lib/stripe/resources/dispute.rb +22 -0
  290. data/lib/stripe/resources/event.rb +64 -1
  291. data/lib/stripe/resources/financial_connections/account.rb +25 -0
  292. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  293. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  294. data/lib/stripe/resources/financial_connections/session.rb +65 -1
  295. data/lib/stripe/resources/fx_quote.rb +147 -0
  296. data/lib/stripe/resources/invoice.rb +150 -1
  297. data/lib/stripe/resources/invoice_item.rb +2 -0
  298. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  299. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  300. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  301. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  302. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  303. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  304. data/lib/stripe/resources/line_item.rb +66 -1
  305. data/lib/stripe/resources/mandate.rb +43 -0
  306. data/lib/stripe/resources/margin.rb +64 -0
  307. data/lib/stripe/resources/order.rb +987 -0
  308. data/lib/stripe/resources/payment_attempt_record.rb +181 -1
  309. data/lib/stripe/resources/payment_intent.rb +737 -4
  310. data/lib/stripe/resources/payment_method.rb +135 -0
  311. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  312. data/lib/stripe/resources/payment_record.rb +181 -1
  313. data/lib/stripe/resources/price.rb +20 -0
  314. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  315. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  316. data/lib/stripe/resources/quote.rb +569 -2
  317. data/lib/stripe/resources/quote_line.rb +521 -0
  318. data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
  319. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  320. data/lib/stripe/resources/refund.rb +18 -0
  321. data/lib/stripe/resources/reserve/hold.rb +74 -0
  322. data/lib/stripe/resources/reserve/plan.rb +78 -0
  323. data/lib/stripe/resources/reserve/release.rb +77 -0
  324. data/lib/stripe/resources/setup_attempt.rb +48 -0
  325. data/lib/stripe/resources/setup_intent.rb +88 -1
  326. data/lib/stripe/resources/source.rb +38 -0
  327. data/lib/stripe/resources/subscription.rb +230 -0
  328. data/lib/stripe/resources/subscription_item.rb +20 -1
  329. data/lib/stripe/resources/subscription_schedule.rb +196 -3
  330. data/lib/stripe/resources/tax/form.rb +264 -0
  331. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  332. data/lib/stripe/resources/terminal/reader.rb +8 -0
  333. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  334. data/lib/stripe/resources/transfer.rb +2 -0
  335. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  336. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  337. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  338. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  339. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  340. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  341. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  342. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  343. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  344. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  345. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  346. data/lib/stripe/resources/v2/core/account.rb +565 -3
  347. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  348. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
  349. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  350. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  351. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  352. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  353. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  354. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  355. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
  356. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  357. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  358. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
  359. data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
  360. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  361. data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
  362. data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
  363. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  364. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  365. data/lib/stripe/resources.rb +104 -0
  366. data/lib/stripe/services/account_notice_service.rb +39 -0
  367. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  368. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  369. data/lib/stripe/services/billing_service.rb +2 -1
  370. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  371. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  372. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  373. data/lib/stripe/services/capital_service.rb +15 -0
  374. data/lib/stripe/services/external_account_service.rb +68 -0
  375. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  376. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  377. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  378. data/lib/stripe/services/financial_connections_service.rb +2 -1
  379. data/lib/stripe/services/fx_quote_service.rb +27 -0
  380. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  381. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  382. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  383. data/lib/stripe/services/issuing_service.rb +5 -1
  384. data/lib/stripe/services/mandate_service.rb +5 -0
  385. data/lib/stripe/services/margin_service.rb +50 -0
  386. data/lib/stripe/services/order_line_item_service.rb +17 -0
  387. data/lib/stripe/services/order_service.rb +78 -0
  388. data/lib/stripe/services/payment_intent_service.rb +37 -0
  389. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  390. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  391. data/lib/stripe/services/privacy_service.rb +13 -0
  392. data/lib/stripe/services/quote_line_service.rb +17 -0
  393. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  394. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  395. data/lib/stripe/services/quote_service.rb +49 -1
  396. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  397. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  398. data/lib/stripe/services/reserve/release_service.rb +30 -0
  399. data/lib/stripe/services/reserve_service.rb +15 -0
  400. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  401. data/lib/stripe/services/subscription_service.rb +11 -0
  402. data/lib/stripe/services/tax/form_service.rb +37 -0
  403. data/lib/stripe/services/tax_service.rb +2 -1
  404. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  405. data/lib/stripe/services/terminal_service.rb +2 -1
  406. data/lib/stripe/services/v1_services.rb +9 -1
  407. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  408. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  409. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  410. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  411. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  412. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  413. data/lib/stripe/services/v2/billing_service.rb +5 -1
  414. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  415. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  416. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  417. data/lib/stripe/services/v2/core_service.rb +2 -1
  418. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  419. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  420. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  421. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  422. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  423. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  424. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  425. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  426. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  427. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  428. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  429. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  430. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  431. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  432. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  433. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  434. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  435. data/lib/stripe/services/v2_services.rb +3 -1
  436. data/lib/stripe/services.rb +55 -0
  437. data/lib/stripe/stripe_client.rb +8 -1
  438. data/lib/stripe/stripe_configuration.rb +3 -1
  439. data/lib/stripe/stripe_event_notification_handler.rb +425 -0
  440. data/lib/stripe/stripe_object.rb +1 -1
  441. data/lib/stripe/util.rb +7 -1
  442. data/lib/stripe/version.rb +1 -1
  443. data/lib/stripe.rb +54 -0
  444. data/rbi/stripe/stripe_client.rbi +13 -0
  445. data/rbi/stripe.rbi +93543 -33169
  446. metadata +314 -3
@@ -144,6 +144,33 @@ module Stripe
144
144
  @enabled = enabled
145
145
  end
146
146
  end
147
+
148
+ class TaxIdElement < ::Stripe::RequestParams
149
+ class Features < ::Stripe::RequestParams
150
+ # Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
151
+ #
152
+ # When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
153
+ attr_accessor :tax_id_redisplay
154
+ # Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
155
+ #
156
+ # When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
157
+ attr_accessor :tax_id_save
158
+
159
+ def initialize(tax_id_redisplay: nil, tax_id_save: nil)
160
+ @tax_id_redisplay = tax_id_redisplay
161
+ @tax_id_save = tax_id_save
162
+ end
163
+ end
164
+ # Whether the Tax ID Element is enabled.
165
+ attr_accessor :enabled
166
+ # This hash defines whether the Tax ID Element supports certain features.
167
+ attr_accessor :features
168
+
169
+ def initialize(enabled: nil, features: nil)
170
+ @enabled = enabled
171
+ @features = features
172
+ end
173
+ end
147
174
  # Configuration for buy button.
148
175
  attr_accessor :buy_button
149
176
  # Configuration for the customer sheet.
@@ -154,19 +181,23 @@ module Stripe
154
181
  attr_accessor :payment_element
155
182
  # Configuration for the pricing table.
156
183
  attr_accessor :pricing_table
184
+ # Configuration for the Tax ID Element.
185
+ attr_accessor :tax_id_element
157
186
 
158
187
  def initialize(
159
188
  buy_button: nil,
160
189
  customer_sheet: nil,
161
190
  mobile_payment_element: nil,
162
191
  payment_element: nil,
163
- pricing_table: nil
192
+ pricing_table: nil,
193
+ tax_id_element: nil
164
194
  )
165
195
  @buy_button = buy_button
166
196
  @customer_sheet = customer_sheet
167
197
  @mobile_payment_element = mobile_payment_element
168
198
  @payment_element = payment_element
169
199
  @pricing_table = pricing_table
200
+ @tax_id_element = tax_id_element
170
201
  end
171
202
  end
172
203
  # Configuration for each component. At least 1 component must be enabled.
@@ -293,14 +293,23 @@ module Stripe
293
293
  attr_accessor :evidence
294
294
  # Specifies which fields in the response should be expanded.
295
295
  attr_accessor :expand
296
+ # Intended submission method for the dispute.
297
+ attr_accessor :intended_submission_method
296
298
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
297
299
  attr_accessor :metadata
298
300
  # Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).
299
301
  attr_accessor :submit
300
302
 
301
- def initialize(evidence: nil, expand: nil, metadata: nil, submit: nil)
303
+ def initialize(
304
+ evidence: nil,
305
+ expand: nil,
306
+ intended_submission_method: nil,
307
+ metadata: nil,
308
+ submit: nil
309
+ )
302
310
  @evidence = evidence
303
311
  @expand = expand
312
+ @intended_submission_method = intended_submission_method
304
313
  @metadata = metadata
305
314
  @submit = submit
306
315
  end
@@ -0,0 +1,134 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class ExternalAccountCreateParams < ::Stripe::RequestParams
6
+ class BankAccount < ::Stripe::RequestParams
7
+ # Attribute for param field object
8
+ attr_accessor :object
9
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
10
+ attr_accessor :account_holder_name
11
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
12
+ attr_accessor :account_holder_type
13
+ # The account number for the bank account, in string form. Must be a checking account.
14
+ attr_accessor :account_number
15
+ # The country in which the bank account is located.
16
+ attr_accessor :country
17
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
18
+ attr_accessor :currency
19
+ # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
20
+ attr_accessor :routing_number
21
+
22
+ def initialize(
23
+ object: nil,
24
+ account_holder_name: nil,
25
+ account_holder_type: nil,
26
+ account_number: nil,
27
+ country: nil,
28
+ currency: nil,
29
+ routing_number: nil
30
+ )
31
+ @object = object
32
+ @account_holder_name = account_holder_name
33
+ @account_holder_type = account_holder_type
34
+ @account_number = account_number
35
+ @country = country
36
+ @currency = currency
37
+ @routing_number = routing_number
38
+ end
39
+ end
40
+
41
+ class Card < ::Stripe::RequestParams
42
+ # Attribute for param field object
43
+ attr_accessor :object
44
+ # Attribute for param field address_city
45
+ attr_accessor :address_city
46
+ # Attribute for param field address_country
47
+ attr_accessor :address_country
48
+ # Attribute for param field address_line1
49
+ attr_accessor :address_line1
50
+ # Attribute for param field address_line2
51
+ attr_accessor :address_line2
52
+ # Attribute for param field address_state
53
+ attr_accessor :address_state
54
+ # Attribute for param field address_zip
55
+ attr_accessor :address_zip
56
+ # Attribute for param field currency
57
+ attr_accessor :currency
58
+ # Attribute for param field cvc
59
+ attr_accessor :cvc
60
+ # Attribute for param field exp_month
61
+ attr_accessor :exp_month
62
+ # Attribute for param field exp_year
63
+ attr_accessor :exp_year
64
+ # Attribute for param field name
65
+ attr_accessor :name
66
+ # Attribute for param field number
67
+ attr_accessor :number
68
+ # 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.
69
+ attr_accessor :metadata
70
+
71
+ def initialize(
72
+ object: nil,
73
+ address_city: nil,
74
+ address_country: nil,
75
+ address_line1: nil,
76
+ address_line2: nil,
77
+ address_state: nil,
78
+ address_zip: nil,
79
+ currency: nil,
80
+ cvc: nil,
81
+ exp_month: nil,
82
+ exp_year: nil,
83
+ name: nil,
84
+ number: nil,
85
+ metadata: nil
86
+ )
87
+ @object = object
88
+ @address_city = address_city
89
+ @address_country = address_country
90
+ @address_line1 = address_line1
91
+ @address_line2 = address_line2
92
+ @address_state = address_state
93
+ @address_zip = address_zip
94
+ @currency = currency
95
+ @cvc = cvc
96
+ @exp_month = exp_month
97
+ @exp_year = exp_year
98
+ @name = name
99
+ @number = number
100
+ @metadata = metadata
101
+ end
102
+ end
103
+
104
+ class CardToken < ::Stripe::RequestParams
105
+ # Attribute for param field object
106
+ attr_accessor :object
107
+ # Attribute for param field currency
108
+ attr_accessor :currency
109
+ # Attribute for param field token
110
+ attr_accessor :token
111
+
112
+ def initialize(object: nil, currency: nil, token: nil)
113
+ @object = object
114
+ @currency = currency
115
+ @token = token
116
+ end
117
+ end
118
+ # When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
119
+ attr_accessor :default_for_currency
120
+ # Specifies which fields in the response should be expanded.
121
+ attr_accessor :expand
122
+ # Either a token, like the ones returned by [Stripe.js](https://docs.stripe.com/js), or a dictionary containing a user’s external account details (with the options shown below).
123
+ attr_accessor :external_account
124
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
125
+ attr_accessor :metadata
126
+
127
+ def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil)
128
+ @default_for_currency = default_for_currency
129
+ @expand = expand
130
+ @external_account = external_account
131
+ @metadata = metadata
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,6 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class ExternalAccountDeleteParams < ::Stripe::RequestParams; end
6
+ end
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class ExternalAccountListParams < ::Stripe::RequestParams
6
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
7
+ attr_accessor :ending_before
8
+ # Specifies which fields in the response should be expanded.
9
+ attr_accessor :expand
10
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
11
+ attr_accessor :limit
12
+ # Filter external accounts according to a particular object type.
13
+ attr_accessor :object
14
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
15
+ attr_accessor :starting_after
16
+
17
+ def initialize(ending_before: nil, expand: nil, limit: nil, object: nil, starting_after: nil)
18
+ @ending_before = ending_before
19
+ @expand = expand
20
+ @limit = limit
21
+ @object = object
22
+ @starting_after = starting_after
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class ExternalAccountRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,91 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class ExternalAccountUpdateParams < ::Stripe::RequestParams
6
+ class Documents < ::Stripe::RequestParams
7
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
8
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
9
+ attr_accessor :files
10
+
11
+ def initialize(files: nil)
12
+ @files = files
13
+ end
14
+ end
15
+ # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
16
+ attr_accessor :bank_account_ownership_verification
17
+
18
+ def initialize(bank_account_ownership_verification: nil)
19
+ @bank_account_ownership_verification = bank_account_ownership_verification
20
+ end
21
+ end
22
+ # The name of the person or business that owns the bank account.
23
+ attr_accessor :account_holder_name
24
+ # The type of entity that holds the account. This can be either `individual` or `company`.
25
+ attr_accessor :account_holder_type
26
+ # The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
27
+ attr_accessor :account_type
28
+ # City/District/Suburb/Town/Village.
29
+ attr_accessor :address_city
30
+ # Billing address country, if provided when creating card.
31
+ attr_accessor :address_country
32
+ # Address line 1 (Street address/PO Box/Company name).
33
+ attr_accessor :address_line1
34
+ # Address line 2 (Apartment/Suite/Unit/Building).
35
+ attr_accessor :address_line2
36
+ # State/County/Province/Region.
37
+ attr_accessor :address_state
38
+ # ZIP or postal code.
39
+ attr_accessor :address_zip
40
+ # When set to true, this becomes the default external account for its currency.
41
+ attr_accessor :default_for_currency
42
+ # Documents that may be submitted to satisfy various informational requests.
43
+ attr_accessor :documents
44
+ # Two digit number representing the card’s expiration month.
45
+ attr_accessor :exp_month
46
+ # Four digit number representing the card’s expiration year.
47
+ attr_accessor :exp_year
48
+ # Specifies which fields in the response should be expanded.
49
+ attr_accessor :expand
50
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
51
+ attr_accessor :metadata
52
+ # Cardholder name.
53
+ attr_accessor :name
54
+
55
+ def initialize(
56
+ account_holder_name: nil,
57
+ account_holder_type: nil,
58
+ account_type: nil,
59
+ address_city: nil,
60
+ address_country: nil,
61
+ address_line1: nil,
62
+ address_line2: nil,
63
+ address_state: nil,
64
+ address_zip: nil,
65
+ default_for_currency: nil,
66
+ documents: nil,
67
+ exp_month: nil,
68
+ exp_year: nil,
69
+ expand: nil,
70
+ metadata: nil,
71
+ name: nil
72
+ )
73
+ @account_holder_name = account_holder_name
74
+ @account_holder_type = account_holder_type
75
+ @account_type = account_type
76
+ @address_city = address_city
77
+ @address_country = address_country
78
+ @address_line1 = address_line1
79
+ @address_line2 = address_line2
80
+ @address_state = address_state
81
+ @address_zip = address_zip
82
+ @default_for_currency = default_for_currency
83
+ @documents = documents
84
+ @exp_month = exp_month
85
+ @exp_year = exp_year
86
+ @expand = expand
87
+ @metadata = metadata
88
+ @name = name
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class AccountInferredBalanceListParams < ::Stripe::RequestParams
7
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class InstitutionListParams < ::Stripe::RequestParams
7
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module FinancialConnections
6
+ class InstitutionRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -27,10 +27,31 @@ module Stripe
27
27
  attr_accessor :account_subcategories
28
28
  # List of countries from which to collect accounts.
29
29
  attr_accessor :countries
30
+ # Stripe ID of the institution with which the customer should be directed to log in.
31
+ attr_accessor :institution
30
32
 
31
- def initialize(account_subcategories: nil, countries: nil)
33
+ def initialize(account_subcategories: nil, countries: nil, institution: nil)
32
34
  @account_subcategories = account_subcategories
33
35
  @countries = countries
36
+ @institution = institution
37
+ end
38
+ end
39
+
40
+ class Limits < ::Stripe::RequestParams
41
+ # The number of accounts that can be linked in this Session.
42
+ attr_accessor :accounts
43
+
44
+ def initialize(accounts: nil)
45
+ @accounts = accounts
46
+ end
47
+ end
48
+
49
+ class ManualEntry < ::Stripe::RequestParams
50
+ # Whether manual entry will be handled by Stripe during the Session.
51
+ attr_accessor :mode
52
+
53
+ def initialize(mode: nil)
54
+ @mode = mode
34
55
  end
35
56
  end
36
57
  # The account holder to link accounts for.
@@ -39,6 +60,10 @@ module Stripe
39
60
  attr_accessor :expand
40
61
  # Filters to restrict the kinds of accounts to collect.
41
62
  attr_accessor :filters
63
+ # Settings for configuring Session-specific limits.
64
+ attr_accessor :limits
65
+ # Customize manual entry behavior
66
+ attr_accessor :manual_entry
42
67
  # List of data features that you would like to request access to.
43
68
  #
44
69
  # Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
@@ -52,6 +77,8 @@ module Stripe
52
77
  account_holder: nil,
53
78
  expand: nil,
54
79
  filters: nil,
80
+ limits: nil,
81
+ manual_entry: nil,
55
82
  permissions: nil,
56
83
  prefetch: nil,
57
84
  return_url: nil
@@ -59,6 +86,8 @@ module Stripe
59
86
  @account_holder = account_holder
60
87
  @expand = expand
61
88
  @filters = filters
89
+ @limits = limits
90
+ @manual_entry = manual_entry
62
91
  @permissions = permissions
63
92
  @prefetch = prefetch
64
93
  @return_url = return_url
@@ -0,0 +1,73 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class FxQuoteCreateParams < ::Stripe::RequestParams
6
+ class Usage < ::Stripe::RequestParams
7
+ class Payment < ::Stripe::RequestParams
8
+ # The Stripe account ID that the funds will be transferred to.
9
+ #
10
+ # This field should match the account ID that would be used in the PaymentIntent’s transfer_data[destination] field.
11
+ attr_accessor :destination
12
+ # The Stripe account ID that these funds are intended for.
13
+ #
14
+ # This field should match the account ID that would be used in the PaymentIntent’s on_behalf_of field.
15
+ attr_accessor :on_behalf_of
16
+
17
+ def initialize(destination: nil, on_behalf_of: nil)
18
+ @destination = destination
19
+ @on_behalf_of = on_behalf_of
20
+ end
21
+ end
22
+
23
+ class Transfer < ::Stripe::RequestParams
24
+ # The Stripe account ID that the funds will be transferred to.
25
+ #
26
+ # This field should match the account ID that would be used in the Transfer’s destination field.
27
+ attr_accessor :destination
28
+
29
+ def initialize(destination: nil)
30
+ @destination = destination
31
+ end
32
+ end
33
+ # The payment transaction details that are intended for the FX Quote.
34
+ attr_accessor :payment
35
+ # The transfer transaction details that are intended for the FX Quote.
36
+ attr_accessor :transfer
37
+ # Which transaction the FX Quote will be used for
38
+ #
39
+ # Can be “payment” | “transfer”
40
+ attr_accessor :type
41
+
42
+ def initialize(payment: nil, transfer: nil, type: nil)
43
+ @payment = payment
44
+ @transfer = transfer
45
+ @type = type
46
+ end
47
+ end
48
+ # Specifies which fields in the response should be expanded.
49
+ attr_accessor :expand
50
+ # A list of three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be [supported currencies](https://stripe.com/docs/currencies).
51
+ attr_accessor :from_currencies
52
+ # The duration that you wish the quote to be locked for. The quote will be usable for the duration specified. The default is `none`. The maximum is 1 day.
53
+ attr_accessor :lock_duration
54
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
55
+ attr_accessor :to_currency
56
+ # The usage specific information for the quote.
57
+ attr_accessor :usage
58
+
59
+ def initialize(
60
+ expand: nil,
61
+ from_currencies: nil,
62
+ lock_duration: nil,
63
+ to_currency: nil,
64
+ usage: nil
65
+ )
66
+ @expand = expand
67
+ @from_currencies = from_currencies
68
+ @lock_duration = lock_duration
69
+ @to_currency = to_currency
70
+ @usage = usage
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class FxQuoteListParams < ::Stripe::RequestParams
6
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
7
+ attr_accessor :ending_before
8
+ # Specifies which fields in the response should be expanded.
9
+ attr_accessor :expand
10
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
11
+ attr_accessor :limit
12
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
13
+ attr_accessor :starting_after
14
+
15
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
16
+ @ending_before = ending_before
17
+ @expand = expand
18
+ @limit = limit
19
+ @starting_after = starting_after
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class FxQuoteRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -5,16 +5,44 @@ module Stripe
5
5
  class InvoiceAddLinesParams < ::Stripe::RequestParams
6
6
  class Line < ::Stripe::RequestParams
7
7
  class Discount < ::Stripe::RequestParams
8
+ class DiscountEnd < ::Stripe::RequestParams
9
+ class Duration < ::Stripe::RequestParams
10
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
11
+ attr_accessor :interval
12
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
13
+ attr_accessor :interval_count
14
+
15
+ def initialize(interval: nil, interval_count: nil)
16
+ @interval = interval
17
+ @interval_count = interval_count
18
+ end
19
+ end
20
+ # Time span for the redeemed discount.
21
+ attr_accessor :duration
22
+ # A precise Unix timestamp for the discount to end. Must be in the future.
23
+ attr_accessor :timestamp
24
+ # The type of calculation made to determine when the discount ends.
25
+ attr_accessor :type
26
+
27
+ def initialize(duration: nil, timestamp: nil, type: nil)
28
+ @duration = duration
29
+ @timestamp = timestamp
30
+ @type = type
31
+ end
32
+ end
8
33
  # ID of the coupon to create a new discount for.
9
34
  attr_accessor :coupon
10
35
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
11
36
  attr_accessor :discount
37
+ # Details to determine how long the discount should be applied for.
38
+ attr_accessor :discount_end
12
39
  # ID of the promotion code to create a new discount for.
13
40
  attr_accessor :promotion_code
14
41
 
15
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
42
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
16
43
  @coupon = coupon
17
44
  @discount = discount
45
+ @discount_end = discount_end
18
46
  @promotion_code = promotion_code
19
47
  end
20
48
  end
@@ -172,6 +200,8 @@ module Stripe
172
200
  attr_accessor :discounts
173
201
  # ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
174
202
  attr_accessor :invoice_item
203
+ # The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
204
+ attr_accessor :margins
175
205
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
176
206
  attr_accessor :metadata
177
207
  # The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
@@ -193,6 +223,7 @@ module Stripe
193
223
  discountable: nil,
194
224
  discounts: nil,
195
225
  invoice_item: nil,
226
+ margins: nil,
196
227
  metadata: nil,
197
228
  period: nil,
198
229
  price_data: nil,
@@ -206,6 +237,7 @@ module Stripe
206
237
  @discountable = discountable
207
238
  @discounts = discounts
208
239
  @invoice_item = invoice_item
240
+ @margins = margins
209
241
  @metadata = metadata
210
242
  @period = period
211
243
  @price_data = price_data