stripe 17.0.0 → 17.1.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (509) 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 +236 -0
  6. data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
  7. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  21. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  24. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  25. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  60. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  66. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  67. data/lib/stripe/object_types.rb +58 -0
  68. data/lib/stripe/params/account_create_params.rb +300 -1
  69. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  70. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  71. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  72. data/lib/stripe/params/account_session_create_params.rb +226 -1
  73. data/lib/stripe/params/account_update_params.rb +262 -0
  74. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  75. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  76. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  77. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  78. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  79. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  80. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  81. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  82. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  83. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  84. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  85. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  86. data/lib/stripe/params/charge_capture_params.rb +709 -0
  87. data/lib/stripe/params/charge_update_params.rb +709 -0
  88. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  89. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  90. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  91. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  92. data/lib/stripe/params/coupon_create_params.rb +17 -1
  93. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  94. data/lib/stripe/params/customer_session_create_params.rb +4 -1
  95. data/lib/stripe/params/dispute_update_params.rb +10 -1
  96. data/lib/stripe/params/external_account_create_params.rb +134 -0
  97. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  98. data/lib/stripe/params/external_account_list_params.rb +25 -0
  99. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  100. data/lib/stripe/params/external_account_update_params.rb +91 -0
  101. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  102. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  103. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  104. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  105. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  106. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  107. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  108. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  109. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  110. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  111. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  112. data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
  113. data/lib/stripe/params/invoice_create_params.rb +112 -2
  114. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  115. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  116. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  117. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  118. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  119. data/lib/stripe/params/invoice_list_params.rb +4 -0
  120. data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
  121. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  122. data/lib/stripe/params/invoice_update_params.rb +108 -2
  123. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  124. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  125. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  126. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  127. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  128. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  129. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  130. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  131. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  132. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  133. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  134. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  135. data/lib/stripe/params/mandate_list_params.rb +39 -0
  136. data/lib/stripe/params/margin_create_params.rb +25 -0
  137. data/lib/stripe/params/margin_list_params.rb +25 -0
  138. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  139. data/lib/stripe/params/margin_update_params.rb +22 -0
  140. data/lib/stripe/params/order_cancel_params.rb +13 -0
  141. data/lib/stripe/params/order_create_params.rb +1124 -0
  142. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  143. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  144. data/lib/stripe/params/order_list_params.rb +25 -0
  145. data/lib/stripe/params/order_reopen_params.rb +13 -0
  146. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  147. data/lib/stripe/params/order_submit_params.rb +16 -0
  148. data/lib/stripe/params/order_update_params.rb +1128 -0
  149. data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
  150. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  151. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  152. data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
  153. data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
  154. data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
  155. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  156. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
  157. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  158. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  159. data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
  160. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  161. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  162. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  163. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  164. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  165. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  166. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  167. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  168. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  169. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  170. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  171. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  172. data/lib/stripe/params/price_update_params.rb +19 -0
  173. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  174. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  175. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  176. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  177. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  178. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  179. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  180. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  181. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  182. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  183. data/lib/stripe/params/quote_create_params.rb +805 -3
  184. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  185. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  186. data/lib/stripe/params/quote_list_params.rb +8 -0
  187. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  188. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  189. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  190. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  191. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  192. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  193. data/lib/stripe/params/quote_update_params.rb +813 -4
  194. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  195. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  196. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  197. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  198. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  199. data/lib/stripe/params/subscription_create_params.rb +259 -5
  200. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  201. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  202. data/lib/stripe/params/subscription_list_params.rb +4 -0
  203. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  204. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  205. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  206. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  207. data/lib/stripe/params/subscription_update_params.rb +238 -4
  208. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  209. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  210. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  211. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  212. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  213. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  214. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  215. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  216. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  217. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  218. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  219. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  220. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  221. data/lib/stripe/params/transfer_create_params.rb +4 -0
  222. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  223. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  224. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  225. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  226. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  227. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  228. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  229. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  230. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  231. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  233. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  234. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  235. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  236. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  237. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  238. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  239. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  240. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  241. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  242. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  243. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  244. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  245. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  246. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  247. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  248. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  249. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  250. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  251. data/lib/stripe/params/v2/core/account_create_params.rb +2217 -0
  252. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  253. data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
  254. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  255. data/lib/stripe/params/v2/core/account_update_params.rb +2245 -0
  256. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  257. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  258. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  259. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  260. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  261. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  262. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  263. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  264. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  265. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  266. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  267. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  268. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  269. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  270. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  271. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  272. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  273. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  274. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  275. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  276. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  277. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  278. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  279. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  280. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  281. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  283. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  284. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  285. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  286. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  288. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  289. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  290. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  291. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  292. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  293. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  295. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  296. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  297. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  298. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  299. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  300. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  301. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  302. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  303. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  304. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  305. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  306. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  307. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  308. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  309. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  310. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  311. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  312. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  313. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  314. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  315. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  316. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  317. data/lib/stripe/params.rb +169 -0
  318. data/lib/stripe/resources/account.rb +166 -1
  319. data/lib/stripe/resources/account_notice.rb +94 -0
  320. data/lib/stripe/resources/account_session.rb +81 -0
  321. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  322. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  323. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  324. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  325. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  326. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  327. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  328. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  329. data/lib/stripe/resources/card.rb +2 -0
  330. data/lib/stripe/resources/cash_balance.rb +2 -0
  331. data/lib/stripe/resources/charge.rb +234 -1
  332. data/lib/stripe/resources/checkout/session.rb +154 -4
  333. data/lib/stripe/resources/confirmation_token.rb +155 -0
  334. data/lib/stripe/resources/coupon.rb +26 -1
  335. data/lib/stripe/resources/credit_note.rb +2 -0
  336. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  337. data/lib/stripe/resources/customer.rb +2 -0
  338. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  339. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  340. data/lib/stripe/resources/customer_session.rb +2 -0
  341. data/lib/stripe/resources/discount.rb +2 -0
  342. data/lib/stripe/resources/dispute.rb +22 -0
  343. data/lib/stripe/resources/event.rb +64 -1
  344. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  345. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  346. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  347. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  348. data/lib/stripe/resources/fx_quote.rb +147 -0
  349. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  350. data/lib/stripe/resources/invoice.rb +152 -1
  351. data/lib/stripe/resources/invoice_item.rb +4 -0
  352. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  353. data/lib/stripe/resources/invoice_payment.rb +2 -0
  354. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  355. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  356. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  357. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  358. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  359. data/lib/stripe/resources/line_item.rb +68 -1
  360. data/lib/stripe/resources/mandate.rb +71 -0
  361. data/lib/stripe/resources/margin.rb +64 -0
  362. data/lib/stripe/resources/order.rb +987 -0
  363. data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
  364. data/lib/stripe/resources/payment_intent.rb +848 -4
  365. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  366. data/lib/stripe/resources/payment_method.rb +157 -0
  367. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  368. data/lib/stripe/resources/payment_record.rb +2208 -0
  369. data/lib/stripe/resources/price.rb +20 -0
  370. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  371. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  372. data/lib/stripe/resources/promotion_code.rb +2 -0
  373. data/lib/stripe/resources/quote.rb +571 -2
  374. data/lib/stripe/resources/quote_line.rb +521 -0
  375. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  376. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  377. data/lib/stripe/resources/refund.rb +18 -0
  378. data/lib/stripe/resources/setup_attempt.rb +63 -0
  379. data/lib/stripe/resources/setup_intent.rb +132 -1
  380. data/lib/stripe/resources/source.rb +38 -0
  381. data/lib/stripe/resources/subscription.rb +232 -0
  382. data/lib/stripe/resources/subscription_item.rb +20 -1
  383. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  384. data/lib/stripe/resources/tax/association.rb +86 -0
  385. data/lib/stripe/resources/tax/form.rb +264 -0
  386. data/lib/stripe/resources/tax_id.rb +4 -0
  387. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  388. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  389. data/lib/stripe/resources/terminal/reader.rb +8 -0
  390. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  391. data/lib/stripe/resources/transfer.rb +2 -0
  392. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  393. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  394. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  395. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  396. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  397. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  398. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  399. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  400. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  401. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  402. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  403. data/lib/stripe/resources/v2/core/account.rb +3851 -0
  404. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  405. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  406. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  407. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  408. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  409. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  410. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  411. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  412. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  413. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  414. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  415. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  416. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  417. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  418. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  419. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  420. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  421. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  422. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  423. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  424. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  425. data/lib/stripe/resources.rb +116 -0
  426. data/lib/stripe/services/account_notice_service.rb +39 -0
  427. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  428. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  429. data/lib/stripe/services/billing_service.rb +2 -1
  430. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  431. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  432. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  433. data/lib/stripe/services/capital_service.rb +15 -0
  434. data/lib/stripe/services/external_account_service.rb +68 -0
  435. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  436. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  437. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  438. data/lib/stripe/services/financial_connections_service.rb +2 -1
  439. data/lib/stripe/services/fx_quote_service.rb +27 -0
  440. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  441. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  442. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  443. data/lib/stripe/services/issuing_service.rb +5 -1
  444. data/lib/stripe/services/mandate_service.rb +5 -0
  445. data/lib/stripe/services/margin_service.rb +50 -0
  446. data/lib/stripe/services/order_line_item_service.rb +17 -0
  447. data/lib/stripe/services/order_service.rb +78 -0
  448. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  449. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  450. data/lib/stripe/services/payment_intent_service.rb +44 -0
  451. data/lib/stripe/services/payment_record_service.rb +89 -0
  452. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  453. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  454. data/lib/stripe/services/privacy_service.rb +13 -0
  455. data/lib/stripe/services/quote_line_service.rb +17 -0
  456. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  457. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  458. data/lib/stripe/services/quote_service.rb +49 -1
  459. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  460. data/lib/stripe/services/subscription_service.rb +11 -0
  461. data/lib/stripe/services/tax/association_service.rb +19 -0
  462. data/lib/stripe/services/tax/form_service.rb +37 -0
  463. data/lib/stripe/services/tax_service.rb +3 -1
  464. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  465. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  466. data/lib/stripe/services/terminal_service.rb +3 -1
  467. data/lib/stripe/services/v1_services.rb +10 -1
  468. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  469. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  470. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  471. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  472. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  473. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  474. data/lib/stripe/services/v2/billing_service.rb +5 -1
  475. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  476. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  477. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  478. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
  479. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
  480. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  481. data/lib/stripe/services/v2/core_service.rb +4 -1
  482. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  483. data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
  484. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  485. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  486. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  487. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  488. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  489. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  490. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  491. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  492. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  493. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  494. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  495. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  496. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  497. data/lib/stripe/services/v2/payment_service.rb +15 -0
  498. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  499. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  500. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  501. data/lib/stripe/services/v2_services.rb +4 -1
  502. data/lib/stripe/services.rb +61 -0
  503. data/lib/stripe/stripe_configuration.rb +3 -1
  504. data/lib/stripe/stripe_object.rb +1 -1
  505. data/lib/stripe/util.rb +7 -1
  506. data/lib/stripe/version.rb +1 -1
  507. data/lib/stripe.rb +53 -0
  508. data/rbi/stripe.rbi +155102 -90522
  509. metadata +349 -3
@@ -0,0 +1,2245 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountUpdateParams < Stripe::RequestParams
8
+ class Configuration < Stripe::RequestParams
9
+ class Customer < Stripe::RequestParams
10
+ class AutomaticIndirectTax < Stripe::RequestParams
11
+ # 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”.
12
+ attr_accessor :exempt
13
+ # A recent IP address of the customer used for tax reporting and tax location inference.
14
+ attr_accessor :ip_address
15
+ # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
16
+ attr_accessor :location_source
17
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
18
+ attr_accessor :validate_location
19
+
20
+ def initialize(
21
+ exempt: nil,
22
+ ip_address: nil,
23
+ location_source: nil,
24
+ validate_location: nil
25
+ )
26
+ @exempt = exempt
27
+ @ip_address = ip_address
28
+ @location_source = location_source
29
+ @validate_location = validate_location
30
+ end
31
+ end
32
+
33
+ class Billing < Stripe::RequestParams
34
+ class Invoice < Stripe::RequestParams
35
+ class CustomField < Stripe::RequestParams
36
+ # The name of the custom field. This may be up to 40 characters.
37
+ attr_accessor :name
38
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
39
+ attr_accessor :value
40
+
41
+ def initialize(name: nil, value: nil)
42
+ @name = name
43
+ @value = value
44
+ end
45
+ end
46
+
47
+ class Rendering < Stripe::RequestParams
48
+ # 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.
49
+ attr_accessor :amount_tax_display
50
+ # ID of the invoice rendering template to use for future invoices.
51
+ attr_accessor :template
52
+
53
+ def initialize(amount_tax_display: nil, template: nil)
54
+ @amount_tax_display = amount_tax_display
55
+ @template = template
56
+ end
57
+ end
58
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
59
+ attr_accessor :custom_fields
60
+ # Default footer to be displayed on invoices for this customer.
61
+ attr_accessor :footer
62
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
63
+ attr_accessor :next_sequence
64
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
65
+ attr_accessor :prefix
66
+ # Default options for invoice PDF rendering for this customer.
67
+ attr_accessor :rendering
68
+
69
+ def initialize(
70
+ custom_fields: nil,
71
+ footer: nil,
72
+ next_sequence: nil,
73
+ prefix: nil,
74
+ rendering: nil
75
+ )
76
+ @custom_fields = custom_fields
77
+ @footer = footer
78
+ @next_sequence = next_sequence
79
+ @prefix = prefix
80
+ @rendering = rendering
81
+ end
82
+ end
83
+ # ID of a payment method that’s attached to the customer, to be used as the customer’s default payment method for invoices and subscriptions.
84
+ attr_accessor :default_payment_method
85
+ # Default settings used on invoices for this customer.
86
+ attr_accessor :invoice
87
+
88
+ def initialize(default_payment_method: nil, invoice: nil)
89
+ @default_payment_method = default_payment_method
90
+ @invoice = invoice
91
+ end
92
+ end
93
+
94
+ class Capabilities < Stripe::RequestParams
95
+ class AutomaticIndirectTax < Stripe::RequestParams
96
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
97
+ attr_accessor :requested
98
+
99
+ def initialize(requested: nil)
100
+ @requested = requested
101
+ end
102
+ end
103
+ # 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.
104
+ attr_accessor :automatic_indirect_tax
105
+
106
+ def initialize(automatic_indirect_tax: nil)
107
+ @automatic_indirect_tax = automatic_indirect_tax
108
+ end
109
+ end
110
+
111
+ class Shipping < Stripe::RequestParams
112
+ class Address < Stripe::RequestParams
113
+ # City, district, suburb, town, or village.
114
+ attr_accessor :city
115
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
116
+ attr_accessor :country
117
+ # Address line 1 (e.g., street, PO Box, or company name).
118
+ attr_accessor :line1
119
+ # Address line 2 (e.g., apartment, suite, unit, or building).
120
+ attr_accessor :line2
121
+ # ZIP or postal code.
122
+ attr_accessor :postal_code
123
+ # State, county, province, or region.
124
+ attr_accessor :state
125
+
126
+ def initialize(
127
+ city: nil,
128
+ country: nil,
129
+ line1: nil,
130
+ line2: nil,
131
+ postal_code: nil,
132
+ state: nil
133
+ )
134
+ @city = city
135
+ @country = country
136
+ @line1 = line1
137
+ @line2 = line2
138
+ @postal_code = postal_code
139
+ @state = state
140
+ end
141
+ end
142
+ # Customer shipping address.
143
+ attr_accessor :address
144
+ # Customer name.
145
+ attr_accessor :name
146
+ # Customer phone (including extension).
147
+ attr_accessor :phone
148
+
149
+ def initialize(address: nil, name: nil, phone: nil)
150
+ @address = address
151
+ @name = name
152
+ @phone = phone
153
+ end
154
+ end
155
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
156
+ attr_accessor :applied
157
+ # 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.
158
+ attr_accessor :automatic_indirect_tax
159
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
160
+ attr_accessor :billing
161
+ # Capabilities that have been requested on the Customer Configuration.
162
+ attr_accessor :capabilities
163
+ # The customer's shipping information. Appears on invoices emailed to this customer.
164
+ attr_accessor :shipping
165
+ # 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.
166
+ attr_accessor :test_clock
167
+
168
+ def initialize(
169
+ applied: nil,
170
+ automatic_indirect_tax: nil,
171
+ billing: nil,
172
+ capabilities: nil,
173
+ shipping: nil,
174
+ test_clock: nil
175
+ )
176
+ @applied = applied
177
+ @automatic_indirect_tax = automatic_indirect_tax
178
+ @billing = billing
179
+ @capabilities = capabilities
180
+ @shipping = shipping
181
+ @test_clock = test_clock
182
+ end
183
+ end
184
+
185
+ class Merchant < Stripe::RequestParams
186
+ class BacsDebitPayments < Stripe::RequestParams
187
+ # Display name for Bacs debit payments.
188
+ attr_accessor :display_name
189
+
190
+ def initialize(display_name: nil)
191
+ @display_name = display_name
192
+ end
193
+ end
194
+
195
+ class Branding < Stripe::RequestParams
196
+ # 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.
197
+ attr_accessor :icon
198
+ # 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.
199
+ attr_accessor :logo
200
+ # A CSS hex color value representing the primary branding color for the merchant.
201
+ attr_accessor :primary_color
202
+ # A CSS hex color value representing the secondary branding color for the merchant.
203
+ attr_accessor :secondary_color
204
+
205
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
206
+ @icon = icon
207
+ @logo = logo
208
+ @primary_color = primary_color
209
+ @secondary_color = secondary_color
210
+ end
211
+ end
212
+
213
+ class Capabilities < Stripe::RequestParams
214
+ class AchDebitPayments < Stripe::RequestParams
215
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
216
+ attr_accessor :requested
217
+
218
+ def initialize(requested: nil)
219
+ @requested = requested
220
+ end
221
+ end
222
+
223
+ class AcssDebitPayments < Stripe::RequestParams
224
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
225
+ attr_accessor :requested
226
+
227
+ def initialize(requested: nil)
228
+ @requested = requested
229
+ end
230
+ end
231
+
232
+ class AffirmPayments < Stripe::RequestParams
233
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
234
+ attr_accessor :requested
235
+
236
+ def initialize(requested: nil)
237
+ @requested = requested
238
+ end
239
+ end
240
+
241
+ class AfterpayClearpayPayments < Stripe::RequestParams
242
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
243
+ attr_accessor :requested
244
+
245
+ def initialize(requested: nil)
246
+ @requested = requested
247
+ end
248
+ end
249
+
250
+ class AlmaPayments < Stripe::RequestParams
251
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
252
+ attr_accessor :requested
253
+
254
+ def initialize(requested: nil)
255
+ @requested = requested
256
+ end
257
+ end
258
+
259
+ class AmazonPayPayments < Stripe::RequestParams
260
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
261
+ attr_accessor :requested
262
+
263
+ def initialize(requested: nil)
264
+ @requested = requested
265
+ end
266
+ end
267
+
268
+ class AuBecsDebitPayments < Stripe::RequestParams
269
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
270
+ attr_accessor :requested
271
+
272
+ def initialize(requested: nil)
273
+ @requested = requested
274
+ end
275
+ end
276
+
277
+ class BacsDebitPayments < Stripe::RequestParams
278
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
279
+ attr_accessor :requested
280
+
281
+ def initialize(requested: nil)
282
+ @requested = requested
283
+ end
284
+ end
285
+
286
+ class BancontactPayments < Stripe::RequestParams
287
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
288
+ attr_accessor :requested
289
+
290
+ def initialize(requested: nil)
291
+ @requested = requested
292
+ end
293
+ end
294
+
295
+ class BlikPayments < Stripe::RequestParams
296
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
297
+ attr_accessor :requested
298
+
299
+ def initialize(requested: nil)
300
+ @requested = requested
301
+ end
302
+ end
303
+
304
+ class BoletoPayments < Stripe::RequestParams
305
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
306
+ attr_accessor :requested
307
+
308
+ def initialize(requested: nil)
309
+ @requested = requested
310
+ end
311
+ end
312
+
313
+ class CardPayments < Stripe::RequestParams
314
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
315
+ attr_accessor :requested
316
+
317
+ def initialize(requested: nil)
318
+ @requested = requested
319
+ end
320
+ end
321
+
322
+ class CartesBancairesPayments < Stripe::RequestParams
323
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
324
+ attr_accessor :requested
325
+
326
+ def initialize(requested: nil)
327
+ @requested = requested
328
+ end
329
+ end
330
+
331
+ class CashappPayments < Stripe::RequestParams
332
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
333
+ attr_accessor :requested
334
+
335
+ def initialize(requested: nil)
336
+ @requested = requested
337
+ end
338
+ end
339
+
340
+ class EpsPayments < Stripe::RequestParams
341
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
342
+ attr_accessor :requested
343
+
344
+ def initialize(requested: nil)
345
+ @requested = requested
346
+ end
347
+ end
348
+
349
+ class FpxPayments < Stripe::RequestParams
350
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
351
+ attr_accessor :requested
352
+
353
+ def initialize(requested: nil)
354
+ @requested = requested
355
+ end
356
+ end
357
+
358
+ class GbBankTransferPayments < Stripe::RequestParams
359
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
360
+ attr_accessor :requested
361
+
362
+ def initialize(requested: nil)
363
+ @requested = requested
364
+ end
365
+ end
366
+
367
+ class GrabpayPayments < Stripe::RequestParams
368
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
369
+ attr_accessor :requested
370
+
371
+ def initialize(requested: nil)
372
+ @requested = requested
373
+ end
374
+ end
375
+
376
+ class IdealPayments < Stripe::RequestParams
377
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
378
+ attr_accessor :requested
379
+
380
+ def initialize(requested: nil)
381
+ @requested = requested
382
+ end
383
+ end
384
+
385
+ class JcbPayments < Stripe::RequestParams
386
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
387
+ attr_accessor :requested
388
+
389
+ def initialize(requested: nil)
390
+ @requested = requested
391
+ end
392
+ end
393
+
394
+ class JpBankTransferPayments < Stripe::RequestParams
395
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
396
+ attr_accessor :requested
397
+
398
+ def initialize(requested: nil)
399
+ @requested = requested
400
+ end
401
+ end
402
+
403
+ class KakaoPayPayments < Stripe::RequestParams
404
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
405
+ attr_accessor :requested
406
+
407
+ def initialize(requested: nil)
408
+ @requested = requested
409
+ end
410
+ end
411
+
412
+ class KlarnaPayments < Stripe::RequestParams
413
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
414
+ attr_accessor :requested
415
+
416
+ def initialize(requested: nil)
417
+ @requested = requested
418
+ end
419
+ end
420
+
421
+ class KonbiniPayments < Stripe::RequestParams
422
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
423
+ attr_accessor :requested
424
+
425
+ def initialize(requested: nil)
426
+ @requested = requested
427
+ end
428
+ end
429
+
430
+ class KrCardPayments < Stripe::RequestParams
431
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
432
+ attr_accessor :requested
433
+
434
+ def initialize(requested: nil)
435
+ @requested = requested
436
+ end
437
+ end
438
+
439
+ class LinkPayments < Stripe::RequestParams
440
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
441
+ attr_accessor :requested
442
+
443
+ def initialize(requested: nil)
444
+ @requested = requested
445
+ end
446
+ end
447
+
448
+ class MobilepayPayments < Stripe::RequestParams
449
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
450
+ attr_accessor :requested
451
+
452
+ def initialize(requested: nil)
453
+ @requested = requested
454
+ end
455
+ end
456
+
457
+ class MultibancoPayments < Stripe::RequestParams
458
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
459
+ attr_accessor :requested
460
+
461
+ def initialize(requested: nil)
462
+ @requested = requested
463
+ end
464
+ end
465
+
466
+ class MxBankTransferPayments < Stripe::RequestParams
467
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
468
+ attr_accessor :requested
469
+
470
+ def initialize(requested: nil)
471
+ @requested = requested
472
+ end
473
+ end
474
+
475
+ class NaverPayPayments < Stripe::RequestParams
476
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
477
+ attr_accessor :requested
478
+
479
+ def initialize(requested: nil)
480
+ @requested = requested
481
+ end
482
+ end
483
+
484
+ class OxxoPayments < Stripe::RequestParams
485
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
486
+ attr_accessor :requested
487
+
488
+ def initialize(requested: nil)
489
+ @requested = requested
490
+ end
491
+ end
492
+
493
+ class P24Payments < Stripe::RequestParams
494
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
495
+ attr_accessor :requested
496
+
497
+ def initialize(requested: nil)
498
+ @requested = requested
499
+ end
500
+ end
501
+
502
+ class PayByBankPayments < Stripe::RequestParams
503
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
504
+ attr_accessor :requested
505
+
506
+ def initialize(requested: nil)
507
+ @requested = requested
508
+ end
509
+ end
510
+
511
+ class PaycoPayments < Stripe::RequestParams
512
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
513
+ attr_accessor :requested
514
+
515
+ def initialize(requested: nil)
516
+ @requested = requested
517
+ end
518
+ end
519
+
520
+ class PaynowPayments < Stripe::RequestParams
521
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
522
+ attr_accessor :requested
523
+
524
+ def initialize(requested: nil)
525
+ @requested = requested
526
+ end
527
+ end
528
+
529
+ class PromptpayPayments < Stripe::RequestParams
530
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
531
+ attr_accessor :requested
532
+
533
+ def initialize(requested: nil)
534
+ @requested = requested
535
+ end
536
+ end
537
+
538
+ class RevolutPayPayments < Stripe::RequestParams
539
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
540
+ attr_accessor :requested
541
+
542
+ def initialize(requested: nil)
543
+ @requested = requested
544
+ end
545
+ end
546
+
547
+ class SamsungPayPayments < Stripe::RequestParams
548
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
549
+ attr_accessor :requested
550
+
551
+ def initialize(requested: nil)
552
+ @requested = requested
553
+ end
554
+ end
555
+
556
+ class SepaBankTransferPayments < Stripe::RequestParams
557
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
558
+ attr_accessor :requested
559
+
560
+ def initialize(requested: nil)
561
+ @requested = requested
562
+ end
563
+ end
564
+
565
+ class SepaDebitPayments < Stripe::RequestParams
566
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
567
+ attr_accessor :requested
568
+
569
+ def initialize(requested: nil)
570
+ @requested = requested
571
+ end
572
+ end
573
+
574
+ class SwishPayments < Stripe::RequestParams
575
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
576
+ attr_accessor :requested
577
+
578
+ def initialize(requested: nil)
579
+ @requested = requested
580
+ end
581
+ end
582
+
583
+ class TwintPayments < Stripe::RequestParams
584
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
585
+ attr_accessor :requested
586
+
587
+ def initialize(requested: nil)
588
+ @requested = requested
589
+ end
590
+ end
591
+
592
+ class UsBankTransferPayments < Stripe::RequestParams
593
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
594
+ attr_accessor :requested
595
+
596
+ def initialize(requested: nil)
597
+ @requested = requested
598
+ end
599
+ end
600
+
601
+ class ZipPayments < Stripe::RequestParams
602
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
603
+ attr_accessor :requested
604
+
605
+ def initialize(requested: nil)
606
+ @requested = requested
607
+ end
608
+ end
609
+ # Allow the merchant to process ACH debit payments.
610
+ attr_accessor :ach_debit_payments
611
+ # Allow the merchant to process ACSS debit payments.
612
+ attr_accessor :acss_debit_payments
613
+ # Allow the merchant to process Affirm payments.
614
+ attr_accessor :affirm_payments
615
+ # Allow the merchant to process Afterpay/Clearpay payments.
616
+ attr_accessor :afterpay_clearpay_payments
617
+ # Allow the merchant to process Alma payments.
618
+ attr_accessor :alma_payments
619
+ # Allow the merchant to process Amazon Pay payments.
620
+ attr_accessor :amazon_pay_payments
621
+ # Allow the merchant to process Australian BECS Direct Debit payments.
622
+ attr_accessor :au_becs_debit_payments
623
+ # Allow the merchant to process BACS Direct Debit payments.
624
+ attr_accessor :bacs_debit_payments
625
+ # Allow the merchant to process Bancontact payments.
626
+ attr_accessor :bancontact_payments
627
+ # Allow the merchant to process BLIK payments.
628
+ attr_accessor :blik_payments
629
+ # Allow the merchant to process Boleto payments.
630
+ attr_accessor :boleto_payments
631
+ # Allow the merchant to collect card payments.
632
+ attr_accessor :card_payments
633
+ # Allow the merchant to process Cartes Bancaires payments.
634
+ attr_accessor :cartes_bancaires_payments
635
+ # Allow the merchant to process Cash App payments.
636
+ attr_accessor :cashapp_payments
637
+ # Allow the merchant to process EPS payments.
638
+ attr_accessor :eps_payments
639
+ # Allow the merchant to process FPX payments.
640
+ attr_accessor :fpx_payments
641
+ # Allow the merchant to process UK bank transfer payments.
642
+ attr_accessor :gb_bank_transfer_payments
643
+ # Allow the merchant to process GrabPay payments.
644
+ attr_accessor :grabpay_payments
645
+ # Allow the merchant to process iDEAL payments.
646
+ attr_accessor :ideal_payments
647
+ # Allow the merchant to process JCB card payments.
648
+ attr_accessor :jcb_payments
649
+ # Allow the merchant to process Japanese bank transfer payments.
650
+ attr_accessor :jp_bank_transfer_payments
651
+ # Allow the merchant to process Kakao Pay payments.
652
+ attr_accessor :kakao_pay_payments
653
+ # Allow the merchant to process Klarna payments.
654
+ attr_accessor :klarna_payments
655
+ # Allow the merchant to process Konbini convenience store payments.
656
+ attr_accessor :konbini_payments
657
+ # Allow the merchant to process Korean card payments.
658
+ attr_accessor :kr_card_payments
659
+ # Allow the merchant to process Link payments.
660
+ attr_accessor :link_payments
661
+ # Allow the merchant to process MobilePay payments.
662
+ attr_accessor :mobilepay_payments
663
+ # Allow the merchant to process Multibanco payments.
664
+ attr_accessor :multibanco_payments
665
+ # Allow the merchant to process Mexican bank transfer payments.
666
+ attr_accessor :mx_bank_transfer_payments
667
+ # Allow the merchant to process Naver Pay payments.
668
+ attr_accessor :naver_pay_payments
669
+ # Allow the merchant to process OXXO payments.
670
+ attr_accessor :oxxo_payments
671
+ # Allow the merchant to process Przelewy24 (P24) payments.
672
+ attr_accessor :p24_payments
673
+ # Allow the merchant to process Pay by Bank payments.
674
+ attr_accessor :pay_by_bank_payments
675
+ # Allow the merchant to process PAYCO payments.
676
+ attr_accessor :payco_payments
677
+ # Allow the merchant to process PayNow payments.
678
+ attr_accessor :paynow_payments
679
+ # Allow the merchant to process PromptPay payments.
680
+ attr_accessor :promptpay_payments
681
+ # Allow the merchant to process Revolut Pay payments.
682
+ attr_accessor :revolut_pay_payments
683
+ # Allow the merchant to process Samsung Pay payments.
684
+ attr_accessor :samsung_pay_payments
685
+ # Allow the merchant to process SEPA bank transfer payments.
686
+ attr_accessor :sepa_bank_transfer_payments
687
+ # Allow the merchant to process SEPA Direct Debit payments.
688
+ attr_accessor :sepa_debit_payments
689
+ # Allow the merchant to process Swish payments.
690
+ attr_accessor :swish_payments
691
+ # Allow the merchant to process TWINT payments.
692
+ attr_accessor :twint_payments
693
+ # Allow the merchant to process US bank transfer payments.
694
+ attr_accessor :us_bank_transfer_payments
695
+ # Allow the merchant to process Zip payments.
696
+ attr_accessor :zip_payments
697
+
698
+ def initialize(
699
+ ach_debit_payments: nil,
700
+ acss_debit_payments: nil,
701
+ affirm_payments: nil,
702
+ afterpay_clearpay_payments: nil,
703
+ alma_payments: nil,
704
+ amazon_pay_payments: nil,
705
+ au_becs_debit_payments: nil,
706
+ bacs_debit_payments: nil,
707
+ bancontact_payments: nil,
708
+ blik_payments: nil,
709
+ boleto_payments: nil,
710
+ card_payments: nil,
711
+ cartes_bancaires_payments: nil,
712
+ cashapp_payments: nil,
713
+ eps_payments: nil,
714
+ fpx_payments: nil,
715
+ gb_bank_transfer_payments: nil,
716
+ grabpay_payments: nil,
717
+ ideal_payments: nil,
718
+ jcb_payments: nil,
719
+ jp_bank_transfer_payments: nil,
720
+ kakao_pay_payments: nil,
721
+ klarna_payments: nil,
722
+ konbini_payments: nil,
723
+ kr_card_payments: nil,
724
+ link_payments: nil,
725
+ mobilepay_payments: nil,
726
+ multibanco_payments: nil,
727
+ mx_bank_transfer_payments: nil,
728
+ naver_pay_payments: nil,
729
+ oxxo_payments: nil,
730
+ p24_payments: nil,
731
+ pay_by_bank_payments: nil,
732
+ payco_payments: nil,
733
+ paynow_payments: nil,
734
+ promptpay_payments: nil,
735
+ revolut_pay_payments: nil,
736
+ samsung_pay_payments: nil,
737
+ sepa_bank_transfer_payments: nil,
738
+ sepa_debit_payments: nil,
739
+ swish_payments: nil,
740
+ twint_payments: nil,
741
+ us_bank_transfer_payments: nil,
742
+ zip_payments: nil
743
+ )
744
+ @ach_debit_payments = ach_debit_payments
745
+ @acss_debit_payments = acss_debit_payments
746
+ @affirm_payments = affirm_payments
747
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
748
+ @alma_payments = alma_payments
749
+ @amazon_pay_payments = amazon_pay_payments
750
+ @au_becs_debit_payments = au_becs_debit_payments
751
+ @bacs_debit_payments = bacs_debit_payments
752
+ @bancontact_payments = bancontact_payments
753
+ @blik_payments = blik_payments
754
+ @boleto_payments = boleto_payments
755
+ @card_payments = card_payments
756
+ @cartes_bancaires_payments = cartes_bancaires_payments
757
+ @cashapp_payments = cashapp_payments
758
+ @eps_payments = eps_payments
759
+ @fpx_payments = fpx_payments
760
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
761
+ @grabpay_payments = grabpay_payments
762
+ @ideal_payments = ideal_payments
763
+ @jcb_payments = jcb_payments
764
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
765
+ @kakao_pay_payments = kakao_pay_payments
766
+ @klarna_payments = klarna_payments
767
+ @konbini_payments = konbini_payments
768
+ @kr_card_payments = kr_card_payments
769
+ @link_payments = link_payments
770
+ @mobilepay_payments = mobilepay_payments
771
+ @multibanco_payments = multibanco_payments
772
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
773
+ @naver_pay_payments = naver_pay_payments
774
+ @oxxo_payments = oxxo_payments
775
+ @p24_payments = p24_payments
776
+ @pay_by_bank_payments = pay_by_bank_payments
777
+ @payco_payments = payco_payments
778
+ @paynow_payments = paynow_payments
779
+ @promptpay_payments = promptpay_payments
780
+ @revolut_pay_payments = revolut_pay_payments
781
+ @samsung_pay_payments = samsung_pay_payments
782
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
783
+ @sepa_debit_payments = sepa_debit_payments
784
+ @swish_payments = swish_payments
785
+ @twint_payments = twint_payments
786
+ @us_bank_transfer_payments = us_bank_transfer_payments
787
+ @zip_payments = zip_payments
788
+ end
789
+ end
790
+
791
+ class CardPayments < Stripe::RequestParams
792
+ class DeclineOn < Stripe::RequestParams
793
+ # 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.
794
+ attr_accessor :avs_failure
795
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
796
+ attr_accessor :cvc_failure
797
+
798
+ def initialize(avs_failure: nil, cvc_failure: nil)
799
+ @avs_failure = avs_failure
800
+ @cvc_failure = cvc_failure
801
+ end
802
+ end
803
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
804
+ attr_accessor :decline_on
805
+
806
+ def initialize(decline_on: nil)
807
+ @decline_on = decline_on
808
+ end
809
+ end
810
+
811
+ class StatementDescriptor < Stripe::RequestParams
812
+ # 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.
813
+ attr_accessor :descriptor
814
+ # 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.
815
+ attr_accessor :prefix
816
+
817
+ def initialize(descriptor: nil, prefix: nil)
818
+ @descriptor = descriptor
819
+ @prefix = prefix
820
+ end
821
+ end
822
+
823
+ class Support < Stripe::RequestParams
824
+ class Address < Stripe::RequestParams
825
+ # City, district, suburb, town, or village.
826
+ attr_accessor :city
827
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
828
+ attr_accessor :country
829
+ # Address line 1 (e.g., street, PO Box, or company name).
830
+ attr_accessor :line1
831
+ # Address line 2 (e.g., apartment, suite, unit, or building).
832
+ attr_accessor :line2
833
+ # ZIP or postal code.
834
+ attr_accessor :postal_code
835
+ # State, county, province, or region.
836
+ attr_accessor :state
837
+ # Town or cho-me.
838
+ attr_accessor :town
839
+
840
+ def initialize(
841
+ city: nil,
842
+ country: nil,
843
+ line1: nil,
844
+ line2: nil,
845
+ postal_code: nil,
846
+ state: nil,
847
+ town: nil
848
+ )
849
+ @city = city
850
+ @country = country
851
+ @line1 = line1
852
+ @line2 = line2
853
+ @postal_code = postal_code
854
+ @state = state
855
+ @town = town
856
+ end
857
+ end
858
+ # A publicly available mailing address for sending support issues to.
859
+ attr_accessor :address
860
+ # A publicly available email address for sending support issues to.
861
+ attr_accessor :email
862
+ # A publicly available phone number to call with support issues.
863
+ attr_accessor :phone
864
+ # A publicly available website for handling support issues.
865
+ attr_accessor :url
866
+
867
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
868
+ @address = address
869
+ @email = email
870
+ @phone = phone
871
+ @url = url
872
+ end
873
+ end
874
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
875
+ attr_accessor :applied
876
+ # Settings used for Bacs debit payments.
877
+ attr_accessor :bacs_debit_payments
878
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
879
+ attr_accessor :branding
880
+ # Capabilities to request on the Merchant Configuration.
881
+ attr_accessor :capabilities
882
+ # Card payments settings.
883
+ attr_accessor :card_payments
884
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
885
+ attr_accessor :mcc
886
+ # Statement descriptor.
887
+ attr_accessor :statement_descriptor
888
+ # Publicly available contact information for sending support issues to.
889
+ attr_accessor :support
890
+
891
+ def initialize(
892
+ applied: nil,
893
+ bacs_debit_payments: nil,
894
+ branding: nil,
895
+ capabilities: nil,
896
+ card_payments: nil,
897
+ mcc: nil,
898
+ statement_descriptor: nil,
899
+ support: nil
900
+ )
901
+ @applied = applied
902
+ @bacs_debit_payments = bacs_debit_payments
903
+ @branding = branding
904
+ @capabilities = capabilities
905
+ @card_payments = card_payments
906
+ @mcc = mcc
907
+ @statement_descriptor = statement_descriptor
908
+ @support = support
909
+ end
910
+ end
911
+
912
+ class Recipient < Stripe::RequestParams
913
+ class Capabilities < Stripe::RequestParams
914
+ class BankAccounts < Stripe::RequestParams
915
+ class Local < Stripe::RequestParams
916
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
917
+ attr_accessor :requested
918
+
919
+ def initialize(requested: nil)
920
+ @requested = requested
921
+ end
922
+ end
923
+
924
+ class Wire < Stripe::RequestParams
925
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
926
+ attr_accessor :requested
927
+
928
+ def initialize(requested: nil)
929
+ @requested = requested
930
+ end
931
+ end
932
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
933
+ attr_accessor :local
934
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
935
+ attr_accessor :wire
936
+
937
+ def initialize(local: nil, wire: nil)
938
+ @local = local
939
+ @wire = wire
940
+ end
941
+ end
942
+
943
+ class Cards < Stripe::RequestParams
944
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
945
+ attr_accessor :requested
946
+
947
+ def initialize(requested: nil)
948
+ @requested = requested
949
+ end
950
+ end
951
+
952
+ class StripeBalance < Stripe::RequestParams
953
+ class StripeTransfers < Stripe::RequestParams
954
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
955
+ attr_accessor :requested
956
+
957
+ def initialize(requested: nil)
958
+ @requested = requested
959
+ end
960
+ end
961
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
962
+ attr_accessor :stripe_transfers
963
+
964
+ def initialize(stripe_transfers: nil)
965
+ @stripe_transfers = stripe_transfers
966
+ end
967
+ end
968
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
969
+ attr_accessor :bank_accounts
970
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
971
+ attr_accessor :cards
972
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
973
+ attr_accessor :stripe_balance
974
+
975
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
976
+ @bank_accounts = bank_accounts
977
+ @cards = cards
978
+ @stripe_balance = stripe_balance
979
+ end
980
+ end
981
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
982
+ attr_accessor :applied
983
+ # Capabilities to request on the Recipient Configuration.
984
+ attr_accessor :capabilities
985
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
986
+ attr_accessor :default_outbound_destination
987
+
988
+ def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
989
+ @applied = applied
990
+ @capabilities = capabilities
991
+ @default_outbound_destination = default_outbound_destination
992
+ end
993
+ end
994
+
995
+ class Storer < Stripe::RequestParams
996
+ class Capabilities < Stripe::RequestParams
997
+ class FinancialAddresses < Stripe::RequestParams
998
+ class BankAccounts < Stripe::RequestParams
999
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1000
+ attr_accessor :requested
1001
+
1002
+ def initialize(requested: nil)
1003
+ @requested = requested
1004
+ end
1005
+ end
1006
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1007
+ attr_accessor :bank_accounts
1008
+
1009
+ def initialize(bank_accounts: nil)
1010
+ @bank_accounts = bank_accounts
1011
+ end
1012
+ end
1013
+
1014
+ class HoldsCurrencies < Stripe::RequestParams
1015
+ class Gbp < Stripe::RequestParams
1016
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1017
+ attr_accessor :requested
1018
+
1019
+ def initialize(requested: nil)
1020
+ @requested = requested
1021
+ end
1022
+ end
1023
+ # Can hold storage-type funds on Stripe in GBP.
1024
+ attr_accessor :gbp
1025
+
1026
+ def initialize(gbp: nil)
1027
+ @gbp = gbp
1028
+ end
1029
+ end
1030
+
1031
+ class InboundTransfers < Stripe::RequestParams
1032
+ class BankAccounts < Stripe::RequestParams
1033
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1034
+ attr_accessor :requested
1035
+
1036
+ def initialize(requested: nil)
1037
+ @requested = requested
1038
+ end
1039
+ end
1040
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1041
+ attr_accessor :bank_accounts
1042
+
1043
+ def initialize(bank_accounts: nil)
1044
+ @bank_accounts = bank_accounts
1045
+ end
1046
+ end
1047
+
1048
+ class OutboundPayments < Stripe::RequestParams
1049
+ class BankAccounts < Stripe::RequestParams
1050
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1051
+ attr_accessor :requested
1052
+
1053
+ def initialize(requested: nil)
1054
+ @requested = requested
1055
+ end
1056
+ end
1057
+
1058
+ class Cards < Stripe::RequestParams
1059
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1060
+ attr_accessor :requested
1061
+
1062
+ def initialize(requested: nil)
1063
+ @requested = requested
1064
+ end
1065
+ end
1066
+
1067
+ class FinancialAccounts < Stripe::RequestParams
1068
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1069
+ attr_accessor :requested
1070
+
1071
+ def initialize(requested: nil)
1072
+ @requested = requested
1073
+ end
1074
+ end
1075
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1076
+ attr_accessor :bank_accounts
1077
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1078
+ attr_accessor :cards
1079
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1080
+ attr_accessor :financial_accounts
1081
+
1082
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1083
+ @bank_accounts = bank_accounts
1084
+ @cards = cards
1085
+ @financial_accounts = financial_accounts
1086
+ end
1087
+ end
1088
+
1089
+ class OutboundTransfers < Stripe::RequestParams
1090
+ class BankAccounts < Stripe::RequestParams
1091
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1092
+ attr_accessor :requested
1093
+
1094
+ def initialize(requested: nil)
1095
+ @requested = requested
1096
+ end
1097
+ end
1098
+
1099
+ class FinancialAccounts < Stripe::RequestParams
1100
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1101
+ attr_accessor :requested
1102
+
1103
+ def initialize(requested: nil)
1104
+ @requested = requested
1105
+ end
1106
+ end
1107
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1108
+ attr_accessor :bank_accounts
1109
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1110
+ attr_accessor :financial_accounts
1111
+
1112
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1113
+ @bank_accounts = bank_accounts
1114
+ @financial_accounts = financial_accounts
1115
+ end
1116
+ end
1117
+ # Can provision a financial address to credit/debit a FinancialAccount.
1118
+ attr_accessor :financial_addresses
1119
+ # Can hold storage-type funds on Stripe.
1120
+ attr_accessor :holds_currencies
1121
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1122
+ attr_accessor :inbound_transfers
1123
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1124
+ attr_accessor :outbound_payments
1125
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1126
+ attr_accessor :outbound_transfers
1127
+
1128
+ def initialize(
1129
+ financial_addresses: nil,
1130
+ holds_currencies: nil,
1131
+ inbound_transfers: nil,
1132
+ outbound_payments: nil,
1133
+ outbound_transfers: nil
1134
+ )
1135
+ @financial_addresses = financial_addresses
1136
+ @holds_currencies = holds_currencies
1137
+ @inbound_transfers = inbound_transfers
1138
+ @outbound_payments = outbound_payments
1139
+ @outbound_transfers = outbound_transfers
1140
+ end
1141
+ end
1142
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1143
+ attr_accessor :applied
1144
+ # Capabilities to request on the Storer Configuration.
1145
+ attr_accessor :capabilities
1146
+
1147
+ def initialize(applied: nil, capabilities: nil)
1148
+ @applied = applied
1149
+ @capabilities = capabilities
1150
+ end
1151
+ end
1152
+ # The Customer Configuration allows the Account to be charged.
1153
+ attr_accessor :customer
1154
+ # 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.
1155
+ attr_accessor :merchant
1156
+ # The Recipient Configuration allows the Account to receive funds.
1157
+ attr_accessor :recipient
1158
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1159
+ attr_accessor :storer
1160
+
1161
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1162
+ @customer = customer
1163
+ @merchant = merchant
1164
+ @recipient = recipient
1165
+ @storer = storer
1166
+ end
1167
+ end
1168
+
1169
+ class Defaults < Stripe::RequestParams
1170
+ class Profile < Stripe::RequestParams
1171
+ # The business's publicly-available website.
1172
+ attr_accessor :business_url
1173
+ # The name which is used by the business.
1174
+ attr_accessor :doing_business_as
1175
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1176
+ attr_accessor :product_description
1177
+
1178
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1179
+ @business_url = business_url
1180
+ @doing_business_as = doing_business_as
1181
+ @product_description = product_description
1182
+ end
1183
+ end
1184
+
1185
+ class Responsibilities < Stripe::RequestParams
1186
+ # A value indicating the party responsible for collecting fees from this account.
1187
+ attr_accessor :fees_collector
1188
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1189
+ attr_accessor :losses_collector
1190
+
1191
+ def initialize(fees_collector: nil, losses_collector: nil)
1192
+ @fees_collector = fees_collector
1193
+ @losses_collector = losses_collector
1194
+ end
1195
+ end
1196
+ # 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).
1197
+ attr_accessor :currency
1198
+ # The Account's preferred locales (languages), ordered by preference.
1199
+ attr_accessor :locales
1200
+ # Account profile information.
1201
+ attr_accessor :profile
1202
+ # Default responsibilities held by either Stripe or the platform.
1203
+ attr_accessor :responsibilities
1204
+
1205
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1206
+ @currency = currency
1207
+ @locales = locales
1208
+ @profile = profile
1209
+ @responsibilities = responsibilities
1210
+ end
1211
+ end
1212
+
1213
+ class Identity < Stripe::RequestParams
1214
+ class Attestations < Stripe::RequestParams
1215
+ class DirectorshipDeclaration < Stripe::RequestParams
1216
+ # 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.
1217
+ attr_accessor :date
1218
+ # The IP address from which the director attestation was made.
1219
+ attr_accessor :ip
1220
+ # The user agent of the browser from which the director attestation was made.
1221
+ attr_accessor :user_agent
1222
+
1223
+ def initialize(date: nil, ip: nil, user_agent: nil)
1224
+ @date = date
1225
+ @ip = ip
1226
+ @user_agent = user_agent
1227
+ end
1228
+ end
1229
+
1230
+ class OwnershipDeclaration < Stripe::RequestParams
1231
+ # 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.
1232
+ attr_accessor :date
1233
+ # The IP address from which the beneficial owner attestation was made.
1234
+ attr_accessor :ip
1235
+ # The user agent of the browser from which the beneficial owner attestation was made.
1236
+ attr_accessor :user_agent
1237
+
1238
+ def initialize(date: nil, ip: nil, user_agent: nil)
1239
+ @date = date
1240
+ @ip = ip
1241
+ @user_agent = user_agent
1242
+ end
1243
+ end
1244
+
1245
+ class PersonsProvided < Stripe::RequestParams
1246
+ # 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).
1247
+ attr_accessor :directors
1248
+ # 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).
1249
+ attr_accessor :executives
1250
+ # 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).
1251
+ attr_accessor :owners
1252
+ # Reason for why the company is exempt from providing ownership information.
1253
+ attr_accessor :ownership_exemption_reason
1254
+
1255
+ def initialize(
1256
+ directors: nil,
1257
+ executives: nil,
1258
+ owners: nil,
1259
+ ownership_exemption_reason: nil
1260
+ )
1261
+ @directors = directors
1262
+ @executives = executives
1263
+ @owners = owners
1264
+ @ownership_exemption_reason = ownership_exemption_reason
1265
+ end
1266
+ end
1267
+
1268
+ class TermsOfService < Stripe::RequestParams
1269
+ class Account < Stripe::RequestParams
1270
+ # 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.
1271
+ attr_accessor :date
1272
+ # The IP address from which the Account's representative accepted the terms of service.
1273
+ attr_accessor :ip
1274
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1275
+ attr_accessor :user_agent
1276
+
1277
+ def initialize(date: nil, ip: nil, user_agent: nil)
1278
+ @date = date
1279
+ @ip = ip
1280
+ @user_agent = user_agent
1281
+ end
1282
+ end
1283
+
1284
+ class Storer < Stripe::RequestParams
1285
+ # 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.
1286
+ attr_accessor :date
1287
+ # The IP address from which the Account's representative accepted the terms of service.
1288
+ attr_accessor :ip
1289
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1290
+ attr_accessor :user_agent
1291
+
1292
+ def initialize(date: nil, ip: nil, user_agent: nil)
1293
+ @date = date
1294
+ @ip = ip
1295
+ @user_agent = user_agent
1296
+ end
1297
+ end
1298
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1299
+ attr_accessor :account
1300
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1301
+ attr_accessor :storer
1302
+
1303
+ def initialize(account: nil, storer: nil)
1304
+ @account = account
1305
+ @storer = storer
1306
+ end
1307
+ end
1308
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1309
+ attr_accessor :directorship_declaration
1310
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1311
+ attr_accessor :ownership_declaration
1312
+ # Attestation that all Persons with a specific Relationship value have been provided.
1313
+ attr_accessor :persons_provided
1314
+ # Attestations of accepted terms of service agreements.
1315
+ attr_accessor :terms_of_service
1316
+
1317
+ def initialize(
1318
+ directorship_declaration: nil,
1319
+ ownership_declaration: nil,
1320
+ persons_provided: nil,
1321
+ terms_of_service: nil
1322
+ )
1323
+ @directorship_declaration = directorship_declaration
1324
+ @ownership_declaration = ownership_declaration
1325
+ @persons_provided = persons_provided
1326
+ @terms_of_service = terms_of_service
1327
+ end
1328
+ end
1329
+
1330
+ class BusinessDetails < Stripe::RequestParams
1331
+ class Address < Stripe::RequestParams
1332
+ # City, district, suburb, town, or village.
1333
+ attr_accessor :city
1334
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1335
+ attr_accessor :country
1336
+ # Address line 1 (e.g., street, PO Box, or company name).
1337
+ attr_accessor :line1
1338
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1339
+ attr_accessor :line2
1340
+ # ZIP or postal code.
1341
+ attr_accessor :postal_code
1342
+ # State, county, province, or region.
1343
+ attr_accessor :state
1344
+ # Town or cho-me.
1345
+ attr_accessor :town
1346
+
1347
+ def initialize(
1348
+ city: nil,
1349
+ country: nil,
1350
+ line1: nil,
1351
+ line2: nil,
1352
+ postal_code: nil,
1353
+ state: nil,
1354
+ town: nil
1355
+ )
1356
+ @city = city
1357
+ @country = country
1358
+ @line1 = line1
1359
+ @line2 = line2
1360
+ @postal_code = postal_code
1361
+ @state = state
1362
+ @town = town
1363
+ end
1364
+ end
1365
+
1366
+ class AnnualRevenue < Stripe::RequestParams
1367
+ # A non-negative integer representing the amount in the smallest currency unit.
1368
+ attr_accessor :amount
1369
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1370
+ attr_accessor :fiscal_year_end
1371
+
1372
+ def initialize(amount: nil, fiscal_year_end: nil)
1373
+ @amount = amount
1374
+ @fiscal_year_end = fiscal_year_end
1375
+ end
1376
+ end
1377
+
1378
+ class Documents < Stripe::RequestParams
1379
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1380
+ # 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`.
1381
+ attr_accessor :files
1382
+ # The format of the document. Currently supports `files` only.
1383
+ attr_accessor :type
1384
+
1385
+ def initialize(files: nil, type: nil)
1386
+ @files = files
1387
+ @type = type
1388
+ end
1389
+ end
1390
+
1391
+ class CompanyLicense < Stripe::RequestParams
1392
+ # 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`.
1393
+ attr_accessor :files
1394
+ # The format of the document. Currently supports `files` only.
1395
+ attr_accessor :type
1396
+
1397
+ def initialize(files: nil, type: nil)
1398
+ @files = files
1399
+ @type = type
1400
+ end
1401
+ end
1402
+
1403
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1404
+ # 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`.
1405
+ attr_accessor :files
1406
+ # The format of the document. Currently supports `files` only.
1407
+ attr_accessor :type
1408
+
1409
+ def initialize(files: nil, type: nil)
1410
+ @files = files
1411
+ @type = type
1412
+ end
1413
+ end
1414
+
1415
+ class CompanyMinisterialDecree < Stripe::RequestParams
1416
+ # 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`.
1417
+ attr_accessor :files
1418
+ # The format of the document. Currently supports `files` only.
1419
+ attr_accessor :type
1420
+
1421
+ def initialize(files: nil, type: nil)
1422
+ @files = files
1423
+ @type = type
1424
+ end
1425
+ end
1426
+
1427
+ class CompanyRegistrationVerification < Stripe::RequestParams
1428
+ # 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`.
1429
+ attr_accessor :files
1430
+ # The format of the document. Currently supports `files` only.
1431
+ attr_accessor :type
1432
+
1433
+ def initialize(files: nil, type: nil)
1434
+ @files = files
1435
+ @type = type
1436
+ end
1437
+ end
1438
+
1439
+ class CompanyTaxIdVerification < Stripe::RequestParams
1440
+ # 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`.
1441
+ attr_accessor :files
1442
+ # The format of the document. Currently supports `files` only.
1443
+ attr_accessor :type
1444
+
1445
+ def initialize(files: nil, type: nil)
1446
+ @files = files
1447
+ @type = type
1448
+ end
1449
+ end
1450
+
1451
+ class PrimaryVerification < Stripe::RequestParams
1452
+ class FrontBack < Stripe::RequestParams
1453
+ # 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.
1454
+ attr_accessor :back
1455
+ # 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.
1456
+ attr_accessor :front
1457
+
1458
+ def initialize(back: nil, front: nil)
1459
+ @back = back
1460
+ @front = front
1461
+ end
1462
+ end
1463
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1464
+ attr_accessor :front_back
1465
+ # The format of the verification document. Currently supports `front_back` only.
1466
+ attr_accessor :type
1467
+
1468
+ def initialize(front_back: nil, type: nil)
1469
+ @front_back = front_back
1470
+ @type = type
1471
+ end
1472
+ end
1473
+
1474
+ class ProofOfAddress < Stripe::RequestParams
1475
+ # 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`.
1476
+ attr_accessor :files
1477
+ # The format of the document. Currently supports `files` only.
1478
+ attr_accessor :type
1479
+
1480
+ def initialize(files: nil, type: nil)
1481
+ @files = files
1482
+ @type = type
1483
+ end
1484
+ end
1485
+
1486
+ class ProofOfRegistration < Stripe::RequestParams
1487
+ # 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`.
1488
+ attr_accessor :files
1489
+ # The format of the document. Currently supports `files` only.
1490
+ attr_accessor :type
1491
+
1492
+ def initialize(files: nil, type: nil)
1493
+ @files = files
1494
+ @type = type
1495
+ end
1496
+ end
1497
+
1498
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1499
+ # 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`.
1500
+ attr_accessor :files
1501
+ # The format of the document. Currently supports `files` only.
1502
+ attr_accessor :type
1503
+
1504
+ def initialize(files: nil, type: nil)
1505
+ @files = files
1506
+ @type = type
1507
+ end
1508
+ end
1509
+ # 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.
1510
+ attr_accessor :bank_account_ownership_verification
1511
+ # One or more documents that demonstrate proof of a company’s license to operate.
1512
+ attr_accessor :company_license
1513
+ # One or more documents showing the company’s Memorandum of Association.
1514
+ attr_accessor :company_memorandum_of_association
1515
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1516
+ attr_accessor :company_ministerial_decree
1517
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1518
+ attr_accessor :company_registration_verification
1519
+ # One or more documents that demonstrate proof of a company’s tax ID.
1520
+ attr_accessor :company_tax_id_verification
1521
+ # A document verifying the business.
1522
+ attr_accessor :primary_verification
1523
+ # One or more documents that demonstrate proof of address.
1524
+ attr_accessor :proof_of_address
1525
+ # One or more documents showing the company’s proof of registration with the national business registry.
1526
+ attr_accessor :proof_of_registration
1527
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1528
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1529
+
1530
+ def initialize(
1531
+ bank_account_ownership_verification: nil,
1532
+ company_license: nil,
1533
+ company_memorandum_of_association: nil,
1534
+ company_ministerial_decree: nil,
1535
+ company_registration_verification: nil,
1536
+ company_tax_id_verification: nil,
1537
+ primary_verification: nil,
1538
+ proof_of_address: nil,
1539
+ proof_of_registration: nil,
1540
+ proof_of_ultimate_beneficial_ownership: nil
1541
+ )
1542
+ @bank_account_ownership_verification = bank_account_ownership_verification
1543
+ @company_license = company_license
1544
+ @company_memorandum_of_association = company_memorandum_of_association
1545
+ @company_ministerial_decree = company_ministerial_decree
1546
+ @company_registration_verification = company_registration_verification
1547
+ @company_tax_id_verification = company_tax_id_verification
1548
+ @primary_verification = primary_verification
1549
+ @proof_of_address = proof_of_address
1550
+ @proof_of_registration = proof_of_registration
1551
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1552
+ end
1553
+ end
1554
+
1555
+ class IdNumber < Stripe::RequestParams
1556
+ # The registrar of the ID number (Only valid for DE ID number types).
1557
+ attr_accessor :registrar
1558
+ # Open Enum. The ID number type of a business entity.
1559
+ attr_accessor :type
1560
+ # The value of the ID number.
1561
+ attr_accessor :value
1562
+
1563
+ def initialize(registrar: nil, type: nil, value: nil)
1564
+ @registrar = registrar
1565
+ @type = type
1566
+ @value = value
1567
+ end
1568
+ end
1569
+
1570
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
1571
+ # A non-negative integer representing the amount in the smallest currency unit.
1572
+ attr_accessor :amount
1573
+
1574
+ def initialize(amount: nil)
1575
+ @amount = amount
1576
+ end
1577
+ end
1578
+
1579
+ class ScriptAddresses < Stripe::RequestParams
1580
+ class Kana < Stripe::RequestParams
1581
+ # City, district, suburb, town, or village.
1582
+ attr_accessor :city
1583
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1584
+ attr_accessor :country
1585
+ # Address line 1 (e.g., street, PO Box, or company name).
1586
+ attr_accessor :line1
1587
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1588
+ attr_accessor :line2
1589
+ # ZIP or postal code.
1590
+ attr_accessor :postal_code
1591
+ # State, county, province, or region.
1592
+ attr_accessor :state
1593
+ # Town or cho-me.
1594
+ attr_accessor :town
1595
+
1596
+ def initialize(
1597
+ city: nil,
1598
+ country: nil,
1599
+ line1: nil,
1600
+ line2: nil,
1601
+ postal_code: nil,
1602
+ state: nil,
1603
+ town: nil
1604
+ )
1605
+ @city = city
1606
+ @country = country
1607
+ @line1 = line1
1608
+ @line2 = line2
1609
+ @postal_code = postal_code
1610
+ @state = state
1611
+ @town = town
1612
+ end
1613
+ end
1614
+
1615
+ class Kanji < Stripe::RequestParams
1616
+ # City, district, suburb, town, or village.
1617
+ attr_accessor :city
1618
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1619
+ attr_accessor :country
1620
+ # Address line 1 (e.g., street, PO Box, or company name).
1621
+ attr_accessor :line1
1622
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1623
+ attr_accessor :line2
1624
+ # ZIP or postal code.
1625
+ attr_accessor :postal_code
1626
+ # State, county, province, or region.
1627
+ attr_accessor :state
1628
+ # Town or cho-me.
1629
+ attr_accessor :town
1630
+
1631
+ def initialize(
1632
+ city: nil,
1633
+ country: nil,
1634
+ line1: nil,
1635
+ line2: nil,
1636
+ postal_code: nil,
1637
+ state: nil,
1638
+ town: nil
1639
+ )
1640
+ @city = city
1641
+ @country = country
1642
+ @line1 = line1
1643
+ @line2 = line2
1644
+ @postal_code = postal_code
1645
+ @state = state
1646
+ @town = town
1647
+ end
1648
+ end
1649
+ # Kana Address.
1650
+ attr_accessor :kana
1651
+ # Kanji Address.
1652
+ attr_accessor :kanji
1653
+
1654
+ def initialize(kana: nil, kanji: nil)
1655
+ @kana = kana
1656
+ @kanji = kanji
1657
+ end
1658
+ end
1659
+
1660
+ class ScriptNames < Stripe::RequestParams
1661
+ class Kana < Stripe::RequestParams
1662
+ # Registered name of the business.
1663
+ attr_accessor :registered_name
1664
+
1665
+ def initialize(registered_name: nil)
1666
+ @registered_name = registered_name
1667
+ end
1668
+ end
1669
+
1670
+ class Kanji < Stripe::RequestParams
1671
+ # Registered name of the business.
1672
+ attr_accessor :registered_name
1673
+
1674
+ def initialize(registered_name: nil)
1675
+ @registered_name = registered_name
1676
+ end
1677
+ end
1678
+ # Kana name.
1679
+ attr_accessor :kana
1680
+ # Kanji name.
1681
+ attr_accessor :kanji
1682
+
1683
+ def initialize(kana: nil, kanji: nil)
1684
+ @kana = kana
1685
+ @kanji = kanji
1686
+ end
1687
+ end
1688
+ # The business registration address of the business entity.
1689
+ attr_accessor :address
1690
+ # The business gross annual revenue for its preceding fiscal year.
1691
+ attr_accessor :annual_revenue
1692
+ # A document verifying the business.
1693
+ attr_accessor :documents
1694
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1695
+ attr_accessor :estimated_worker_count
1696
+ # The ID numbers of a business entity.
1697
+ attr_accessor :id_numbers
1698
+ # An estimate of the monthly revenue of the business.
1699
+ attr_accessor :monthly_estimated_revenue
1700
+ # The phone number of the Business Entity.
1701
+ attr_accessor :phone
1702
+ # The business legal name.
1703
+ attr_accessor :registered_name
1704
+ # The business registration address of the business entity in non latin script.
1705
+ attr_accessor :script_addresses
1706
+ # The business legal name in non latin script.
1707
+ attr_accessor :script_names
1708
+ # The category identifying the legal structure of the business.
1709
+ attr_accessor :structure
1710
+
1711
+ def initialize(
1712
+ address: nil,
1713
+ annual_revenue: nil,
1714
+ documents: nil,
1715
+ estimated_worker_count: nil,
1716
+ id_numbers: nil,
1717
+ monthly_estimated_revenue: nil,
1718
+ phone: nil,
1719
+ registered_name: nil,
1720
+ script_addresses: nil,
1721
+ script_names: nil,
1722
+ structure: nil
1723
+ )
1724
+ @address = address
1725
+ @annual_revenue = annual_revenue
1726
+ @documents = documents
1727
+ @estimated_worker_count = estimated_worker_count
1728
+ @id_numbers = id_numbers
1729
+ @monthly_estimated_revenue = monthly_estimated_revenue
1730
+ @phone = phone
1731
+ @registered_name = registered_name
1732
+ @script_addresses = script_addresses
1733
+ @script_names = script_names
1734
+ @structure = structure
1735
+ end
1736
+ end
1737
+
1738
+ class Individual < Stripe::RequestParams
1739
+ class AdditionalAddress < Stripe::RequestParams
1740
+ # City, district, suburb, town, or village.
1741
+ attr_accessor :city
1742
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1743
+ attr_accessor :country
1744
+ # Address line 1 (e.g., street, PO Box, or company name).
1745
+ attr_accessor :line1
1746
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1747
+ attr_accessor :line2
1748
+ # ZIP or postal code.
1749
+ attr_accessor :postal_code
1750
+ # Purpose of additional address.
1751
+ attr_accessor :purpose
1752
+ # State, county, province, or region.
1753
+ attr_accessor :state
1754
+ # Town or cho-me.
1755
+ attr_accessor :town
1756
+
1757
+ def initialize(
1758
+ city: nil,
1759
+ country: nil,
1760
+ line1: nil,
1761
+ line2: nil,
1762
+ postal_code: nil,
1763
+ purpose: nil,
1764
+ state: nil,
1765
+ town: nil
1766
+ )
1767
+ @city = city
1768
+ @country = country
1769
+ @line1 = line1
1770
+ @line2 = line2
1771
+ @postal_code = postal_code
1772
+ @purpose = purpose
1773
+ @state = state
1774
+ @town = town
1775
+ end
1776
+ end
1777
+
1778
+ class AdditionalName < Stripe::RequestParams
1779
+ # The person's full name.
1780
+ attr_accessor :full_name
1781
+ # The person's first or given name.
1782
+ attr_accessor :given_name
1783
+ # The purpose or type of the additional name.
1784
+ attr_accessor :purpose
1785
+ # The person's last or family name.
1786
+ attr_accessor :surname
1787
+
1788
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1789
+ @full_name = full_name
1790
+ @given_name = given_name
1791
+ @purpose = purpose
1792
+ @surname = surname
1793
+ end
1794
+ end
1795
+
1796
+ class Address < Stripe::RequestParams
1797
+ # City, district, suburb, town, or village.
1798
+ attr_accessor :city
1799
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1800
+ attr_accessor :country
1801
+ # Address line 1 (e.g., street, PO Box, or company name).
1802
+ attr_accessor :line1
1803
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1804
+ attr_accessor :line2
1805
+ # ZIP or postal code.
1806
+ attr_accessor :postal_code
1807
+ # State, county, province, or region.
1808
+ attr_accessor :state
1809
+ # Town or cho-me.
1810
+ attr_accessor :town
1811
+
1812
+ def initialize(
1813
+ city: nil,
1814
+ country: nil,
1815
+ line1: nil,
1816
+ line2: nil,
1817
+ postal_code: nil,
1818
+ state: nil,
1819
+ town: nil
1820
+ )
1821
+ @city = city
1822
+ @country = country
1823
+ @line1 = line1
1824
+ @line2 = line2
1825
+ @postal_code = postal_code
1826
+ @state = state
1827
+ @town = town
1828
+ end
1829
+ end
1830
+
1831
+ class DateOfBirth < Stripe::RequestParams
1832
+ # The day of the birth.
1833
+ attr_accessor :day
1834
+ # The month of birth.
1835
+ attr_accessor :month
1836
+ # The year of birth.
1837
+ attr_accessor :year
1838
+
1839
+ def initialize(day: nil, month: nil, year: nil)
1840
+ @day = day
1841
+ @month = month
1842
+ @year = year
1843
+ end
1844
+ end
1845
+
1846
+ class Documents < Stripe::RequestParams
1847
+ class CompanyAuthorization < Stripe::RequestParams
1848
+ # 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`.
1849
+ attr_accessor :files
1850
+ # The format of the document. Currently supports `files` only.
1851
+ attr_accessor :type
1852
+
1853
+ def initialize(files: nil, type: nil)
1854
+ @files = files
1855
+ @type = type
1856
+ end
1857
+ end
1858
+
1859
+ class Passport < Stripe::RequestParams
1860
+ # 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`.
1861
+ attr_accessor :files
1862
+ # The format of the document. Currently supports `files` only.
1863
+ attr_accessor :type
1864
+
1865
+ def initialize(files: nil, type: nil)
1866
+ @files = files
1867
+ @type = type
1868
+ end
1869
+ end
1870
+
1871
+ class PrimaryVerification < Stripe::RequestParams
1872
+ class FrontBack < Stripe::RequestParams
1873
+ # 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.
1874
+ attr_accessor :back
1875
+ # 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.
1876
+ attr_accessor :front
1877
+
1878
+ def initialize(back: nil, front: nil)
1879
+ @back = back
1880
+ @front = front
1881
+ end
1882
+ end
1883
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1884
+ attr_accessor :front_back
1885
+ # The format of the verification document. Currently supports `front_back` only.
1886
+ attr_accessor :type
1887
+
1888
+ def initialize(front_back: nil, type: nil)
1889
+ @front_back = front_back
1890
+ @type = type
1891
+ end
1892
+ end
1893
+
1894
+ class SecondaryVerification < Stripe::RequestParams
1895
+ class FrontBack < Stripe::RequestParams
1896
+ # 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.
1897
+ attr_accessor :back
1898
+ # 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.
1899
+ attr_accessor :front
1900
+
1901
+ def initialize(back: nil, front: nil)
1902
+ @back = back
1903
+ @front = front
1904
+ end
1905
+ end
1906
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1907
+ attr_accessor :front_back
1908
+ # The format of the verification document. Currently supports `front_back` only.
1909
+ attr_accessor :type
1910
+
1911
+ def initialize(front_back: nil, type: nil)
1912
+ @front_back = front_back
1913
+ @type = type
1914
+ end
1915
+ end
1916
+
1917
+ class Visa < Stripe::RequestParams
1918
+ # 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`.
1919
+ attr_accessor :files
1920
+ # The format of the document. Currently supports `files` only.
1921
+ attr_accessor :type
1922
+
1923
+ def initialize(files: nil, type: nil)
1924
+ @files = files
1925
+ @type = type
1926
+ end
1927
+ end
1928
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1929
+ attr_accessor :company_authorization
1930
+ # One or more documents showing the person’s passport page with photo and personal data.
1931
+ attr_accessor :passport
1932
+ # An identifying document showing the person's name, either a passport or local ID card.
1933
+ attr_accessor :primary_verification
1934
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1935
+ attr_accessor :secondary_verification
1936
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1937
+ attr_accessor :visa
1938
+
1939
+ def initialize(
1940
+ company_authorization: nil,
1941
+ passport: nil,
1942
+ primary_verification: nil,
1943
+ secondary_verification: nil,
1944
+ visa: nil
1945
+ )
1946
+ @company_authorization = company_authorization
1947
+ @passport = passport
1948
+ @primary_verification = primary_verification
1949
+ @secondary_verification = secondary_verification
1950
+ @visa = visa
1951
+ end
1952
+ end
1953
+
1954
+ class IdNumber < Stripe::RequestParams
1955
+ # The ID number type of an individual.
1956
+ attr_accessor :type
1957
+ # The value of the ID number.
1958
+ attr_accessor :value
1959
+
1960
+ def initialize(type: nil, value: nil)
1961
+ @type = type
1962
+ @value = value
1963
+ end
1964
+ end
1965
+
1966
+ class Relationship < Stripe::RequestParams
1967
+ # 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.
1968
+ attr_accessor :director
1969
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1970
+ attr_accessor :executive
1971
+ # Whether the person is an owner of the account’s identity.
1972
+ attr_accessor :owner
1973
+ # The percent owned by the person of the account's legal entity.
1974
+ attr_accessor :percent_ownership
1975
+ # The person's title (e.g., CEO, Support Engineer).
1976
+ attr_accessor :title
1977
+
1978
+ def initialize(
1979
+ director: nil,
1980
+ executive: nil,
1981
+ owner: nil,
1982
+ percent_ownership: nil,
1983
+ title: nil
1984
+ )
1985
+ @director = director
1986
+ @executive = executive
1987
+ @owner = owner
1988
+ @percent_ownership = percent_ownership
1989
+ @title = title
1990
+ end
1991
+ end
1992
+
1993
+ class ScriptAddresses < Stripe::RequestParams
1994
+ class Kana < Stripe::RequestParams
1995
+ # City, district, suburb, town, or village.
1996
+ attr_accessor :city
1997
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1998
+ attr_accessor :country
1999
+ # Address line 1 (e.g., street, PO Box, or company name).
2000
+ attr_accessor :line1
2001
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2002
+ attr_accessor :line2
2003
+ # ZIP or postal code.
2004
+ attr_accessor :postal_code
2005
+ # State, county, province, or region.
2006
+ attr_accessor :state
2007
+ # Town or cho-me.
2008
+ attr_accessor :town
2009
+
2010
+ def initialize(
2011
+ city: nil,
2012
+ country: nil,
2013
+ line1: nil,
2014
+ line2: nil,
2015
+ postal_code: nil,
2016
+ state: nil,
2017
+ town: nil
2018
+ )
2019
+ @city = city
2020
+ @country = country
2021
+ @line1 = line1
2022
+ @line2 = line2
2023
+ @postal_code = postal_code
2024
+ @state = state
2025
+ @town = town
2026
+ end
2027
+ end
2028
+
2029
+ class Kanji < Stripe::RequestParams
2030
+ # City, district, suburb, town, or village.
2031
+ attr_accessor :city
2032
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2033
+ attr_accessor :country
2034
+ # Address line 1 (e.g., street, PO Box, or company name).
2035
+ attr_accessor :line1
2036
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2037
+ attr_accessor :line2
2038
+ # ZIP or postal code.
2039
+ attr_accessor :postal_code
2040
+ # State, county, province, or region.
2041
+ attr_accessor :state
2042
+ # Town or cho-me.
2043
+ attr_accessor :town
2044
+
2045
+ def initialize(
2046
+ city: nil,
2047
+ country: nil,
2048
+ line1: nil,
2049
+ line2: nil,
2050
+ postal_code: nil,
2051
+ state: nil,
2052
+ town: nil
2053
+ )
2054
+ @city = city
2055
+ @country = country
2056
+ @line1 = line1
2057
+ @line2 = line2
2058
+ @postal_code = postal_code
2059
+ @state = state
2060
+ @town = town
2061
+ end
2062
+ end
2063
+ # Kana Address.
2064
+ attr_accessor :kana
2065
+ # Kanji Address.
2066
+ attr_accessor :kanji
2067
+
2068
+ def initialize(kana: nil, kanji: nil)
2069
+ @kana = kana
2070
+ @kanji = kanji
2071
+ end
2072
+ end
2073
+
2074
+ class ScriptNames < Stripe::RequestParams
2075
+ class Kana < Stripe::RequestParams
2076
+ # The person's first or given name.
2077
+ attr_accessor :given_name
2078
+ # The person's last or family name.
2079
+ attr_accessor :surname
2080
+
2081
+ def initialize(given_name: nil, surname: nil)
2082
+ @given_name = given_name
2083
+ @surname = surname
2084
+ end
2085
+ end
2086
+
2087
+ class Kanji < Stripe::RequestParams
2088
+ # The person's first or given name.
2089
+ attr_accessor :given_name
2090
+ # The person's last or family name.
2091
+ attr_accessor :surname
2092
+
2093
+ def initialize(given_name: nil, surname: nil)
2094
+ @given_name = given_name
2095
+ @surname = surname
2096
+ end
2097
+ end
2098
+ # Persons name in kana script.
2099
+ attr_accessor :kana
2100
+ # Persons name in kanji script.
2101
+ attr_accessor :kanji
2102
+
2103
+ def initialize(kana: nil, kanji: nil)
2104
+ @kana = kana
2105
+ @kanji = kanji
2106
+ end
2107
+ end
2108
+ # Additional addresses associated with the individual.
2109
+ attr_accessor :additional_addresses
2110
+ # Additional names (e.g. aliases) associated with the individual.
2111
+ attr_accessor :additional_names
2112
+ # The individual's residential address.
2113
+ attr_accessor :address
2114
+ # The individual's date of birth.
2115
+ attr_accessor :date_of_birth
2116
+ # Documents that may be submitted to satisfy various informational requests.
2117
+ attr_accessor :documents
2118
+ # The individual's email address.
2119
+ attr_accessor :email
2120
+ # The individual's first name.
2121
+ attr_accessor :given_name
2122
+ # The identification numbers (e.g., SSN) associated with the individual.
2123
+ attr_accessor :id_numbers
2124
+ # The individual's gender (International regulations require either "male" or "female").
2125
+ attr_accessor :legal_gender
2126
+ # 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.
2127
+ attr_accessor :metadata
2128
+ # 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)).
2129
+ attr_accessor :nationalities
2130
+ # The individual's phone number.
2131
+ attr_accessor :phone
2132
+ # The individual's political exposure.
2133
+ attr_accessor :political_exposure
2134
+ # The relationship that this individual has with the account's identity.
2135
+ attr_accessor :relationship
2136
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2137
+ attr_accessor :script_addresses
2138
+ # The individuals primary name in non latin script.
2139
+ attr_accessor :script_names
2140
+ # The individual's last name.
2141
+ attr_accessor :surname
2142
+
2143
+ def initialize(
2144
+ additional_addresses: nil,
2145
+ additional_names: nil,
2146
+ address: nil,
2147
+ date_of_birth: nil,
2148
+ documents: nil,
2149
+ email: nil,
2150
+ given_name: nil,
2151
+ id_numbers: nil,
2152
+ legal_gender: nil,
2153
+ metadata: nil,
2154
+ nationalities: nil,
2155
+ phone: nil,
2156
+ political_exposure: nil,
2157
+ relationship: nil,
2158
+ script_addresses: nil,
2159
+ script_names: nil,
2160
+ surname: nil
2161
+ )
2162
+ @additional_addresses = additional_addresses
2163
+ @additional_names = additional_names
2164
+ @address = address
2165
+ @date_of_birth = date_of_birth
2166
+ @documents = documents
2167
+ @email = email
2168
+ @given_name = given_name
2169
+ @id_numbers = id_numbers
2170
+ @legal_gender = legal_gender
2171
+ @metadata = metadata
2172
+ @nationalities = nationalities
2173
+ @phone = phone
2174
+ @political_exposure = political_exposure
2175
+ @relationship = relationship
2176
+ @script_addresses = script_addresses
2177
+ @script_names = script_names
2178
+ @surname = surname
2179
+ end
2180
+ end
2181
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
2182
+ attr_accessor :attestations
2183
+ # Information about the company or business.
2184
+ attr_accessor :business_details
2185
+ # 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.
2186
+ attr_accessor :country
2187
+ # The entity type.
2188
+ attr_accessor :entity_type
2189
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
2190
+ attr_accessor :individual
2191
+
2192
+ def initialize(
2193
+ attestations: nil,
2194
+ business_details: nil,
2195
+ country: nil,
2196
+ entity_type: nil,
2197
+ individual: nil
2198
+ )
2199
+ @attestations = attestations
2200
+ @business_details = business_details
2201
+ @country = country
2202
+ @entity_type = entity_type
2203
+ @individual = individual
2204
+ end
2205
+ end
2206
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2207
+ attr_accessor :configuration
2208
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2209
+ attr_accessor :contact_email
2210
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2211
+ attr_accessor :dashboard
2212
+ # Default values to be used on Account Configurations.
2213
+ attr_accessor :defaults
2214
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2215
+ attr_accessor :display_name
2216
+ # Information about the company, individual, and business represented by the Account.
2217
+ attr_accessor :identity
2218
+ # Additional fields to include in the response.
2219
+ attr_accessor :include
2220
+ # 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.
2221
+ attr_accessor :metadata
2222
+
2223
+ def initialize(
2224
+ configuration: nil,
2225
+ contact_email: nil,
2226
+ dashboard: nil,
2227
+ defaults: nil,
2228
+ display_name: nil,
2229
+ identity: nil,
2230
+ include: nil,
2231
+ metadata: nil
2232
+ )
2233
+ @configuration = configuration
2234
+ @contact_email = contact_email
2235
+ @dashboard = dashboard
2236
+ @defaults = defaults
2237
+ @display_name = display_name
2238
+ @identity = identity
2239
+ @include = include
2240
+ @metadata = metadata
2241
+ end
2242
+ end
2243
+ end
2244
+ end
2245
+ end