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
@@ -12,10 +12,13 @@ module Stripe
12
12
  attr_accessor :exempt
13
13
  # A recent IP address of the customer used for tax reporting and tax location inference.
14
14
  attr_accessor :ip_address
15
+ # The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users.
16
+ attr_accessor :location_source
15
17
 
16
- def initialize(exempt: nil, ip_address: nil)
18
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
17
19
  @exempt = exempt
18
20
  @ip_address = ip_address
21
+ @location_source = location_source
19
22
  end
20
23
  end
21
24
 
@@ -966,6 +969,44 @@ module Stripe
966
969
 
967
970
  class Recipient < ::Stripe::RequestParams
968
971
  class Capabilities < ::Stripe::RequestParams
972
+ class BankAccounts < ::Stripe::RequestParams
973
+ class Local < ::Stripe::RequestParams
974
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
975
+ attr_accessor :requested
976
+
977
+ def initialize(requested: nil)
978
+ @requested = requested
979
+ end
980
+ end
981
+
982
+ class Wire < ::Stripe::RequestParams
983
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
984
+ attr_accessor :requested
985
+
986
+ def initialize(requested: nil)
987
+ @requested = requested
988
+ end
989
+ end
990
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
991
+ attr_accessor :local
992
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
993
+ attr_accessor :wire
994
+
995
+ def initialize(local: nil, wire: nil)
996
+ @local = local
997
+ @wire = wire
998
+ end
999
+ end
1000
+
1001
+ class Cards < ::Stripe::RequestParams
1002
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1003
+ attr_accessor :requested
1004
+
1005
+ def initialize(requested: nil)
1006
+ @requested = requested
1007
+ end
1008
+ end
1009
+
969
1010
  class StripeBalance < ::Stripe::RequestParams
970
1011
  class StripeTransfers < ::Stripe::RequestParams
971
1012
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
@@ -982,10 +1023,16 @@ module Stripe
982
1023
  @stripe_transfers = stripe_transfers
983
1024
  end
984
1025
  end
1026
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1027
+ attr_accessor :bank_accounts
1028
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
1029
+ attr_accessor :cards
985
1030
  # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
986
1031
  attr_accessor :stripe_balance
987
1032
 
988
- def initialize(stripe_balance: nil)
1033
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
1034
+ @bank_accounts = bank_accounts
1035
+ @cards = cards
989
1036
  @stripe_balance = stripe_balance
990
1037
  end
991
1038
  end
@@ -996,17 +1043,199 @@ module Stripe
996
1043
  @capabilities = capabilities
997
1044
  end
998
1045
  end
1046
+
1047
+ class Storer < ::Stripe::RequestParams
1048
+ class Capabilities < ::Stripe::RequestParams
1049
+ class FinancialAddresses < ::Stripe::RequestParams
1050
+ class BankAccounts < ::Stripe::RequestParams
1051
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1052
+ attr_accessor :requested
1053
+
1054
+ def initialize(requested: nil)
1055
+ @requested = requested
1056
+ end
1057
+ end
1058
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1059
+ attr_accessor :bank_accounts
1060
+
1061
+ def initialize(bank_accounts: nil)
1062
+ @bank_accounts = bank_accounts
1063
+ end
1064
+ end
1065
+
1066
+ class HoldsCurrencies < ::Stripe::RequestParams
1067
+ class Eur < ::Stripe::RequestParams
1068
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1069
+ attr_accessor :requested
1070
+
1071
+ def initialize(requested: nil)
1072
+ @requested = requested
1073
+ end
1074
+ end
1075
+
1076
+ class Gbp < ::Stripe::RequestParams
1077
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1078
+ attr_accessor :requested
1079
+
1080
+ def initialize(requested: nil)
1081
+ @requested = requested
1082
+ end
1083
+ end
1084
+
1085
+ class Usd < ::Stripe::RequestParams
1086
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1087
+ attr_accessor :requested
1088
+
1089
+ def initialize(requested: nil)
1090
+ @requested = requested
1091
+ end
1092
+ end
1093
+ # Can hold storage-type funds on Stripe in EUR.
1094
+ attr_accessor :eur
1095
+ # Can hold storage-type funds on Stripe in GBP.
1096
+ attr_accessor :gbp
1097
+ # Can hold storage-type funds on Stripe in USD.
1098
+ attr_accessor :usd
1099
+
1100
+ def initialize(eur: nil, gbp: nil, usd: nil)
1101
+ @eur = eur
1102
+ @gbp = gbp
1103
+ @usd = usd
1104
+ end
1105
+ end
1106
+
1107
+ class InboundTransfers < ::Stripe::RequestParams
1108
+ class BankAccounts < ::Stripe::RequestParams
1109
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1110
+ attr_accessor :requested
1111
+
1112
+ def initialize(requested: nil)
1113
+ @requested = requested
1114
+ end
1115
+ end
1116
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1117
+ attr_accessor :bank_accounts
1118
+
1119
+ def initialize(bank_accounts: nil)
1120
+ @bank_accounts = bank_accounts
1121
+ end
1122
+ end
1123
+
1124
+ class OutboundPayments < ::Stripe::RequestParams
1125
+ class BankAccounts < ::Stripe::RequestParams
1126
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1127
+ attr_accessor :requested
1128
+
1129
+ def initialize(requested: nil)
1130
+ @requested = requested
1131
+ end
1132
+ end
1133
+
1134
+ class Cards < ::Stripe::RequestParams
1135
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1136
+ attr_accessor :requested
1137
+
1138
+ def initialize(requested: nil)
1139
+ @requested = requested
1140
+ end
1141
+ end
1142
+
1143
+ class FinancialAccounts < ::Stripe::RequestParams
1144
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1145
+ attr_accessor :requested
1146
+
1147
+ def initialize(requested: nil)
1148
+ @requested = requested
1149
+ end
1150
+ end
1151
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1152
+ attr_accessor :bank_accounts
1153
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1154
+ attr_accessor :cards
1155
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1156
+ attr_accessor :financial_accounts
1157
+
1158
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1159
+ @bank_accounts = bank_accounts
1160
+ @cards = cards
1161
+ @financial_accounts = financial_accounts
1162
+ end
1163
+ end
1164
+
1165
+ class OutboundTransfers < ::Stripe::RequestParams
1166
+ class BankAccounts < ::Stripe::RequestParams
1167
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1168
+ attr_accessor :requested
1169
+
1170
+ def initialize(requested: nil)
1171
+ @requested = requested
1172
+ end
1173
+ end
1174
+
1175
+ class FinancialAccounts < ::Stripe::RequestParams
1176
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1177
+ attr_accessor :requested
1178
+
1179
+ def initialize(requested: nil)
1180
+ @requested = requested
1181
+ end
1182
+ end
1183
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1184
+ attr_accessor :bank_accounts
1185
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1186
+ attr_accessor :financial_accounts
1187
+
1188
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1189
+ @bank_accounts = bank_accounts
1190
+ @financial_accounts = financial_accounts
1191
+ end
1192
+ end
1193
+ # Can provision a financial address to credit/debit a FinancialAccount.
1194
+ attr_accessor :financial_addresses
1195
+ # Can hold storage-type funds on Stripe.
1196
+ attr_accessor :holds_currencies
1197
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1198
+ attr_accessor :inbound_transfers
1199
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1200
+ attr_accessor :outbound_payments
1201
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1202
+ attr_accessor :outbound_transfers
1203
+
1204
+ def initialize(
1205
+ financial_addresses: nil,
1206
+ holds_currencies: nil,
1207
+ inbound_transfers: nil,
1208
+ outbound_payments: nil,
1209
+ outbound_transfers: nil
1210
+ )
1211
+ @financial_addresses = financial_addresses
1212
+ @holds_currencies = holds_currencies
1213
+ @inbound_transfers = inbound_transfers
1214
+ @outbound_payments = outbound_payments
1215
+ @outbound_transfers = outbound_transfers
1216
+ end
1217
+ end
1218
+ # Capabilities to request on the Storer Configuration.
1219
+ attr_accessor :capabilities
1220
+
1221
+ def initialize(capabilities: nil)
1222
+ @capabilities = capabilities
1223
+ end
1224
+ end
999
1225
  # The Customer Configuration allows the Account to be used in inbound payment flows.
1000
1226
  attr_accessor :customer
1001
1227
  # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
1002
1228
  attr_accessor :merchant
1003
1229
  # The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
1004
1230
  attr_accessor :recipient
1231
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1232
+ attr_accessor :storer
1005
1233
 
1006
- def initialize(customer: nil, merchant: nil, recipient: nil)
1234
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1007
1235
  @customer = customer
1008
1236
  @merchant = merchant
1009
1237
  @recipient = recipient
1238
+ @storer = storer
1010
1239
  end
1011
1240
  end
1012
1241
 
@@ -1139,11 +1368,29 @@ module Stripe
1139
1368
  @user_agent = user_agent
1140
1369
  end
1141
1370
  end
1371
+
1372
+ class Storer < ::Stripe::RequestParams
1373
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1374
+ attr_accessor :date
1375
+ # The IP address from which the Account's representative accepted the terms of service.
1376
+ attr_accessor :ip
1377
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1378
+ attr_accessor :user_agent
1379
+
1380
+ def initialize(date: nil, ip: nil, user_agent: nil)
1381
+ @date = date
1382
+ @ip = ip
1383
+ @user_agent = user_agent
1384
+ end
1385
+ end
1142
1386
  # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1143
1387
  attr_accessor :account
1388
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1389
+ attr_accessor :storer
1144
1390
 
1145
- def initialize(account: nil)
1391
+ def initialize(account: nil, storer: nil)
1146
1392
  @account = account
1393
+ @storer = storer
1147
1394
  end
1148
1395
  end
1149
1396
  # This hash is used to attest that the directors information provided to Stripe is both current and correct.
@@ -66,11 +66,23 @@ module Stripe
66
66
  @shown_and_accepted = shown_and_accepted
67
67
  end
68
68
  end
69
+
70
+ class Storer < ::Stripe::RequestParams
71
+ # The boolean value indicating if the terms of service have been accepted.
72
+ attr_accessor :shown_and_accepted
73
+
74
+ def initialize(shown_and_accepted: nil)
75
+ @shown_and_accepted = shown_and_accepted
76
+ end
77
+ end
69
78
  # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe.
70
79
  attr_accessor :account
80
+ # Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe.
81
+ attr_accessor :storer
71
82
 
72
- def initialize(account: nil)
83
+ def initialize(account: nil, storer: nil)
73
84
  @account = account
85
+ @storer = storer
74
86
  end
75
87
  end
76
88
  # This hash is used to attest that the directors information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
@@ -12,12 +12,20 @@ module Stripe
12
12
  attr_accessor :exempt
13
13
  # A recent IP address of the customer used for tax reporting and tax location inference.
14
14
  attr_accessor :ip_address
15
+ # Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
16
+ attr_accessor :location_source
15
17
  # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
16
18
  attr_accessor :validate_location
17
19
 
18
- def initialize(exempt: nil, ip_address: nil, validate_location: nil)
20
+ def initialize(
21
+ exempt: nil,
22
+ ip_address: nil,
23
+ location_source: nil,
24
+ validate_location: nil
25
+ )
19
26
  @exempt = exempt
20
27
  @ip_address = ip_address
28
+ @location_source = location_source
21
29
  @validate_location = validate_location
22
30
  end
23
31
  end
@@ -980,6 +988,44 @@ module Stripe
980
988
 
981
989
  class Recipient < ::Stripe::RequestParams
982
990
  class Capabilities < ::Stripe::RequestParams
991
+ class BankAccounts < ::Stripe::RequestParams
992
+ class Local < ::Stripe::RequestParams
993
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
994
+ attr_accessor :requested
995
+
996
+ def initialize(requested: nil)
997
+ @requested = requested
998
+ end
999
+ end
1000
+
1001
+ class Wire < ::Stripe::RequestParams
1002
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1003
+ attr_accessor :requested
1004
+
1005
+ def initialize(requested: nil)
1006
+ @requested = requested
1007
+ end
1008
+ end
1009
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1010
+ attr_accessor :local
1011
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1012
+ attr_accessor :wire
1013
+
1014
+ def initialize(local: nil, wire: nil)
1015
+ @local = local
1016
+ @wire = wire
1017
+ end
1018
+ end
1019
+
1020
+ class Cards < ::Stripe::RequestParams
1021
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1022
+ attr_accessor :requested
1023
+
1024
+ def initialize(requested: nil)
1025
+ @requested = requested
1026
+ end
1027
+ end
1028
+
983
1029
  class StripeBalance < ::Stripe::RequestParams
984
1030
  class StripeTransfers < ::Stripe::RequestParams
985
1031
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
@@ -996,10 +1042,16 @@ module Stripe
996
1042
  @stripe_transfers = stripe_transfers
997
1043
  end
998
1044
  end
1045
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1046
+ attr_accessor :bank_accounts
1047
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
1048
+ attr_accessor :cards
999
1049
  # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1000
1050
  attr_accessor :stripe_balance
1001
1051
 
1002
- def initialize(stripe_balance: nil)
1052
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
1053
+ @bank_accounts = bank_accounts
1054
+ @cards = cards
1003
1055
  @stripe_balance = stripe_balance
1004
1056
  end
1005
1057
  end
@@ -1007,6 +1059,191 @@ module Stripe
1007
1059
  attr_accessor :applied
1008
1060
  # Capabilities to request on the Recipient Configuration.
1009
1061
  attr_accessor :capabilities
1062
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
1063
+ attr_accessor :default_outbound_destination
1064
+
1065
+ def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
1066
+ @applied = applied
1067
+ @capabilities = capabilities
1068
+ @default_outbound_destination = default_outbound_destination
1069
+ end
1070
+ end
1071
+
1072
+ class Storer < ::Stripe::RequestParams
1073
+ class Capabilities < ::Stripe::RequestParams
1074
+ class FinancialAddresses < ::Stripe::RequestParams
1075
+ class BankAccounts < ::Stripe::RequestParams
1076
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1077
+ attr_accessor :requested
1078
+
1079
+ def initialize(requested: nil)
1080
+ @requested = requested
1081
+ end
1082
+ end
1083
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1084
+ attr_accessor :bank_accounts
1085
+
1086
+ def initialize(bank_accounts: nil)
1087
+ @bank_accounts = bank_accounts
1088
+ end
1089
+ end
1090
+
1091
+ class HoldsCurrencies < ::Stripe::RequestParams
1092
+ class Eur < ::Stripe::RequestParams
1093
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1094
+ attr_accessor :requested
1095
+
1096
+ def initialize(requested: nil)
1097
+ @requested = requested
1098
+ end
1099
+ end
1100
+
1101
+ class Gbp < ::Stripe::RequestParams
1102
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1103
+ attr_accessor :requested
1104
+
1105
+ def initialize(requested: nil)
1106
+ @requested = requested
1107
+ end
1108
+ end
1109
+
1110
+ class Usd < ::Stripe::RequestParams
1111
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1112
+ attr_accessor :requested
1113
+
1114
+ def initialize(requested: nil)
1115
+ @requested = requested
1116
+ end
1117
+ end
1118
+ # Can hold storage-type funds on Stripe in EUR.
1119
+ attr_accessor :eur
1120
+ # Can hold storage-type funds on Stripe in GBP.
1121
+ attr_accessor :gbp
1122
+ # Can hold storage-type funds on Stripe in USD.
1123
+ attr_accessor :usd
1124
+
1125
+ def initialize(eur: nil, gbp: nil, usd: nil)
1126
+ @eur = eur
1127
+ @gbp = gbp
1128
+ @usd = usd
1129
+ end
1130
+ end
1131
+
1132
+ class InboundTransfers < ::Stripe::RequestParams
1133
+ class BankAccounts < ::Stripe::RequestParams
1134
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1135
+ attr_accessor :requested
1136
+
1137
+ def initialize(requested: nil)
1138
+ @requested = requested
1139
+ end
1140
+ end
1141
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1142
+ attr_accessor :bank_accounts
1143
+
1144
+ def initialize(bank_accounts: nil)
1145
+ @bank_accounts = bank_accounts
1146
+ end
1147
+ end
1148
+
1149
+ class OutboundPayments < ::Stripe::RequestParams
1150
+ class BankAccounts < ::Stripe::RequestParams
1151
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1152
+ attr_accessor :requested
1153
+
1154
+ def initialize(requested: nil)
1155
+ @requested = requested
1156
+ end
1157
+ end
1158
+
1159
+ class Cards < ::Stripe::RequestParams
1160
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1161
+ attr_accessor :requested
1162
+
1163
+ def initialize(requested: nil)
1164
+ @requested = requested
1165
+ end
1166
+ end
1167
+
1168
+ class FinancialAccounts < ::Stripe::RequestParams
1169
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1170
+ attr_accessor :requested
1171
+
1172
+ def initialize(requested: nil)
1173
+ @requested = requested
1174
+ end
1175
+ end
1176
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1177
+ attr_accessor :bank_accounts
1178
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1179
+ attr_accessor :cards
1180
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1181
+ attr_accessor :financial_accounts
1182
+
1183
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1184
+ @bank_accounts = bank_accounts
1185
+ @cards = cards
1186
+ @financial_accounts = financial_accounts
1187
+ end
1188
+ end
1189
+
1190
+ class OutboundTransfers < ::Stripe::RequestParams
1191
+ class BankAccounts < ::Stripe::RequestParams
1192
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1193
+ attr_accessor :requested
1194
+
1195
+ def initialize(requested: nil)
1196
+ @requested = requested
1197
+ end
1198
+ end
1199
+
1200
+ class FinancialAccounts < ::Stripe::RequestParams
1201
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1202
+ attr_accessor :requested
1203
+
1204
+ def initialize(requested: nil)
1205
+ @requested = requested
1206
+ end
1207
+ end
1208
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1209
+ attr_accessor :bank_accounts
1210
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1211
+ attr_accessor :financial_accounts
1212
+
1213
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1214
+ @bank_accounts = bank_accounts
1215
+ @financial_accounts = financial_accounts
1216
+ end
1217
+ end
1218
+ # Can provision a financial address to credit/debit a FinancialAccount.
1219
+ attr_accessor :financial_addresses
1220
+ # Can hold storage-type funds on Stripe.
1221
+ attr_accessor :holds_currencies
1222
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1223
+ attr_accessor :inbound_transfers
1224
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1225
+ attr_accessor :outbound_payments
1226
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1227
+ attr_accessor :outbound_transfers
1228
+
1229
+ def initialize(
1230
+ financial_addresses: nil,
1231
+ holds_currencies: nil,
1232
+ inbound_transfers: nil,
1233
+ outbound_payments: nil,
1234
+ outbound_transfers: nil
1235
+ )
1236
+ @financial_addresses = financial_addresses
1237
+ @holds_currencies = holds_currencies
1238
+ @inbound_transfers = inbound_transfers
1239
+ @outbound_payments = outbound_payments
1240
+ @outbound_transfers = outbound_transfers
1241
+ end
1242
+ end
1243
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1244
+ attr_accessor :applied
1245
+ # Capabilities to request on the Storer Configuration.
1246
+ attr_accessor :capabilities
1010
1247
 
1011
1248
  def initialize(applied: nil, capabilities: nil)
1012
1249
  @applied = applied
@@ -1019,11 +1256,14 @@ module Stripe
1019
1256
  attr_accessor :merchant
1020
1257
  # The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
1021
1258
  attr_accessor :recipient
1259
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1260
+ attr_accessor :storer
1022
1261
 
1023
- def initialize(customer: nil, merchant: nil, recipient: nil)
1262
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1024
1263
  @customer = customer
1025
1264
  @merchant = merchant
1026
1265
  @recipient = recipient
1266
+ @storer = storer
1027
1267
  end
1028
1268
  end
1029
1269
 
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ module Vault
8
+ class GbBankAccountAcknowledgeConfirmationOfPayeeParams < ::Stripe::RequestParams; end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ module Vault
8
+ class GbBankAccountArchiveParams < ::Stripe::RequestParams; end
9
+ end
10
+ end
11
+ end
12
+ end