stripe 17.1.0 → 17.2.0.pre.alpha.2

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