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
@@ -0,0 +1,110 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundPaymentCreateParams < ::Stripe::RequestParams
8
+ class Amount < ::Stripe::RequestParams
9
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
10
+ attr_accessor :value
11
+ # 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).
12
+ attr_accessor :currency
13
+
14
+ def initialize(value: nil, currency: nil)
15
+ @value = value
16
+ @currency = currency
17
+ end
18
+ end
19
+
20
+ class DeliveryOptions < ::Stripe::RequestParams
21
+ # Open Enum. Method for bank account.
22
+ attr_accessor :bank_account
23
+
24
+ def initialize(bank_account: nil)
25
+ @bank_account = bank_account
26
+ end
27
+ end
28
+
29
+ class From < ::Stripe::RequestParams
30
+ # Describes the FinancialAmount's currency drawn from.
31
+ attr_accessor :currency
32
+ # The FinancialAccount that funds were pulled from.
33
+ attr_accessor :financial_account
34
+
35
+ def initialize(currency: nil, financial_account: nil)
36
+ @currency = currency
37
+ @financial_account = financial_account
38
+ end
39
+ end
40
+
41
+ class RecipientNotification < ::Stripe::RequestParams
42
+ # Closed Enum. Configuration option to enable or disable notifications to recipients.
43
+ # Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set.
44
+ attr_accessor :setting
45
+
46
+ def initialize(setting: nil)
47
+ @setting = setting
48
+ end
49
+ end
50
+
51
+ class To < ::Stripe::RequestParams
52
+ # Describes the currency to send to the recipient.
53
+ # If included, this currency must match a currency supported by the destination.
54
+ # Can be omitted in the following cases:
55
+ # - destination only supports one currency
56
+ # - destination supports multiple currencies and one of the currencies matches the FA currency
57
+ # - destination supports multiple currencies and one of the currencies matches the presentment currency
58
+ # Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
59
+ attr_accessor :currency
60
+ # The payout method which the OutboundPayment uses to send payout.
61
+ attr_accessor :payout_method
62
+ # To which account the OutboundPayment is sent.
63
+ attr_accessor :recipient
64
+
65
+ def initialize(currency: nil, payout_method: nil, recipient: nil)
66
+ @currency = currency
67
+ @payout_method = payout_method
68
+ @recipient = recipient
69
+ end
70
+ end
71
+ # The "presentment amount" to be sent to the recipient.
72
+ attr_accessor :amount
73
+ # Delivery options to be used to send the OutboundPayment.
74
+ attr_accessor :delivery_options
75
+ # An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
76
+ attr_accessor :description
77
+ # From which FinancialAccount and BalanceType to pull funds from.
78
+ attr_accessor :from
79
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
80
+ attr_accessor :metadata
81
+ # The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
82
+ attr_accessor :outbound_payment_quote
83
+ # Details about the notification settings for the OutboundPayment recipient.
84
+ attr_accessor :recipient_notification
85
+ # To which payout method to send the OutboundPayment.
86
+ attr_accessor :to
87
+
88
+ def initialize(
89
+ amount: nil,
90
+ delivery_options: nil,
91
+ description: nil,
92
+ from: nil,
93
+ metadata: nil,
94
+ outbound_payment_quote: nil,
95
+ recipient_notification: nil,
96
+ to: nil
97
+ )
98
+ @amount = amount
99
+ @delivery_options = delivery_options
100
+ @description = description
101
+ @from = from
102
+ @metadata = metadata
103
+ @outbound_payment_quote = outbound_payment_quote
104
+ @recipient_notification = recipient_notification
105
+ @to = to
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,52 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundPaymentListParams < ::Stripe::RequestParams
8
+ # Filter for objects created at the specified timestamp.
9
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
10
+ attr_accessor :created
11
+ # Filter for objects created after the specified timestamp.
12
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
13
+ attr_accessor :created_gt
14
+ # Filter for objects created on or after the specified timestamp.
15
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
16
+ attr_accessor :created_gte
17
+ # Filter for objects created before the specified timestamp.
18
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
19
+ attr_accessor :created_lt
20
+ # Filter for objects created on or before the specified timestamp.
21
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
22
+ attr_accessor :created_lte
23
+ # The maximum number of results to return.
24
+ attr_accessor :limit
25
+ # Only return OutboundPayments sent to this recipient.
26
+ attr_accessor :recipient
27
+ # Closed Enum. Only return OutboundPayments with this status.
28
+ attr_accessor :status
29
+
30
+ def initialize(
31
+ created: nil,
32
+ created_gt: nil,
33
+ created_gte: nil,
34
+ created_lt: nil,
35
+ created_lte: nil,
36
+ limit: nil,
37
+ recipient: nil,
38
+ status: nil
39
+ )
40
+ @created = created
41
+ @created_gt = created_gt
42
+ @created_gte = created_gte
43
+ @created_lt = created_lt
44
+ @created_lte = created_lte
45
+ @limit = limit
46
+ @recipient = recipient
47
+ @status = status
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,79 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundPaymentQuoteCreateParams < ::Stripe::RequestParams
8
+ class Amount < ::Stripe::RequestParams
9
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
10
+ attr_accessor :value
11
+ # 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).
12
+ attr_accessor :currency
13
+
14
+ def initialize(value: nil, currency: nil)
15
+ @value = value
16
+ @currency = currency
17
+ end
18
+ end
19
+
20
+ class DeliveryOptions < ::Stripe::RequestParams
21
+ # Open Enum. Method for bank account.
22
+ attr_accessor :bank_account
23
+
24
+ def initialize(bank_account: nil)
25
+ @bank_account = bank_account
26
+ end
27
+ end
28
+
29
+ class From < ::Stripe::RequestParams
30
+ # Describes the FinancialAccount's currency drawn from.
31
+ attr_accessor :currency
32
+ # The FinancialAccount that funds were pulled from.
33
+ attr_accessor :financial_account
34
+
35
+ def initialize(currency: nil, financial_account: nil)
36
+ @currency = currency
37
+ @financial_account = financial_account
38
+ end
39
+ end
40
+
41
+ class To < ::Stripe::RequestParams
42
+ # Describes the currency to send to the recipient.
43
+ # If included, this currency must match a currency supported by the destination.
44
+ # Can be omitted in the following cases:
45
+ # - destination only supports one currency
46
+ # - destination supports multiple currencies and one of the currencies matches the FA currency
47
+ # - destination supports multiple currencies and one of the currencies matches the presentment currency
48
+ # Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
49
+ attr_accessor :currency
50
+ # The payout method which the OutboundPayment uses to send payout.
51
+ attr_accessor :payout_method
52
+ # To which account the OutboundPayment is sent.
53
+ attr_accessor :recipient
54
+
55
+ def initialize(currency: nil, payout_method: nil, recipient: nil)
56
+ @currency = currency
57
+ @payout_method = payout_method
58
+ @recipient = recipient
59
+ end
60
+ end
61
+ # The "presentment amount" to be sent to the recipient.
62
+ attr_accessor :amount
63
+ # Method to be used to send the OutboundPayment.
64
+ attr_accessor :delivery_options
65
+ # Request details about the sender of an OutboundPaymentQuote.
66
+ attr_accessor :from
67
+ # Request details about the recipient of an OutboundPaymentQuote.
68
+ attr_accessor :to
69
+
70
+ def initialize(amount: nil, delivery_options: nil, from: nil, to: nil)
71
+ @amount = amount
72
+ @delivery_options = delivery_options
73
+ @from = from
74
+ @to = to
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundPaymentQuoteRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundPaymentRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundSetupIntentCancelParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,85 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundSetupIntentCreateParams < ::Stripe::RequestParams
8
+ class PayoutMethodData < ::Stripe::RequestParams
9
+ class BankAccount < ::Stripe::RequestParams
10
+ # The account number or IBAN of the bank account.
11
+ attr_accessor :account_number
12
+ # Closed Enum. The type of the bank account (checking or savings).
13
+ attr_accessor :bank_account_type
14
+ # The branch number of the bank account, if present.
15
+ attr_accessor :branch_number
16
+ # The country code of the bank account.
17
+ attr_accessor :country
18
+ # The routing number of the bank account, if present.
19
+ attr_accessor :routing_number
20
+ # The swift code of the bank account, if present.
21
+ attr_accessor :swift_code
22
+
23
+ def initialize(
24
+ account_number: nil,
25
+ bank_account_type: nil,
26
+ branch_number: nil,
27
+ country: nil,
28
+ routing_number: nil,
29
+ swift_code: nil
30
+ )
31
+ @account_number = account_number
32
+ @bank_account_type = bank_account_type
33
+ @branch_number = branch_number
34
+ @country = country
35
+ @routing_number = routing_number
36
+ @swift_code = swift_code
37
+ end
38
+ end
39
+
40
+ class Card < ::Stripe::RequestParams
41
+ # The expiration month of the card.
42
+ attr_accessor :exp_month
43
+ # The expiration year of the card.
44
+ attr_accessor :exp_year
45
+ # The card number.
46
+ attr_accessor :number
47
+
48
+ def initialize(exp_month: nil, exp_year: nil, number: nil)
49
+ @exp_month = exp_month
50
+ @exp_year = exp_year
51
+ @number = number
52
+ end
53
+ end
54
+ # Closed Enum. The type of payout method to be created.
55
+ attr_accessor :type
56
+ # The type specific details of the bank account payout method.
57
+ attr_accessor :bank_account
58
+ # The type specific details of the card payout method.
59
+ attr_accessor :card
60
+
61
+ def initialize(type: nil, bank_account: nil, card: nil)
62
+ @type = type
63
+ @bank_account = bank_account
64
+ @card = card
65
+ end
66
+ end
67
+ # If provided, the existing payout method resource to link to this setup intent.
68
+ # Any payout_method_data provided is used to update information on this linked payout method resource.
69
+ attr_accessor :payout_method
70
+ # If no payout_method provided, used to create the underlying credential that is set up for outbound money movement.
71
+ # If a payout_method provided, used to update data on the credential linked to this setup intent.
72
+ attr_accessor :payout_method_data
73
+ # Specify which type of outbound money movement this credential should be set up for (payment | transfer).
74
+ # If not provided, defaults to payment.
75
+ attr_accessor :usage_intent
76
+
77
+ def initialize(payout_method: nil, payout_method_data: nil, usage_intent: nil)
78
+ @payout_method = payout_method
79
+ @payout_method_data = payout_method_data
80
+ @usage_intent = usage_intent
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundSetupIntentListParams < ::Stripe::RequestParams
8
+ # The page size.
9
+ attr_accessor :limit
10
+
11
+ def initialize(limit: nil)
12
+ @limit = limit
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundSetupIntentRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,80 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundSetupIntentUpdateParams < ::Stripe::RequestParams
8
+ class PayoutMethodData < ::Stripe::RequestParams
9
+ class BankAccount < ::Stripe::RequestParams
10
+ # The account number or IBAN of the bank account.
11
+ attr_accessor :account_number
12
+ # Closed Enum. The type of the bank account (checking or savings).
13
+ attr_accessor :bank_account_type
14
+ # The branch number of the bank account, if present.
15
+ attr_accessor :branch_number
16
+ # The country code of the bank account.
17
+ attr_accessor :country
18
+ # The routing number of the bank account, if present.
19
+ attr_accessor :routing_number
20
+ # The swift code of the bank account, if present.
21
+ attr_accessor :swift_code
22
+
23
+ def initialize(
24
+ account_number: nil,
25
+ bank_account_type: nil,
26
+ branch_number: nil,
27
+ country: nil,
28
+ routing_number: nil,
29
+ swift_code: nil
30
+ )
31
+ @account_number = account_number
32
+ @bank_account_type = bank_account_type
33
+ @branch_number = branch_number
34
+ @country = country
35
+ @routing_number = routing_number
36
+ @swift_code = swift_code
37
+ end
38
+ end
39
+
40
+ class Card < ::Stripe::RequestParams
41
+ # The expiration month of the card.
42
+ attr_accessor :exp_month
43
+ # The expiration year of the card.
44
+ attr_accessor :exp_year
45
+ # The card number. This can only be passed when creating a new credential on an outbound setup intent in the requires_payout_method state.
46
+ attr_accessor :number
47
+
48
+ def initialize(exp_month: nil, exp_year: nil, number: nil)
49
+ @exp_month = exp_month
50
+ @exp_year = exp_year
51
+ @number = number
52
+ end
53
+ end
54
+ # Closed Enum. The type of payout method to be created/updated.
55
+ attr_accessor :type
56
+ # The type specific details of the bank account payout method.
57
+ attr_accessor :bank_account
58
+ # The type specific details of the card payout method.
59
+ attr_accessor :card
60
+
61
+ def initialize(type: nil, bank_account: nil, card: nil)
62
+ @type = type
63
+ @bank_account = bank_account
64
+ @card = card
65
+ end
66
+ end
67
+ # If provided, the existing payout method resource to link to this outbound setup intent.
68
+ attr_accessor :payout_method
69
+ # If no payout_method provided, used to create the underlying credential that is set up for outbound money movement.
70
+ # If a payout_method provided, used to update data on the credential linked to this setup intent.
71
+ attr_accessor :payout_method_data
72
+
73
+ def initialize(payout_method: nil, payout_method_data: nil)
74
+ @payout_method = payout_method
75
+ @payout_method_data = payout_method_data
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundTransferCancelParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,89 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundTransferCreateParams < ::Stripe::RequestParams
8
+ class Amount < ::Stripe::RequestParams
9
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
10
+ attr_accessor :value
11
+ # 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).
12
+ attr_accessor :currency
13
+
14
+ def initialize(value: nil, currency: nil)
15
+ @value = value
16
+ @currency = currency
17
+ end
18
+ end
19
+
20
+ class DeliveryOptions < ::Stripe::RequestParams
21
+ # Open Enum. Method for bank account.
22
+ attr_accessor :bank_account
23
+
24
+ def initialize(bank_account: nil)
25
+ @bank_account = bank_account
26
+ end
27
+ end
28
+
29
+ class From < ::Stripe::RequestParams
30
+ # Describes the FinancialAmount's currency drawn from.
31
+ attr_accessor :currency
32
+ # The FinancialAccount that funds were pulled from.
33
+ attr_accessor :financial_account
34
+
35
+ def initialize(currency: nil, financial_account: nil)
36
+ @currency = currency
37
+ @financial_account = financial_account
38
+ end
39
+ end
40
+
41
+ class To < ::Stripe::RequestParams
42
+ # Describes the currency to send to the recipient.
43
+ # If included, this currency must match a currency supported by the destination.
44
+ # Can be omitted in the following cases:
45
+ # - destination only supports one currency
46
+ # - destination supports multiple currencies and one of the currencies matches the FA currency
47
+ # - destination supports multiple currencies and one of the currencies matches the presentment currency
48
+ # Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
49
+ attr_accessor :currency
50
+ # The payout method which the OutboundTransfer uses to send payout.
51
+ attr_accessor :payout_method
52
+
53
+ def initialize(currency: nil, payout_method: nil)
54
+ @currency = currency
55
+ @payout_method = payout_method
56
+ end
57
+ end
58
+ # The "presentment amount" for the OutboundPayment.
59
+ attr_accessor :amount
60
+ # Delivery options to be used to send the OutboundTransfer.
61
+ attr_accessor :delivery_options
62
+ # An arbitrary string attached to the OutboundTransfer. Often useful for displaying to users.
63
+ attr_accessor :description
64
+ # The FinancialAccount to pull funds from.
65
+ attr_accessor :from
66
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
67
+ attr_accessor :metadata
68
+ # To which payout method to send the OutboundTransfer.
69
+ attr_accessor :to
70
+
71
+ def initialize(
72
+ amount: nil,
73
+ delivery_options: nil,
74
+ description: nil,
75
+ from: nil,
76
+ metadata: nil,
77
+ to: nil
78
+ )
79
+ @amount = amount
80
+ @delivery_options = delivery_options
81
+ @description = description
82
+ @from = from
83
+ @metadata = metadata
84
+ @to = to
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,48 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundTransferListParams < ::Stripe::RequestParams
8
+ # Filter for objects created at the specified timestamp.
9
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
10
+ attr_accessor :created
11
+ # Filter for objects created after the specified timestamp.
12
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
13
+ attr_accessor :created_gt
14
+ # Filter for objects created on or after the specified timestamp.
15
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
16
+ attr_accessor :created_gte
17
+ # Filter for objects created before the specified timestamp.
18
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
19
+ attr_accessor :created_lt
20
+ # Filter for objects created on or before the specified timestamp.
21
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
22
+ attr_accessor :created_lte
23
+ # The maximum number of results to return.
24
+ attr_accessor :limit
25
+ # Closed Enum. Only return OutboundTransfers with this status.
26
+ attr_accessor :status
27
+
28
+ def initialize(
29
+ created: nil,
30
+ created_gt: nil,
31
+ created_gte: nil,
32
+ created_lt: nil,
33
+ created_lte: nil,
34
+ limit: nil,
35
+ status: nil
36
+ )
37
+ @created = created
38
+ @created_gt = created_gt
39
+ @created_gte = created_gte
40
+ @created_lt = created_lt
41
+ @created_lte = created_lte
42
+ @limit = limit
43
+ @status = status
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class OutboundTransferRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class PayoutMethodArchiveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,31 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class PayoutMethodListParams < ::Stripe::RequestParams
8
+ class UsageStatus < ::Stripe::RequestParams
9
+ # List of payments status to filter by.
10
+ attr_accessor :payments
11
+ # List of transfers status to filter by.
12
+ attr_accessor :transfers
13
+
14
+ def initialize(payments: nil, transfers: nil)
15
+ @payments = payments
16
+ @transfers = transfers
17
+ end
18
+ end
19
+ # The page size.
20
+ attr_accessor :limit
21
+ # Usage status filter.
22
+ attr_accessor :usage_status
23
+
24
+ def initialize(limit: nil, usage_status: nil)
25
+ @limit = limit
26
+ @usage_status = usage_status
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end