stripe 18.1.0.pre.alpha.1 → 18.1.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 (279) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +8 -565
  3. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +2 -0
  4. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
  5. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +2 -0
  6. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
  7. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
  8. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +15 -1
  9. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +30 -1
  10. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +30 -1
  11. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +30 -1
  12. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +30 -1
  13. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +2 -0
  14. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
  15. data/lib/stripe/events/{v1_sigma_scheduled_query_run_created_event.rb → v2_payments_off_session_payment_attempt_failed_event.rb} +7 -7
  16. data/lib/stripe/events/{v1_radar_early_fraud_warning_created_event.rb → v2_payments_off_session_payment_attempt_started_event.rb} +9 -7
  17. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -0
  18. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -0
  19. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
  20. data/lib/stripe/object_types.rb +3 -0
  21. data/lib/stripe/params/invoice_create_preview_params.rb +42 -6
  22. data/lib/stripe/params/quote_create_params.rb +15 -3
  23. data/lib/stripe/params/quote_update_params.rb +15 -3
  24. data/lib/stripe/params/subscription_create_params.rb +17 -1
  25. data/lib/stripe/params/subscription_item_create_params.rb +17 -1
  26. data/lib/stripe/params/subscription_item_update_params.rb +17 -1
  27. data/lib/stripe/params/subscription_schedule_amend_params.rb +15 -3
  28. data/lib/stripe/params/subscription_schedule_create_params.rb +10 -2
  29. data/lib/stripe/params/subscription_schedule_update_params.rb +10 -2
  30. data/lib/stripe/params/subscription_update_params.rb +17 -1
  31. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
  32. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
  33. data/lib/stripe/params/v2/billing/service_action_create_params.rb +24 -0
  34. data/lib/stripe/params/v2/core/account_create_params.rb +118 -3
  35. data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
  36. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  37. data/lib/stripe/params/v2/core/account_update_params.rb +119 -4
  38. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
  39. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  40. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  41. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
  42. data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
  43. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  44. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  45. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  46. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
  47. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +12 -0
  48. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +12 -0
  49. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +12 -0
  50. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +5 -9
  51. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +13 -89
  52. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
  53. data/lib/stripe/params.rb +7 -0
  54. data/lib/stripe/resources/delegated_checkout/requested_session.rb +15 -1
  55. data/lib/stripe/resources/payment_method.rb +2 -2
  56. data/lib/stripe/resources/quote.rb +8 -118
  57. data/lib/stripe/resources/quote_line.rb +6 -0
  58. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +7 -87
  59. data/lib/stripe/resources/subscription.rb +3 -87
  60. data/lib/stripe/resources/subscription_item.rb +24 -1
  61. data/lib/stripe/resources/subscription_schedule.rb +7 -87
  62. data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
  63. data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
  64. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
  65. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
  66. data/lib/stripe/resources/v2/billing/service_action.rb +32 -2
  67. data/lib/stripe/resources/v2/core/account.rb +341 -10
  68. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  69. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  70. data/lib/stripe/resources/v2/core/event.rb +0 -2
  71. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
  72. data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
  73. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  74. data/lib/stripe/resources/v2/money_management/financial_account.rb +49 -1
  75. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
  76. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +46 -2
  77. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +61 -3
  78. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +46 -2
  79. data/lib/stripe/resources/v2/money_management/received_credit.rb +32 -0
  80. data/lib/stripe/resources/v2/money_management/received_debit.rb +32 -0
  81. data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
  82. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
  83. data/lib/stripe/resources/v2/payments/off_session_payment.rb +23 -79
  84. data/lib/stripe/resources.rb +5 -186
  85. data/lib/stripe/services/payment_method_service.rb +1 -1
  86. data/lib/stripe/services/v2/core/account_service.rb +2 -1
  87. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  88. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  89. data/lib/stripe/services/v2/core_service.rb +2 -1
  90. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  91. data/lib/stripe/services/v2/money_management_service.rb +3 -1
  92. data/lib/stripe/services.rb +3 -0
  93. data/lib/stripe/version.rb +1 -1
  94. data/rbi/stripe.rbi +5579 -1470
  95. metadata +17 -188
  96. data/lib/stripe/events/v1_account_updated_event.rb +0 -44
  97. data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
  98. data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
  99. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
  100. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
  101. data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
  102. data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
  103. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
  104. data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
  105. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
  106. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
  107. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
  108. data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
  109. data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
  110. data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
  111. data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
  112. data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
  113. data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
  114. data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
  115. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
  116. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
  117. data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
  118. data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
  119. data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
  120. data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
  121. data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
  122. data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
  123. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
  124. data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
  125. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
  126. data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
  127. data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
  128. data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
  129. data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
  130. data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
  131. data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
  132. data/lib/stripe/events/v1_customer_created_event.rb +0 -44
  133. data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
  134. data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
  135. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
  136. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
  137. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
  138. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
  139. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
  140. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
  141. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
  142. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
  143. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
  144. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
  145. data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
  146. data/lib/stripe/events/v1_file_created_event.rb +0 -44
  147. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
  148. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
  149. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
  150. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
  151. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
  152. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
  153. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
  154. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
  155. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
  156. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
  157. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
  158. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
  159. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
  160. data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
  161. data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
  162. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
  163. data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
  164. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
  165. data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
  166. data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
  167. data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
  168. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
  169. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
  170. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
  171. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
  172. data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
  173. data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
  174. data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
  175. data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
  176. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
  177. data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
  178. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
  179. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
  180. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
  181. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
  182. data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
  183. data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
  184. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
  185. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
  186. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
  187. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
  188. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
  189. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
  190. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
  191. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
  192. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
  193. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
  194. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
  195. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
  196. data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
  197. data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
  198. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
  199. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
  200. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
  201. data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
  202. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
  203. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
  204. data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
  205. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
  206. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
  207. data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
  208. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
  209. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
  210. data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
  211. data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
  212. data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
  213. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
  214. data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
  215. data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
  216. data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v1_payout_created_event.rb +0 -44
  218. data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
  219. data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
  220. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
  221. data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
  222. data/lib/stripe/events/v1_person_created_event.rb +0 -44
  223. data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
  224. data/lib/stripe/events/v1_person_updated_event.rb +0 -44
  225. data/lib/stripe/events/v1_plan_created_event.rb +0 -44
  226. data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
  227. data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
  228. data/lib/stripe/events/v1_price_created_event.rb +0 -44
  229. data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
  230. data/lib/stripe/events/v1_price_updated_event.rb +0 -44
  231. data/lib/stripe/events/v1_product_created_event.rb +0 -44
  232. data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
  233. data/lib/stripe/events/v1_product_updated_event.rb +0 -44
  234. data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
  235. data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
  236. data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
  237. data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
  238. data/lib/stripe/events/v1_quote_created_event.rb +0 -44
  239. data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
  240. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
  241. data/lib/stripe/events/v1_refund_created_event.rb +0 -44
  242. data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
  243. data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
  244. data/lib/stripe/events/v1_review_closed_event.rb +0 -44
  245. data/lib/stripe/events/v1_review_opened_event.rb +0 -44
  246. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
  247. data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
  248. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
  249. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
  250. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
  251. data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
  252. data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
  253. data/lib/stripe/events/v1_source_failed_event.rb +0 -44
  254. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
  255. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
  256. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
  257. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
  258. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
  259. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
  260. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
  261. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
  262. data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
  263. data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
  264. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
  265. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
  266. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
  267. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
  268. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
  269. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
  270. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
  271. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
  272. data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
  273. data/lib/stripe/events/v1_topup_created_event.rb +0 -44
  274. data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
  275. data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
  276. data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
  277. data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
  278. data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
  279. data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
@@ -0,0 +1,1259 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountTokenCreateParams < ::Stripe::RequestParams
8
+ class Identity < ::Stripe::RequestParams
9
+ class Attestations < ::Stripe::RequestParams
10
+ class DirectorshipDeclaration < ::Stripe::RequestParams
11
+ # A boolean indicating if the directors information has been attested.
12
+ attr_accessor :attested
13
+
14
+ def initialize(attested: nil)
15
+ @attested = attested
16
+ end
17
+ end
18
+
19
+ class OwnershipDeclaration < ::Stripe::RequestParams
20
+ # A boolean indicating if the beneficial owner information has been attested.
21
+ attr_accessor :attested
22
+
23
+ def initialize(attested: nil)
24
+ @attested = attested
25
+ end
26
+ end
27
+
28
+ class PersonsProvided < ::Stripe::RequestParams
29
+ # 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).
30
+ attr_accessor :directors
31
+ # 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).
32
+ attr_accessor :executives
33
+ # 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).
34
+ attr_accessor :owners
35
+ # Reason for why the company is exempt from providing ownership information.
36
+ attr_accessor :ownership_exemption_reason
37
+
38
+ def initialize(
39
+ directors: nil,
40
+ executives: nil,
41
+ owners: nil,
42
+ ownership_exemption_reason: nil
43
+ )
44
+ @directors = directors
45
+ @executives = executives
46
+ @owners = owners
47
+ @ownership_exemption_reason = ownership_exemption_reason
48
+ end
49
+ end
50
+
51
+ class RepresentativeDeclaration < ::Stripe::RequestParams
52
+ # A boolean indicating if the representative is authorized to act as the representative of their legal entity.
53
+ attr_accessor :attested
54
+
55
+ def initialize(attested: nil)
56
+ @attested = attested
57
+ end
58
+ end
59
+
60
+ class TermsOfService < ::Stripe::RequestParams
61
+ class Account < ::Stripe::RequestParams
62
+ # The boolean value indicating if the terms of service have been accepted.
63
+ attr_accessor :shown_and_accepted
64
+
65
+ def initialize(shown_and_accepted: nil)
66
+ @shown_and_accepted = shown_and_accepted
67
+ end
68
+ end
69
+
70
+ class CardCreator < ::Stripe::RequestParams
71
+ class Commercial < ::Stripe::RequestParams
72
+ class AccountHolder < ::Stripe::RequestParams
73
+ # The boolean value indicating if the terms of service have been accepted.
74
+ attr_accessor :shown_and_accepted
75
+
76
+ def initialize(shown_and_accepted: nil)
77
+ @shown_and_accepted = shown_and_accepted
78
+ end
79
+ end
80
+
81
+ class Celtic < ::Stripe::RequestParams
82
+ class ApplePay < ::Stripe::RequestParams
83
+ # The boolean value indicating if the terms of service have been accepted.
84
+ attr_accessor :shown_and_accepted
85
+
86
+ def initialize(shown_and_accepted: nil)
87
+ @shown_and_accepted = shown_and_accepted
88
+ end
89
+ end
90
+
91
+ class ChargeCard < ::Stripe::RequestParams
92
+ class BankTerms < ::Stripe::RequestParams
93
+ # The boolean value indicating if the terms of service have been accepted.
94
+ attr_accessor :shown_and_accepted
95
+
96
+ def initialize(shown_and_accepted: nil)
97
+ @shown_and_accepted = shown_and_accepted
98
+ end
99
+ end
100
+
101
+ class Platform < ::Stripe::RequestParams
102
+ # The boolean value indicating if the terms of service have been accepted.
103
+ attr_accessor :shown_and_accepted
104
+
105
+ def initialize(shown_and_accepted: nil)
106
+ @shown_and_accepted = shown_and_accepted
107
+ end
108
+ end
109
+ # Bank terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
110
+ attr_accessor :bank_terms
111
+ # Platform terms of service acceptance for commercial issuing charge cards with Celtic as BIN sponsor.
112
+ attr_accessor :platform
113
+
114
+ def initialize(bank_terms: nil, platform: nil)
115
+ @bank_terms = bank_terms
116
+ @platform = platform
117
+ end
118
+ end
119
+
120
+ class SpendCard < ::Stripe::RequestParams
121
+ class BankTerms < ::Stripe::RequestParams
122
+ # The boolean value indicating if the terms of service have been accepted.
123
+ attr_accessor :shown_and_accepted
124
+
125
+ def initialize(shown_and_accepted: nil)
126
+ @shown_and_accepted = shown_and_accepted
127
+ end
128
+ end
129
+
130
+ class FinancingDisclosures < ::Stripe::RequestParams
131
+ # The boolean value indicating if the terms of service have been accepted.
132
+ attr_accessor :shown_and_accepted
133
+
134
+ def initialize(shown_and_accepted: nil)
135
+ @shown_and_accepted = shown_and_accepted
136
+ end
137
+ end
138
+
139
+ class Platform < ::Stripe::RequestParams
140
+ # The boolean value indicating if the terms of service have been accepted.
141
+ attr_accessor :shown_and_accepted
142
+
143
+ def initialize(shown_and_accepted: nil)
144
+ @shown_and_accepted = shown_and_accepted
145
+ end
146
+ end
147
+ # Bank terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
148
+ attr_accessor :bank_terms
149
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
150
+ attr_accessor :financing_disclosures
151
+ # Platform terms of service acceptance for commercial issuing spend cards with Celtic as BIN sponsor.
152
+ attr_accessor :platform
153
+
154
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
155
+ @bank_terms = bank_terms
156
+ @financing_disclosures = financing_disclosures
157
+ @platform = platform
158
+ end
159
+ end
160
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
161
+ attr_accessor :apple_pay
162
+ # Terms of service acceptances for commercial issuing charge cards with Celtic as BIN sponsor.
163
+ attr_accessor :charge_card
164
+ # Terms of service acceptances for commercial issuing spend cards with Celtic as BIN sponsor.
165
+ attr_accessor :spend_card
166
+
167
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
168
+ @apple_pay = apple_pay
169
+ @charge_card = charge_card
170
+ @spend_card = spend_card
171
+ end
172
+ end
173
+
174
+ class CrossRiverBank < ::Stripe::RequestParams
175
+ class ApplePay < ::Stripe::RequestParams
176
+ # The boolean value indicating if the terms of service have been accepted.
177
+ attr_accessor :shown_and_accepted
178
+
179
+ def initialize(shown_and_accepted: nil)
180
+ @shown_and_accepted = shown_and_accepted
181
+ end
182
+ end
183
+
184
+ class ChargeCard < ::Stripe::RequestParams
185
+ class BankTerms < ::Stripe::RequestParams
186
+ # The boolean value indicating if the terms of service have been accepted.
187
+ attr_accessor :shown_and_accepted
188
+
189
+ def initialize(shown_and_accepted: nil)
190
+ @shown_and_accepted = shown_and_accepted
191
+ end
192
+ end
193
+
194
+ class FinancingDisclosures < ::Stripe::RequestParams
195
+ # The boolean value indicating if the terms of service have been accepted.
196
+ attr_accessor :shown_and_accepted
197
+
198
+ def initialize(shown_and_accepted: nil)
199
+ @shown_and_accepted = shown_and_accepted
200
+ end
201
+ end
202
+
203
+ class Platform < ::Stripe::RequestParams
204
+ # The boolean value indicating if the terms of service have been accepted.
205
+ attr_accessor :shown_and_accepted
206
+
207
+ def initialize(shown_and_accepted: nil)
208
+ @shown_and_accepted = shown_and_accepted
209
+ end
210
+ end
211
+ # Bank terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
212
+ attr_accessor :bank_terms
213
+ # Financial disclosures terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
214
+ attr_accessor :financing_disclosures
215
+ # Platform terms of service acceptance for commercial issuing charge cards with Cross River Bank as BIN sponsor.
216
+ attr_accessor :platform
217
+
218
+ def initialize(bank_terms: nil, financing_disclosures: nil, platform: nil)
219
+ @bank_terms = bank_terms
220
+ @financing_disclosures = financing_disclosures
221
+ @platform = platform
222
+ end
223
+ end
224
+
225
+ class SpendCard < ::Stripe::RequestParams
226
+ class BankTerms < ::Stripe::RequestParams
227
+ # The boolean value indicating if the terms of service have been accepted.
228
+ attr_accessor :shown_and_accepted
229
+
230
+ def initialize(shown_and_accepted: nil)
231
+ @shown_and_accepted = shown_and_accepted
232
+ end
233
+ end
234
+
235
+ class FinancingDisclosures < ::Stripe::RequestParams
236
+ # The boolean value indicating if the terms of service have been accepted.
237
+ attr_accessor :shown_and_accepted
238
+
239
+ def initialize(shown_and_accepted: nil)
240
+ @shown_and_accepted = shown_and_accepted
241
+ end
242
+ end
243
+ # Bank terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
244
+ attr_accessor :bank_terms
245
+ # Financial disclosures terms of service acceptance for commercial issuing spend cards with Cross River Bank as BIN sponsor.
246
+ attr_accessor :financing_disclosures
247
+
248
+ def initialize(bank_terms: nil, financing_disclosures: nil)
249
+ @bank_terms = bank_terms
250
+ @financing_disclosures = financing_disclosures
251
+ end
252
+ end
253
+ # Terms of service acceptances for commercial issuing Apple Pay cards with Cross River Bank as BIN sponsor.
254
+ attr_accessor :apple_pay
255
+ # Terms of service acceptances for commercial issuing charge cards with Cross River Bank as BIN sponsor.
256
+ attr_accessor :charge_card
257
+ # Terms of service acceptances for commercial issuing spend cards with Cross River Bank as BIN sponsor.
258
+ attr_accessor :spend_card
259
+
260
+ def initialize(apple_pay: nil, charge_card: nil, spend_card: nil)
261
+ @apple_pay = apple_pay
262
+ @charge_card = charge_card
263
+ @spend_card = spend_card
264
+ end
265
+ end
266
+ # Terms of service acceptances for Stripe commercial card issuing.
267
+ attr_accessor :account_holder
268
+ # Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
269
+ attr_accessor :celtic
270
+ # Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
271
+ attr_accessor :cross_river_bank
272
+
273
+ def initialize(account_holder: nil, celtic: nil, cross_river_bank: nil)
274
+ @account_holder = account_holder
275
+ @celtic = celtic
276
+ @cross_river_bank = cross_river_bank
277
+ end
278
+ end
279
+ # Terms of service acceptances to create cards for commercial issuing use cases.
280
+ attr_accessor :commercial
281
+
282
+ def initialize(commercial: nil)
283
+ @commercial = commercial
284
+ end
285
+ end
286
+
287
+ class CryptoStorer < ::Stripe::RequestParams
288
+ # The boolean value indicating if the terms of service have been accepted.
289
+ attr_accessor :shown_and_accepted
290
+
291
+ def initialize(shown_and_accepted: nil)
292
+ @shown_and_accepted = shown_and_accepted
293
+ end
294
+ end
295
+
296
+ class Storer < ::Stripe::RequestParams
297
+ # The boolean value indicating if the terms of service have been accepted.
298
+ attr_accessor :shown_and_accepted
299
+
300
+ def initialize(shown_and_accepted: nil)
301
+ @shown_and_accepted = shown_and_accepted
302
+ end
303
+ end
304
+ # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe.
305
+ attr_accessor :account
306
+ # Details on the Account's acceptance of Issuing-specific terms of service.
307
+ attr_accessor :card_creator
308
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, date, and User Agent are expanded by Stripe.
309
+ attr_accessor :crypto_storer
310
+ # Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe.
311
+ attr_accessor :storer
312
+
313
+ def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
314
+ @account = account
315
+ @card_creator = card_creator
316
+ @crypto_storer = crypto_storer
317
+ @storer = storer
318
+ end
319
+ end
320
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
321
+ attr_accessor :directorship_declaration
322
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
323
+ attr_accessor :ownership_declaration
324
+ # Attestation that all Persons with a specific Relationship value have been provided.
325
+ attr_accessor :persons_provided
326
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity; IP, date, and User Agent are expanded by Stripe.
327
+ attr_accessor :representative_declaration
328
+ # Attestations of accepted terms of service agreements.
329
+ attr_accessor :terms_of_service
330
+
331
+ def initialize(
332
+ directorship_declaration: nil,
333
+ ownership_declaration: nil,
334
+ persons_provided: nil,
335
+ representative_declaration: nil,
336
+ terms_of_service: nil
337
+ )
338
+ @directorship_declaration = directorship_declaration
339
+ @ownership_declaration = ownership_declaration
340
+ @persons_provided = persons_provided
341
+ @representative_declaration = representative_declaration
342
+ @terms_of_service = terms_of_service
343
+ end
344
+ end
345
+
346
+ class BusinessDetails < ::Stripe::RequestParams
347
+ class Address < ::Stripe::RequestParams
348
+ # City, district, suburb, town, or village.
349
+ attr_accessor :city
350
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
351
+ attr_accessor :country
352
+ # Address line 1 (e.g., street, PO Box, or company name).
353
+ attr_accessor :line1
354
+ # Address line 2 (e.g., apartment, suite, unit, or building).
355
+ attr_accessor :line2
356
+ # ZIP or postal code.
357
+ attr_accessor :postal_code
358
+ # State, county, province, or region.
359
+ attr_accessor :state
360
+ # Town or cho-me.
361
+ attr_accessor :town
362
+
363
+ def initialize(
364
+ city: nil,
365
+ country: nil,
366
+ line1: nil,
367
+ line2: nil,
368
+ postal_code: nil,
369
+ state: nil,
370
+ town: nil
371
+ )
372
+ @city = city
373
+ @country = country
374
+ @line1 = line1
375
+ @line2 = line2
376
+ @postal_code = postal_code
377
+ @state = state
378
+ @town = town
379
+ end
380
+ end
381
+
382
+ class AnnualRevenue < ::Stripe::RequestParams
383
+ class Amount < ::Stripe::RequestParams
384
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
385
+ attr_accessor :value
386
+ # 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).
387
+ attr_accessor :currency
388
+
389
+ def initialize(value: nil, currency: nil)
390
+ @value = value
391
+ @currency = currency
392
+ end
393
+ end
394
+ # A non-negative integer representing the amount in the smallest currency unit.
395
+ attr_accessor :amount
396
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
397
+ attr_accessor :fiscal_year_end
398
+
399
+ def initialize(amount: nil, fiscal_year_end: nil)
400
+ @amount = amount
401
+ @fiscal_year_end = fiscal_year_end
402
+ end
403
+ end
404
+
405
+ class Documents < ::Stripe::RequestParams
406
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
407
+ # 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`.
408
+ attr_accessor :files
409
+ # The format of the document. Currently supports `files` only.
410
+ attr_accessor :type
411
+
412
+ def initialize(files: nil, type: nil)
413
+ @files = files
414
+ @type = type
415
+ end
416
+ end
417
+
418
+ class CompanyLicense < ::Stripe::RequestParams
419
+ # 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`.
420
+ attr_accessor :files
421
+ # The format of the document. Currently supports `files` only.
422
+ attr_accessor :type
423
+
424
+ def initialize(files: nil, type: nil)
425
+ @files = files
426
+ @type = type
427
+ end
428
+ end
429
+
430
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
431
+ # 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`.
432
+ attr_accessor :files
433
+ # The format of the document. Currently supports `files` only.
434
+ attr_accessor :type
435
+
436
+ def initialize(files: nil, type: nil)
437
+ @files = files
438
+ @type = type
439
+ end
440
+ end
441
+
442
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
443
+ # 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`.
444
+ attr_accessor :files
445
+ # The format of the document. Currently supports `files` only.
446
+ attr_accessor :type
447
+
448
+ def initialize(files: nil, type: nil)
449
+ @files = files
450
+ @type = type
451
+ end
452
+ end
453
+
454
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
455
+ # 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`.
456
+ attr_accessor :files
457
+ # The format of the document. Currently supports `files` only.
458
+ attr_accessor :type
459
+
460
+ def initialize(files: nil, type: nil)
461
+ @files = files
462
+ @type = type
463
+ end
464
+ end
465
+
466
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
467
+ # 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`.
468
+ attr_accessor :files
469
+ # The format of the document. Currently supports `files` only.
470
+ attr_accessor :type
471
+
472
+ def initialize(files: nil, type: nil)
473
+ @files = files
474
+ @type = type
475
+ end
476
+ end
477
+
478
+ class PrimaryVerification < ::Stripe::RequestParams
479
+ class FrontBack < ::Stripe::RequestParams
480
+ # 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.
481
+ attr_accessor :back
482
+ # 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.
483
+ attr_accessor :front
484
+
485
+ def initialize(back: nil, front: nil)
486
+ @back = back
487
+ @front = front
488
+ end
489
+ end
490
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
491
+ attr_accessor :front_back
492
+ # The format of the verification document. Currently supports `front_back` only.
493
+ attr_accessor :type
494
+
495
+ def initialize(front_back: nil, type: nil)
496
+ @front_back = front_back
497
+ @type = type
498
+ end
499
+ end
500
+
501
+ class ProofOfAddress < ::Stripe::RequestParams
502
+ # 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`.
503
+ attr_accessor :files
504
+ # The format of the document. Currently supports `files` only.
505
+ attr_accessor :type
506
+
507
+ def initialize(files: nil, type: nil)
508
+ @files = files
509
+ @type = type
510
+ end
511
+ end
512
+
513
+ class ProofOfRegistration < ::Stripe::RequestParams
514
+ # 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`.
515
+ attr_accessor :files
516
+ # The format of the document. Currently supports `files` only.
517
+ attr_accessor :type
518
+
519
+ def initialize(files: nil, type: nil)
520
+ @files = files
521
+ @type = type
522
+ end
523
+ end
524
+
525
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
526
+ # 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`.
527
+ attr_accessor :files
528
+ # The format of the document. Currently supports `files` only.
529
+ attr_accessor :type
530
+
531
+ def initialize(files: nil, type: nil)
532
+ @files = files
533
+ @type = type
534
+ end
535
+ end
536
+ # 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.
537
+ attr_accessor :bank_account_ownership_verification
538
+ # One or more documents that demonstrate proof of a company’s license to operate.
539
+ attr_accessor :company_license
540
+ # One or more documents showing the company’s Memorandum of Association.
541
+ attr_accessor :company_memorandum_of_association
542
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
543
+ attr_accessor :company_ministerial_decree
544
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
545
+ attr_accessor :company_registration_verification
546
+ # One or more documents that demonstrate proof of a company’s tax ID.
547
+ attr_accessor :company_tax_id_verification
548
+ # A document verifying the business.
549
+ attr_accessor :primary_verification
550
+ # One or more documents that demonstrate proof of address.
551
+ attr_accessor :proof_of_address
552
+ # One or more documents showing the company’s proof of registration with the national business registry.
553
+ attr_accessor :proof_of_registration
554
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
555
+ attr_accessor :proof_of_ultimate_beneficial_ownership
556
+
557
+ def initialize(
558
+ bank_account_ownership_verification: nil,
559
+ company_license: nil,
560
+ company_memorandum_of_association: nil,
561
+ company_ministerial_decree: nil,
562
+ company_registration_verification: nil,
563
+ company_tax_id_verification: nil,
564
+ primary_verification: nil,
565
+ proof_of_address: nil,
566
+ proof_of_registration: nil,
567
+ proof_of_ultimate_beneficial_ownership: nil
568
+ )
569
+ @bank_account_ownership_verification = bank_account_ownership_verification
570
+ @company_license = company_license
571
+ @company_memorandum_of_association = company_memorandum_of_association
572
+ @company_ministerial_decree = company_ministerial_decree
573
+ @company_registration_verification = company_registration_verification
574
+ @company_tax_id_verification = company_tax_id_verification
575
+ @primary_verification = primary_verification
576
+ @proof_of_address = proof_of_address
577
+ @proof_of_registration = proof_of_registration
578
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
579
+ end
580
+ end
581
+
582
+ class IdNumber < ::Stripe::RequestParams
583
+ # The registrar of the ID number (Only valid for DE ID number types).
584
+ attr_accessor :registrar
585
+ # Open Enum. The ID number type of a business entity.
586
+ attr_accessor :type
587
+ # The value of the ID number.
588
+ attr_accessor :value
589
+
590
+ def initialize(registrar: nil, type: nil, value: nil)
591
+ @registrar = registrar
592
+ @type = type
593
+ @value = value
594
+ end
595
+ end
596
+
597
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
598
+ class Amount < ::Stripe::RequestParams
599
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
600
+ attr_accessor :value
601
+ # 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).
602
+ attr_accessor :currency
603
+
604
+ def initialize(value: nil, currency: nil)
605
+ @value = value
606
+ @currency = currency
607
+ end
608
+ end
609
+ # A non-negative integer representing the amount in the smallest currency unit.
610
+ attr_accessor :amount
611
+
612
+ def initialize(amount: nil)
613
+ @amount = amount
614
+ end
615
+ end
616
+
617
+ class ScriptAddresses < ::Stripe::RequestParams
618
+ class Kana < ::Stripe::RequestParams
619
+ # City, district, suburb, town, or village.
620
+ attr_accessor :city
621
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
622
+ attr_accessor :country
623
+ # Address line 1 (e.g., street, PO Box, or company name).
624
+ attr_accessor :line1
625
+ # Address line 2 (e.g., apartment, suite, unit, or building).
626
+ attr_accessor :line2
627
+ # ZIP or postal code.
628
+ attr_accessor :postal_code
629
+ # State, county, province, or region.
630
+ attr_accessor :state
631
+ # Town or cho-me.
632
+ attr_accessor :town
633
+
634
+ def initialize(
635
+ city: nil,
636
+ country: nil,
637
+ line1: nil,
638
+ line2: nil,
639
+ postal_code: nil,
640
+ state: nil,
641
+ town: nil
642
+ )
643
+ @city = city
644
+ @country = country
645
+ @line1 = line1
646
+ @line2 = line2
647
+ @postal_code = postal_code
648
+ @state = state
649
+ @town = town
650
+ end
651
+ end
652
+
653
+ class Kanji < ::Stripe::RequestParams
654
+ # City, district, suburb, town, or village.
655
+ attr_accessor :city
656
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
657
+ attr_accessor :country
658
+ # Address line 1 (e.g., street, PO Box, or company name).
659
+ attr_accessor :line1
660
+ # Address line 2 (e.g., apartment, suite, unit, or building).
661
+ attr_accessor :line2
662
+ # ZIP or postal code.
663
+ attr_accessor :postal_code
664
+ # State, county, province, or region.
665
+ attr_accessor :state
666
+ # Town or cho-me.
667
+ attr_accessor :town
668
+
669
+ def initialize(
670
+ city: nil,
671
+ country: nil,
672
+ line1: nil,
673
+ line2: nil,
674
+ postal_code: nil,
675
+ state: nil,
676
+ town: nil
677
+ )
678
+ @city = city
679
+ @country = country
680
+ @line1 = line1
681
+ @line2 = line2
682
+ @postal_code = postal_code
683
+ @state = state
684
+ @town = town
685
+ end
686
+ end
687
+ # Kana Address.
688
+ attr_accessor :kana
689
+ # Kanji Address.
690
+ attr_accessor :kanji
691
+
692
+ def initialize(kana: nil, kanji: nil)
693
+ @kana = kana
694
+ @kanji = kanji
695
+ end
696
+ end
697
+
698
+ class ScriptNames < ::Stripe::RequestParams
699
+ class Kana < ::Stripe::RequestParams
700
+ # Registered name of the business.
701
+ attr_accessor :registered_name
702
+
703
+ def initialize(registered_name: nil)
704
+ @registered_name = registered_name
705
+ end
706
+ end
707
+
708
+ class Kanji < ::Stripe::RequestParams
709
+ # Registered name of the business.
710
+ attr_accessor :registered_name
711
+
712
+ def initialize(registered_name: nil)
713
+ @registered_name = registered_name
714
+ end
715
+ end
716
+ # Kana name.
717
+ attr_accessor :kana
718
+ # Kanji name.
719
+ attr_accessor :kanji
720
+
721
+ def initialize(kana: nil, kanji: nil)
722
+ @kana = kana
723
+ @kanji = kanji
724
+ end
725
+ end
726
+ # The business registration address of the business entity.
727
+ attr_accessor :address
728
+ # The business gross annual revenue for its preceding fiscal year.
729
+ attr_accessor :annual_revenue
730
+ # A detailed description of the business's compliance and anti-money laundering controls and practices.
731
+ attr_accessor :compliance_screening_description
732
+ # A document verifying the business.
733
+ attr_accessor :documents
734
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
735
+ attr_accessor :estimated_worker_count
736
+ # The ID numbers of a business entity.
737
+ attr_accessor :id_numbers
738
+ # An estimate of the monthly revenue of the business.
739
+ attr_accessor :monthly_estimated_revenue
740
+ # The phone number of the Business Entity.
741
+ attr_accessor :phone
742
+ # The business legal name.
743
+ attr_accessor :registered_name
744
+ # The business registration address of the business entity in non latin script.
745
+ attr_accessor :script_addresses
746
+ # The business legal name in non latin script.
747
+ attr_accessor :script_names
748
+ # The category identifying the legal structure of the business.
749
+ attr_accessor :structure
750
+
751
+ def initialize(
752
+ address: nil,
753
+ annual_revenue: nil,
754
+ compliance_screening_description: nil,
755
+ documents: nil,
756
+ estimated_worker_count: nil,
757
+ id_numbers: nil,
758
+ monthly_estimated_revenue: nil,
759
+ phone: nil,
760
+ registered_name: nil,
761
+ script_addresses: nil,
762
+ script_names: nil,
763
+ structure: nil
764
+ )
765
+ @address = address
766
+ @annual_revenue = annual_revenue
767
+ @compliance_screening_description = compliance_screening_description
768
+ @documents = documents
769
+ @estimated_worker_count = estimated_worker_count
770
+ @id_numbers = id_numbers
771
+ @monthly_estimated_revenue = monthly_estimated_revenue
772
+ @phone = phone
773
+ @registered_name = registered_name
774
+ @script_addresses = script_addresses
775
+ @script_names = script_names
776
+ @structure = structure
777
+ end
778
+ end
779
+
780
+ class Individual < ::Stripe::RequestParams
781
+ class AdditionalAddress < ::Stripe::RequestParams
782
+ # City, district, suburb, town, or village.
783
+ attr_accessor :city
784
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
785
+ attr_accessor :country
786
+ # Address line 1 (e.g., street, PO Box, or company name).
787
+ attr_accessor :line1
788
+ # Address line 2 (e.g., apartment, suite, unit, or building).
789
+ attr_accessor :line2
790
+ # ZIP or postal code.
791
+ attr_accessor :postal_code
792
+ # Purpose of additional address.
793
+ attr_accessor :purpose
794
+ # State, county, province, or region.
795
+ attr_accessor :state
796
+ # Town or cho-me.
797
+ attr_accessor :town
798
+
799
+ def initialize(
800
+ city: nil,
801
+ country: nil,
802
+ line1: nil,
803
+ line2: nil,
804
+ postal_code: nil,
805
+ purpose: nil,
806
+ state: nil,
807
+ town: nil
808
+ )
809
+ @city = city
810
+ @country = country
811
+ @line1 = line1
812
+ @line2 = line2
813
+ @postal_code = postal_code
814
+ @purpose = purpose
815
+ @state = state
816
+ @town = town
817
+ end
818
+ end
819
+
820
+ class AdditionalName < ::Stripe::RequestParams
821
+ # The person's full name.
822
+ attr_accessor :full_name
823
+ # The person's first or given name.
824
+ attr_accessor :given_name
825
+ # The purpose or type of the additional name.
826
+ attr_accessor :purpose
827
+ # The person's last or family name.
828
+ attr_accessor :surname
829
+
830
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
831
+ @full_name = full_name
832
+ @given_name = given_name
833
+ @purpose = purpose
834
+ @surname = surname
835
+ end
836
+ end
837
+
838
+ class Address < ::Stripe::RequestParams
839
+ # City, district, suburb, town, or village.
840
+ attr_accessor :city
841
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
842
+ attr_accessor :country
843
+ # Address line 1 (e.g., street, PO Box, or company name).
844
+ attr_accessor :line1
845
+ # Address line 2 (e.g., apartment, suite, unit, or building).
846
+ attr_accessor :line2
847
+ # ZIP or postal code.
848
+ attr_accessor :postal_code
849
+ # State, county, province, or region.
850
+ attr_accessor :state
851
+ # Town or cho-me.
852
+ attr_accessor :town
853
+
854
+ def initialize(
855
+ city: nil,
856
+ country: nil,
857
+ line1: nil,
858
+ line2: nil,
859
+ postal_code: nil,
860
+ state: nil,
861
+ town: nil
862
+ )
863
+ @city = city
864
+ @country = country
865
+ @line1 = line1
866
+ @line2 = line2
867
+ @postal_code = postal_code
868
+ @state = state
869
+ @town = town
870
+ end
871
+ end
872
+
873
+ class DateOfBirth < ::Stripe::RequestParams
874
+ # The day of the birth.
875
+ attr_accessor :day
876
+ # The month of birth.
877
+ attr_accessor :month
878
+ # The year of birth.
879
+ attr_accessor :year
880
+
881
+ def initialize(day: nil, month: nil, year: nil)
882
+ @day = day
883
+ @month = month
884
+ @year = year
885
+ end
886
+ end
887
+
888
+ class Documents < ::Stripe::RequestParams
889
+ class CompanyAuthorization < ::Stripe::RequestParams
890
+ # 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`.
891
+ attr_accessor :files
892
+ # The format of the document. Currently supports `files` only.
893
+ attr_accessor :type
894
+
895
+ def initialize(files: nil, type: nil)
896
+ @files = files
897
+ @type = type
898
+ end
899
+ end
900
+
901
+ class Passport < ::Stripe::RequestParams
902
+ # 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`.
903
+ attr_accessor :files
904
+ # The format of the document. Currently supports `files` only.
905
+ attr_accessor :type
906
+
907
+ def initialize(files: nil, type: nil)
908
+ @files = files
909
+ @type = type
910
+ end
911
+ end
912
+
913
+ class PrimaryVerification < ::Stripe::RequestParams
914
+ class FrontBack < ::Stripe::RequestParams
915
+ # 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.
916
+ attr_accessor :back
917
+ # 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.
918
+ attr_accessor :front
919
+
920
+ def initialize(back: nil, front: nil)
921
+ @back = back
922
+ @front = front
923
+ end
924
+ end
925
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
926
+ attr_accessor :front_back
927
+ # The format of the verification document. Currently supports `front_back` only.
928
+ attr_accessor :type
929
+
930
+ def initialize(front_back: nil, type: nil)
931
+ @front_back = front_back
932
+ @type = type
933
+ end
934
+ end
935
+
936
+ class SecondaryVerification < ::Stripe::RequestParams
937
+ class FrontBack < ::Stripe::RequestParams
938
+ # 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.
939
+ attr_accessor :back
940
+ # 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.
941
+ attr_accessor :front
942
+
943
+ def initialize(back: nil, front: nil)
944
+ @back = back
945
+ @front = front
946
+ end
947
+ end
948
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
949
+ attr_accessor :front_back
950
+ # The format of the verification document. Currently supports `front_back` only.
951
+ attr_accessor :type
952
+
953
+ def initialize(front_back: nil, type: nil)
954
+ @front_back = front_back
955
+ @type = type
956
+ end
957
+ end
958
+
959
+ class Visa < ::Stripe::RequestParams
960
+ # 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`.
961
+ attr_accessor :files
962
+ # The format of the document. Currently supports `files` only.
963
+ attr_accessor :type
964
+
965
+ def initialize(files: nil, type: nil)
966
+ @files = files
967
+ @type = type
968
+ end
969
+ end
970
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
971
+ attr_accessor :company_authorization
972
+ # One or more documents showing the person’s passport page with photo and personal data.
973
+ attr_accessor :passport
974
+ # An identifying document showing the person's name, either a passport or local ID card.
975
+ attr_accessor :primary_verification
976
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
977
+ attr_accessor :secondary_verification
978
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
979
+ attr_accessor :visa
980
+
981
+ def initialize(
982
+ company_authorization: nil,
983
+ passport: nil,
984
+ primary_verification: nil,
985
+ secondary_verification: nil,
986
+ visa: nil
987
+ )
988
+ @company_authorization = company_authorization
989
+ @passport = passport
990
+ @primary_verification = primary_verification
991
+ @secondary_verification = secondary_verification
992
+ @visa = visa
993
+ end
994
+ end
995
+
996
+ class IdNumber < ::Stripe::RequestParams
997
+ # The ID number type of an individual.
998
+ attr_accessor :type
999
+ # The value of the ID number.
1000
+ attr_accessor :value
1001
+
1002
+ def initialize(type: nil, value: nil)
1003
+ @type = type
1004
+ @value = value
1005
+ end
1006
+ end
1007
+
1008
+ class Relationship < ::Stripe::RequestParams
1009
+ # 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.
1010
+ attr_accessor :director
1011
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1012
+ attr_accessor :executive
1013
+ # Whether the person is an owner of the account’s identity.
1014
+ attr_accessor :owner
1015
+ # The percent owned by the person of the account's legal entity.
1016
+ attr_accessor :percent_ownership
1017
+ # The person's title (e.g., CEO, Support Engineer).
1018
+ attr_accessor :title
1019
+
1020
+ def initialize(
1021
+ director: nil,
1022
+ executive: nil,
1023
+ owner: nil,
1024
+ percent_ownership: nil,
1025
+ title: nil
1026
+ )
1027
+ @director = director
1028
+ @executive = executive
1029
+ @owner = owner
1030
+ @percent_ownership = percent_ownership
1031
+ @title = title
1032
+ end
1033
+ end
1034
+
1035
+ class ScriptAddresses < ::Stripe::RequestParams
1036
+ class Kana < ::Stripe::RequestParams
1037
+ # City, district, suburb, town, or village.
1038
+ attr_accessor :city
1039
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1040
+ attr_accessor :country
1041
+ # Address line 1 (e.g., street, PO Box, or company name).
1042
+ attr_accessor :line1
1043
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1044
+ attr_accessor :line2
1045
+ # ZIP or postal code.
1046
+ attr_accessor :postal_code
1047
+ # State, county, province, or region.
1048
+ attr_accessor :state
1049
+ # Town or cho-me.
1050
+ attr_accessor :town
1051
+
1052
+ def initialize(
1053
+ city: nil,
1054
+ country: nil,
1055
+ line1: nil,
1056
+ line2: nil,
1057
+ postal_code: nil,
1058
+ state: nil,
1059
+ town: nil
1060
+ )
1061
+ @city = city
1062
+ @country = country
1063
+ @line1 = line1
1064
+ @line2 = line2
1065
+ @postal_code = postal_code
1066
+ @state = state
1067
+ @town = town
1068
+ end
1069
+ end
1070
+
1071
+ class Kanji < ::Stripe::RequestParams
1072
+ # City, district, suburb, town, or village.
1073
+ attr_accessor :city
1074
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1075
+ attr_accessor :country
1076
+ # Address line 1 (e.g., street, PO Box, or company name).
1077
+ attr_accessor :line1
1078
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1079
+ attr_accessor :line2
1080
+ # ZIP or postal code.
1081
+ attr_accessor :postal_code
1082
+ # State, county, province, or region.
1083
+ attr_accessor :state
1084
+ # Town or cho-me.
1085
+ attr_accessor :town
1086
+
1087
+ def initialize(
1088
+ city: nil,
1089
+ country: nil,
1090
+ line1: nil,
1091
+ line2: nil,
1092
+ postal_code: nil,
1093
+ state: nil,
1094
+ town: nil
1095
+ )
1096
+ @city = city
1097
+ @country = country
1098
+ @line1 = line1
1099
+ @line2 = line2
1100
+ @postal_code = postal_code
1101
+ @state = state
1102
+ @town = town
1103
+ end
1104
+ end
1105
+ # Kana Address.
1106
+ attr_accessor :kana
1107
+ # Kanji Address.
1108
+ attr_accessor :kanji
1109
+
1110
+ def initialize(kana: nil, kanji: nil)
1111
+ @kana = kana
1112
+ @kanji = kanji
1113
+ end
1114
+ end
1115
+
1116
+ class ScriptNames < ::Stripe::RequestParams
1117
+ class Kana < ::Stripe::RequestParams
1118
+ # The person's first or given name.
1119
+ attr_accessor :given_name
1120
+ # The person's last or family name.
1121
+ attr_accessor :surname
1122
+
1123
+ def initialize(given_name: nil, surname: nil)
1124
+ @given_name = given_name
1125
+ @surname = surname
1126
+ end
1127
+ end
1128
+
1129
+ class Kanji < ::Stripe::RequestParams
1130
+ # The person's first or given name.
1131
+ attr_accessor :given_name
1132
+ # The person's last or family name.
1133
+ attr_accessor :surname
1134
+
1135
+ def initialize(given_name: nil, surname: nil)
1136
+ @given_name = given_name
1137
+ @surname = surname
1138
+ end
1139
+ end
1140
+ # Persons name in kana script.
1141
+ attr_accessor :kana
1142
+ # Persons name in kanji script.
1143
+ attr_accessor :kanji
1144
+
1145
+ def initialize(kana: nil, kanji: nil)
1146
+ @kana = kana
1147
+ @kanji = kanji
1148
+ end
1149
+ end
1150
+ # Additional addresses associated with the individual.
1151
+ attr_accessor :additional_addresses
1152
+ # Additional names (e.g. aliases) associated with the individual.
1153
+ attr_accessor :additional_names
1154
+ # The individual's residential address.
1155
+ attr_accessor :address
1156
+ # The individual's date of birth.
1157
+ attr_accessor :date_of_birth
1158
+ # Documents that may be submitted to satisfy various informational requests.
1159
+ attr_accessor :documents
1160
+ # The individual's email address.
1161
+ attr_accessor :email
1162
+ # The individual's first name.
1163
+ attr_accessor :given_name
1164
+ # The identification numbers (e.g., SSN) associated with the individual.
1165
+ attr_accessor :id_numbers
1166
+ # The individual's gender (International regulations require either "male" or "female").
1167
+ attr_accessor :legal_gender
1168
+ # 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.
1169
+ attr_accessor :metadata
1170
+ # 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)).
1171
+ attr_accessor :nationalities
1172
+ # The individual's phone number.
1173
+ attr_accessor :phone
1174
+ # The individual's political exposure.
1175
+ attr_accessor :political_exposure
1176
+ # The relationship that this individual has with the account's identity.
1177
+ attr_accessor :relationship
1178
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
1179
+ attr_accessor :script_addresses
1180
+ # The individuals primary name in non latin script.
1181
+ attr_accessor :script_names
1182
+ # The individual's last name.
1183
+ attr_accessor :surname
1184
+
1185
+ def initialize(
1186
+ additional_addresses: nil,
1187
+ additional_names: nil,
1188
+ address: nil,
1189
+ date_of_birth: nil,
1190
+ documents: nil,
1191
+ email: nil,
1192
+ given_name: nil,
1193
+ id_numbers: nil,
1194
+ legal_gender: nil,
1195
+ metadata: nil,
1196
+ nationalities: nil,
1197
+ phone: nil,
1198
+ political_exposure: nil,
1199
+ relationship: nil,
1200
+ script_addresses: nil,
1201
+ script_names: nil,
1202
+ surname: nil
1203
+ )
1204
+ @additional_addresses = additional_addresses
1205
+ @additional_names = additional_names
1206
+ @address = address
1207
+ @date_of_birth = date_of_birth
1208
+ @documents = documents
1209
+ @email = email
1210
+ @given_name = given_name
1211
+ @id_numbers = id_numbers
1212
+ @legal_gender = legal_gender
1213
+ @metadata = metadata
1214
+ @nationalities = nationalities
1215
+ @phone = phone
1216
+ @political_exposure = political_exposure
1217
+ @relationship = relationship
1218
+ @script_addresses = script_addresses
1219
+ @script_names = script_names
1220
+ @surname = surname
1221
+ end
1222
+ end
1223
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
1224
+ attr_accessor :attestations
1225
+ # Information about the company or business.
1226
+ attr_accessor :business_details
1227
+ # The entity type.
1228
+ attr_accessor :entity_type
1229
+ # Information about the person represented by the account.
1230
+ attr_accessor :individual
1231
+
1232
+ def initialize(
1233
+ attestations: nil,
1234
+ business_details: nil,
1235
+ entity_type: nil,
1236
+ individual: nil
1237
+ )
1238
+ @attestations = attestations
1239
+ @business_details = business_details
1240
+ @entity_type = entity_type
1241
+ @individual = individual
1242
+ end
1243
+ end
1244
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
1245
+ attr_accessor :contact_email
1246
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
1247
+ attr_accessor :display_name
1248
+ # Information about the company, individual, and business represented by the Account.
1249
+ attr_accessor :identity
1250
+
1251
+ def initialize(contact_email: nil, display_name: nil, identity: nil)
1252
+ @contact_email = contact_email
1253
+ @display_name = display_name
1254
+ @identity = identity
1255
+ end
1256
+ end
1257
+ end
1258
+ end
1259
+ end