stripe 17.0.0 → 17.1.0.pre.alpha.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 (1439) 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 +1037 -0
  6. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  7. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  8. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  9. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +5 -5
  10. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
  11. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  12. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  13. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  14. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  15. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  16. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  17. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  18. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  19. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  20. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  21. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  22. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  23. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  25. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  26. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  27. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  28. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  29. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  30. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  31. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  32. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  33. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  34. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  35. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  36. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  37. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  38. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  39. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  40. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  41. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  42. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  43. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  44. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  46. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  47. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  48. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  49. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  50. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  51. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  52. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  53. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  56. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  57. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  58. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  59. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  60. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  61. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  62. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  63. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  64. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  65. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  66. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  67. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  68. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  69. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  70. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  71. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  72. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  73. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  74. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  75. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  76. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  77. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  78. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  79. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  80. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  81. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  82. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  83. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  89. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  90. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  91. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  92. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  93. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  94. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  95. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  96. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  97. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  98. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  99. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  100. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  101. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  102. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  111. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  113. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  114. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  115. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  116. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  117. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  118. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  119. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  120. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  121. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  122. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  123. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  125. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  127. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  128. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  129. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  130. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  132. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  133. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  134. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  135. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  136. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  137. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  138. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  139. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  140. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  141. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  142. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  143. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  144. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  145. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  147. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  148. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  149. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  150. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  151. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  152. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  154. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  155. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  156. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  157. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  158. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  159. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  160. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  161. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  162. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  163. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  164. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  165. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  166. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  167. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  168. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  169. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  170. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  171. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  172. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  173. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  174. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  175. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  176. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  177. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  178. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  179. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  180. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  181. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  182. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  183. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  184. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  185. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  186. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  187. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  188. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  189. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  190. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  191. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  192. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  193. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  194. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  195. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  196. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  197. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  198. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  199. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  200. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  203. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  216. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  217. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  218. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  230. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  231. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  232. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  240. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  242. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  245. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  246. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  247. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  248. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  249. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  250. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  255. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  256. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  257. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  258. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  259. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  260. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  261. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  262. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  263. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  265. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  266. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  267. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  268. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  270. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  271. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  272. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  273. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  274. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  277. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  278. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  296. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  297. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  299. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  308. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  309. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
  310. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  315. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  316. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  317. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  318. data/lib/stripe/object_types.rb +80 -0
  319. data/lib/stripe/params/account_capability_list_params.rb +1 -1
  320. data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
  321. data/lib/stripe/params/account_capability_update_params.rb +1 -1
  322. data/lib/stripe/params/account_create_params.rb +417 -118
  323. data/lib/stripe/params/account_delete_params.rb +1 -1
  324. data/lib/stripe/params/account_external_account_create_params.rb +4 -4
  325. data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
  326. data/lib/stripe/params/account_external_account_list_params.rb +1 -1
  327. data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
  328. data/lib/stripe/params/account_external_account_update_params.rb +3 -3
  329. data/lib/stripe/params/account_link_create_params.rb +2 -2
  330. data/lib/stripe/params/account_list_params.rb +2 -2
  331. data/lib/stripe/params/account_login_link_create_params.rb +1 -1
  332. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  333. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  334. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  335. data/lib/stripe/params/account_person_create_params.rb +19 -19
  336. data/lib/stripe/params/account_person_delete_params.rb +1 -1
  337. data/lib/stripe/params/account_person_list_params.rb +2 -2
  338. data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
  339. data/lib/stripe/params/account_person_update_params.rb +19 -19
  340. data/lib/stripe/params/account_persons_params.rb +2 -2
  341. data/lib/stripe/params/account_reject_params.rb +1 -1
  342. data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
  343. data/lib/stripe/params/account_retrieve_params.rb +1 -1
  344. data/lib/stripe/params/account_session_create_params.rb +266 -41
  345. data/lib/stripe/params/account_update_params.rb +375 -113
  346. data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
  347. data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
  348. data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
  349. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
  350. data/lib/stripe/params/application_fee_list_params.rb +2 -2
  351. data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
  352. data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
  353. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
  354. data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
  355. data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
  356. data/lib/stripe/params/apps/secret_create_params.rb +2 -2
  357. data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
  358. data/lib/stripe/params/apps/secret_find_params.rb +2 -2
  359. data/lib/stripe/params/apps/secret_list_params.rb +2 -2
  360. data/lib/stripe/params/balance_retrieve_params.rb +1 -1
  361. data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
  362. data/lib/stripe/params/balance_settings_update_params.rb +5 -5
  363. data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
  364. data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
  365. data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
  366. data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
  367. data/lib/stripe/params/billing/alert_create_params.rb +124 -4
  368. data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
  369. data/lib/stripe/params/billing/alert_list_params.rb +5 -1
  370. data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
  371. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  372. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +21 -6
  373. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +5 -1
  374. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
  375. data/lib/stripe/params/billing/credit_grant_create_params.rb +39 -8
  376. data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
  377. data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
  378. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
  379. data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
  380. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
  381. data/lib/stripe/params/billing/meter_create_params.rb +4 -4
  382. data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
  383. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
  384. data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
  385. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
  386. data/lib/stripe/params/billing/meter_list_params.rb +1 -1
  387. data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
  388. data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
  389. data/lib/stripe/params/billing/meter_update_params.rb +1 -1
  390. data/lib/stripe/params/billing_portal/configuration_create_params.rb +14 -14
  391. data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
  392. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
  393. data/lib/stripe/params/billing_portal/configuration_update_params.rb +14 -14
  394. data/lib/stripe/params/billing_portal/session_create_params.rb +16 -12
  395. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  396. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  397. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  398. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  399. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  400. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  401. data/lib/stripe/params/charge_capture_params.rb +711 -2
  402. data/lib/stripe/params/charge_create_params.rb +6 -6
  403. data/lib/stripe/params/charge_list_params.rb +2 -2
  404. data/lib/stripe/params/charge_retrieve_params.rb +1 -1
  405. data/lib/stripe/params/charge_search_params.rb +1 -1
  406. data/lib/stripe/params/charge_update_params.rb +713 -4
  407. data/lib/stripe/params/checkout/session_create_params.rb +394 -125
  408. data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
  409. data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
  410. data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
  411. data/lib/stripe/params/checkout/session_list_params.rb +7 -3
  412. data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
  413. data/lib/stripe/params/checkout/session_update_params.rb +299 -12
  414. data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
  415. data/lib/stripe/params/climate/order_create_params.rb +2 -2
  416. data/lib/stripe/params/climate/order_list_params.rb +1 -1
  417. data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
  418. data/lib/stripe/params/climate/order_update_params.rb +2 -2
  419. data/lib/stripe/params/climate/product_list_params.rb +1 -1
  420. data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
  421. data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
  422. data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
  423. data/lib/stripe/params/confirmation_token_create_params.rb +158 -61
  424. data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
  425. data/lib/stripe/params/country_spec_list_params.rb +1 -1
  426. data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
  427. data/lib/stripe/params/coupon_create_params.rb +20 -4
  428. data/lib/stripe/params/coupon_delete_params.rb +1 -1
  429. data/lib/stripe/params/coupon_list_params.rb +2 -2
  430. data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
  431. data/lib/stripe/params/coupon_update_params.rb +2 -2
  432. data/lib/stripe/params/credit_note_create_params.rb +23 -6
  433. data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
  434. data/lib/stripe/params/credit_note_list_params.rb +6 -2
  435. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +23 -6
  436. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +23 -6
  437. data/lib/stripe/params/credit_note_preview_params.rb +23 -6
  438. data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
  439. data/lib/stripe/params/credit_note_update_params.rb +1 -1
  440. data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
  441. data/lib/stripe/params/customer_balance_transaction_create_params.rb +1 -1
  442. data/lib/stripe/params/customer_balance_transaction_list_params.rb +1 -1
  443. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
  444. data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
  445. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
  446. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
  447. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
  448. data/lib/stripe/params/customer_cash_balance_update_params.rb +2 -2
  449. data/lib/stripe/params/customer_create_funding_instructions_params.rb +3 -3
  450. data/lib/stripe/params/customer_create_params.rb +11 -11
  451. data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
  452. data/lib/stripe/params/customer_delete_params.rb +1 -1
  453. data/lib/stripe/params/customer_fund_cash_balance_params.rb +1 -1
  454. data/lib/stripe/params/customer_funding_instructions_create_params.rb +3 -3
  455. data/lib/stripe/params/customer_list_params.rb +2 -2
  456. data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
  457. data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
  458. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
  459. data/lib/stripe/params/customer_payment_source_create_params.rb +1 -1
  460. data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
  461. data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
  462. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
  463. data/lib/stripe/params/customer_payment_source_update_params.rb +3 -3
  464. data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
  465. data/lib/stripe/params/customer_retrieve_params.rb +1 -1
  466. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
  467. data/lib/stripe/params/customer_search_params.rb +1 -1
  468. data/lib/stripe/params/customer_session_create_params.rb +10 -7
  469. data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
  470. data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
  471. data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
  472. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
  473. data/lib/stripe/params/customer_update_params.rb +10 -10
  474. data/lib/stripe/params/dispute_close_params.rb +1 -1
  475. data/lib/stripe/params/dispute_list_params.rb +2 -2
  476. data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
  477. data/lib/stripe/params/dispute_update_params.rb +19 -10
  478. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
  479. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
  480. data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
  481. data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
  482. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
  483. data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
  484. data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
  485. data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
  486. data/lib/stripe/params/event_list_params.rb +2 -2
  487. data/lib/stripe/params/event_retrieve_params.rb +1 -1
  488. data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
  489. data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
  490. data/lib/stripe/params/external_account_create_params.rb +134 -0
  491. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  492. data/lib/stripe/params/external_account_list_params.rb +25 -0
  493. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  494. data/lib/stripe/params/external_account_update_params.rb +91 -0
  495. data/lib/stripe/params/file_create_params.rb +2 -2
  496. data/lib/stripe/params/file_link_create_params.rb +1 -1
  497. data/lib/stripe/params/file_link_list_params.rb +2 -2
  498. data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
  499. data/lib/stripe/params/file_link_update_params.rb +1 -1
  500. data/lib/stripe/params/file_list_params.rb +2 -2
  501. data/lib/stripe/params/file_retrieve_params.rb +1 -1
  502. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
  503. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  504. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
  505. data/lib/stripe/params/financial_connections/account_list_params.rb +6 -3
  506. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
  507. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
  508. data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
  509. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
  510. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
  511. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
  512. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  513. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  514. data/lib/stripe/params/financial_connections/session_create_params.rb +37 -5
  515. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
  516. data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
  517. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
  518. data/lib/stripe/params/forwarding/request_create_params.rb +3 -3
  519. data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
  520. data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
  521. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  522. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  523. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  524. data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
  525. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
  526. data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
  527. data/lib/stripe/params/identity/verification_session_create_params.rb +9 -5
  528. data/lib/stripe/params/identity/verification_session_list_params.rb +6 -2
  529. data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
  530. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
  531. data/lib/stripe/params/identity/verification_session_update_params.rb +4 -4
  532. data/lib/stripe/params/invoice_add_lines_params.rb +42 -10
  533. data/lib/stripe/params/invoice_attach_payment_params.rb +47 -2
  534. data/lib/stripe/params/invoice_create_params.rb +147 -37
  535. data/lib/stripe/params/invoice_create_preview_params.rb +872 -55
  536. data/lib/stripe/params/invoice_delete_params.rb +1 -1
  537. data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
  538. data/lib/stripe/params/invoice_item_create_params.rb +42 -6
  539. data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
  540. data/lib/stripe/params/invoice_item_list_params.rb +6 -2
  541. data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
  542. data/lib/stripe/params/invoice_item_update_params.rb +38 -6
  543. data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
  544. data/lib/stripe/params/invoice_line_item_update_params.rb +41 -9
  545. data/lib/stripe/params/invoice_list_params.rb +11 -3
  546. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
  547. data/lib/stripe/params/invoice_pay_params.rb +1 -1
  548. data/lib/stripe/params/invoice_payment_list_params.rb +6 -3
  549. data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
  550. data/lib/stripe/params/invoice_remove_lines_params.rb +2 -2
  551. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
  552. data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
  553. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
  554. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
  555. data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
  556. data/lib/stripe/params/invoice_search_params.rb +1 -1
  557. data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
  558. data/lib/stripe/params/invoice_update_lines_params.rb +42 -10
  559. data/lib/stripe/params/invoice_update_params.rb +142 -36
  560. data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
  561. data/lib/stripe/params/issuing/authorization_approve_params.rb +1 -1
  562. data/lib/stripe/params/issuing/authorization_capture_params.rb +13 -13
  563. data/lib/stripe/params/issuing/authorization_create_params.rb +17 -17
  564. data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
  565. data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
  566. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +8 -8
  567. data/lib/stripe/params/issuing/authorization_increment_params.rb +1 -1
  568. data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
  569. data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
  570. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
  571. data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
  572. data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
  573. data/lib/stripe/params/issuing/card_create_params.rb +8 -8
  574. data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
  575. data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
  576. data/lib/stripe/params/issuing/card_list_params.rb +2 -2
  577. data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
  578. data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
  579. data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
  580. data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
  581. data/lib/stripe/params/issuing/card_update_params.rb +8 -8
  582. data/lib/stripe/params/issuing/cardholder_create_params.rb +14 -13
  583. data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
  584. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
  585. data/lib/stripe/params/issuing/cardholder_update_params.rb +12 -12
  586. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  587. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  588. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  589. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  590. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  591. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  592. data/lib/stripe/params/issuing/dispute_create_params.rb +11 -11
  593. data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
  594. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
  595. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  596. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  597. data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
  598. data/lib/stripe/params/issuing/dispute_update_params.rb +10 -10
  599. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  600. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  601. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
  602. data/lib/stripe/params/issuing/personalization_design_create_params.rb +3 -3
  603. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
  604. data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
  605. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
  606. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
  607. data/lib/stripe/params/issuing/personalization_design_update_params.rb +3 -3
  608. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
  609. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
  610. data/lib/stripe/params/issuing/token_list_params.rb +2 -2
  611. data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
  612. data/lib/stripe/params/issuing/token_update_params.rb +1 -1
  613. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +14 -14
  614. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +14 -14
  615. data/lib/stripe/params/issuing/transaction_list_params.rb +6 -2
  616. data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
  617. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
  618. data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
  619. data/lib/stripe/params/mandate_list_params.rb +39 -0
  620. data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
  621. data/lib/stripe/params/margin_create_params.rb +25 -0
  622. data/lib/stripe/params/margin_list_params.rb +25 -0
  623. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  624. data/lib/stripe/params/margin_update_params.rb +22 -0
  625. data/lib/stripe/params/order_cancel_params.rb +13 -0
  626. data/lib/stripe/params/order_create_params.rb +1124 -0
  627. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  628. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  629. data/lib/stripe/params/order_list_params.rb +25 -0
  630. data/lib/stripe/params/order_reopen_params.rb +13 -0
  631. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  632. data/lib/stripe/params/order_submit_params.rb +16 -0
  633. data/lib/stripe/params/order_update_params.rb +1128 -0
  634. data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
  635. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  636. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  637. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
  638. data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
  639. data/lib/stripe/params/payment_intent_capture_params.rb +897 -2
  640. data/lib/stripe/params/payment_intent_confirm_params.rb +1542 -155
  641. data/lib/stripe/params/payment_intent_create_params.rb +1552 -157
  642. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  643. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +225 -2
  644. data/lib/stripe/params/payment_intent_list_params.rb +6 -2
  645. data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
  646. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  647. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  648. data/lib/stripe/params/payment_intent_update_params.rb +1559 -133
  649. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
  650. data/lib/stripe/params/payment_link_create_params.rb +44 -44
  651. data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
  652. data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
  653. data/lib/stripe/params/payment_link_list_params.rb +1 -1
  654. data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
  655. data/lib/stripe/params/payment_link_update_params.rb +35 -35
  656. data/lib/stripe/params/payment_method_attach_params.rb +5 -2
  657. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  658. data/lib/stripe/params/payment_method_configuration_create_params.rb +233 -107
  659. data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
  660. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
  661. data/lib/stripe/params/payment_method_configuration_update_params.rb +233 -107
  662. data/lib/stripe/params/payment_method_create_params.rb +153 -56
  663. data/lib/stripe/params/payment_method_detach_params.rb +1 -1
  664. data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
  665. data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
  666. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
  667. data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
  668. data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
  669. data/lib/stripe/params/payment_method_list_params.rb +1 -1
  670. data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
  671. data/lib/stripe/params/payment_method_update_params.rb +25 -6
  672. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  673. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  674. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  675. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  676. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  677. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  678. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  679. data/lib/stripe/params/payout_cancel_params.rb +1 -1
  680. data/lib/stripe/params/payout_create_params.rb +1 -1
  681. data/lib/stripe/params/payout_list_params.rb +3 -3
  682. data/lib/stripe/params/payout_retrieve_params.rb +1 -1
  683. data/lib/stripe/params/payout_reverse_params.rb +1 -1
  684. data/lib/stripe/params/payout_update_params.rb +1 -1
  685. data/lib/stripe/params/plan_create_params.rb +4 -4
  686. data/lib/stripe/params/plan_delete_params.rb +1 -1
  687. data/lib/stripe/params/plan_list_params.rb +2 -2
  688. data/lib/stripe/params/plan_retrieve_params.rb +1 -1
  689. data/lib/stripe/params/plan_update_params.rb +1 -1
  690. data/lib/stripe/params/price_create_params.rb +9 -9
  691. data/lib/stripe/params/price_list_params.rb +3 -3
  692. data/lib/stripe/params/price_retrieve_params.rb +1 -1
  693. data/lib/stripe/params/price_search_params.rb +1 -1
  694. data/lib/stripe/params/price_update_params.rb +23 -4
  695. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  696. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  697. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  698. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  699. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  700. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  701. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  702. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  703. data/lib/stripe/params/product_create_params.rb +9 -9
  704. data/lib/stripe/params/product_delete_params.rb +1 -1
  705. data/lib/stripe/params/product_feature_create_params.rb +1 -1
  706. data/lib/stripe/params/product_feature_delete_params.rb +1 -1
  707. data/lib/stripe/params/product_feature_list_params.rb +1 -1
  708. data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
  709. data/lib/stripe/params/product_list_params.rb +2 -2
  710. data/lib/stripe/params/product_retrieve_params.rb +1 -1
  711. data/lib/stripe/params/product_search_params.rb +1 -1
  712. data/lib/stripe/params/product_update_params.rb +3 -3
  713. data/lib/stripe/params/promotion_code_create_params.rb +8 -4
  714. data/lib/stripe/params/promotion_code_list_params.rb +6 -2
  715. data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
  716. data/lib/stripe/params/promotion_code_update_params.rb +3 -3
  717. data/lib/stripe/params/quote_accept_params.rb +1 -1
  718. data/lib/stripe/params/quote_cancel_params.rb +1 -1
  719. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
  720. data/lib/stripe/params/quote_create_params.rb +820 -18
  721. data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
  722. data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
  723. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  724. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
  725. data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
  726. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  727. data/lib/stripe/params/quote_list_params.rb +9 -1
  728. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  729. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  730. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  731. data/lib/stripe/params/quote_pdf_params.rb +1 -1
  732. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  733. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  734. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  735. data/lib/stripe/params/quote_retrieve_params.rb +1 -1
  736. data/lib/stripe/params/quote_update_params.rb +825 -16
  737. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
  738. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
  739. data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
  740. data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
  741. data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
  742. data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
  743. data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
  744. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
  745. data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
  746. data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
  747. data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
  748. data/lib/stripe/params/refund_cancel_params.rb +1 -1
  749. data/lib/stripe/params/refund_create_params.rb +1 -1
  750. data/lib/stripe/params/refund_expire_params.rb +1 -1
  751. data/lib/stripe/params/refund_list_params.rb +2 -2
  752. data/lib/stripe/params/refund_retrieve_params.rb +1 -1
  753. data/lib/stripe/params/refund_update_params.rb +1 -1
  754. data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
  755. data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
  756. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
  757. data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
  758. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
  759. data/lib/stripe/params/review_approve_params.rb +1 -1
  760. data/lib/stripe/params/review_list_params.rb +2 -2
  761. data/lib/stripe/params/review_retrieve_params.rb +1 -1
  762. data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
  763. data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
  764. data/lib/stripe/params/setup_intent_confirm_params.rb +339 -88
  765. data/lib/stripe/params/setup_intent_create_params.rb +347 -90
  766. data/lib/stripe/params/setup_intent_list_params.rb +6 -2
  767. data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
  768. data/lib/stripe/params/setup_intent_update_params.rb +341 -84
  769. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
  770. data/lib/stripe/params/shipping_rate_create_params.rb +6 -6
  771. data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
  772. data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
  773. data/lib/stripe/params/shipping_rate_update_params.rb +3 -3
  774. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
  775. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
  776. data/lib/stripe/params/source_create_params.rb +13 -13
  777. data/lib/stripe/params/source_detach_params.rb +1 -1
  778. data/lib/stripe/params/source_retrieve_params.rb +1 -1
  779. data/lib/stripe/params/source_transaction_list_params.rb +1 -1
  780. data/lib/stripe/params/source_update_params.rb +11 -11
  781. data/lib/stripe/params/source_verify_params.rb +1 -1
  782. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  783. data/lib/stripe/params/subscription_cancel_params.rb +2 -2
  784. data/lib/stripe/params/subscription_create_params.rb +299 -45
  785. data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
  786. data/lib/stripe/params/subscription_item_create_params.rb +51 -7
  787. data/lib/stripe/params/subscription_item_delete_params.rb +1 -1
  788. data/lib/stripe/params/subscription_item_list_params.rb +1 -1
  789. data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
  790. data/lib/stripe/params/subscription_item_update_params.rb +34 -6
  791. data/lib/stripe/params/subscription_list_params.rb +9 -5
  792. data/lib/stripe/params/subscription_migrate_params.rb +3 -3
  793. data/lib/stripe/params/subscription_resume_params.rb +1 -1
  794. data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
  795. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  796. data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
  797. data/lib/stripe/params/subscription_schedule_create_params.rb +197 -35
  798. data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
  799. data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
  800. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
  801. data/lib/stripe/params/subscription_schedule_update_params.rb +191 -33
  802. data/lib/stripe/params/subscription_search_params.rb +1 -1
  803. data/lib/stripe/params/subscription_update_params.rb +277 -43
  804. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  805. data/lib/stripe/params/tax/calculation_create_params.rb +8 -8
  806. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
  807. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
  808. data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
  809. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  810. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  811. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  812. data/lib/stripe/params/tax/registration_create_params.rb +163 -163
  813. data/lib/stripe/params/tax/registration_list_params.rb +1 -1
  814. data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
  815. data/lib/stripe/params/tax/registration_update_params.rb +1 -1
  816. data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
  817. data/lib/stripe/params/tax/settings_update_params.rb +4 -4
  818. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
  819. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +3 -3
  820. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
  821. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
  822. data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
  823. data/lib/stripe/params/tax_code_list_params.rb +1 -1
  824. data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
  825. data/lib/stripe/params/tax_id_create_params.rb +6 -3
  826. data/lib/stripe/params/tax_id_delete_params.rb +1 -1
  827. data/lib/stripe/params/tax_id_list_params.rb +6 -3
  828. data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
  829. data/lib/stripe/params/tax_rate_create_params.rb +1 -1
  830. data/lib/stripe/params/tax_rate_list_params.rb +2 -2
  831. data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
  832. data/lib/stripe/params/tax_rate_update_params.rb +1 -1
  833. data/lib/stripe/params/terminal/configuration_create_params.rb +46 -33
  834. data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
  835. data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
  836. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
  837. data/lib/stripe/params/terminal/configuration_update_params.rb +46 -33
  838. data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
  839. data/lib/stripe/params/terminal/location_create_params.rb +4 -4
  840. data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
  841. data/lib/stripe/params/terminal/location_list_params.rb +1 -1
  842. data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
  843. data/lib/stripe/params/terminal/location_update_params.rb +4 -4
  844. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  845. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
  846. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +6 -6
  847. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +3 -3
  848. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  849. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +2 -2
  850. data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
  851. data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
  852. data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
  853. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +4 -4
  854. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +3 -3
  855. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +2 -2
  856. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +2 -2
  857. data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
  858. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
  859. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
  860. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
  861. data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
  862. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +158 -61
  863. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +1 -1
  864. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +13 -13
  865. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +17 -17
  866. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
  867. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +8 -8
  868. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +1 -1
  869. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
  870. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
  871. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
  872. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
  873. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
  874. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
  875. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
  876. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
  877. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
  878. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
  879. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +14 -14
  880. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +14 -14
  881. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
  882. data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
  883. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +4 -4
  884. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
  885. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
  886. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
  887. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
  888. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
  889. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
  890. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
  891. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
  892. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  893. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
  894. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
  895. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
  896. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  897. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
  898. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
  899. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
  900. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  901. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
  902. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +28 -4
  903. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +28 -4
  904. data/lib/stripe/params/token_create_params.rb +45 -45
  905. data/lib/stripe/params/token_retrieve_params.rb +1 -1
  906. data/lib/stripe/params/topup_cancel_params.rb +1 -1
  907. data/lib/stripe/params/topup_create_params.rb +1 -1
  908. data/lib/stripe/params/topup_list_params.rb +3 -3
  909. data/lib/stripe/params/topup_retrieve_params.rb +1 -1
  910. data/lib/stripe/params/topup_update_params.rb +1 -1
  911. data/lib/stripe/params/transfer_create_params.rb +5 -1
  912. data/lib/stripe/params/transfer_list_params.rb +2 -2
  913. data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
  914. data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
  915. data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
  916. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
  917. data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
  918. data/lib/stripe/params/transfer_update_params.rb +1 -1
  919. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
  920. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
  921. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
  922. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
  923. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
  924. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
  925. data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
  926. data/lib/stripe/params/treasury/financial_account_create_params.rb +24 -17
  927. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
  928. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +18 -15
  929. data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
  930. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
  931. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
  932. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +18 -15
  933. data/lib/stripe/params/treasury/financial_account_update_params.rb +25 -18
  934. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
  935. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +1 -1
  936. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
  937. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
  938. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
  939. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  940. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
  941. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
  942. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +8 -8
  943. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
  944. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
  945. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
  946. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
  947. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  948. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
  949. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
  950. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +28 -4
  951. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
  952. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
  953. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
  954. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
  955. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  956. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
  957. data/lib/stripe/params/treasury/received_credit_create_params.rb +28 -4
  958. data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
  959. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
  960. data/lib/stripe/params/treasury/received_debit_create_params.rb +28 -4
  961. data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
  962. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
  963. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
  964. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
  965. data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
  966. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
  967. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  968. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  969. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  970. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  971. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  972. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  973. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  974. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  975. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  976. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  977. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  978. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  979. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  980. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  981. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  982. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  983. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  984. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  985. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  986. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  987. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  988. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  989. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  990. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  991. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  992. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  993. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  994. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  995. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  996. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  997. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  998. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  999. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  1000. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  1001. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  1002. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  1003. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  1004. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  1005. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  1006. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  1007. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  1008. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  1009. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
  1010. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
  1011. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  1012. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  1013. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  1014. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  1015. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  1016. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  1017. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  1018. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  1019. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  1020. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  1021. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  1022. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  1023. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  1024. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  1025. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  1026. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  1027. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  1028. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  1029. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  1030. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  1031. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  1032. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  1033. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  1034. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  1035. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  1036. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  1037. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  1038. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  1039. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  1040. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  1041. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  1042. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  1043. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  1044. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  1045. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  1046. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  1047. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  1048. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  1049. data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
  1050. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  1051. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  1052. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  1053. data/lib/stripe/params/v2/core/account_create_params.rb +2658 -0
  1054. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  1055. data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
  1056. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  1057. data/lib/stripe/params/v2/core/account_update_params.rb +2689 -0
  1058. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  1059. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  1060. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  1061. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  1062. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  1063. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  1064. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  1065. data/lib/stripe/params/v2/core/event_destination_create_params.rb +3 -3
  1066. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
  1067. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
  1068. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
  1069. data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
  1070. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
  1071. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
  1072. data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
  1073. data/lib/stripe/params/v2/core/event_list_params.rb +1 -1
  1074. data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
  1075. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  1076. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  1077. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  1078. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  1079. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  1080. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  1081. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  1082. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  1083. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  1084. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  1085. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  1086. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  1087. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  1088. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  1089. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  1090. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  1091. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  1092. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  1093. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  1094. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  1095. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  1096. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  1097. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  1098. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  1099. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  1100. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  1101. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  1102. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  1103. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  1104. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  1105. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  1106. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  1107. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  1108. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  1109. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  1110. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  1111. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  1112. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  1113. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  1114. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  1115. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  1116. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  1117. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  1118. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  1119. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  1120. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  1121. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  1122. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  1123. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  1124. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  1125. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  1126. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  1127. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  1128. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  1129. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  1130. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  1131. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  1132. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  1133. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  1134. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  1135. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  1136. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  1137. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  1138. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  1139. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +23 -0
  1140. data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
  1141. data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
  1142. data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
  1143. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
  1144. data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
  1145. data/lib/stripe/params.rb +241 -0
  1146. data/lib/stripe/resources/account.rb +207 -42
  1147. data/lib/stripe/resources/account_notice.rb +94 -0
  1148. data/lib/stripe/resources/account_session.rb +120 -39
  1149. data/lib/stripe/resources/application_fee.rb +1 -1
  1150. data/lib/stripe/resources/apps/secret.rb +1 -1
  1151. data/lib/stripe/resources/balance.rb +18 -18
  1152. data/lib/stripe/resources/balance_settings.rb +4 -4
  1153. data/lib/stripe/resources/balance_transaction.rb +1 -1
  1154. data/lib/stripe/resources/bank_account.rb +4 -4
  1155. data/lib/stripe/resources/billing/alert.rb +107 -3
  1156. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  1157. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  1158. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  1159. data/lib/stripe/resources/billing/credit_balance_summary.rb +91 -7
  1160. data/lib/stripe/resources/billing/credit_balance_transaction.rb +92 -10
  1161. data/lib/stripe/resources/billing/credit_grant.rb +65 -7
  1162. data/lib/stripe/resources/billing/meter.rb +4 -4
  1163. data/lib/stripe/resources/billing/meter_event_adjustment.rb +1 -1
  1164. data/lib/stripe/resources/billing_portal/configuration.rb +13 -13
  1165. data/lib/stripe/resources/billing_portal/session.rb +13 -11
  1166. data/lib/stripe/resources/capability.rb +6 -6
  1167. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  1168. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  1169. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  1170. data/lib/stripe/resources/card.rb +21 -2
  1171. data/lib/stripe/resources/cash_balance.rb +3 -1
  1172. data/lib/stripe/resources/charge.rb +354 -105
  1173. data/lib/stripe/resources/checkout/session.rb +352 -110
  1174. data/lib/stripe/resources/climate/order.rb +3 -3
  1175. data/lib/stripe/resources/climate/product.rb +1 -1
  1176. data/lib/stripe/resources/climate/supplier.rb +1 -1
  1177. data/lib/stripe/resources/confirmation_token.rb +266 -93
  1178. data/lib/stripe/resources/country_spec.rb +3 -3
  1179. data/lib/stripe/resources/coupon.rb +28 -3
  1180. data/lib/stripe/resources/credit_note.rb +28 -8
  1181. data/lib/stripe/resources/credit_note_line_item.rb +22 -4
  1182. data/lib/stripe/resources/customer.rb +10 -8
  1183. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  1184. data/lib/stripe/resources/customer_cash_balance_transaction.rb +13 -11
  1185. data/lib/stripe/resources/customer_session.rb +7 -5
  1186. data/lib/stripe/resources/discount.rb +3 -1
  1187. data/lib/stripe/resources/dispute.rb +39 -17
  1188. data/lib/stripe/resources/event.rb +66 -3
  1189. data/lib/stripe/resources/financial_connections/account.rb +34 -7
  1190. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  1191. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  1192. data/lib/stripe/resources/financial_connections/session.rb +69 -3
  1193. data/lib/stripe/resources/financial_connections/transaction.rb +1 -1
  1194. data/lib/stripe/resources/forwarding/request.rb +5 -5
  1195. data/lib/stripe/resources/funding_instructions.rb +20 -20
  1196. data/lib/stripe/resources/fx_quote.rb +147 -0
  1197. data/lib/stripe/resources/identity/verification_report.rb +18 -18
  1198. data/lib/stripe/resources/identity/verification_session.rb +15 -13
  1199. data/lib/stripe/resources/invoice.rb +194 -43
  1200. data/lib/stripe/resources/invoice_item.rb +101 -9
  1201. data/lib/stripe/resources/invoice_line_item.rb +145 -15
  1202. data/lib/stripe/resources/invoice_payment.rb +4 -2
  1203. data/lib/stripe/resources/issuing/authorization.rb +19 -19
  1204. data/lib/stripe/resources/issuing/card.rb +10 -10
  1205. data/lib/stripe/resources/issuing/cardholder.rb +12 -12
  1206. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  1207. data/lib/stripe/resources/issuing/dispute.rb +10 -10
  1208. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  1209. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  1210. data/lib/stripe/resources/issuing/personalization_design.rb +3 -3
  1211. data/lib/stripe/resources/issuing/physical_bundle.rb +1 -1
  1212. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  1213. data/lib/stripe/resources/issuing/token.rb +6 -6
  1214. data/lib/stripe/resources/issuing/transaction.rb +18 -16
  1215. data/lib/stripe/resources/line_item.rb +70 -3
  1216. data/lib/stripe/resources/mandate.rb +93 -22
  1217. data/lib/stripe/resources/margin.rb +64 -0
  1218. data/lib/stripe/resources/order.rb +987 -0
  1219. data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
  1220. data/lib/stripe/resources/payment_intent.rb +996 -124
  1221. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  1222. data/lib/stripe/resources/payment_link.rb +38 -38
  1223. data/lib/stripe/resources/payment_method.rb +279 -84
  1224. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  1225. data/lib/stripe/resources/payment_method_configuration.rb +306 -102
  1226. data/lib/stripe/resources/payment_method_domain.rb +12 -12
  1227. data/lib/stripe/resources/payment_record.rb +2208 -0
  1228. data/lib/stripe/resources/payout.rb +1 -1
  1229. data/lib/stripe/resources/person.rb +20 -20
  1230. data/lib/stripe/resources/plan.rb +2 -2
  1231. data/lib/stripe/resources/price.rb +27 -7
  1232. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  1233. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  1234. data/lib/stripe/resources/product.rb +2 -2
  1235. data/lib/stripe/resources/promotion_code.rb +5 -3
  1236. data/lib/stripe/resources/quote.rb +596 -27
  1237. data/lib/stripe/resources/quote_line.rb +521 -0
  1238. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  1239. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  1240. data/lib/stripe/resources/refund.rb +55 -37
  1241. data/lib/stripe/resources/reporting/report_run.rb +1 -1
  1242. data/lib/stripe/resources/review.rb +2 -2
  1243. data/lib/stripe/resources/setup_attempt.rb +92 -29
  1244. data/lib/stripe/resources/setup_intent.rb +198 -27
  1245. data/lib/stripe/resources/shipping_rate.rb +5 -5
  1246. data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
  1247. data/lib/stripe/resources/source.rb +67 -29
  1248. data/lib/stripe/resources/source_mandate_notification.rb +3 -3
  1249. data/lib/stripe/resources/source_transaction.rb +5 -5
  1250. data/lib/stripe/resources/subscription.rb +262 -30
  1251. data/lib/stripe/resources/subscription_item.rb +21 -2
  1252. data/lib/stripe/resources/subscription_schedule.rb +224 -29
  1253. data/lib/stripe/resources/tax/association.rb +86 -0
  1254. data/lib/stripe/resources/tax/calculation.rb +12 -12
  1255. data/lib/stripe/resources/tax/calculation_line_item.rb +3 -3
  1256. data/lib/stripe/resources/tax/form.rb +264 -0
  1257. data/lib/stripe/resources/tax/registration.rb +140 -140
  1258. data/lib/stripe/resources/tax/settings.rb +6 -6
  1259. data/lib/stripe/resources/tax/transaction.rb +10 -10
  1260. data/lib/stripe/resources/tax/transaction_line_item.rb +1 -1
  1261. data/lib/stripe/resources/tax_id.rb +6 -2
  1262. data/lib/stripe/resources/tax_rate.rb +1 -1
  1263. data/lib/stripe/resources/terminal/configuration.rb +48 -32
  1264. data/lib/stripe/resources/terminal/location.rb +3 -3
  1265. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  1266. data/lib/stripe/resources/terminal/reader.rb +35 -27
  1267. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1268. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -2
  1269. data/lib/stripe/resources/transfer.rb +2 -0
  1270. data/lib/stripe/resources/treasury/credit_reversal.rb +1 -1
  1271. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -2
  1272. data/lib/stripe/resources/treasury/financial_account.rb +8 -6
  1273. data/lib/stripe/resources/treasury/financial_account_features.rb +24 -22
  1274. data/lib/stripe/resources/treasury/inbound_transfer.rb +7 -7
  1275. data/lib/stripe/resources/treasury/outbound_payment.rb +11 -11
  1276. data/lib/stripe/resources/treasury/outbound_transfer.rb +40 -10
  1277. data/lib/stripe/resources/treasury/received_credit.rb +38 -8
  1278. data/lib/stripe/resources/treasury/received_debit.rb +39 -7
  1279. data/lib/stripe/resources/treasury/transaction.rb +3 -3
  1280. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -2
  1281. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1282. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  1283. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  1284. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  1285. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  1286. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  1287. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  1288. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  1289. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  1290. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  1291. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  1292. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  1293. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -1
  1294. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  1295. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  1296. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  1297. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  1298. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  1299. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  1300. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  1301. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  1302. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  1303. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  1304. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  1305. data/lib/stripe/resources/v2/core/account.rb +4554 -0
  1306. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  1307. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  1308. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  1309. data/lib/stripe/resources/v2/core/event.rb +6 -2
  1310. data/lib/stripe/resources/v2/core/event_destination.rb +4 -4
  1311. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  1312. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  1313. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  1314. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  1315. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  1316. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  1317. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  1318. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  1319. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  1320. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  1321. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1322. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  1323. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  1324. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  1325. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  1326. data/lib/stripe/resources/v2/money_management/received_debit.rb +138 -0
  1327. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  1328. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  1329. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  1330. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  1331. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  1332. data/lib/stripe/resources.rb +386 -0
  1333. data/lib/stripe/services/account_notice_service.rb +39 -0
  1334. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1335. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1336. data/lib/stripe/services/billing_service.rb +2 -1
  1337. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1338. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1339. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1340. data/lib/stripe/services/capital_service.rb +15 -0
  1341. data/lib/stripe/services/external_account_service.rb +68 -0
  1342. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1343. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  1344. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1345. data/lib/stripe/services/financial_connections_service.rb +2 -1
  1346. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1347. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1348. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1349. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1350. data/lib/stripe/services/issuing_service.rb +5 -1
  1351. data/lib/stripe/services/mandate_service.rb +5 -0
  1352. data/lib/stripe/services/margin_service.rb +50 -0
  1353. data/lib/stripe/services/order_line_item_service.rb +17 -0
  1354. data/lib/stripe/services/order_service.rb +78 -0
  1355. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  1356. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  1357. data/lib/stripe/services/payment_intent_service.rb +44 -0
  1358. data/lib/stripe/services/payment_method_service.rb +11 -0
  1359. data/lib/stripe/services/payment_record_service.rb +89 -0
  1360. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1361. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1362. data/lib/stripe/services/privacy_service.rb +13 -0
  1363. data/lib/stripe/services/quote_line_service.rb +17 -0
  1364. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1365. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1366. data/lib/stripe/services/quote_service.rb +49 -1
  1367. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  1368. data/lib/stripe/services/subscription_service.rb +11 -0
  1369. data/lib/stripe/services/tax/association_service.rb +19 -0
  1370. data/lib/stripe/services/tax/form_service.rb +37 -0
  1371. data/lib/stripe/services/tax_service.rb +3 -1
  1372. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  1373. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1374. data/lib/stripe/services/terminal_service.rb +3 -1
  1375. data/lib/stripe/services/v1_services.rb +10 -1
  1376. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1377. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1378. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  1379. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  1380. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1381. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  1382. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  1383. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  1384. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  1385. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  1386. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  1387. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  1388. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  1389. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  1390. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +43 -0
  1391. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  1392. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  1393. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1394. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  1395. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  1396. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  1397. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  1398. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  1399. data/lib/stripe/services/v2/billing_service.rb +18 -1
  1400. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  1401. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  1402. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  1403. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  1404. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
  1405. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
  1406. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1407. data/lib/stripe/services/v2/core_service.rb +5 -1
  1408. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1409. data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
  1410. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1411. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1412. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1413. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1414. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  1415. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1416. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  1417. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1418. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1419. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1420. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  1421. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1422. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1423. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  1424. data/lib/stripe/services/v2/payment_service.rb +15 -0
  1425. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  1426. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  1427. data/lib/stripe/services/v2/tax_service.rb +15 -0
  1428. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  1429. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1430. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  1431. data/lib/stripe/services/v2_services.rb +5 -1
  1432. data/lib/stripe/services.rb +83 -0
  1433. data/lib/stripe/stripe_configuration.rb +3 -1
  1434. data/lib/stripe/stripe_object.rb +1 -1
  1435. data/lib/stripe/util.rb +7 -1
  1436. data/lib/stripe/version.rb +1 -1
  1437. data/lib/stripe.rb +53 -0
  1438. data/rbi/stripe.rbi +171575 -97503
  1439. metadata +713 -3
@@ -0,0 +1,2658 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountCreateParams < ::Stripe::RequestParams
8
+ class Configuration < ::Stripe::RequestParams
9
+ class CardCreator < ::Stripe::RequestParams
10
+ class Capabilities < ::Stripe::RequestParams
11
+ class Commercial < ::Stripe::RequestParams
12
+ class Celtic < ::Stripe::RequestParams
13
+ class ChargeCard < ::Stripe::RequestParams
14
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
15
+ attr_accessor :requested
16
+
17
+ def initialize(requested: nil)
18
+ @requested = requested
19
+ end
20
+ end
21
+
22
+ class SpendCard < ::Stripe::RequestParams
23
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
24
+ attr_accessor :requested
25
+
26
+ def initialize(requested: nil)
27
+ @requested = requested
28
+ end
29
+ end
30
+ # Can create commercial issuing charge cards with Celtic as BIN sponsor.
31
+ attr_accessor :charge_card
32
+ # Can create commercial issuing spend cards with Celtic as BIN sponsor.
33
+ attr_accessor :spend_card
34
+
35
+ def initialize(charge_card: nil, spend_card: nil)
36
+ @charge_card = charge_card
37
+ @spend_card = spend_card
38
+ end
39
+ end
40
+
41
+ class CrossRiverBank < ::Stripe::RequestParams
42
+ class ChargeCard < ::Stripe::RequestParams
43
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
44
+ attr_accessor :requested
45
+
46
+ def initialize(requested: nil)
47
+ @requested = requested
48
+ end
49
+ end
50
+
51
+ class SpendCard < ::Stripe::RequestParams
52
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
53
+ attr_accessor :requested
54
+
55
+ def initialize(requested: nil)
56
+ @requested = requested
57
+ end
58
+ end
59
+ # Can create commercial issuing charge cards with Cross River Bank as BIN sponsor.
60
+ attr_accessor :charge_card
61
+ # Can create commercial issuing spend cards with Cross River Bank as BIN sponsor.
62
+ attr_accessor :spend_card
63
+
64
+ def initialize(charge_card: nil, spend_card: nil)
65
+ @charge_card = charge_card
66
+ @spend_card = spend_card
67
+ end
68
+ end
69
+
70
+ class Stripe < ::Stripe::RequestParams
71
+ class ChargeCard < ::Stripe::RequestParams
72
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
73
+ attr_accessor :requested
74
+
75
+ def initialize(requested: nil)
76
+ @requested = requested
77
+ end
78
+ end
79
+
80
+ class PrepaidCard < ::Stripe::RequestParams
81
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
82
+ attr_accessor :requested
83
+
84
+ def initialize(requested: nil)
85
+ @requested = requested
86
+ end
87
+ end
88
+ # Can create commercial issuing charge cards with Stripe as BIN sponsor.
89
+ attr_accessor :charge_card
90
+ # Can create commercial issuing prepaid cards with Stripe as BIN sponsor.
91
+ attr_accessor :prepaid_card
92
+
93
+ def initialize(charge_card: nil, prepaid_card: nil)
94
+ @charge_card = charge_card
95
+ @prepaid_card = prepaid_card
96
+ end
97
+ end
98
+ # Can create commercial issuing cards with Celtic as BIN sponsor.
99
+ attr_accessor :celtic
100
+ # Can create commercial issuing cards with Cross River Bank as BIN sponsor.
101
+ attr_accessor :cross_river_bank
102
+ # Can create commercial issuing cards with Stripe as BIN sponsor.
103
+ attr_accessor :stripe
104
+
105
+ def initialize(celtic: nil, cross_river_bank: nil, stripe: nil)
106
+ @celtic = celtic
107
+ @cross_river_bank = cross_river_bank
108
+ @stripe = stripe
109
+ end
110
+ end
111
+ # Can create cards for commercial issuing use cases.
112
+ attr_accessor :commercial
113
+
114
+ def initialize(commercial: nil)
115
+ @commercial = commercial
116
+ end
117
+ end
118
+ # Capabilities to request on the CardCreator Configuration.
119
+ attr_accessor :capabilities
120
+
121
+ def initialize(capabilities: nil)
122
+ @capabilities = capabilities
123
+ end
124
+ end
125
+
126
+ class Customer < ::Stripe::RequestParams
127
+ class AutomaticIndirectTax < ::Stripe::RequestParams
128
+ # Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
129
+ attr_accessor :exempt
130
+ # A recent IP address of the customer used for tax reporting and tax location inference.
131
+ attr_accessor :ip_address
132
+ # 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.
133
+ attr_accessor :location_source
134
+
135
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
136
+ @exempt = exempt
137
+ @ip_address = ip_address
138
+ @location_source = location_source
139
+ end
140
+ end
141
+
142
+ class Billing < ::Stripe::RequestParams
143
+ class Invoice < ::Stripe::RequestParams
144
+ class CustomField < ::Stripe::RequestParams
145
+ # The name of the custom field. This may be up to 40 characters.
146
+ attr_accessor :name
147
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
148
+ attr_accessor :value
149
+
150
+ def initialize(name: nil, value: nil)
151
+ @name = name
152
+ @value = value
153
+ end
154
+ end
155
+
156
+ class Rendering < ::Stripe::RequestParams
157
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of exclude_tax or include_inclusive_tax. include_inclusive_tax will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. exclude_tax will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
158
+ attr_accessor :amount_tax_display
159
+ # ID of the invoice rendering template to use for future invoices.
160
+ attr_accessor :template
161
+
162
+ def initialize(amount_tax_display: nil, template: nil)
163
+ @amount_tax_display = amount_tax_display
164
+ @template = template
165
+ end
166
+ end
167
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
168
+ attr_accessor :custom_fields
169
+ # Default footer to be displayed on invoices for this customer.
170
+ attr_accessor :footer
171
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
172
+ attr_accessor :next_sequence
173
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
174
+ attr_accessor :prefix
175
+ # Default options for invoice PDF rendering for this customer.
176
+ attr_accessor :rendering
177
+
178
+ def initialize(
179
+ custom_fields: nil,
180
+ footer: nil,
181
+ next_sequence: nil,
182
+ prefix: nil,
183
+ rendering: nil
184
+ )
185
+ @custom_fields = custom_fields
186
+ @footer = footer
187
+ @next_sequence = next_sequence
188
+ @prefix = prefix
189
+ @rendering = rendering
190
+ end
191
+ end
192
+ # Default settings used on invoices for this customer.
193
+ attr_accessor :invoice
194
+
195
+ def initialize(invoice: nil)
196
+ @invoice = invoice
197
+ end
198
+ end
199
+
200
+ class Capabilities < ::Stripe::RequestParams
201
+ class AutomaticIndirectTax < ::Stripe::RequestParams
202
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
203
+ attr_accessor :requested
204
+
205
+ def initialize(requested: nil)
206
+ @requested = requested
207
+ end
208
+ end
209
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field.
210
+ attr_accessor :automatic_indirect_tax
211
+
212
+ def initialize(automatic_indirect_tax: nil)
213
+ @automatic_indirect_tax = automatic_indirect_tax
214
+ end
215
+ end
216
+
217
+ class Shipping < ::Stripe::RequestParams
218
+ class Address < ::Stripe::RequestParams
219
+ # City, district, suburb, town, or village.
220
+ attr_accessor :city
221
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
222
+ attr_accessor :country
223
+ # Address line 1 (e.g., street, PO Box, or company name).
224
+ attr_accessor :line1
225
+ # Address line 2 (e.g., apartment, suite, unit, or building).
226
+ attr_accessor :line2
227
+ # ZIP or postal code.
228
+ attr_accessor :postal_code
229
+ # State, county, province, or region.
230
+ attr_accessor :state
231
+
232
+ def initialize(
233
+ city: nil,
234
+ country: nil,
235
+ line1: nil,
236
+ line2: nil,
237
+ postal_code: nil,
238
+ state: nil
239
+ )
240
+ @city = city
241
+ @country = country
242
+ @line1 = line1
243
+ @line2 = line2
244
+ @postal_code = postal_code
245
+ @state = state
246
+ end
247
+ end
248
+ # Customer shipping address.
249
+ attr_accessor :address
250
+ # Customer name.
251
+ attr_accessor :name
252
+ # Customer phone (including extension).
253
+ attr_accessor :phone
254
+
255
+ def initialize(address: nil, name: nil, phone: nil)
256
+ @address = address
257
+ @name = name
258
+ @phone = phone
259
+ end
260
+ end
261
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
262
+ attr_accessor :automatic_indirect_tax
263
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
264
+ attr_accessor :billing
265
+ # Capabilities that have been requested on the Customer Configuration.
266
+ attr_accessor :capabilities
267
+ # The customer's shipping information. Appears on invoices emailed to this customer.
268
+ attr_accessor :shipping
269
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
270
+ attr_accessor :test_clock
271
+
272
+ def initialize(
273
+ automatic_indirect_tax: nil,
274
+ billing: nil,
275
+ capabilities: nil,
276
+ shipping: nil,
277
+ test_clock: nil
278
+ )
279
+ @automatic_indirect_tax = automatic_indirect_tax
280
+ @billing = billing
281
+ @capabilities = capabilities
282
+ @shipping = shipping
283
+ @test_clock = test_clock
284
+ end
285
+ end
286
+
287
+ class Merchant < ::Stripe::RequestParams
288
+ class BacsDebitPayments < ::Stripe::RequestParams
289
+ # Display name for Bacs debit payments.
290
+ attr_accessor :display_name
291
+
292
+ def initialize(display_name: nil)
293
+ @display_name = display_name
294
+ end
295
+ end
296
+
297
+ class Branding < ::Stripe::RequestParams
298
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
299
+ attr_accessor :icon
300
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
301
+ attr_accessor :logo
302
+ # A CSS hex color value representing the primary branding color for the merchant.
303
+ attr_accessor :primary_color
304
+ # A CSS hex color value representing the secondary branding color for the merchant.
305
+ attr_accessor :secondary_color
306
+
307
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
308
+ @icon = icon
309
+ @logo = logo
310
+ @primary_color = primary_color
311
+ @secondary_color = secondary_color
312
+ end
313
+ end
314
+
315
+ class Capabilities < ::Stripe::RequestParams
316
+ class AchDebitPayments < ::Stripe::RequestParams
317
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
318
+ attr_accessor :requested
319
+
320
+ def initialize(requested: nil)
321
+ @requested = requested
322
+ end
323
+ end
324
+
325
+ class AcssDebitPayments < ::Stripe::RequestParams
326
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
327
+ attr_accessor :requested
328
+
329
+ def initialize(requested: nil)
330
+ @requested = requested
331
+ end
332
+ end
333
+
334
+ class AffirmPayments < ::Stripe::RequestParams
335
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
336
+ attr_accessor :requested
337
+
338
+ def initialize(requested: nil)
339
+ @requested = requested
340
+ end
341
+ end
342
+
343
+ class AfterpayClearpayPayments < ::Stripe::RequestParams
344
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
345
+ attr_accessor :requested
346
+
347
+ def initialize(requested: nil)
348
+ @requested = requested
349
+ end
350
+ end
351
+
352
+ class AlmaPayments < ::Stripe::RequestParams
353
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
354
+ attr_accessor :requested
355
+
356
+ def initialize(requested: nil)
357
+ @requested = requested
358
+ end
359
+ end
360
+
361
+ class AmazonPayPayments < ::Stripe::RequestParams
362
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
363
+ attr_accessor :requested
364
+
365
+ def initialize(requested: nil)
366
+ @requested = requested
367
+ end
368
+ end
369
+
370
+ class AuBecsDebitPayments < ::Stripe::RequestParams
371
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
372
+ attr_accessor :requested
373
+
374
+ def initialize(requested: nil)
375
+ @requested = requested
376
+ end
377
+ end
378
+
379
+ class BacsDebitPayments < ::Stripe::RequestParams
380
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
381
+ attr_accessor :requested
382
+
383
+ def initialize(requested: nil)
384
+ @requested = requested
385
+ end
386
+ end
387
+
388
+ class BancontactPayments < ::Stripe::RequestParams
389
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
390
+ attr_accessor :requested
391
+
392
+ def initialize(requested: nil)
393
+ @requested = requested
394
+ end
395
+ end
396
+
397
+ class BlikPayments < ::Stripe::RequestParams
398
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
399
+ attr_accessor :requested
400
+
401
+ def initialize(requested: nil)
402
+ @requested = requested
403
+ end
404
+ end
405
+
406
+ class BoletoPayments < ::Stripe::RequestParams
407
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
408
+ attr_accessor :requested
409
+
410
+ def initialize(requested: nil)
411
+ @requested = requested
412
+ end
413
+ end
414
+
415
+ class CardPayments < ::Stripe::RequestParams
416
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
417
+ attr_accessor :requested
418
+
419
+ def initialize(requested: nil)
420
+ @requested = requested
421
+ end
422
+ end
423
+
424
+ class CartesBancairesPayments < ::Stripe::RequestParams
425
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
426
+ attr_accessor :requested
427
+
428
+ def initialize(requested: nil)
429
+ @requested = requested
430
+ end
431
+ end
432
+
433
+ class CashappPayments < ::Stripe::RequestParams
434
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
435
+ attr_accessor :requested
436
+
437
+ def initialize(requested: nil)
438
+ @requested = requested
439
+ end
440
+ end
441
+
442
+ class EpsPayments < ::Stripe::RequestParams
443
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
444
+ attr_accessor :requested
445
+
446
+ def initialize(requested: nil)
447
+ @requested = requested
448
+ end
449
+ end
450
+
451
+ class FpxPayments < ::Stripe::RequestParams
452
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
453
+ attr_accessor :requested
454
+
455
+ def initialize(requested: nil)
456
+ @requested = requested
457
+ end
458
+ end
459
+
460
+ class GbBankTransferPayments < ::Stripe::RequestParams
461
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
462
+ attr_accessor :requested
463
+
464
+ def initialize(requested: nil)
465
+ @requested = requested
466
+ end
467
+ end
468
+
469
+ class GrabpayPayments < ::Stripe::RequestParams
470
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
471
+ attr_accessor :requested
472
+
473
+ def initialize(requested: nil)
474
+ @requested = requested
475
+ end
476
+ end
477
+
478
+ class IdealPayments < ::Stripe::RequestParams
479
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
480
+ attr_accessor :requested
481
+
482
+ def initialize(requested: nil)
483
+ @requested = requested
484
+ end
485
+ end
486
+
487
+ class JcbPayments < ::Stripe::RequestParams
488
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
489
+ attr_accessor :requested
490
+
491
+ def initialize(requested: nil)
492
+ @requested = requested
493
+ end
494
+ end
495
+
496
+ class JpBankTransferPayments < ::Stripe::RequestParams
497
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
498
+ attr_accessor :requested
499
+
500
+ def initialize(requested: nil)
501
+ @requested = requested
502
+ end
503
+ end
504
+
505
+ class KakaoPayPayments < ::Stripe::RequestParams
506
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
507
+ attr_accessor :requested
508
+
509
+ def initialize(requested: nil)
510
+ @requested = requested
511
+ end
512
+ end
513
+
514
+ class KlarnaPayments < ::Stripe::RequestParams
515
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
516
+ attr_accessor :requested
517
+
518
+ def initialize(requested: nil)
519
+ @requested = requested
520
+ end
521
+ end
522
+
523
+ class KonbiniPayments < ::Stripe::RequestParams
524
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
525
+ attr_accessor :requested
526
+
527
+ def initialize(requested: nil)
528
+ @requested = requested
529
+ end
530
+ end
531
+
532
+ class KrCardPayments < ::Stripe::RequestParams
533
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
534
+ attr_accessor :requested
535
+
536
+ def initialize(requested: nil)
537
+ @requested = requested
538
+ end
539
+ end
540
+
541
+ class LinkPayments < ::Stripe::RequestParams
542
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
543
+ attr_accessor :requested
544
+
545
+ def initialize(requested: nil)
546
+ @requested = requested
547
+ end
548
+ end
549
+
550
+ class MobilepayPayments < ::Stripe::RequestParams
551
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
552
+ attr_accessor :requested
553
+
554
+ def initialize(requested: nil)
555
+ @requested = requested
556
+ end
557
+ end
558
+
559
+ class MultibancoPayments < ::Stripe::RequestParams
560
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
561
+ attr_accessor :requested
562
+
563
+ def initialize(requested: nil)
564
+ @requested = requested
565
+ end
566
+ end
567
+
568
+ class MxBankTransferPayments < ::Stripe::RequestParams
569
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
570
+ attr_accessor :requested
571
+
572
+ def initialize(requested: nil)
573
+ @requested = requested
574
+ end
575
+ end
576
+
577
+ class NaverPayPayments < ::Stripe::RequestParams
578
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
579
+ attr_accessor :requested
580
+
581
+ def initialize(requested: nil)
582
+ @requested = requested
583
+ end
584
+ end
585
+
586
+ class OxxoPayments < ::Stripe::RequestParams
587
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
588
+ attr_accessor :requested
589
+
590
+ def initialize(requested: nil)
591
+ @requested = requested
592
+ end
593
+ end
594
+
595
+ class P24Payments < ::Stripe::RequestParams
596
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
597
+ attr_accessor :requested
598
+
599
+ def initialize(requested: nil)
600
+ @requested = requested
601
+ end
602
+ end
603
+
604
+ class PayByBankPayments < ::Stripe::RequestParams
605
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
606
+ attr_accessor :requested
607
+
608
+ def initialize(requested: nil)
609
+ @requested = requested
610
+ end
611
+ end
612
+
613
+ class PaycoPayments < ::Stripe::RequestParams
614
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
615
+ attr_accessor :requested
616
+
617
+ def initialize(requested: nil)
618
+ @requested = requested
619
+ end
620
+ end
621
+
622
+ class PaynowPayments < ::Stripe::RequestParams
623
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
624
+ attr_accessor :requested
625
+
626
+ def initialize(requested: nil)
627
+ @requested = requested
628
+ end
629
+ end
630
+
631
+ class PromptpayPayments < ::Stripe::RequestParams
632
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
633
+ attr_accessor :requested
634
+
635
+ def initialize(requested: nil)
636
+ @requested = requested
637
+ end
638
+ end
639
+
640
+ class RevolutPayPayments < ::Stripe::RequestParams
641
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
642
+ attr_accessor :requested
643
+
644
+ def initialize(requested: nil)
645
+ @requested = requested
646
+ end
647
+ end
648
+
649
+ class SamsungPayPayments < ::Stripe::RequestParams
650
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
651
+ attr_accessor :requested
652
+
653
+ def initialize(requested: nil)
654
+ @requested = requested
655
+ end
656
+ end
657
+
658
+ class SepaBankTransferPayments < ::Stripe::RequestParams
659
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
660
+ attr_accessor :requested
661
+
662
+ def initialize(requested: nil)
663
+ @requested = requested
664
+ end
665
+ end
666
+
667
+ class SepaDebitPayments < ::Stripe::RequestParams
668
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
669
+ attr_accessor :requested
670
+
671
+ def initialize(requested: nil)
672
+ @requested = requested
673
+ end
674
+ end
675
+
676
+ class SwishPayments < ::Stripe::RequestParams
677
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
678
+ attr_accessor :requested
679
+
680
+ def initialize(requested: nil)
681
+ @requested = requested
682
+ end
683
+ end
684
+
685
+ class TwintPayments < ::Stripe::RequestParams
686
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
687
+ attr_accessor :requested
688
+
689
+ def initialize(requested: nil)
690
+ @requested = requested
691
+ end
692
+ end
693
+
694
+ class UsBankTransferPayments < ::Stripe::RequestParams
695
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
696
+ attr_accessor :requested
697
+
698
+ def initialize(requested: nil)
699
+ @requested = requested
700
+ end
701
+ end
702
+
703
+ class ZipPayments < ::Stripe::RequestParams
704
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
705
+ attr_accessor :requested
706
+
707
+ def initialize(requested: nil)
708
+ @requested = requested
709
+ end
710
+ end
711
+ # Allow the merchant to process ACH debit payments.
712
+ attr_accessor :ach_debit_payments
713
+ # Allow the merchant to process ACSS debit payments.
714
+ attr_accessor :acss_debit_payments
715
+ # Allow the merchant to process Affirm payments.
716
+ attr_accessor :affirm_payments
717
+ # Allow the merchant to process Afterpay/Clearpay payments.
718
+ attr_accessor :afterpay_clearpay_payments
719
+ # Allow the merchant to process Alma payments.
720
+ attr_accessor :alma_payments
721
+ # Allow the merchant to process Amazon Pay payments.
722
+ attr_accessor :amazon_pay_payments
723
+ # Allow the merchant to process Australian BECS Direct Debit payments.
724
+ attr_accessor :au_becs_debit_payments
725
+ # Allow the merchant to process BACS Direct Debit payments.
726
+ attr_accessor :bacs_debit_payments
727
+ # Allow the merchant to process Bancontact payments.
728
+ attr_accessor :bancontact_payments
729
+ # Allow the merchant to process BLIK payments.
730
+ attr_accessor :blik_payments
731
+ # Allow the merchant to process Boleto payments.
732
+ attr_accessor :boleto_payments
733
+ # Allow the merchant to collect card payments.
734
+ attr_accessor :card_payments
735
+ # Allow the merchant to process Cartes Bancaires payments.
736
+ attr_accessor :cartes_bancaires_payments
737
+ # Allow the merchant to process Cash App payments.
738
+ attr_accessor :cashapp_payments
739
+ # Allow the merchant to process EPS payments.
740
+ attr_accessor :eps_payments
741
+ # Allow the merchant to process FPX payments.
742
+ attr_accessor :fpx_payments
743
+ # Allow the merchant to process UK bank transfer payments.
744
+ attr_accessor :gb_bank_transfer_payments
745
+ # Allow the merchant to process GrabPay payments.
746
+ attr_accessor :grabpay_payments
747
+ # Allow the merchant to process iDEAL payments.
748
+ attr_accessor :ideal_payments
749
+ # Allow the merchant to process JCB card payments.
750
+ attr_accessor :jcb_payments
751
+ # Allow the merchant to process Japanese bank transfer payments.
752
+ attr_accessor :jp_bank_transfer_payments
753
+ # Allow the merchant to process Kakao Pay payments.
754
+ attr_accessor :kakao_pay_payments
755
+ # Allow the merchant to process Klarna payments.
756
+ attr_accessor :klarna_payments
757
+ # Allow the merchant to process Konbini convenience store payments.
758
+ attr_accessor :konbini_payments
759
+ # Allow the merchant to process Korean card payments.
760
+ attr_accessor :kr_card_payments
761
+ # Allow the merchant to process Link payments.
762
+ attr_accessor :link_payments
763
+ # Allow the merchant to process MobilePay payments.
764
+ attr_accessor :mobilepay_payments
765
+ # Allow the merchant to process Multibanco payments.
766
+ attr_accessor :multibanco_payments
767
+ # Allow the merchant to process Mexican bank transfer payments.
768
+ attr_accessor :mx_bank_transfer_payments
769
+ # Allow the merchant to process Naver Pay payments.
770
+ attr_accessor :naver_pay_payments
771
+ # Allow the merchant to process OXXO payments.
772
+ attr_accessor :oxxo_payments
773
+ # Allow the merchant to process Przelewy24 (P24) payments.
774
+ attr_accessor :p24_payments
775
+ # Allow the merchant to process Pay by Bank payments.
776
+ attr_accessor :pay_by_bank_payments
777
+ # Allow the merchant to process PAYCO payments.
778
+ attr_accessor :payco_payments
779
+ # Allow the merchant to process PayNow payments.
780
+ attr_accessor :paynow_payments
781
+ # Allow the merchant to process PromptPay payments.
782
+ attr_accessor :promptpay_payments
783
+ # Allow the merchant to process Revolut Pay payments.
784
+ attr_accessor :revolut_pay_payments
785
+ # Allow the merchant to process Samsung Pay payments.
786
+ attr_accessor :samsung_pay_payments
787
+ # Allow the merchant to process SEPA bank transfer payments.
788
+ attr_accessor :sepa_bank_transfer_payments
789
+ # Allow the merchant to process SEPA Direct Debit payments.
790
+ attr_accessor :sepa_debit_payments
791
+ # Allow the merchant to process Swish payments.
792
+ attr_accessor :swish_payments
793
+ # Allow the merchant to process TWINT payments.
794
+ attr_accessor :twint_payments
795
+ # Allow the merchant to process US bank transfer payments.
796
+ attr_accessor :us_bank_transfer_payments
797
+ # Allow the merchant to process Zip payments.
798
+ attr_accessor :zip_payments
799
+
800
+ def initialize(
801
+ ach_debit_payments: nil,
802
+ acss_debit_payments: nil,
803
+ affirm_payments: nil,
804
+ afterpay_clearpay_payments: nil,
805
+ alma_payments: nil,
806
+ amazon_pay_payments: nil,
807
+ au_becs_debit_payments: nil,
808
+ bacs_debit_payments: nil,
809
+ bancontact_payments: nil,
810
+ blik_payments: nil,
811
+ boleto_payments: nil,
812
+ card_payments: nil,
813
+ cartes_bancaires_payments: nil,
814
+ cashapp_payments: nil,
815
+ eps_payments: nil,
816
+ fpx_payments: nil,
817
+ gb_bank_transfer_payments: nil,
818
+ grabpay_payments: nil,
819
+ ideal_payments: nil,
820
+ jcb_payments: nil,
821
+ jp_bank_transfer_payments: nil,
822
+ kakao_pay_payments: nil,
823
+ klarna_payments: nil,
824
+ konbini_payments: nil,
825
+ kr_card_payments: nil,
826
+ link_payments: nil,
827
+ mobilepay_payments: nil,
828
+ multibanco_payments: nil,
829
+ mx_bank_transfer_payments: nil,
830
+ naver_pay_payments: nil,
831
+ oxxo_payments: nil,
832
+ p24_payments: nil,
833
+ pay_by_bank_payments: nil,
834
+ payco_payments: nil,
835
+ paynow_payments: nil,
836
+ promptpay_payments: nil,
837
+ revolut_pay_payments: nil,
838
+ samsung_pay_payments: nil,
839
+ sepa_bank_transfer_payments: nil,
840
+ sepa_debit_payments: nil,
841
+ swish_payments: nil,
842
+ twint_payments: nil,
843
+ us_bank_transfer_payments: nil,
844
+ zip_payments: nil
845
+ )
846
+ @ach_debit_payments = ach_debit_payments
847
+ @acss_debit_payments = acss_debit_payments
848
+ @affirm_payments = affirm_payments
849
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
850
+ @alma_payments = alma_payments
851
+ @amazon_pay_payments = amazon_pay_payments
852
+ @au_becs_debit_payments = au_becs_debit_payments
853
+ @bacs_debit_payments = bacs_debit_payments
854
+ @bancontact_payments = bancontact_payments
855
+ @blik_payments = blik_payments
856
+ @boleto_payments = boleto_payments
857
+ @card_payments = card_payments
858
+ @cartes_bancaires_payments = cartes_bancaires_payments
859
+ @cashapp_payments = cashapp_payments
860
+ @eps_payments = eps_payments
861
+ @fpx_payments = fpx_payments
862
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
863
+ @grabpay_payments = grabpay_payments
864
+ @ideal_payments = ideal_payments
865
+ @jcb_payments = jcb_payments
866
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
867
+ @kakao_pay_payments = kakao_pay_payments
868
+ @klarna_payments = klarna_payments
869
+ @konbini_payments = konbini_payments
870
+ @kr_card_payments = kr_card_payments
871
+ @link_payments = link_payments
872
+ @mobilepay_payments = mobilepay_payments
873
+ @multibanco_payments = multibanco_payments
874
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
875
+ @naver_pay_payments = naver_pay_payments
876
+ @oxxo_payments = oxxo_payments
877
+ @p24_payments = p24_payments
878
+ @pay_by_bank_payments = pay_by_bank_payments
879
+ @payco_payments = payco_payments
880
+ @paynow_payments = paynow_payments
881
+ @promptpay_payments = promptpay_payments
882
+ @revolut_pay_payments = revolut_pay_payments
883
+ @samsung_pay_payments = samsung_pay_payments
884
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
885
+ @sepa_debit_payments = sepa_debit_payments
886
+ @swish_payments = swish_payments
887
+ @twint_payments = twint_payments
888
+ @us_bank_transfer_payments = us_bank_transfer_payments
889
+ @zip_payments = zip_payments
890
+ end
891
+ end
892
+
893
+ class CardPayments < ::Stripe::RequestParams
894
+ class DeclineOn < ::Stripe::RequestParams
895
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
896
+ attr_accessor :avs_failure
897
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
898
+ attr_accessor :cvc_failure
899
+
900
+ def initialize(avs_failure: nil, cvc_failure: nil)
901
+ @avs_failure = avs_failure
902
+ @cvc_failure = cvc_failure
903
+ end
904
+ end
905
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
906
+ attr_accessor :decline_on
907
+
908
+ def initialize(decline_on: nil)
909
+ @decline_on = decline_on
910
+ end
911
+ end
912
+
913
+ class StatementDescriptor < ::Stripe::RequestParams
914
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
915
+ attr_accessor :descriptor
916
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
917
+ attr_accessor :prefix
918
+
919
+ def initialize(descriptor: nil, prefix: nil)
920
+ @descriptor = descriptor
921
+ @prefix = prefix
922
+ end
923
+ end
924
+
925
+ class Support < ::Stripe::RequestParams
926
+ class Address < ::Stripe::RequestParams
927
+ # City, district, suburb, town, or village.
928
+ attr_accessor :city
929
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
930
+ attr_accessor :country
931
+ # Address line 1 (e.g., street, PO Box, or company name).
932
+ attr_accessor :line1
933
+ # Address line 2 (e.g., apartment, suite, unit, or building).
934
+ attr_accessor :line2
935
+ # ZIP or postal code.
936
+ attr_accessor :postal_code
937
+ # State, county, province, or region.
938
+ attr_accessor :state
939
+ # Town or cho-me.
940
+ attr_accessor :town
941
+
942
+ def initialize(
943
+ city: nil,
944
+ country: nil,
945
+ line1: nil,
946
+ line2: nil,
947
+ postal_code: nil,
948
+ state: nil,
949
+ town: nil
950
+ )
951
+ @city = city
952
+ @country = country
953
+ @line1 = line1
954
+ @line2 = line2
955
+ @postal_code = postal_code
956
+ @state = state
957
+ @town = town
958
+ end
959
+ end
960
+ # A publicly available mailing address for sending support issues to.
961
+ attr_accessor :address
962
+ # A publicly available email address for sending support issues to.
963
+ attr_accessor :email
964
+ # A publicly available phone number to call with support issues.
965
+ attr_accessor :phone
966
+ # A publicly available website for handling support issues.
967
+ attr_accessor :url
968
+
969
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
970
+ @address = address
971
+ @email = email
972
+ @phone = phone
973
+ @url = url
974
+ end
975
+ end
976
+ # Settings used for Bacs debit payments.
977
+ attr_accessor :bacs_debit_payments
978
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
979
+ attr_accessor :branding
980
+ # Capabilities to request on the Merchant Configuration.
981
+ attr_accessor :capabilities
982
+ # Card payments settings.
983
+ attr_accessor :card_payments
984
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
985
+ attr_accessor :mcc
986
+ # Statement descriptor.
987
+ attr_accessor :statement_descriptor
988
+ # Publicly available contact information for sending support issues to.
989
+ attr_accessor :support
990
+
991
+ def initialize(
992
+ bacs_debit_payments: nil,
993
+ branding: nil,
994
+ capabilities: nil,
995
+ card_payments: nil,
996
+ mcc: nil,
997
+ statement_descriptor: nil,
998
+ support: nil
999
+ )
1000
+ @bacs_debit_payments = bacs_debit_payments
1001
+ @branding = branding
1002
+ @capabilities = capabilities
1003
+ @card_payments = card_payments
1004
+ @mcc = mcc
1005
+ @statement_descriptor = statement_descriptor
1006
+ @support = support
1007
+ end
1008
+ end
1009
+
1010
+ class Recipient < ::Stripe::RequestParams
1011
+ class Capabilities < ::Stripe::RequestParams
1012
+ class BankAccounts < ::Stripe::RequestParams
1013
+ class Local < ::Stripe::RequestParams
1014
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1015
+ attr_accessor :requested
1016
+
1017
+ def initialize(requested: nil)
1018
+ @requested = requested
1019
+ end
1020
+ end
1021
+
1022
+ class Wire < ::Stripe::RequestParams
1023
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1024
+ attr_accessor :requested
1025
+
1026
+ def initialize(requested: nil)
1027
+ @requested = requested
1028
+ end
1029
+ end
1030
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1031
+ attr_accessor :local
1032
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1033
+ attr_accessor :wire
1034
+
1035
+ def initialize(local: nil, wire: nil)
1036
+ @local = local
1037
+ @wire = wire
1038
+ end
1039
+ end
1040
+
1041
+ class Cards < ::Stripe::RequestParams
1042
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1043
+ attr_accessor :requested
1044
+
1045
+ def initialize(requested: nil)
1046
+ @requested = requested
1047
+ end
1048
+ end
1049
+
1050
+ class CryptoWallets < ::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
+
1059
+ class StripeBalance < ::Stripe::RequestParams
1060
+ class StripeTransfers < ::Stripe::RequestParams
1061
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1062
+ attr_accessor :requested
1063
+
1064
+ def initialize(requested: nil)
1065
+ @requested = requested
1066
+ end
1067
+ end
1068
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1069
+ attr_accessor :stripe_transfers
1070
+
1071
+ def initialize(stripe_transfers: nil)
1072
+ @stripe_transfers = stripe_transfers
1073
+ end
1074
+ end
1075
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1076
+ attr_accessor :bank_accounts
1077
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
1078
+ attr_accessor :cards
1079
+ # Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
1080
+ attr_accessor :crypto_wallets
1081
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1082
+ attr_accessor :stripe_balance
1083
+
1084
+ def initialize(
1085
+ bank_accounts: nil,
1086
+ cards: nil,
1087
+ crypto_wallets: nil,
1088
+ stripe_balance: nil
1089
+ )
1090
+ @bank_accounts = bank_accounts
1091
+ @cards = cards
1092
+ @crypto_wallets = crypto_wallets
1093
+ @stripe_balance = stripe_balance
1094
+ end
1095
+ end
1096
+ # Capabilities to be requested on the Recipient Configuration.
1097
+ attr_accessor :capabilities
1098
+
1099
+ def initialize(capabilities: nil)
1100
+ @capabilities = capabilities
1101
+ end
1102
+ end
1103
+
1104
+ class Storer < ::Stripe::RequestParams
1105
+ class Capabilities < ::Stripe::RequestParams
1106
+ class FinancialAddresses < ::Stripe::RequestParams
1107
+ class BankAccounts < ::Stripe::RequestParams
1108
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1109
+ attr_accessor :requested
1110
+
1111
+ def initialize(requested: nil)
1112
+ @requested = requested
1113
+ end
1114
+ end
1115
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1116
+ attr_accessor :bank_accounts
1117
+
1118
+ def initialize(bank_accounts: nil)
1119
+ @bank_accounts = bank_accounts
1120
+ end
1121
+ end
1122
+
1123
+ class HoldsCurrencies < ::Stripe::RequestParams
1124
+ class Gbp < ::Stripe::RequestParams
1125
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1126
+ attr_accessor :requested
1127
+
1128
+ def initialize(requested: nil)
1129
+ @requested = requested
1130
+ end
1131
+ end
1132
+ # Can hold storage-type funds on Stripe in GBP.
1133
+ attr_accessor :gbp
1134
+
1135
+ def initialize(gbp: nil)
1136
+ @gbp = gbp
1137
+ end
1138
+ end
1139
+
1140
+ class InboundTransfers < ::Stripe::RequestParams
1141
+ class BankAccounts < ::Stripe::RequestParams
1142
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1143
+ attr_accessor :requested
1144
+
1145
+ def initialize(requested: nil)
1146
+ @requested = requested
1147
+ end
1148
+ end
1149
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1150
+ attr_accessor :bank_accounts
1151
+
1152
+ def initialize(bank_accounts: nil)
1153
+ @bank_accounts = bank_accounts
1154
+ end
1155
+ end
1156
+
1157
+ class OutboundPayments < ::Stripe::RequestParams
1158
+ class BankAccounts < ::Stripe::RequestParams
1159
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1160
+ attr_accessor :requested
1161
+
1162
+ def initialize(requested: nil)
1163
+ @requested = requested
1164
+ end
1165
+ end
1166
+
1167
+ class Cards < ::Stripe::RequestParams
1168
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1169
+ attr_accessor :requested
1170
+
1171
+ def initialize(requested: nil)
1172
+ @requested = requested
1173
+ end
1174
+ end
1175
+
1176
+ class FinancialAccounts < ::Stripe::RequestParams
1177
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1178
+ attr_accessor :requested
1179
+
1180
+ def initialize(requested: nil)
1181
+ @requested = requested
1182
+ end
1183
+ end
1184
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1185
+ attr_accessor :bank_accounts
1186
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1187
+ attr_accessor :cards
1188
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1189
+ attr_accessor :financial_accounts
1190
+
1191
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1192
+ @bank_accounts = bank_accounts
1193
+ @cards = cards
1194
+ @financial_accounts = financial_accounts
1195
+ end
1196
+ end
1197
+
1198
+ class OutboundTransfers < ::Stripe::RequestParams
1199
+ class BankAccounts < ::Stripe::RequestParams
1200
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1201
+ attr_accessor :requested
1202
+
1203
+ def initialize(requested: nil)
1204
+ @requested = requested
1205
+ end
1206
+ end
1207
+
1208
+ class FinancialAccounts < ::Stripe::RequestParams
1209
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1210
+ attr_accessor :requested
1211
+
1212
+ def initialize(requested: nil)
1213
+ @requested = requested
1214
+ end
1215
+ end
1216
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1217
+ attr_accessor :bank_accounts
1218
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1219
+ attr_accessor :financial_accounts
1220
+
1221
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1222
+ @bank_accounts = bank_accounts
1223
+ @financial_accounts = financial_accounts
1224
+ end
1225
+ end
1226
+ # Can provision a financial address to credit/debit a FinancialAccount.
1227
+ attr_accessor :financial_addresses
1228
+ # Can hold storage-type funds on Stripe.
1229
+ attr_accessor :holds_currencies
1230
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1231
+ attr_accessor :inbound_transfers
1232
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1233
+ attr_accessor :outbound_payments
1234
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1235
+ attr_accessor :outbound_transfers
1236
+
1237
+ def initialize(
1238
+ financial_addresses: nil,
1239
+ holds_currencies: nil,
1240
+ inbound_transfers: nil,
1241
+ outbound_payments: nil,
1242
+ outbound_transfers: nil
1243
+ )
1244
+ @financial_addresses = financial_addresses
1245
+ @holds_currencies = holds_currencies
1246
+ @inbound_transfers = inbound_transfers
1247
+ @outbound_payments = outbound_payments
1248
+ @outbound_transfers = outbound_transfers
1249
+ end
1250
+ end
1251
+ # Capabilities to request on the Storer Configuration.
1252
+ attr_accessor :capabilities
1253
+
1254
+ def initialize(capabilities: nil)
1255
+ @capabilities = capabilities
1256
+ end
1257
+ end
1258
+ # The CardCreator Configuration allows the Account to create and issue cards to users.
1259
+ attr_accessor :card_creator
1260
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
1261
+ attr_accessor :customer
1262
+ # The Merchant configuration allows the Account to act as a connected account and collect payments facilitated by a Connect platform. You can add this configuration to your connected accounts only if you’ve completed onboarding as a Connect platform.
1263
+ attr_accessor :merchant
1264
+ # The Recipient Configuration allows the Account to receive funds.
1265
+ attr_accessor :recipient
1266
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1267
+ attr_accessor :storer
1268
+
1269
+ def initialize(
1270
+ card_creator: nil,
1271
+ customer: nil,
1272
+ merchant: nil,
1273
+ recipient: nil,
1274
+ storer: nil
1275
+ )
1276
+ @card_creator = card_creator
1277
+ @customer = customer
1278
+ @merchant = merchant
1279
+ @recipient = recipient
1280
+ @storer = storer
1281
+ end
1282
+ end
1283
+
1284
+ class Defaults < ::Stripe::RequestParams
1285
+ class Profile < ::Stripe::RequestParams
1286
+ # The business's publicly-available website.
1287
+ attr_accessor :business_url
1288
+ # The name which is used by the business.
1289
+ attr_accessor :doing_business_as
1290
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1291
+ attr_accessor :product_description
1292
+
1293
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1294
+ @business_url = business_url
1295
+ @doing_business_as = doing_business_as
1296
+ @product_description = product_description
1297
+ end
1298
+ end
1299
+
1300
+ class Responsibilities < ::Stripe::RequestParams
1301
+ # A value indicating the party responsible for collecting fees from this account.
1302
+ attr_accessor :fees_collector
1303
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1304
+ attr_accessor :losses_collector
1305
+
1306
+ def initialize(fees_collector: nil, losses_collector: nil)
1307
+ @fees_collector = fees_collector
1308
+ @losses_collector = losses_collector
1309
+ end
1310
+ end
1311
+ # 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).
1312
+ attr_accessor :currency
1313
+ # The Account's preferred locales (languages), ordered by preference.
1314
+ attr_accessor :locales
1315
+ # Account profile information.
1316
+ attr_accessor :profile
1317
+ # Default responsibilities held by either Stripe or the platform.
1318
+ attr_accessor :responsibilities
1319
+
1320
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1321
+ @currency = currency
1322
+ @locales = locales
1323
+ @profile = profile
1324
+ @responsibilities = responsibilities
1325
+ end
1326
+ end
1327
+
1328
+ class Identity < ::Stripe::RequestParams
1329
+ class Attestations < ::Stripe::RequestParams
1330
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1331
+ # The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1332
+ attr_accessor :date
1333
+ # The IP address from which the director attestation was made.
1334
+ attr_accessor :ip
1335
+ # The user agent of the browser from which the director attestation was made.
1336
+ attr_accessor :user_agent
1337
+
1338
+ def initialize(date: nil, ip: nil, user_agent: nil)
1339
+ @date = date
1340
+ @ip = ip
1341
+ @user_agent = user_agent
1342
+ end
1343
+ end
1344
+
1345
+ class OwnershipDeclaration < ::Stripe::RequestParams
1346
+ # The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1347
+ attr_accessor :date
1348
+ # The IP address from which the beneficial owner attestation was made.
1349
+ attr_accessor :ip
1350
+ # The user agent of the browser from which the beneficial owner attestation was made.
1351
+ attr_accessor :user_agent
1352
+
1353
+ def initialize(date: nil, ip: nil, user_agent: nil)
1354
+ @date = date
1355
+ @ip = ip
1356
+ @user_agent = user_agent
1357
+ end
1358
+ end
1359
+
1360
+ class PersonsProvided < ::Stripe::RequestParams
1361
+ # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1362
+ attr_accessor :directors
1363
+ # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1364
+ attr_accessor :executives
1365
+ # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1366
+ attr_accessor :owners
1367
+ # Reason for why the company is exempt from providing ownership information.
1368
+ attr_accessor :ownership_exemption_reason
1369
+
1370
+ def initialize(
1371
+ directors: nil,
1372
+ executives: nil,
1373
+ owners: nil,
1374
+ ownership_exemption_reason: nil
1375
+ )
1376
+ @directors = directors
1377
+ @executives = executives
1378
+ @owners = owners
1379
+ @ownership_exemption_reason = ownership_exemption_reason
1380
+ end
1381
+ end
1382
+
1383
+ class TermsOfService < ::Stripe::RequestParams
1384
+ class Account < ::Stripe::RequestParams
1385
+ # 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.
1386
+ attr_accessor :date
1387
+ # The IP address from which the Account's representative accepted the terms of service.
1388
+ attr_accessor :ip
1389
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1390
+ attr_accessor :user_agent
1391
+
1392
+ def initialize(date: nil, ip: nil, user_agent: nil)
1393
+ @date = date
1394
+ @ip = ip
1395
+ @user_agent = user_agent
1396
+ end
1397
+ end
1398
+
1399
+ class CardCreator < ::Stripe::RequestParams
1400
+ class Commercial < ::Stripe::RequestParams
1401
+ class AccountHolder < ::Stripe::RequestParams
1402
+ # 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.
1403
+ attr_accessor :date
1404
+ # The IP address from which the Account's representative accepted the terms of service.
1405
+ attr_accessor :ip
1406
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1407
+ attr_accessor :user_agent
1408
+
1409
+ def initialize(date: nil, ip: nil, user_agent: nil)
1410
+ @date = date
1411
+ @ip = ip
1412
+ @user_agent = user_agent
1413
+ end
1414
+ end
1415
+
1416
+ class Celtic < ::Stripe::RequestParams
1417
+ class ApplePay < ::Stripe::RequestParams
1418
+ # 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.
1419
+ attr_accessor :date
1420
+ # The IP address from which the Account's representative accepted the terms of service.
1421
+ attr_accessor :ip
1422
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1423
+ attr_accessor :user_agent
1424
+
1425
+ def initialize(date: nil, ip: nil, user_agent: nil)
1426
+ @date = date
1427
+ @ip = ip
1428
+ @user_agent = user_agent
1429
+ end
1430
+ end
1431
+
1432
+ class ChargeCard < ::Stripe::RequestParams
1433
+ class BankTerms < ::Stripe::RequestParams
1434
+ # 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.
1435
+ attr_accessor :date
1436
+ # The IP address from which the Account's representative accepted the terms of service.
1437
+ attr_accessor :ip
1438
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1439
+ attr_accessor :user_agent
1440
+
1441
+ def initialize(date: nil, ip: nil, user_agent: nil)
1442
+ @date = date
1443
+ @ip = ip
1444
+ @user_agent = user_agent
1445
+ end
1446
+ end
1447
+
1448
+ class Platform < ::Stripe::RequestParams
1449
+ # 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.
1450
+ attr_accessor :date
1451
+ # The IP address from which the Account's representative accepted the terms of service.
1452
+ attr_accessor :ip
1453
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1454
+ attr_accessor :user_agent
1455
+
1456
+ def initialize(date: nil, ip: nil, user_agent: nil)
1457
+ @date = date
1458
+ @ip = ip
1459
+ @user_agent = user_agent
1460
+ end
1461
+ end
1462
+ # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1463
+ attr_accessor :bank_terms
1464
+ # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
1465
+ attr_accessor :platform
1466
+
1467
+ def initialize(bank_terms: nil, platform: nil)
1468
+ @bank_terms = bank_terms
1469
+ @platform = platform
1470
+ end
1471
+ end
1472
+
1473
+ class SpendCard < ::Stripe::RequestParams
1474
+ class BankTerms < ::Stripe::RequestParams
1475
+ # 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.
1476
+ attr_accessor :date
1477
+ # The IP address from which the Account's representative accepted the terms of service.
1478
+ attr_accessor :ip
1479
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1480
+ attr_accessor :user_agent
1481
+
1482
+ def initialize(date: nil, ip: nil, user_agent: nil)
1483
+ @date = date
1484
+ @ip = ip
1485
+ @user_agent = user_agent
1486
+ end
1487
+ end
1488
+
1489
+ class FinancingDisclosures < ::Stripe::RequestParams
1490
+ # 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.
1491
+ attr_accessor :date
1492
+ # The IP address from which the Account's representative accepted the terms of service.
1493
+ attr_accessor :ip
1494
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1495
+ attr_accessor :user_agent
1496
+
1497
+ def initialize(date: nil, ip: nil, user_agent: nil)
1498
+ @date = date
1499
+ @ip = ip
1500
+ @user_agent = user_agent
1501
+ end
1502
+ end
1503
+
1504
+ class Platform < ::Stripe::RequestParams
1505
+ # 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.
1506
+ attr_accessor :date
1507
+ # The IP address from which the Account's representative accepted the terms of service.
1508
+ attr_accessor :ip
1509
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1510
+ attr_accessor :user_agent
1511
+
1512
+ def initialize(date: nil, ip: nil, user_agent: nil)
1513
+ @date = date
1514
+ @ip = ip
1515
+ @user_agent = user_agent
1516
+ end
1517
+ end
1518
+ # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1519
+ attr_accessor :bank_terms
1520
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1521
+ attr_accessor :financing_disclosures
1522
+ # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
1523
+ attr_accessor :platform
1524
+
1525
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1526
+ @bank_terms = bank_terms
1527
+ @financing_disclosures = financing_disclosures
1528
+ @platform = platform
1529
+ end
1530
+ end
1531
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
1532
+ attr_accessor :apple_pay
1533
+ # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor.
1534
+ attr_accessor :charge_card
1535
+ # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor.
1536
+ attr_accessor :spend_card
1537
+
1538
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1539
+ @apple_pay = apple_pay
1540
+ @charge_card = charge_card
1541
+ @spend_card = spend_card
1542
+ end
1543
+ end
1544
+
1545
+ class CrossRiverBank < ::Stripe::RequestParams
1546
+ class ApplePay < ::Stripe::RequestParams
1547
+ # 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.
1548
+ attr_accessor :date
1549
+ # The IP address from which the Account's representative accepted the terms of service.
1550
+ attr_accessor :ip
1551
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1552
+ attr_accessor :user_agent
1553
+
1554
+ def initialize(date: nil, ip: nil, user_agent: nil)
1555
+ @date = date
1556
+ @ip = ip
1557
+ @user_agent = user_agent
1558
+ end
1559
+ end
1560
+
1561
+ class ChargeCard < ::Stripe::RequestParams
1562
+ class BankTerms < ::Stripe::RequestParams
1563
+ # 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.
1564
+ attr_accessor :date
1565
+ # The IP address from which the Account's representative accepted the terms of service.
1566
+ attr_accessor :ip
1567
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1568
+ attr_accessor :user_agent
1569
+
1570
+ def initialize(date: nil, ip: nil, user_agent: nil)
1571
+ @date = date
1572
+ @ip = ip
1573
+ @user_agent = user_agent
1574
+ end
1575
+ end
1576
+
1577
+ class FinancingDisclosures < ::Stripe::RequestParams
1578
+ # 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.
1579
+ attr_accessor :date
1580
+ # The IP address from which the Account's representative accepted the terms of service.
1581
+ attr_accessor :ip
1582
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1583
+ attr_accessor :user_agent
1584
+
1585
+ def initialize(date: nil, ip: nil, user_agent: nil)
1586
+ @date = date
1587
+ @ip = ip
1588
+ @user_agent = user_agent
1589
+ end
1590
+ end
1591
+
1592
+ class Platform < ::Stripe::RequestParams
1593
+ # 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.
1594
+ attr_accessor :date
1595
+ # The IP address from which the Account's representative accepted the terms of service.
1596
+ attr_accessor :ip
1597
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1598
+ attr_accessor :user_agent
1599
+
1600
+ def initialize(date: nil, ip: nil, user_agent: nil)
1601
+ @date = date
1602
+ @ip = ip
1603
+ @user_agent = user_agent
1604
+ end
1605
+ end
1606
+ # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1607
+ attr_accessor :bank_terms
1608
+ # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1609
+ attr_accessor :financing_disclosures
1610
+ # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1611
+ attr_accessor :platform
1612
+
1613
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
1614
+ @bank_terms = bank_terms
1615
+ @financing_disclosures = financing_disclosures
1616
+ @platform = platform
1617
+ end
1618
+ end
1619
+
1620
+ class SpendCard < ::Stripe::RequestParams
1621
+ class BankTerms < ::Stripe::RequestParams
1622
+ # 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.
1623
+ attr_accessor :date
1624
+ # The IP address from which the Account's representative accepted the terms of service.
1625
+ attr_accessor :ip
1626
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1627
+ attr_accessor :user_agent
1628
+
1629
+ def initialize(date: nil, ip: nil, user_agent: nil)
1630
+ @date = date
1631
+ @ip = ip
1632
+ @user_agent = user_agent
1633
+ end
1634
+ end
1635
+
1636
+ class FinancingDisclosures < ::Stripe::RequestParams
1637
+ # 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.
1638
+ attr_accessor :date
1639
+ # The IP address from which the Account's representative accepted the terms of service.
1640
+ attr_accessor :ip
1641
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1642
+ attr_accessor :user_agent
1643
+
1644
+ def initialize(date: nil, ip: nil, user_agent: nil)
1645
+ @date = date
1646
+ @ip = ip
1647
+ @user_agent = user_agent
1648
+ end
1649
+ end
1650
+ # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1651
+ attr_accessor :bank_terms
1652
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1653
+ attr_accessor :financing_disclosures
1654
+
1655
+ def initialize(bank_terms: nil, financing_disclosures: nil)
1656
+ @bank_terms = bank_terms
1657
+ @financing_disclosures = financing_disclosures
1658
+ end
1659
+ end
1660
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor.
1661
+ attr_accessor :apple_pay
1662
+ # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor.
1663
+ attr_accessor :charge_card
1664
+ # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor.
1665
+ attr_accessor :spend_card
1666
+
1667
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
1668
+ @apple_pay = apple_pay
1669
+ @charge_card = charge_card
1670
+ @spend_card = spend_card
1671
+ end
1672
+ end
1673
+ # Terms of service acceptances for Stripe commercial card issuing.
1674
+ attr_accessor :account_holder
1675
+ # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
1676
+ attr_accessor :celtic
1677
+ # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
1678
+ attr_accessor :cross_river_bank
1679
+
1680
+ def initialize(account_holder: nil, celtic: nil, cross_river_bank: nil)
1681
+ @account_holder = account_holder
1682
+ @celtic = celtic
1683
+ @cross_river_bank = cross_river_bank
1684
+ end
1685
+ end
1686
+ # Terms of service acceptances to create cards for commercial issuing use cases.
1687
+ attr_accessor :commercial
1688
+
1689
+ def initialize(commercial: nil)
1690
+ @commercial = commercial
1691
+ end
1692
+ end
1693
+
1694
+ class Storer < ::Stripe::RequestParams
1695
+ # 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.
1696
+ attr_accessor :date
1697
+ # The IP address from which the Account's representative accepted the terms of service.
1698
+ attr_accessor :ip
1699
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1700
+ attr_accessor :user_agent
1701
+
1702
+ def initialize(date: nil, ip: nil, user_agent: nil)
1703
+ @date = date
1704
+ @ip = ip
1705
+ @user_agent = user_agent
1706
+ end
1707
+ end
1708
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1709
+ attr_accessor :account
1710
+ # Details on the Account's acceptance of Issuing-specific terms of service.
1711
+ attr_accessor :card_creator
1712
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1713
+ attr_accessor :storer
1714
+
1715
+ def initialize(account: nil, card_creator: nil, storer: nil)
1716
+ @account = account
1717
+ @card_creator = card_creator
1718
+ @storer = storer
1719
+ end
1720
+ end
1721
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1722
+ attr_accessor :directorship_declaration
1723
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1724
+ attr_accessor :ownership_declaration
1725
+ # Attestation that all Persons with a specific Relationship value have been provided.
1726
+ attr_accessor :persons_provided
1727
+ # Attestations of accepted terms of service agreements.
1728
+ attr_accessor :terms_of_service
1729
+
1730
+ def initialize(
1731
+ directorship_declaration: nil,
1732
+ ownership_declaration: nil,
1733
+ persons_provided: nil,
1734
+ terms_of_service: nil
1735
+ )
1736
+ @directorship_declaration = directorship_declaration
1737
+ @ownership_declaration = ownership_declaration
1738
+ @persons_provided = persons_provided
1739
+ @terms_of_service = terms_of_service
1740
+ end
1741
+ end
1742
+
1743
+ class BusinessDetails < ::Stripe::RequestParams
1744
+ class Address < ::Stripe::RequestParams
1745
+ # City, district, suburb, town, or village.
1746
+ attr_accessor :city
1747
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1748
+ attr_accessor :country
1749
+ # Address line 1 (e.g., street, PO Box, or company name).
1750
+ attr_accessor :line1
1751
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1752
+ attr_accessor :line2
1753
+ # ZIP or postal code.
1754
+ attr_accessor :postal_code
1755
+ # State, county, province, or region.
1756
+ attr_accessor :state
1757
+ # Town or cho-me.
1758
+ attr_accessor :town
1759
+
1760
+ def initialize(
1761
+ city: nil,
1762
+ country: nil,
1763
+ line1: nil,
1764
+ line2: nil,
1765
+ postal_code: nil,
1766
+ state: nil,
1767
+ town: nil
1768
+ )
1769
+ @city = city
1770
+ @country = country
1771
+ @line1 = line1
1772
+ @line2 = line2
1773
+ @postal_code = postal_code
1774
+ @state = state
1775
+ @town = town
1776
+ end
1777
+ end
1778
+
1779
+ class AnnualRevenue < ::Stripe::RequestParams
1780
+ # A non-negative integer representing the amount in the smallest currency unit.
1781
+ attr_accessor :amount
1782
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1783
+ attr_accessor :fiscal_year_end
1784
+
1785
+ def initialize(amount: nil, fiscal_year_end: nil)
1786
+ @amount = amount
1787
+ @fiscal_year_end = fiscal_year_end
1788
+ end
1789
+ end
1790
+
1791
+ class Documents < ::Stripe::RequestParams
1792
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1793
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1794
+ attr_accessor :files
1795
+ # The format of the document. Currently supports `files` only.
1796
+ attr_accessor :type
1797
+
1798
+ def initialize(files: nil, type: nil)
1799
+ @files = files
1800
+ @type = type
1801
+ end
1802
+ end
1803
+
1804
+ class CompanyLicense < ::Stripe::RequestParams
1805
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1806
+ attr_accessor :files
1807
+ # The format of the document. Currently supports `files` only.
1808
+ attr_accessor :type
1809
+
1810
+ def initialize(files: nil, type: nil)
1811
+ @files = files
1812
+ @type = type
1813
+ end
1814
+ end
1815
+
1816
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1817
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1818
+ attr_accessor :files
1819
+ # The format of the document. Currently supports `files` only.
1820
+ attr_accessor :type
1821
+
1822
+ def initialize(files: nil, type: nil)
1823
+ @files = files
1824
+ @type = type
1825
+ end
1826
+ end
1827
+
1828
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1829
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1830
+ attr_accessor :files
1831
+ # The format of the document. Currently supports `files` only.
1832
+ attr_accessor :type
1833
+
1834
+ def initialize(files: nil, type: nil)
1835
+ @files = files
1836
+ @type = type
1837
+ end
1838
+ end
1839
+
1840
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1841
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1842
+ attr_accessor :files
1843
+ # The format of the document. Currently supports `files` only.
1844
+ attr_accessor :type
1845
+
1846
+ def initialize(files: nil, type: nil)
1847
+ @files = files
1848
+ @type = type
1849
+ end
1850
+ end
1851
+
1852
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1853
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1854
+ attr_accessor :files
1855
+ # The format of the document. Currently supports `files` only.
1856
+ attr_accessor :type
1857
+
1858
+ def initialize(files: nil, type: nil)
1859
+ @files = files
1860
+ @type = type
1861
+ end
1862
+ end
1863
+
1864
+ class PrimaryVerification < ::Stripe::RequestParams
1865
+ class FrontBack < ::Stripe::RequestParams
1866
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1867
+ attr_accessor :back
1868
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1869
+ attr_accessor :front
1870
+
1871
+ def initialize(back: nil, front: nil)
1872
+ @back = back
1873
+ @front = front
1874
+ end
1875
+ end
1876
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1877
+ attr_accessor :front_back
1878
+ # The format of the verification document. Currently supports `front_back` only.
1879
+ attr_accessor :type
1880
+
1881
+ def initialize(front_back: nil, type: nil)
1882
+ @front_back = front_back
1883
+ @type = type
1884
+ end
1885
+ end
1886
+
1887
+ class ProofOfAddress < ::Stripe::RequestParams
1888
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1889
+ attr_accessor :files
1890
+ # The format of the document. Currently supports `files` only.
1891
+ attr_accessor :type
1892
+
1893
+ def initialize(files: nil, type: nil)
1894
+ @files = files
1895
+ @type = type
1896
+ end
1897
+ end
1898
+
1899
+ class ProofOfRegistration < ::Stripe::RequestParams
1900
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1901
+ attr_accessor :files
1902
+ # The format of the document. Currently supports `files` only.
1903
+ attr_accessor :type
1904
+
1905
+ def initialize(files: nil, type: nil)
1906
+ @files = files
1907
+ @type = type
1908
+ end
1909
+ end
1910
+
1911
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1912
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1913
+ attr_accessor :files
1914
+ # The format of the document. Currently supports `files` only.
1915
+ attr_accessor :type
1916
+
1917
+ def initialize(files: nil, type: nil)
1918
+ @files = files
1919
+ @type = type
1920
+ end
1921
+ end
1922
+ # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
1923
+ attr_accessor :bank_account_ownership_verification
1924
+ # One or more documents that demonstrate proof of a company’s license to operate.
1925
+ attr_accessor :company_license
1926
+ # One or more documents showing the company’s Memorandum of Association.
1927
+ attr_accessor :company_memorandum_of_association
1928
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1929
+ attr_accessor :company_ministerial_decree
1930
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1931
+ attr_accessor :company_registration_verification
1932
+ # One or more documents that demonstrate proof of a company’s tax ID.
1933
+ attr_accessor :company_tax_id_verification
1934
+ # A document verifying the business.
1935
+ attr_accessor :primary_verification
1936
+ # One or more documents that demonstrate proof of address.
1937
+ attr_accessor :proof_of_address
1938
+ # One or more documents showing the company’s proof of registration with the national business registry.
1939
+ attr_accessor :proof_of_registration
1940
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1941
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1942
+
1943
+ def initialize(
1944
+ bank_account_ownership_verification: nil,
1945
+ company_license: nil,
1946
+ company_memorandum_of_association: nil,
1947
+ company_ministerial_decree: nil,
1948
+ company_registration_verification: nil,
1949
+ company_tax_id_verification: nil,
1950
+ primary_verification: nil,
1951
+ proof_of_address: nil,
1952
+ proof_of_registration: nil,
1953
+ proof_of_ultimate_beneficial_ownership: nil
1954
+ )
1955
+ @bank_account_ownership_verification = bank_account_ownership_verification
1956
+ @company_license = company_license
1957
+ @company_memorandum_of_association = company_memorandum_of_association
1958
+ @company_ministerial_decree = company_ministerial_decree
1959
+ @company_registration_verification = company_registration_verification
1960
+ @company_tax_id_verification = company_tax_id_verification
1961
+ @primary_verification = primary_verification
1962
+ @proof_of_address = proof_of_address
1963
+ @proof_of_registration = proof_of_registration
1964
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1965
+ end
1966
+ end
1967
+
1968
+ class IdNumber < ::Stripe::RequestParams
1969
+ # The registrar of the ID number (Only valid for DE ID number types).
1970
+ attr_accessor :registrar
1971
+ # Open Enum. The ID number type of a business entity.
1972
+ attr_accessor :type
1973
+ # The value of the ID number.
1974
+ attr_accessor :value
1975
+
1976
+ def initialize(registrar: nil, type: nil, value: nil)
1977
+ @registrar = registrar
1978
+ @type = type
1979
+ @value = value
1980
+ end
1981
+ end
1982
+
1983
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
1984
+ # A non-negative integer representing the amount in the smallest currency unit.
1985
+ attr_accessor :amount
1986
+
1987
+ def initialize(amount: nil)
1988
+ @amount = amount
1989
+ end
1990
+ end
1991
+
1992
+ class ScriptAddresses < ::Stripe::RequestParams
1993
+ class Kana < ::Stripe::RequestParams
1994
+ # City, district, suburb, town, or village.
1995
+ attr_accessor :city
1996
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1997
+ attr_accessor :country
1998
+ # Address line 1 (e.g., street, PO Box, or company name).
1999
+ attr_accessor :line1
2000
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2001
+ attr_accessor :line2
2002
+ # ZIP or postal code.
2003
+ attr_accessor :postal_code
2004
+ # State, county, province, or region.
2005
+ attr_accessor :state
2006
+ # Town or cho-me.
2007
+ attr_accessor :town
2008
+
2009
+ def initialize(
2010
+ city: nil,
2011
+ country: nil,
2012
+ line1: nil,
2013
+ line2: nil,
2014
+ postal_code: nil,
2015
+ state: nil,
2016
+ town: nil
2017
+ )
2018
+ @city = city
2019
+ @country = country
2020
+ @line1 = line1
2021
+ @line2 = line2
2022
+ @postal_code = postal_code
2023
+ @state = state
2024
+ @town = town
2025
+ end
2026
+ end
2027
+
2028
+ class Kanji < ::Stripe::RequestParams
2029
+ # City, district, suburb, town, or village.
2030
+ attr_accessor :city
2031
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2032
+ attr_accessor :country
2033
+ # Address line 1 (e.g., street, PO Box, or company name).
2034
+ attr_accessor :line1
2035
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2036
+ attr_accessor :line2
2037
+ # ZIP or postal code.
2038
+ attr_accessor :postal_code
2039
+ # State, county, province, or region.
2040
+ attr_accessor :state
2041
+ # Town or cho-me.
2042
+ attr_accessor :town
2043
+
2044
+ def initialize(
2045
+ city: nil,
2046
+ country: nil,
2047
+ line1: nil,
2048
+ line2: nil,
2049
+ postal_code: nil,
2050
+ state: nil,
2051
+ town: nil
2052
+ )
2053
+ @city = city
2054
+ @country = country
2055
+ @line1 = line1
2056
+ @line2 = line2
2057
+ @postal_code = postal_code
2058
+ @state = state
2059
+ @town = town
2060
+ end
2061
+ end
2062
+ # Kana Address.
2063
+ attr_accessor :kana
2064
+ # Kanji Address.
2065
+ attr_accessor :kanji
2066
+
2067
+ def initialize(kana: nil, kanji: nil)
2068
+ @kana = kana
2069
+ @kanji = kanji
2070
+ end
2071
+ end
2072
+
2073
+ class ScriptNames < ::Stripe::RequestParams
2074
+ class Kana < ::Stripe::RequestParams
2075
+ # Registered name of the business.
2076
+ attr_accessor :registered_name
2077
+
2078
+ def initialize(registered_name: nil)
2079
+ @registered_name = registered_name
2080
+ end
2081
+ end
2082
+
2083
+ class Kanji < ::Stripe::RequestParams
2084
+ # Registered name of the business.
2085
+ attr_accessor :registered_name
2086
+
2087
+ def initialize(registered_name: nil)
2088
+ @registered_name = registered_name
2089
+ end
2090
+ end
2091
+ # Kana name.
2092
+ attr_accessor :kana
2093
+ # Kanji name.
2094
+ attr_accessor :kanji
2095
+
2096
+ def initialize(kana: nil, kanji: nil)
2097
+ @kana = kana
2098
+ @kanji = kanji
2099
+ end
2100
+ end
2101
+ # The business registration address of the business entity.
2102
+ attr_accessor :address
2103
+ # The business gross annual revenue for its preceding fiscal year.
2104
+ attr_accessor :annual_revenue
2105
+ # A document verifying the business.
2106
+ attr_accessor :documents
2107
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2108
+ attr_accessor :estimated_worker_count
2109
+ # The ID numbers of a business entity.
2110
+ attr_accessor :id_numbers
2111
+ # An estimate of the monthly revenue of the business.
2112
+ attr_accessor :monthly_estimated_revenue
2113
+ # The phone number of the Business Entity.
2114
+ attr_accessor :phone
2115
+ # The business legal name.
2116
+ attr_accessor :registered_name
2117
+ # The business registration address of the business entity in non latin script.
2118
+ attr_accessor :script_addresses
2119
+ # The business legal name in non latin script.
2120
+ attr_accessor :script_names
2121
+ # The category identifying the legal structure of the business.
2122
+ attr_accessor :structure
2123
+
2124
+ def initialize(
2125
+ address: nil,
2126
+ annual_revenue: nil,
2127
+ documents: nil,
2128
+ estimated_worker_count: nil,
2129
+ id_numbers: nil,
2130
+ monthly_estimated_revenue: nil,
2131
+ phone: nil,
2132
+ registered_name: nil,
2133
+ script_addresses: nil,
2134
+ script_names: nil,
2135
+ structure: nil
2136
+ )
2137
+ @address = address
2138
+ @annual_revenue = annual_revenue
2139
+ @documents = documents
2140
+ @estimated_worker_count = estimated_worker_count
2141
+ @id_numbers = id_numbers
2142
+ @monthly_estimated_revenue = monthly_estimated_revenue
2143
+ @phone = phone
2144
+ @registered_name = registered_name
2145
+ @script_addresses = script_addresses
2146
+ @script_names = script_names
2147
+ @structure = structure
2148
+ end
2149
+ end
2150
+
2151
+ class Individual < ::Stripe::RequestParams
2152
+ class AdditionalAddress < ::Stripe::RequestParams
2153
+ # City, district, suburb, town, or village.
2154
+ attr_accessor :city
2155
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2156
+ attr_accessor :country
2157
+ # Address line 1 (e.g., street, PO Box, or company name).
2158
+ attr_accessor :line1
2159
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2160
+ attr_accessor :line2
2161
+ # ZIP or postal code.
2162
+ attr_accessor :postal_code
2163
+ # Purpose of additional address.
2164
+ attr_accessor :purpose
2165
+ # State, county, province, or region.
2166
+ attr_accessor :state
2167
+ # Town or cho-me.
2168
+ attr_accessor :town
2169
+
2170
+ def initialize(
2171
+ city: nil,
2172
+ country: nil,
2173
+ line1: nil,
2174
+ line2: nil,
2175
+ postal_code: nil,
2176
+ purpose: nil,
2177
+ state: nil,
2178
+ town: nil
2179
+ )
2180
+ @city = city
2181
+ @country = country
2182
+ @line1 = line1
2183
+ @line2 = line2
2184
+ @postal_code = postal_code
2185
+ @purpose = purpose
2186
+ @state = state
2187
+ @town = town
2188
+ end
2189
+ end
2190
+
2191
+ class AdditionalName < ::Stripe::RequestParams
2192
+ # The person's full name.
2193
+ attr_accessor :full_name
2194
+ # The person's first or given name.
2195
+ attr_accessor :given_name
2196
+ # The purpose or type of the additional name.
2197
+ attr_accessor :purpose
2198
+ # The person's last or family name.
2199
+ attr_accessor :surname
2200
+
2201
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
2202
+ @full_name = full_name
2203
+ @given_name = given_name
2204
+ @purpose = purpose
2205
+ @surname = surname
2206
+ end
2207
+ end
2208
+
2209
+ class Address < ::Stripe::RequestParams
2210
+ # City, district, suburb, town, or village.
2211
+ attr_accessor :city
2212
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2213
+ attr_accessor :country
2214
+ # Address line 1 (e.g., street, PO Box, or company name).
2215
+ attr_accessor :line1
2216
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2217
+ attr_accessor :line2
2218
+ # ZIP or postal code.
2219
+ attr_accessor :postal_code
2220
+ # State, county, province, or region.
2221
+ attr_accessor :state
2222
+ # Town or cho-me.
2223
+ attr_accessor :town
2224
+
2225
+ def initialize(
2226
+ city: nil,
2227
+ country: nil,
2228
+ line1: nil,
2229
+ line2: nil,
2230
+ postal_code: nil,
2231
+ state: nil,
2232
+ town: nil
2233
+ )
2234
+ @city = city
2235
+ @country = country
2236
+ @line1 = line1
2237
+ @line2 = line2
2238
+ @postal_code = postal_code
2239
+ @state = state
2240
+ @town = town
2241
+ end
2242
+ end
2243
+
2244
+ class DateOfBirth < ::Stripe::RequestParams
2245
+ # The day of birth.
2246
+ attr_accessor :day
2247
+ # The month of birth.
2248
+ attr_accessor :month
2249
+ # The year of birth.
2250
+ attr_accessor :year
2251
+
2252
+ def initialize(day: nil, month: nil, year: nil)
2253
+ @day = day
2254
+ @month = month
2255
+ @year = year
2256
+ end
2257
+ end
2258
+
2259
+ class Documents < ::Stripe::RequestParams
2260
+ class CompanyAuthorization < ::Stripe::RequestParams
2261
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2262
+ attr_accessor :files
2263
+ # The format of the document. Currently supports `files` only.
2264
+ attr_accessor :type
2265
+
2266
+ def initialize(files: nil, type: nil)
2267
+ @files = files
2268
+ @type = type
2269
+ end
2270
+ end
2271
+
2272
+ class Passport < ::Stripe::RequestParams
2273
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2274
+ attr_accessor :files
2275
+ # The format of the document. Currently supports `files` only.
2276
+ attr_accessor :type
2277
+
2278
+ def initialize(files: nil, type: nil)
2279
+ @files = files
2280
+ @type = type
2281
+ end
2282
+ end
2283
+
2284
+ class PrimaryVerification < ::Stripe::RequestParams
2285
+ class FrontBack < ::Stripe::RequestParams
2286
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2287
+ attr_accessor :back
2288
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2289
+ attr_accessor :front
2290
+
2291
+ def initialize(back: nil, front: nil)
2292
+ @back = back
2293
+ @front = front
2294
+ end
2295
+ end
2296
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2297
+ attr_accessor :front_back
2298
+ # The format of the verification document. Currently supports `front_back` only.
2299
+ attr_accessor :type
2300
+
2301
+ def initialize(front_back: nil, type: nil)
2302
+ @front_back = front_back
2303
+ @type = type
2304
+ end
2305
+ end
2306
+
2307
+ class SecondaryVerification < ::Stripe::RequestParams
2308
+ class FrontBack < ::Stripe::RequestParams
2309
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2310
+ attr_accessor :back
2311
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2312
+ attr_accessor :front
2313
+
2314
+ def initialize(back: nil, front: nil)
2315
+ @back = back
2316
+ @front = front
2317
+ end
2318
+ end
2319
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2320
+ attr_accessor :front_back
2321
+ # The format of the verification document. Currently supports `front_back` only.
2322
+ attr_accessor :type
2323
+
2324
+ def initialize(front_back: nil, type: nil)
2325
+ @front_back = front_back
2326
+ @type = type
2327
+ end
2328
+ end
2329
+
2330
+ class Visa < ::Stripe::RequestParams
2331
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2332
+ attr_accessor :files
2333
+ # The format of the document. Currently supports `files` only.
2334
+ attr_accessor :type
2335
+
2336
+ def initialize(files: nil, type: nil)
2337
+ @files = files
2338
+ @type = type
2339
+ end
2340
+ end
2341
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
2342
+ attr_accessor :company_authorization
2343
+ # One or more documents showing the person’s passport page with photo and personal data.
2344
+ attr_accessor :passport
2345
+ # An identifying document showing the person's name, either a passport or local ID card.
2346
+ attr_accessor :primary_verification
2347
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
2348
+ attr_accessor :secondary_verification
2349
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
2350
+ attr_accessor :visa
2351
+
2352
+ def initialize(
2353
+ company_authorization: nil,
2354
+ passport: nil,
2355
+ primary_verification: nil,
2356
+ secondary_verification: nil,
2357
+ visa: nil
2358
+ )
2359
+ @company_authorization = company_authorization
2360
+ @passport = passport
2361
+ @primary_verification = primary_verification
2362
+ @secondary_verification = secondary_verification
2363
+ @visa = visa
2364
+ end
2365
+ end
2366
+
2367
+ class IdNumber < ::Stripe::RequestParams
2368
+ # The ID number type of an individual.
2369
+ attr_accessor :type
2370
+ # The value of the ID number.
2371
+ attr_accessor :value
2372
+
2373
+ def initialize(type: nil, value: nil)
2374
+ @type = type
2375
+ @value = value
2376
+ end
2377
+ end
2378
+
2379
+ class Relationship < ::Stripe::RequestParams
2380
+ # Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
2381
+ attr_accessor :director
2382
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
2383
+ attr_accessor :executive
2384
+ # Whether the person is an owner of the account’s identity.
2385
+ attr_accessor :owner
2386
+ # The percent owned by the person of the account's legal entity.
2387
+ attr_accessor :percent_ownership
2388
+ # The person's title (e.g., CEO, Support Engineer).
2389
+ attr_accessor :title
2390
+
2391
+ def initialize(
2392
+ director: nil,
2393
+ executive: nil,
2394
+ owner: nil,
2395
+ percent_ownership: nil,
2396
+ title: nil
2397
+ )
2398
+ @director = director
2399
+ @executive = executive
2400
+ @owner = owner
2401
+ @percent_ownership = percent_ownership
2402
+ @title = title
2403
+ end
2404
+ end
2405
+
2406
+ class ScriptAddresses < ::Stripe::RequestParams
2407
+ class Kana < ::Stripe::RequestParams
2408
+ # City, district, suburb, town, or village.
2409
+ attr_accessor :city
2410
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2411
+ attr_accessor :country
2412
+ # Address line 1 (e.g., street, PO Box, or company name).
2413
+ attr_accessor :line1
2414
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2415
+ attr_accessor :line2
2416
+ # ZIP or postal code.
2417
+ attr_accessor :postal_code
2418
+ # State, county, province, or region.
2419
+ attr_accessor :state
2420
+ # Town or cho-me.
2421
+ attr_accessor :town
2422
+
2423
+ def initialize(
2424
+ city: nil,
2425
+ country: nil,
2426
+ line1: nil,
2427
+ line2: nil,
2428
+ postal_code: nil,
2429
+ state: nil,
2430
+ town: nil
2431
+ )
2432
+ @city = city
2433
+ @country = country
2434
+ @line1 = line1
2435
+ @line2 = line2
2436
+ @postal_code = postal_code
2437
+ @state = state
2438
+ @town = town
2439
+ end
2440
+ end
2441
+
2442
+ class Kanji < ::Stripe::RequestParams
2443
+ # City, district, suburb, town, or village.
2444
+ attr_accessor :city
2445
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2446
+ attr_accessor :country
2447
+ # Address line 1 (e.g., street, PO Box, or company name).
2448
+ attr_accessor :line1
2449
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2450
+ attr_accessor :line2
2451
+ # ZIP or postal code.
2452
+ attr_accessor :postal_code
2453
+ # State, county, province, or region.
2454
+ attr_accessor :state
2455
+ # Town or cho-me.
2456
+ attr_accessor :town
2457
+
2458
+ def initialize(
2459
+ city: nil,
2460
+ country: nil,
2461
+ line1: nil,
2462
+ line2: nil,
2463
+ postal_code: nil,
2464
+ state: nil,
2465
+ town: nil
2466
+ )
2467
+ @city = city
2468
+ @country = country
2469
+ @line1 = line1
2470
+ @line2 = line2
2471
+ @postal_code = postal_code
2472
+ @state = state
2473
+ @town = town
2474
+ end
2475
+ end
2476
+ # Kana Address.
2477
+ attr_accessor :kana
2478
+ # Kanji Address.
2479
+ attr_accessor :kanji
2480
+
2481
+ def initialize(kana: nil, kanji: nil)
2482
+ @kana = kana
2483
+ @kanji = kanji
2484
+ end
2485
+ end
2486
+
2487
+ class ScriptNames < ::Stripe::RequestParams
2488
+ class Kana < ::Stripe::RequestParams
2489
+ # The person's first or given name.
2490
+ attr_accessor :given_name
2491
+ # The person's last or family name.
2492
+ attr_accessor :surname
2493
+
2494
+ def initialize(given_name: nil, surname: nil)
2495
+ @given_name = given_name
2496
+ @surname = surname
2497
+ end
2498
+ end
2499
+
2500
+ class Kanji < ::Stripe::RequestParams
2501
+ # The person's first or given name.
2502
+ attr_accessor :given_name
2503
+ # The person's last or family name.
2504
+ attr_accessor :surname
2505
+
2506
+ def initialize(given_name: nil, surname: nil)
2507
+ @given_name = given_name
2508
+ @surname = surname
2509
+ end
2510
+ end
2511
+ # Persons name in kana script.
2512
+ attr_accessor :kana
2513
+ # Persons name in kanji script.
2514
+ attr_accessor :kanji
2515
+
2516
+ def initialize(kana: nil, kanji: nil)
2517
+ @kana = kana
2518
+ @kanji = kanji
2519
+ end
2520
+ end
2521
+ # Additional addresses associated with the individual.
2522
+ attr_accessor :additional_addresses
2523
+ # Additional names (e.g. aliases) associated with the individual.
2524
+ attr_accessor :additional_names
2525
+ # The individual's residential address.
2526
+ attr_accessor :address
2527
+ # The individual's date of birth.
2528
+ attr_accessor :date_of_birth
2529
+ # Documents that may be submitted to satisfy various informational requests.
2530
+ attr_accessor :documents
2531
+ # The individual's email address.
2532
+ attr_accessor :email
2533
+ # The individual's first name.
2534
+ attr_accessor :given_name
2535
+ # The identification numbers (e.g., SSN) associated with the individual.
2536
+ attr_accessor :id_numbers
2537
+ # The individual's gender (International regulations require either "male" or "female").
2538
+ attr_accessor :legal_gender
2539
+ # 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.
2540
+ attr_accessor :metadata
2541
+ # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2542
+ attr_accessor :nationalities
2543
+ # The individual's phone number.
2544
+ attr_accessor :phone
2545
+ # The individual's political exposure.
2546
+ attr_accessor :political_exposure
2547
+ # The relationship that this individual has with the account's identity.
2548
+ attr_accessor :relationship
2549
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2550
+ attr_accessor :script_addresses
2551
+ # The individuals primary name in non latin script.
2552
+ attr_accessor :script_names
2553
+ # The individual's last name.
2554
+ attr_accessor :surname
2555
+
2556
+ def initialize(
2557
+ additional_addresses: nil,
2558
+ additional_names: nil,
2559
+ address: nil,
2560
+ date_of_birth: nil,
2561
+ documents: nil,
2562
+ email: nil,
2563
+ given_name: nil,
2564
+ id_numbers: nil,
2565
+ legal_gender: nil,
2566
+ metadata: nil,
2567
+ nationalities: nil,
2568
+ phone: nil,
2569
+ political_exposure: nil,
2570
+ relationship: nil,
2571
+ script_addresses: nil,
2572
+ script_names: nil,
2573
+ surname: nil
2574
+ )
2575
+ @additional_addresses = additional_addresses
2576
+ @additional_names = additional_names
2577
+ @address = address
2578
+ @date_of_birth = date_of_birth
2579
+ @documents = documents
2580
+ @email = email
2581
+ @given_name = given_name
2582
+ @id_numbers = id_numbers
2583
+ @legal_gender = legal_gender
2584
+ @metadata = metadata
2585
+ @nationalities = nationalities
2586
+ @phone = phone
2587
+ @political_exposure = political_exposure
2588
+ @relationship = relationship
2589
+ @script_addresses = script_addresses
2590
+ @script_names = script_names
2591
+ @surname = surname
2592
+ end
2593
+ end
2594
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
2595
+ attr_accessor :attestations
2596
+ # Information about the company or business.
2597
+ attr_accessor :business_details
2598
+ # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
2599
+ attr_accessor :country
2600
+ # The entity type.
2601
+ attr_accessor :entity_type
2602
+ # Information about the person represented by the account.
2603
+ attr_accessor :individual
2604
+
2605
+ def initialize(
2606
+ attestations: nil,
2607
+ business_details: nil,
2608
+ country: nil,
2609
+ entity_type: nil,
2610
+ individual: nil
2611
+ )
2612
+ @attestations = attestations
2613
+ @business_details = business_details
2614
+ @country = country
2615
+ @entity_type = entity_type
2616
+ @individual = individual
2617
+ end
2618
+ end
2619
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2620
+ attr_accessor :configuration
2621
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2622
+ attr_accessor :contact_email
2623
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2624
+ attr_accessor :dashboard
2625
+ # Default values to be used on Account Configurations.
2626
+ attr_accessor :defaults
2627
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2628
+ attr_accessor :display_name
2629
+ # Information about the company, individual, and business represented by the Account.
2630
+ attr_accessor :identity
2631
+ # Additional fields to include in the response.
2632
+ attr_accessor :include
2633
+ # 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.
2634
+ attr_accessor :metadata
2635
+
2636
+ def initialize(
2637
+ configuration: nil,
2638
+ contact_email: nil,
2639
+ dashboard: nil,
2640
+ defaults: nil,
2641
+ display_name: nil,
2642
+ identity: nil,
2643
+ include: nil,
2644
+ metadata: nil
2645
+ )
2646
+ @configuration = configuration
2647
+ @contact_email = contact_email
2648
+ @dashboard = dashboard
2649
+ @defaults = defaults
2650
+ @display_name = display_name
2651
+ @identity = identity
2652
+ @include = include
2653
+ @metadata = metadata
2654
+ end
2655
+ end
2656
+ end
2657
+ end
2658
+ end