stripe 15.4.0 → 15.5.0.pre.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1639 -662
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +32 -0
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/errors.rb +60 -0
  9. data/lib/stripe/event_types.rb +102 -0
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
  19. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  21. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  22. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  23. data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
  24. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  25. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  26. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  27. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  32. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  53. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  54. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  55. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  58. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  59. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  60. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  61. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  62. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  66. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  67. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  68. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  69. data/lib/stripe/object_types.rb +53 -0
  70. data/lib/stripe/resources/account.rb +653 -1
  71. data/lib/stripe/resources/account_notice.rb +123 -0
  72. data/lib/stripe/resources/account_session.rb +256 -1
  73. data/lib/stripe/resources/balance_settings.rb +105 -0
  74. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  75. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  76. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  77. data/lib/stripe/resources/billing/meter_usage.rb +23 -0
  78. data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
  79. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  80. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  81. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  82. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  83. data/lib/stripe/resources/card.rb +2 -0
  84. data/lib/stripe/resources/cash_balance.rb +2 -0
  85. data/lib/stripe/resources/charge.rb +1538 -0
  86. data/lib/stripe/resources/checkout/session.rb +399 -3
  87. data/lib/stripe/resources/confirmation_token.rb +170 -0
  88. data/lib/stripe/resources/coupon.rb +30 -1
  89. data/lib/stripe/resources/credit_note.rb +6 -0
  90. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  91. data/lib/stripe/resources/customer.rb +2 -0
  92. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  93. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  94. data/lib/stripe/resources/customer_session.rb +6 -1
  95. data/lib/stripe/resources/discount.rb +2 -0
  96. data/lib/stripe/resources/dispute.rb +11 -0
  97. data/lib/stripe/resources/event.rb +31 -0
  98. data/lib/stripe/resources/financial_connections/account.rb +22 -1
  99. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  100. data/lib/stripe/resources/financial_connections/institution.rb +92 -0
  101. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  102. data/lib/stripe/resources/fx_quote.rb +186 -0
  103. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  104. data/lib/stripe/resources/invoice.rb +1140 -16
  105. data/lib/stripe/resources/invoice_item.rb +78 -2
  106. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  107. data/lib/stripe/resources/invoice_payment.rb +6 -1
  108. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  109. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  110. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  111. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  112. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  113. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  114. data/lib/stripe/resources/line_item.rb +37 -0
  115. data/lib/stripe/resources/mandate.rb +24 -0
  116. data/lib/stripe/resources/margin.rb +115 -0
  117. data/lib/stripe/resources/order.rb +2958 -0
  118. data/lib/stripe/resources/payment_attempt_record.rb +1101 -0
  119. data/lib/stripe/resources/payment_intent.rb +9469 -3712
  120. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
  121. data/lib/stripe/resources/payment_method.rb +192 -1
  122. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  123. data/lib/stripe/resources/payment_record.rb +1630 -0
  124. data/lib/stripe/resources/payout.rb +6 -0
  125. data/lib/stripe/resources/price.rb +30 -0
  126. data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
  127. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
  128. data/lib/stripe/resources/promotion_code.rb +10 -0
  129. data/lib/stripe/resources/quote.rb +2038 -7
  130. data/lib/stripe/resources/quote_line.rb +274 -0
  131. data/lib/stripe/resources/quote_preview_invoice.rb +680 -0
  132. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +371 -0
  133. data/lib/stripe/resources/refund.rb +9 -0
  134. data/lib/stripe/resources/setup_attempt.rb +21 -0
  135. data/lib/stripe/resources/setup_intent.rb +578 -9
  136. data/lib/stripe/resources/source.rb +29 -0
  137. data/lib/stripe/resources/subscription.rb +365 -9
  138. data/lib/stripe/resources/subscription_item.rb +84 -3
  139. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  140. data/lib/stripe/resources/tax/association.rb +66 -0
  141. data/lib/stripe/resources/tax/form.rb +211 -0
  142. data/lib/stripe/resources/tax_id.rb +12 -2
  143. data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
  144. data/lib/stripe/resources/terminal/reader.rb +8 -0
  145. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  146. data/lib/stripe/resources/transfer.rb +6 -0
  147. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  148. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  149. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  150. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  151. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  152. data/lib/stripe/resources/v2/core/account.rb +1930 -0
  153. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  154. data/lib/stripe/resources/v2/core/person.rb +276 -0
  155. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
  156. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
  157. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
  158. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
  159. data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
  160. data/lib/stripe/resources/v2/money_management/financial_account.rb +77 -0
  161. data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
  162. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
  163. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
  164. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
  165. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
  166. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
  167. data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -0
  168. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
  169. data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
  170. data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
  171. data/lib/stripe/resources/v2/money_management/transaction.rb +78 -0
  172. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +68 -0
  173. data/lib/stripe/resources/v2/payments/off_session_payment.rb +89 -0
  174. data/lib/stripe/resources.rb +109 -0
  175. data/lib/stripe/services/account_notice_service.rb +101 -0
  176. data/lib/stripe/services/account_service.rb +562 -1
  177. data/lib/stripe/services/account_session_service.rb +226 -1
  178. data/lib/stripe/services/balance_settings_service.rb +96 -0
  179. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  180. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  181. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  182. data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
  183. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  184. data/lib/stripe/services/billing_service.rb +2 -1
  185. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  186. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  187. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  188. data/lib/stripe/services/capital_service.rb +15 -0
  189. data/lib/stripe/services/charge_service.rb +1418 -0
  190. data/lib/stripe/services/checkout/session_service.rb +316 -3
  191. data/lib/stripe/services/coupon_service.rb +17 -1
  192. data/lib/stripe/services/credit_note_service.rb +4 -0
  193. data/lib/stripe/services/customer_session_service.rb +4 -1
  194. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  195. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  196. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  197. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  198. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  199. data/lib/stripe/services/financial_connections_service.rb +2 -1
  200. data/lib/stripe/services/fx_quote_service.rb +123 -0
  201. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  202. data/lib/stripe/services/invoice_item_service.rb +74 -2
  203. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  204. data/lib/stripe/services/invoice_payment_service.rb +4 -1
  205. data/lib/stripe/services/invoice_service.rb +1074 -16
  206. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  207. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  208. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  209. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  210. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  211. data/lib/stripe/services/issuing_service.rb +5 -1
  212. data/lib/stripe/services/margin_service.rb +119 -0
  213. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  214. data/lib/stripe/services/order_service.rb +2388 -0
  215. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  216. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  217. data/lib/stripe/services/payment_intent_service.rb +5724 -435
  218. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  219. data/lib/stripe/services/payment_method_service.rb +120 -1
  220. data/lib/stripe/services/payment_record_service.rb +542 -0
  221. data/lib/stripe/services/payout_service.rb +4 -0
  222. data/lib/stripe/services/price_service.rb +19 -0
  223. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  224. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  225. data/lib/stripe/services/privacy_service.rb +13 -0
  226. data/lib/stripe/services/promotion_code_service.rb +8 -0
  227. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  228. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  229. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  230. data/lib/stripe/services/quote_service.rb +1723 -8
  231. data/lib/stripe/services/setup_intent_service.rb +538 -9
  232. data/lib/stripe/services/subscription_item_service.rb +75 -3
  233. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  234. data/lib/stripe/services/subscription_service.rb +309 -9
  235. data/lib/stripe/services/tax/association_service.rb +31 -0
  236. data/lib/stripe/services/tax/form_service.rb +100 -0
  237. data/lib/stripe/services/tax_id_service.rb +8 -2
  238. data/lib/stripe/services/tax_service.rb +3 -1
  239. data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
  240. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  241. data/lib/stripe/services/terminal_service.rb +3 -1
  242. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  243. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  244. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  245. data/lib/stripe/services/transfer_service.rb +4 -0
  246. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  247. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  248. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  249. data/lib/stripe/services/v1_services.rb +11 -1
  250. data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
  251. data/lib/stripe/services/v2/core/account_service.rb +4522 -0
  252. data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
  253. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
  254. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  255. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  256. data/lib/stripe/services/v2/core_service.rb +4 -1
  257. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  258. data/lib/stripe/services/v2/money_management/financial_account_service.rb +116 -0
  259. data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
  260. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  261. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  262. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
  263. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  264. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  265. data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
  266. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  267. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  268. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  269. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  270. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  271. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  272. data/lib/stripe/services/v2/payment_service.rb +15 -0
  273. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
  274. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  275. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
  276. data/lib/stripe/services/v2_services.rb +4 -1
  277. data/lib/stripe/services.rb +55 -0
  278. data/lib/stripe/stripe_configuration.rb +3 -1
  279. data/lib/stripe/stripe_object.rb +1 -1
  280. data/lib/stripe/util.rb +7 -1
  281. data/lib/stripe/version.rb +1 -1
  282. data/lib/stripe.rb +53 -0
  283. data/rbi/stripe.rbi +199145 -0
  284. data/stripe.gemspec +4 -1
  285. metadata +169 -324
  286. data/rbi/stripe/resources/account.rbi +0 -4995
  287. data/rbi/stripe/resources/account_link.rbi +0 -76
  288. data/rbi/stripe/resources/account_session.rbi +0 -1074
  289. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  290. data/rbi/stripe/resources/application.rbi +0 -20
  291. data/rbi/stripe/resources/application_fee.rbi +0 -118
  292. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  293. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  294. data/rbi/stripe/resources/balance.rbi +0 -235
  295. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  296. data/rbi/stripe/resources/bank_account.rbi +0 -127
  297. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  298. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  299. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  300. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  301. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  302. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  303. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  304. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  305. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  306. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -703
  307. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  308. data/rbi/stripe/resources/capability.rbi +0 -125
  309. data/rbi/stripe/resources/card.rbi +0 -125
  310. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  311. data/rbi/stripe/resources/charge.rbi +0 -2089
  312. data/rbi/stripe/resources/checkout/session.rbi +0 -4095
  313. data/rbi/stripe/resources/climate/order.rbi +0 -245
  314. data/rbi/stripe/resources/climate/product.rbi +0 -75
  315. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  316. data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
  317. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  318. data/rbi/stripe/resources/country_spec.rbi +0 -85
  319. data/rbi/stripe/resources/coupon.rbi +0 -250
  320. data/rbi/stripe/resources/credit_note.rbi +0 -752
  321. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  322. data/rbi/stripe/resources/customer.rbi +0 -1005
  323. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  324. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  325. data/rbi/stripe/resources/customer_session.rbi +0 -200
  326. data/rbi/stripe/resources/discount.rbi +0 -53
  327. data/rbi/stripe/resources/dispute.rbi +0 -761
  328. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  329. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  330. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  331. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  332. data/rbi/stripe/resources/event.rbi +0 -137
  333. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  334. data/rbi/stripe/resources/file.rbi +0 -143
  335. data/rbi/stripe/resources/file_link.rbi +0 -141
  336. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  337. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  338. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  339. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  340. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  341. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  342. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  343. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  344. data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
  345. data/rbi/stripe/resources/invoice.rbi +0 -3858
  346. data/rbi/stripe/resources/invoice_item.rbi +0 -470
  347. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  348. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  349. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  350. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  351. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  352. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  353. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  354. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  355. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  356. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  357. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  358. data/rbi/stripe/resources/line_item.rbi +0 -72
  359. data/rbi/stripe/resources/login_link.rbi +0 -19
  360. data/rbi/stripe/resources/mandate.rbi +0 -191
  361. data/rbi/stripe/resources/payment_intent.rbi +0 -9997
  362. data/rbi/stripe/resources/payment_link.rbi +0 -1893
  363. data/rbi/stripe/resources/payment_method.rbi +0 -1770
  364. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  365. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  366. data/rbi/stripe/resources/payout.rbi +0 -300
  367. data/rbi/stripe/resources/person.rbi +0 -401
  368. data/rbi/stripe/resources/plan.rbi +0 -371
  369. data/rbi/stripe/resources/price.rbi +0 -694
  370. data/rbi/stripe/resources/product.rbi +0 -555
  371. data/rbi/stripe/resources/product_feature.rbi +0 -26
  372. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  373. data/rbi/stripe/resources/quote.rbi +0 -1145
  374. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  375. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  376. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  377. data/rbi/stripe/resources/refund.rbi +0 -523
  378. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  379. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  380. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  381. data/rbi/stripe/resources/reversal.rbi +0 -51
  382. data/rbi/stripe/resources/review.rbi +0 -154
  383. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  384. data/rbi/stripe/resources/setup_intent.rbi +0 -3978
  385. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  386. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  387. data/rbi/stripe/resources/source.rbi +0 -1496
  388. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  389. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  390. data/rbi/stripe/resources/subscription.rbi +0 -2080
  391. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  392. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1673
  393. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  394. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  395. data/rbi/stripe/resources/tax/registration.rbi +0 -3216
  396. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  397. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  398. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  399. data/rbi/stripe/resources/tax_code.rbi +0 -44
  400. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  401. data/rbi/stripe/resources/tax_id.rbi +0 -165
  402. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  403. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1595
  404. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  405. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  406. data/rbi/stripe/resources/terminal/reader.rbi +0 -994
  407. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  408. data/rbi/stripe/resources/token.rbi +0 -1283
  409. data/rbi/stripe/resources/topup.rbi +0 -222
  410. data/rbi/stripe/resources/transfer.rbi +0 -199
  411. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  412. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  413. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
  414. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  415. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  416. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  417. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  418. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  419. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  420. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  421. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  422. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  423. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  424. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  425. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  426. data/rbi/stripe/resources/v2/event.rbi +0 -48
  427. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  428. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  429. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  430. data/rbi/stripe/services/account_link_service.rbi +0 -60
  431. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  432. data/rbi/stripe/services/account_person_service.rbi +0 -1011
  433. data/rbi/stripe/services/account_service.rbi +0 -4281
  434. data/rbi/stripe/services/account_session_service.rbi +0 -685
  435. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  436. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  437. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  438. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  439. data/rbi/stripe/services/apps_service.rbi +0 -9
  440. data/rbi/stripe/services/balance_service.rbi +0 -21
  441. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  442. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  443. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  444. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  445. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  446. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  447. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  448. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  449. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  450. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -555
  451. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  452. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  453. data/rbi/stripe/services/billing_service.rbi +0 -15
  454. data/rbi/stripe/services/charge_service.rbi +0 -448
  455. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  456. data/rbi/stripe/services/checkout/session_service.rbi +0 -2690
  457. data/rbi/stripe/services/checkout_service.rbi +0 -9
  458. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  459. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  460. data/rbi/stripe/services/climate_service.rbi +0 -11
  461. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  462. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  463. data/rbi/stripe/services/coupon_service.rbi +0 -194
  464. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  465. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  466. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  467. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  468. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  469. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  470. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  471. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  472. data/rbi/stripe/services/customer_service.rbi +0 -647
  473. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  474. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  475. data/rbi/stripe/services/dispute_service.rbi +0 -424
  476. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  477. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  478. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  479. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  480. data/rbi/stripe/services/event_service.rbi +0 -83
  481. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  482. data/rbi/stripe/services/file_link_service.rbi +0 -124
  483. data/rbi/stripe/services/file_service.rbi +0 -116
  484. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  485. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  486. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  487. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  488. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  489. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  490. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  491. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  492. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
  493. data/rbi/stripe/services/identity_service.rbi +0 -10
  494. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  495. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  496. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  497. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  498. data/rbi/stripe/services/invoice_service.rbi +0 -3027
  499. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  500. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  501. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  502. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  503. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  504. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  505. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  506. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  507. data/rbi/stripe/services/issuing_service.rbi +0 -16
  508. data/rbi/stripe/services/mandate_service.rbi +0 -20
  509. data/rbi/stripe/services/payment_intent_service.rbi +0 -7994
  510. data/rbi/stripe/services/payment_link_service.rbi +0 -1441
  511. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  512. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  513. data/rbi/stripe/services/payment_method_service.rbi +0 -781
  514. data/rbi/stripe/services/payout_service.rbi +0 -205
  515. data/rbi/stripe/services/plan_service.rbi +0 -282
  516. data/rbi/stripe/services/price_service.rbi +0 -546
  517. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  518. data/rbi/stripe/services/product_service.rbi +0 -477
  519. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  520. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  521. data/rbi/stripe/services/quote_service.rbi +0 -699
  522. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  523. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  524. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  525. data/rbi/stripe/services/radar_service.rbi +0 -11
  526. data/rbi/stripe/services/refund_service.rbi +0 -185
  527. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  528. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  529. data/rbi/stripe/services/reporting_service.rbi +0 -10
  530. data/rbi/stripe/services/review_service.rbi +0 -84
  531. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  532. data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
  533. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  534. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  535. data/rbi/stripe/services/sigma_service.rbi +0 -9
  536. data/rbi/stripe/services/source_service.rbi +0 -663
  537. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  538. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1333
  539. data/rbi/stripe/services/subscription_service.rbi +0 -1684
  540. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  541. data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
  542. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  543. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  544. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  545. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  546. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  547. data/rbi/stripe/services/tax_service.rbi +0 -12
  548. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1286
  549. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  550. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  551. data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
  552. data/rbi/stripe/services/terminal_service.rbi +0 -12
  553. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  554. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  555. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  556. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  557. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  558. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  559. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  560. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  561. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -93
  562. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  563. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  564. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  565. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  566. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  567. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  568. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  569. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  570. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  571. data/rbi/stripe/services/token_service.rbi +0 -1257
  572. data/rbi/stripe/services/topup_service.rbi +0 -176
  573. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  574. data/rbi/stripe/services/transfer_service.rbi +0 -152
  575. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  576. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  577. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  578. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
  579. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  580. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  581. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  582. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  583. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  584. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  585. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  586. data/rbi/stripe/services/treasury_service.rbi +0 -18
  587. data/rbi/stripe/services/v1_services.rbi +0 -77
  588. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  589. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  590. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  591. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  592. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  593. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  594. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  595. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  596. data/rbi/stripe/services/v2_services.rbi +0 -10
  597. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -0,0 +1,4522 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountService < StripeService
8
+ attr_reader :persons
9
+
10
+ def initialize(requestor)
11
+ super
12
+ @persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
13
+ end
14
+
15
+ class ListParams < Stripe::RequestParams
16
+ # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
17
+ attr_accessor :applied_configurations
18
+ # The upper limit on the number of accounts returned by the List Account request.
19
+ attr_accessor :limit
20
+
21
+ def initialize(applied_configurations: nil, limit: nil)
22
+ @applied_configurations = applied_configurations
23
+ @limit = limit
24
+ end
25
+ end
26
+
27
+ class CreateParams < Stripe::RequestParams
28
+ class Configuration < Stripe::RequestParams
29
+ class Customer < Stripe::RequestParams
30
+ class AutomaticIndirectTax < Stripe::RequestParams
31
+ # 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”.
32
+ attr_accessor :exempt
33
+ # A recent IP address of the customer used for tax reporting and tax location inference.
34
+ attr_accessor :ip_address
35
+ # 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.
36
+ attr_accessor :location_source
37
+
38
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
39
+ @exempt = exempt
40
+ @ip_address = ip_address
41
+ @location_source = location_source
42
+ end
43
+ end
44
+
45
+ class Billing < Stripe::RequestParams
46
+ class Invoice < Stripe::RequestParams
47
+ class CustomField < Stripe::RequestParams
48
+ # The name of the custom field. This may be up to 40 characters.
49
+ attr_accessor :name
50
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
51
+ attr_accessor :value
52
+
53
+ def initialize(name: nil, value: nil)
54
+ @name = name
55
+ @value = value
56
+ end
57
+ end
58
+
59
+ class Rendering < Stripe::RequestParams
60
+ # 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.
61
+ attr_accessor :amount_tax_display
62
+ # ID of the invoice rendering template to use for future invoices.
63
+ attr_accessor :template
64
+
65
+ def initialize(amount_tax_display: nil, template: nil)
66
+ @amount_tax_display = amount_tax_display
67
+ @template = template
68
+ end
69
+ end
70
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
71
+ attr_accessor :custom_fields
72
+ # Default footer to be displayed on invoices for this customer.
73
+ attr_accessor :footer
74
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
75
+ attr_accessor :next_sequence
76
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
77
+ attr_accessor :prefix
78
+ # Default options for invoice PDF rendering for this customer.
79
+ attr_accessor :rendering
80
+
81
+ def initialize(
82
+ custom_fields: nil,
83
+ footer: nil,
84
+ next_sequence: nil,
85
+ prefix: nil,
86
+ rendering: nil
87
+ )
88
+ @custom_fields = custom_fields
89
+ @footer = footer
90
+ @next_sequence = next_sequence
91
+ @prefix = prefix
92
+ @rendering = rendering
93
+ end
94
+ end
95
+ # Default settings used on invoices for this customer.
96
+ attr_accessor :invoice
97
+
98
+ def initialize(invoice: nil)
99
+ @invoice = invoice
100
+ end
101
+ end
102
+
103
+ class Capabilities < Stripe::RequestParams
104
+ class AutomaticIndirectTax < Stripe::RequestParams
105
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
106
+ attr_accessor :requested
107
+
108
+ def initialize(requested: nil)
109
+ @requested = requested
110
+ end
111
+ end
112
+ # 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.
113
+ attr_accessor :automatic_indirect_tax
114
+
115
+ def initialize(automatic_indirect_tax: nil)
116
+ @automatic_indirect_tax = automatic_indirect_tax
117
+ end
118
+ end
119
+
120
+ class Shipping < Stripe::RequestParams
121
+ class Address < Stripe::RequestParams
122
+ # City, district, suburb, town, or village.
123
+ attr_accessor :city
124
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
125
+ attr_accessor :country
126
+ # Address line 1 (e.g., street, PO Box, or company name).
127
+ attr_accessor :line1
128
+ # Address line 2 (e.g., apartment, suite, unit, or building).
129
+ attr_accessor :line2
130
+ # ZIP or postal code.
131
+ attr_accessor :postal_code
132
+ # State, county, province, or region.
133
+ attr_accessor :state
134
+
135
+ def initialize(
136
+ city: nil,
137
+ country: nil,
138
+ line1: nil,
139
+ line2: nil,
140
+ postal_code: nil,
141
+ state: nil
142
+ )
143
+ @city = city
144
+ @country = country
145
+ @line1 = line1
146
+ @line2 = line2
147
+ @postal_code = postal_code
148
+ @state = state
149
+ end
150
+ end
151
+ # Customer shipping address.
152
+ attr_accessor :address
153
+ # Customer name.
154
+ attr_accessor :name
155
+ # Customer phone (including extension).
156
+ attr_accessor :phone
157
+
158
+ def initialize(address: nil, name: nil, phone: nil)
159
+ @address = address
160
+ @name = name
161
+ @phone = phone
162
+ end
163
+ end
164
+ # 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.
165
+ attr_accessor :automatic_indirect_tax
166
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
167
+ attr_accessor :billing
168
+ # Capabilities that have been requested on the Customer Configuration.
169
+ attr_accessor :capabilities
170
+ # The customer's shipping information. Appears on invoices emailed to this customer.
171
+ attr_accessor :shipping
172
+ # 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.
173
+ attr_accessor :test_clock
174
+
175
+ def initialize(
176
+ automatic_indirect_tax: nil,
177
+ billing: nil,
178
+ capabilities: nil,
179
+ shipping: nil,
180
+ test_clock: nil
181
+ )
182
+ @automatic_indirect_tax = automatic_indirect_tax
183
+ @billing = billing
184
+ @capabilities = capabilities
185
+ @shipping = shipping
186
+ @test_clock = test_clock
187
+ end
188
+ end
189
+
190
+ class Merchant < Stripe::RequestParams
191
+ class BacsDebitPayments < Stripe::RequestParams
192
+ # Display name for Bacs debit payments.
193
+ attr_accessor :display_name
194
+
195
+ def initialize(display_name: nil)
196
+ @display_name = display_name
197
+ end
198
+ end
199
+
200
+ class Branding < Stripe::RequestParams
201
+ # 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.
202
+ attr_accessor :icon
203
+ # 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.
204
+ attr_accessor :logo
205
+ # A CSS hex color value representing the primary branding color for the merchant.
206
+ attr_accessor :primary_color
207
+ # A CSS hex color value representing the secondary branding color for the merchant.
208
+ attr_accessor :secondary_color
209
+
210
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
211
+ @icon = icon
212
+ @logo = logo
213
+ @primary_color = primary_color
214
+ @secondary_color = secondary_color
215
+ end
216
+ end
217
+
218
+ class Capabilities < Stripe::RequestParams
219
+ class AchDebitPayments < Stripe::RequestParams
220
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
221
+ attr_accessor :requested
222
+
223
+ def initialize(requested: nil)
224
+ @requested = requested
225
+ end
226
+ end
227
+
228
+ class AcssDebitPayments < Stripe::RequestParams
229
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
230
+ attr_accessor :requested
231
+
232
+ def initialize(requested: nil)
233
+ @requested = requested
234
+ end
235
+ end
236
+
237
+ class AffirmPayments < Stripe::RequestParams
238
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
239
+ attr_accessor :requested
240
+
241
+ def initialize(requested: nil)
242
+ @requested = requested
243
+ end
244
+ end
245
+
246
+ class AfterpayClearpayPayments < Stripe::RequestParams
247
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
248
+ attr_accessor :requested
249
+
250
+ def initialize(requested: nil)
251
+ @requested = requested
252
+ end
253
+ end
254
+
255
+ class AlmaPayments < Stripe::RequestParams
256
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
257
+ attr_accessor :requested
258
+
259
+ def initialize(requested: nil)
260
+ @requested = requested
261
+ end
262
+ end
263
+
264
+ class AmazonPayPayments < Stripe::RequestParams
265
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
266
+ attr_accessor :requested
267
+
268
+ def initialize(requested: nil)
269
+ @requested = requested
270
+ end
271
+ end
272
+
273
+ class AuBecsDebitPayments < Stripe::RequestParams
274
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
275
+ attr_accessor :requested
276
+
277
+ def initialize(requested: nil)
278
+ @requested = requested
279
+ end
280
+ end
281
+
282
+ class BacsDebitPayments < Stripe::RequestParams
283
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
284
+ attr_accessor :requested
285
+
286
+ def initialize(requested: nil)
287
+ @requested = requested
288
+ end
289
+ end
290
+
291
+ class BancontactPayments < Stripe::RequestParams
292
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
293
+ attr_accessor :requested
294
+
295
+ def initialize(requested: nil)
296
+ @requested = requested
297
+ end
298
+ end
299
+
300
+ class BlikPayments < Stripe::RequestParams
301
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
302
+ attr_accessor :requested
303
+
304
+ def initialize(requested: nil)
305
+ @requested = requested
306
+ end
307
+ end
308
+
309
+ class BoletoPayments < Stripe::RequestParams
310
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
311
+ attr_accessor :requested
312
+
313
+ def initialize(requested: nil)
314
+ @requested = requested
315
+ end
316
+ end
317
+
318
+ class CardPayments < Stripe::RequestParams
319
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
320
+ attr_accessor :requested
321
+
322
+ def initialize(requested: nil)
323
+ @requested = requested
324
+ end
325
+ end
326
+
327
+ class CartesBancairesPayments < Stripe::RequestParams
328
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
329
+ attr_accessor :requested
330
+
331
+ def initialize(requested: nil)
332
+ @requested = requested
333
+ end
334
+ end
335
+
336
+ class CashappPayments < Stripe::RequestParams
337
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
338
+ attr_accessor :requested
339
+
340
+ def initialize(requested: nil)
341
+ @requested = requested
342
+ end
343
+ end
344
+
345
+ class EpsPayments < Stripe::RequestParams
346
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
347
+ attr_accessor :requested
348
+
349
+ def initialize(requested: nil)
350
+ @requested = requested
351
+ end
352
+ end
353
+
354
+ class FpxPayments < Stripe::RequestParams
355
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
356
+ attr_accessor :requested
357
+
358
+ def initialize(requested: nil)
359
+ @requested = requested
360
+ end
361
+ end
362
+
363
+ class GbBankTransferPayments < Stripe::RequestParams
364
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
365
+ attr_accessor :requested
366
+
367
+ def initialize(requested: nil)
368
+ @requested = requested
369
+ end
370
+ end
371
+
372
+ class GrabpayPayments < Stripe::RequestParams
373
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
374
+ attr_accessor :requested
375
+
376
+ def initialize(requested: nil)
377
+ @requested = requested
378
+ end
379
+ end
380
+
381
+ class IdealPayments < Stripe::RequestParams
382
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
383
+ attr_accessor :requested
384
+
385
+ def initialize(requested: nil)
386
+ @requested = requested
387
+ end
388
+ end
389
+
390
+ class JcbPayments < Stripe::RequestParams
391
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
392
+ attr_accessor :requested
393
+
394
+ def initialize(requested: nil)
395
+ @requested = requested
396
+ end
397
+ end
398
+
399
+ class JpBankTransferPayments < Stripe::RequestParams
400
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
401
+ attr_accessor :requested
402
+
403
+ def initialize(requested: nil)
404
+ @requested = requested
405
+ end
406
+ end
407
+
408
+ class KakaoPayPayments < Stripe::RequestParams
409
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
410
+ attr_accessor :requested
411
+
412
+ def initialize(requested: nil)
413
+ @requested = requested
414
+ end
415
+ end
416
+
417
+ class KlarnaPayments < Stripe::RequestParams
418
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
419
+ attr_accessor :requested
420
+
421
+ def initialize(requested: nil)
422
+ @requested = requested
423
+ end
424
+ end
425
+
426
+ class KonbiniPayments < Stripe::RequestParams
427
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
428
+ attr_accessor :requested
429
+
430
+ def initialize(requested: nil)
431
+ @requested = requested
432
+ end
433
+ end
434
+
435
+ class KrCardPayments < Stripe::RequestParams
436
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
437
+ attr_accessor :requested
438
+
439
+ def initialize(requested: nil)
440
+ @requested = requested
441
+ end
442
+ end
443
+
444
+ class LinkPayments < Stripe::RequestParams
445
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
446
+ attr_accessor :requested
447
+
448
+ def initialize(requested: nil)
449
+ @requested = requested
450
+ end
451
+ end
452
+
453
+ class MobilepayPayments < Stripe::RequestParams
454
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
455
+ attr_accessor :requested
456
+
457
+ def initialize(requested: nil)
458
+ @requested = requested
459
+ end
460
+ end
461
+
462
+ class MultibancoPayments < Stripe::RequestParams
463
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
464
+ attr_accessor :requested
465
+
466
+ def initialize(requested: nil)
467
+ @requested = requested
468
+ end
469
+ end
470
+
471
+ class MxBankTransferPayments < Stripe::RequestParams
472
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
473
+ attr_accessor :requested
474
+
475
+ def initialize(requested: nil)
476
+ @requested = requested
477
+ end
478
+ end
479
+
480
+ class NaverPayPayments < Stripe::RequestParams
481
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
482
+ attr_accessor :requested
483
+
484
+ def initialize(requested: nil)
485
+ @requested = requested
486
+ end
487
+ end
488
+
489
+ class OxxoPayments < Stripe::RequestParams
490
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
491
+ attr_accessor :requested
492
+
493
+ def initialize(requested: nil)
494
+ @requested = requested
495
+ end
496
+ end
497
+
498
+ class P24Payments < Stripe::RequestParams
499
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
500
+ attr_accessor :requested
501
+
502
+ def initialize(requested: nil)
503
+ @requested = requested
504
+ end
505
+ end
506
+
507
+ class PayByBankPayments < Stripe::RequestParams
508
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
509
+ attr_accessor :requested
510
+
511
+ def initialize(requested: nil)
512
+ @requested = requested
513
+ end
514
+ end
515
+
516
+ class PaycoPayments < Stripe::RequestParams
517
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
518
+ attr_accessor :requested
519
+
520
+ def initialize(requested: nil)
521
+ @requested = requested
522
+ end
523
+ end
524
+
525
+ class PaynowPayments < Stripe::RequestParams
526
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
527
+ attr_accessor :requested
528
+
529
+ def initialize(requested: nil)
530
+ @requested = requested
531
+ end
532
+ end
533
+
534
+ class PromptpayPayments < Stripe::RequestParams
535
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
536
+ attr_accessor :requested
537
+
538
+ def initialize(requested: nil)
539
+ @requested = requested
540
+ end
541
+ end
542
+
543
+ class RevolutPayPayments < Stripe::RequestParams
544
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
545
+ attr_accessor :requested
546
+
547
+ def initialize(requested: nil)
548
+ @requested = requested
549
+ end
550
+ end
551
+
552
+ class SamsungPayPayments < Stripe::RequestParams
553
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
554
+ attr_accessor :requested
555
+
556
+ def initialize(requested: nil)
557
+ @requested = requested
558
+ end
559
+ end
560
+
561
+ class SepaBankTransferPayments < Stripe::RequestParams
562
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
563
+ attr_accessor :requested
564
+
565
+ def initialize(requested: nil)
566
+ @requested = requested
567
+ end
568
+ end
569
+
570
+ class SepaDebitPayments < Stripe::RequestParams
571
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
572
+ attr_accessor :requested
573
+
574
+ def initialize(requested: nil)
575
+ @requested = requested
576
+ end
577
+ end
578
+
579
+ class SwishPayments < Stripe::RequestParams
580
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
581
+ attr_accessor :requested
582
+
583
+ def initialize(requested: nil)
584
+ @requested = requested
585
+ end
586
+ end
587
+
588
+ class TwintPayments < Stripe::RequestParams
589
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
590
+ attr_accessor :requested
591
+
592
+ def initialize(requested: nil)
593
+ @requested = requested
594
+ end
595
+ end
596
+
597
+ class UsBankTransferPayments < Stripe::RequestParams
598
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
599
+ attr_accessor :requested
600
+
601
+ def initialize(requested: nil)
602
+ @requested = requested
603
+ end
604
+ end
605
+
606
+ class ZipPayments < Stripe::RequestParams
607
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
608
+ attr_accessor :requested
609
+
610
+ def initialize(requested: nil)
611
+ @requested = requested
612
+ end
613
+ end
614
+ # Allow the merchant to process ACH debit payments.
615
+ attr_accessor :ach_debit_payments
616
+ # Allow the merchant to process ACSS debit payments.
617
+ attr_accessor :acss_debit_payments
618
+ # Allow the merchant to process Affirm payments.
619
+ attr_accessor :affirm_payments
620
+ # Allow the merchant to process Afterpay/Clearpay payments.
621
+ attr_accessor :afterpay_clearpay_payments
622
+ # Allow the merchant to process Alma payments.
623
+ attr_accessor :alma_payments
624
+ # Allow the merchant to process Amazon Pay payments.
625
+ attr_accessor :amazon_pay_payments
626
+ # Allow the merchant to process Australian BECS Direct Debit payments.
627
+ attr_accessor :au_becs_debit_payments
628
+ # Allow the merchant to process BACS Direct Debit payments.
629
+ attr_accessor :bacs_debit_payments
630
+ # Allow the merchant to process Bancontact payments.
631
+ attr_accessor :bancontact_payments
632
+ # Allow the merchant to process BLIK payments.
633
+ attr_accessor :blik_payments
634
+ # Allow the merchant to process Boleto payments.
635
+ attr_accessor :boleto_payments
636
+ # Allow the merchant to collect card payments.
637
+ attr_accessor :card_payments
638
+ # Allow the merchant to process Cartes Bancaires payments.
639
+ attr_accessor :cartes_bancaires_payments
640
+ # Allow the merchant to process Cash App payments.
641
+ attr_accessor :cashapp_payments
642
+ # Allow the merchant to process EPS payments.
643
+ attr_accessor :eps_payments
644
+ # Allow the merchant to process FPX payments.
645
+ attr_accessor :fpx_payments
646
+ # Allow the merchant to process UK bank transfer payments.
647
+ attr_accessor :gb_bank_transfer_payments
648
+ # Allow the merchant to process GrabPay payments.
649
+ attr_accessor :grabpay_payments
650
+ # Allow the merchant to process iDEAL payments.
651
+ attr_accessor :ideal_payments
652
+ # Allow the merchant to process JCB card payments.
653
+ attr_accessor :jcb_payments
654
+ # Allow the merchant to process Japanese bank transfer payments.
655
+ attr_accessor :jp_bank_transfer_payments
656
+ # Allow the merchant to process Kakao Pay payments.
657
+ attr_accessor :kakao_pay_payments
658
+ # Allow the merchant to process Klarna payments.
659
+ attr_accessor :klarna_payments
660
+ # Allow the merchant to process Konbini convenience store payments.
661
+ attr_accessor :konbini_payments
662
+ # Allow the merchant to process Korean card payments.
663
+ attr_accessor :kr_card_payments
664
+ # Allow the merchant to process Link payments.
665
+ attr_accessor :link_payments
666
+ # Allow the merchant to process MobilePay payments.
667
+ attr_accessor :mobilepay_payments
668
+ # Allow the merchant to process Multibanco payments.
669
+ attr_accessor :multibanco_payments
670
+ # Allow the merchant to process Mexican bank transfer payments.
671
+ attr_accessor :mx_bank_transfer_payments
672
+ # Allow the merchant to process Naver Pay payments.
673
+ attr_accessor :naver_pay_payments
674
+ # Allow the merchant to process OXXO payments.
675
+ attr_accessor :oxxo_payments
676
+ # Allow the merchant to process Przelewy24 (P24) payments.
677
+ attr_accessor :p24_payments
678
+ # Allow the merchant to process Pay by Bank payments.
679
+ attr_accessor :pay_by_bank_payments
680
+ # Allow the merchant to process PAYCO payments.
681
+ attr_accessor :payco_payments
682
+ # Allow the merchant to process PayNow payments.
683
+ attr_accessor :paynow_payments
684
+ # Allow the merchant to process PromptPay payments.
685
+ attr_accessor :promptpay_payments
686
+ # Allow the merchant to process Revolut Pay payments.
687
+ attr_accessor :revolut_pay_payments
688
+ # Allow the merchant to process Samsung Pay payments.
689
+ attr_accessor :samsung_pay_payments
690
+ # Allow the merchant to process SEPA bank transfer payments.
691
+ attr_accessor :sepa_bank_transfer_payments
692
+ # Allow the merchant to process SEPA Direct Debit payments.
693
+ attr_accessor :sepa_debit_payments
694
+ # Allow the merchant to process Swish payments.
695
+ attr_accessor :swish_payments
696
+ # Allow the merchant to process TWINT payments.
697
+ attr_accessor :twint_payments
698
+ # Allow the merchant to process US bank transfer payments.
699
+ attr_accessor :us_bank_transfer_payments
700
+ # Allow the merchant to process Zip payments.
701
+ attr_accessor :zip_payments
702
+
703
+ def initialize(
704
+ ach_debit_payments: nil,
705
+ acss_debit_payments: nil,
706
+ affirm_payments: nil,
707
+ afterpay_clearpay_payments: nil,
708
+ alma_payments: nil,
709
+ amazon_pay_payments: nil,
710
+ au_becs_debit_payments: nil,
711
+ bacs_debit_payments: nil,
712
+ bancontact_payments: nil,
713
+ blik_payments: nil,
714
+ boleto_payments: nil,
715
+ card_payments: nil,
716
+ cartes_bancaires_payments: nil,
717
+ cashapp_payments: nil,
718
+ eps_payments: nil,
719
+ fpx_payments: nil,
720
+ gb_bank_transfer_payments: nil,
721
+ grabpay_payments: nil,
722
+ ideal_payments: nil,
723
+ jcb_payments: nil,
724
+ jp_bank_transfer_payments: nil,
725
+ kakao_pay_payments: nil,
726
+ klarna_payments: nil,
727
+ konbini_payments: nil,
728
+ kr_card_payments: nil,
729
+ link_payments: nil,
730
+ mobilepay_payments: nil,
731
+ multibanco_payments: nil,
732
+ mx_bank_transfer_payments: nil,
733
+ naver_pay_payments: nil,
734
+ oxxo_payments: nil,
735
+ p24_payments: nil,
736
+ pay_by_bank_payments: nil,
737
+ payco_payments: nil,
738
+ paynow_payments: nil,
739
+ promptpay_payments: nil,
740
+ revolut_pay_payments: nil,
741
+ samsung_pay_payments: nil,
742
+ sepa_bank_transfer_payments: nil,
743
+ sepa_debit_payments: nil,
744
+ swish_payments: nil,
745
+ twint_payments: nil,
746
+ us_bank_transfer_payments: nil,
747
+ zip_payments: nil
748
+ )
749
+ @ach_debit_payments = ach_debit_payments
750
+ @acss_debit_payments = acss_debit_payments
751
+ @affirm_payments = affirm_payments
752
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
753
+ @alma_payments = alma_payments
754
+ @amazon_pay_payments = amazon_pay_payments
755
+ @au_becs_debit_payments = au_becs_debit_payments
756
+ @bacs_debit_payments = bacs_debit_payments
757
+ @bancontact_payments = bancontact_payments
758
+ @blik_payments = blik_payments
759
+ @boleto_payments = boleto_payments
760
+ @card_payments = card_payments
761
+ @cartes_bancaires_payments = cartes_bancaires_payments
762
+ @cashapp_payments = cashapp_payments
763
+ @eps_payments = eps_payments
764
+ @fpx_payments = fpx_payments
765
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
766
+ @grabpay_payments = grabpay_payments
767
+ @ideal_payments = ideal_payments
768
+ @jcb_payments = jcb_payments
769
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
770
+ @kakao_pay_payments = kakao_pay_payments
771
+ @klarna_payments = klarna_payments
772
+ @konbini_payments = konbini_payments
773
+ @kr_card_payments = kr_card_payments
774
+ @link_payments = link_payments
775
+ @mobilepay_payments = mobilepay_payments
776
+ @multibanco_payments = multibanco_payments
777
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
778
+ @naver_pay_payments = naver_pay_payments
779
+ @oxxo_payments = oxxo_payments
780
+ @p24_payments = p24_payments
781
+ @pay_by_bank_payments = pay_by_bank_payments
782
+ @payco_payments = payco_payments
783
+ @paynow_payments = paynow_payments
784
+ @promptpay_payments = promptpay_payments
785
+ @revolut_pay_payments = revolut_pay_payments
786
+ @samsung_pay_payments = samsung_pay_payments
787
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
788
+ @sepa_debit_payments = sepa_debit_payments
789
+ @swish_payments = swish_payments
790
+ @twint_payments = twint_payments
791
+ @us_bank_transfer_payments = us_bank_transfer_payments
792
+ @zip_payments = zip_payments
793
+ end
794
+ end
795
+
796
+ class CardPayments < Stripe::RequestParams
797
+ class DeclineOn < Stripe::RequestParams
798
+ # 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.
799
+ attr_accessor :avs_failure
800
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
801
+ attr_accessor :cvc_failure
802
+
803
+ def initialize(avs_failure: nil, cvc_failure: nil)
804
+ @avs_failure = avs_failure
805
+ @cvc_failure = cvc_failure
806
+ end
807
+ end
808
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
809
+ attr_accessor :decline_on
810
+
811
+ def initialize(decline_on: nil)
812
+ @decline_on = decline_on
813
+ end
814
+ end
815
+
816
+ class StatementDescriptor < Stripe::RequestParams
817
+ # 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.
818
+ attr_accessor :descriptor
819
+ # 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.
820
+ attr_accessor :prefix
821
+
822
+ def initialize(descriptor: nil, prefix: nil)
823
+ @descriptor = descriptor
824
+ @prefix = prefix
825
+ end
826
+ end
827
+
828
+ class Support < Stripe::RequestParams
829
+ class Address < Stripe::RequestParams
830
+ # City, district, suburb, town, or village.
831
+ attr_accessor :city
832
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
833
+ attr_accessor :country
834
+ # Address line 1 (e.g., street, PO Box, or company name).
835
+ attr_accessor :line1
836
+ # Address line 2 (e.g., apartment, suite, unit, or building).
837
+ attr_accessor :line2
838
+ # ZIP or postal code.
839
+ attr_accessor :postal_code
840
+ # State, county, province, or region.
841
+ attr_accessor :state
842
+ # Town or cho-me.
843
+ attr_accessor :town
844
+
845
+ def initialize(
846
+ city: nil,
847
+ country: nil,
848
+ line1: nil,
849
+ line2: nil,
850
+ postal_code: nil,
851
+ state: nil,
852
+ town: nil
853
+ )
854
+ @city = city
855
+ @country = country
856
+ @line1 = line1
857
+ @line2 = line2
858
+ @postal_code = postal_code
859
+ @state = state
860
+ @town = town
861
+ end
862
+ end
863
+ # A publicly available mailing address for sending support issues to.
864
+ attr_accessor :address
865
+ # A publicly available email address for sending support issues to.
866
+ attr_accessor :email
867
+ # A publicly available phone number to call with support issues.
868
+ attr_accessor :phone
869
+ # A publicly available website for handling support issues.
870
+ attr_accessor :url
871
+
872
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
873
+ @address = address
874
+ @email = email
875
+ @phone = phone
876
+ @url = url
877
+ end
878
+ end
879
+ # Settings used for Bacs debit payments.
880
+ attr_accessor :bacs_debit_payments
881
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
882
+ attr_accessor :branding
883
+ # Capabilities to request on the Merchant Configuration.
884
+ attr_accessor :capabilities
885
+ # Card payments settings.
886
+ attr_accessor :card_payments
887
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
888
+ attr_accessor :mcc
889
+ # Statement descriptor.
890
+ attr_accessor :statement_descriptor
891
+ # Publicly available contact information for sending support issues to.
892
+ attr_accessor :support
893
+
894
+ def initialize(
895
+ bacs_debit_payments: nil,
896
+ branding: nil,
897
+ capabilities: nil,
898
+ card_payments: nil,
899
+ mcc: nil,
900
+ statement_descriptor: nil,
901
+ support: nil
902
+ )
903
+ @bacs_debit_payments = bacs_debit_payments
904
+ @branding = branding
905
+ @capabilities = capabilities
906
+ @card_payments = card_payments
907
+ @mcc = mcc
908
+ @statement_descriptor = statement_descriptor
909
+ @support = support
910
+ end
911
+ end
912
+
913
+ class Recipient < Stripe::RequestParams
914
+ class Capabilities < Stripe::RequestParams
915
+ class BankAccounts < Stripe::RequestParams
916
+ class Local < Stripe::RequestParams
917
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
918
+ attr_accessor :requested
919
+
920
+ def initialize(requested: nil)
921
+ @requested = requested
922
+ end
923
+ end
924
+
925
+ class Wire < Stripe::RequestParams
926
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
927
+ attr_accessor :requested
928
+
929
+ def initialize(requested: nil)
930
+ @requested = requested
931
+ end
932
+ end
933
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
934
+ attr_accessor :local
935
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
936
+ attr_accessor :wire
937
+
938
+ def initialize(local: nil, wire: nil)
939
+ @local = local
940
+ @wire = wire
941
+ end
942
+ end
943
+
944
+ class Cards < Stripe::RequestParams
945
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
946
+ attr_accessor :requested
947
+
948
+ def initialize(requested: nil)
949
+ @requested = requested
950
+ end
951
+ end
952
+
953
+ class StripeBalance < Stripe::RequestParams
954
+ class StripeTransfers < Stripe::RequestParams
955
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
956
+ attr_accessor :requested
957
+
958
+ def initialize(requested: nil)
959
+ @requested = requested
960
+ end
961
+ end
962
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
963
+ attr_accessor :stripe_transfers
964
+
965
+ def initialize(stripe_transfers: nil)
966
+ @stripe_transfers = stripe_transfers
967
+ end
968
+ end
969
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
970
+ attr_accessor :bank_accounts
971
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
972
+ attr_accessor :cards
973
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
974
+ attr_accessor :stripe_balance
975
+
976
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
977
+ @bank_accounts = bank_accounts
978
+ @cards = cards
979
+ @stripe_balance = stripe_balance
980
+ end
981
+ end
982
+ # Capabilities to be requested on the Recipient Configuration.
983
+ attr_accessor :capabilities
984
+
985
+ def initialize(capabilities: nil)
986
+ @capabilities = capabilities
987
+ end
988
+ end
989
+
990
+ class Storer < Stripe::RequestParams
991
+ class Capabilities < Stripe::RequestParams
992
+ class FinancialAddresses < Stripe::RequestParams
993
+ class BankAccounts < Stripe::RequestParams
994
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
995
+ attr_accessor :requested
996
+
997
+ def initialize(requested: nil)
998
+ @requested = requested
999
+ end
1000
+ end
1001
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1002
+ attr_accessor :bank_accounts
1003
+
1004
+ def initialize(bank_accounts: nil)
1005
+ @bank_accounts = bank_accounts
1006
+ end
1007
+ end
1008
+
1009
+ class HoldsCurrencies < Stripe::RequestParams
1010
+ class Gbp < Stripe::RequestParams
1011
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1012
+ attr_accessor :requested
1013
+
1014
+ def initialize(requested: nil)
1015
+ @requested = requested
1016
+ end
1017
+ end
1018
+ # Can hold storage-type funds on Stripe in GBP.
1019
+ attr_accessor :gbp
1020
+
1021
+ def initialize(gbp: nil)
1022
+ @gbp = gbp
1023
+ end
1024
+ end
1025
+
1026
+ class InboundTransfers < Stripe::RequestParams
1027
+ class BankAccounts < Stripe::RequestParams
1028
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1029
+ attr_accessor :requested
1030
+
1031
+ def initialize(requested: nil)
1032
+ @requested = requested
1033
+ end
1034
+ end
1035
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1036
+ attr_accessor :bank_accounts
1037
+
1038
+ def initialize(bank_accounts: nil)
1039
+ @bank_accounts = bank_accounts
1040
+ end
1041
+ end
1042
+
1043
+ class OutboundPayments < Stripe::RequestParams
1044
+ class BankAccounts < Stripe::RequestParams
1045
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1046
+ attr_accessor :requested
1047
+
1048
+ def initialize(requested: nil)
1049
+ @requested = requested
1050
+ end
1051
+ end
1052
+
1053
+ class Cards < Stripe::RequestParams
1054
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1055
+ attr_accessor :requested
1056
+
1057
+ def initialize(requested: nil)
1058
+ @requested = requested
1059
+ end
1060
+ end
1061
+
1062
+ class FinancialAccounts < Stripe::RequestParams
1063
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1064
+ attr_accessor :requested
1065
+
1066
+ def initialize(requested: nil)
1067
+ @requested = requested
1068
+ end
1069
+ end
1070
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1071
+ attr_accessor :bank_accounts
1072
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1073
+ attr_accessor :cards
1074
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1075
+ attr_accessor :financial_accounts
1076
+
1077
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1078
+ @bank_accounts = bank_accounts
1079
+ @cards = cards
1080
+ @financial_accounts = financial_accounts
1081
+ end
1082
+ end
1083
+
1084
+ class OutboundTransfers < Stripe::RequestParams
1085
+ class BankAccounts < Stripe::RequestParams
1086
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1087
+ attr_accessor :requested
1088
+
1089
+ def initialize(requested: nil)
1090
+ @requested = requested
1091
+ end
1092
+ end
1093
+
1094
+ class FinancialAccounts < Stripe::RequestParams
1095
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1096
+ attr_accessor :requested
1097
+
1098
+ def initialize(requested: nil)
1099
+ @requested = requested
1100
+ end
1101
+ end
1102
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1103
+ attr_accessor :bank_accounts
1104
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1105
+ attr_accessor :financial_accounts
1106
+
1107
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1108
+ @bank_accounts = bank_accounts
1109
+ @financial_accounts = financial_accounts
1110
+ end
1111
+ end
1112
+ # Can provision a financial address to credit/debit a FinancialAccount.
1113
+ attr_accessor :financial_addresses
1114
+ # Can hold storage-type funds on Stripe.
1115
+ attr_accessor :holds_currencies
1116
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1117
+ attr_accessor :inbound_transfers
1118
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1119
+ attr_accessor :outbound_payments
1120
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1121
+ attr_accessor :outbound_transfers
1122
+
1123
+ def initialize(
1124
+ financial_addresses: nil,
1125
+ holds_currencies: nil,
1126
+ inbound_transfers: nil,
1127
+ outbound_payments: nil,
1128
+ outbound_transfers: nil
1129
+ )
1130
+ @financial_addresses = financial_addresses
1131
+ @holds_currencies = holds_currencies
1132
+ @inbound_transfers = inbound_transfers
1133
+ @outbound_payments = outbound_payments
1134
+ @outbound_transfers = outbound_transfers
1135
+ end
1136
+ end
1137
+ # Capabilities to request on the Storer Configuration.
1138
+ attr_accessor :capabilities
1139
+
1140
+ def initialize(capabilities: nil)
1141
+ @capabilities = capabilities
1142
+ end
1143
+ end
1144
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
1145
+ attr_accessor :customer
1146
+ # 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.
1147
+ attr_accessor :merchant
1148
+ # The Recipient Configuration allows the Account to receive funds.
1149
+ attr_accessor :recipient
1150
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1151
+ attr_accessor :storer
1152
+
1153
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1154
+ @customer = customer
1155
+ @merchant = merchant
1156
+ @recipient = recipient
1157
+ @storer = storer
1158
+ end
1159
+ end
1160
+
1161
+ class Defaults < Stripe::RequestParams
1162
+ class Responsibilities < Stripe::RequestParams
1163
+ # A value indicating the party responsible for collecting fees from this account.
1164
+ attr_accessor :fees_collector
1165
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1166
+ attr_accessor :losses_collector
1167
+
1168
+ def initialize(fees_collector: nil, losses_collector: nil)
1169
+ @fees_collector = fees_collector
1170
+ @losses_collector = losses_collector
1171
+ end
1172
+ end
1173
+ # 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).
1174
+ attr_accessor :currency
1175
+ # The Account's preferred locales (languages), ordered by preference.
1176
+ attr_accessor :locales
1177
+ # Default responsibilities held by either Stripe or the platform.
1178
+ attr_accessor :responsibilities
1179
+
1180
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
1181
+ @currency = currency
1182
+ @locales = locales
1183
+ @responsibilities = responsibilities
1184
+ end
1185
+ end
1186
+
1187
+ class Identity < Stripe::RequestParams
1188
+ class Attestations < Stripe::RequestParams
1189
+ class DirectorshipDeclaration < Stripe::RequestParams
1190
+ # 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.
1191
+ attr_accessor :date
1192
+ # The IP address from which the director attestation was made.
1193
+ attr_accessor :ip
1194
+ # The user agent of the browser from which the director attestation was made.
1195
+ attr_accessor :user_agent
1196
+
1197
+ def initialize(date: nil, ip: nil, user_agent: nil)
1198
+ @date = date
1199
+ @ip = ip
1200
+ @user_agent = user_agent
1201
+ end
1202
+ end
1203
+
1204
+ class OwnershipDeclaration < Stripe::RequestParams
1205
+ # 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.
1206
+ attr_accessor :date
1207
+ # The IP address from which the beneficial owner attestation was made.
1208
+ attr_accessor :ip
1209
+ # The user agent of the browser from which the beneficial owner attestation was made.
1210
+ attr_accessor :user_agent
1211
+
1212
+ def initialize(date: nil, ip: nil, user_agent: nil)
1213
+ @date = date
1214
+ @ip = ip
1215
+ @user_agent = user_agent
1216
+ end
1217
+ end
1218
+
1219
+ class PersonsProvided < Stripe::RequestParams
1220
+ # 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).
1221
+ attr_accessor :directors
1222
+ # 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).
1223
+ attr_accessor :executives
1224
+ # 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).
1225
+ attr_accessor :owners
1226
+ # Reason for why the company is exempt from providing ownership information.
1227
+ attr_accessor :ownership_exemption_reason
1228
+
1229
+ def initialize(
1230
+ directors: nil,
1231
+ executives: nil,
1232
+ owners: nil,
1233
+ ownership_exemption_reason: nil
1234
+ )
1235
+ @directors = directors
1236
+ @executives = executives
1237
+ @owners = owners
1238
+ @ownership_exemption_reason = ownership_exemption_reason
1239
+ end
1240
+ end
1241
+
1242
+ class TermsOfService < Stripe::RequestParams
1243
+ class Account < Stripe::RequestParams
1244
+ # 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.
1245
+ attr_accessor :date
1246
+ # The IP address from which the Account's representative accepted the terms of service.
1247
+ attr_accessor :ip
1248
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1249
+ attr_accessor :user_agent
1250
+
1251
+ def initialize(date: nil, ip: nil, user_agent: nil)
1252
+ @date = date
1253
+ @ip = ip
1254
+ @user_agent = user_agent
1255
+ end
1256
+ end
1257
+
1258
+ class Storer < Stripe::RequestParams
1259
+ # 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.
1260
+ attr_accessor :date
1261
+ # The IP address from which the Account's representative accepted the terms of service.
1262
+ attr_accessor :ip
1263
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1264
+ attr_accessor :user_agent
1265
+
1266
+ def initialize(date: nil, ip: nil, user_agent: nil)
1267
+ @date = date
1268
+ @ip = ip
1269
+ @user_agent = user_agent
1270
+ end
1271
+ end
1272
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1273
+ attr_accessor :account
1274
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1275
+ attr_accessor :storer
1276
+
1277
+ def initialize(account: nil, storer: nil)
1278
+ @account = account
1279
+ @storer = storer
1280
+ end
1281
+ end
1282
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1283
+ attr_accessor :directorship_declaration
1284
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1285
+ attr_accessor :ownership_declaration
1286
+ # Attestation that all Persons with a specific Relationship value have been provided.
1287
+ attr_accessor :persons_provided
1288
+ # Attestations of accepted terms of service agreements.
1289
+ attr_accessor :terms_of_service
1290
+
1291
+ def initialize(
1292
+ directorship_declaration: nil,
1293
+ ownership_declaration: nil,
1294
+ persons_provided: nil,
1295
+ terms_of_service: nil
1296
+ )
1297
+ @directorship_declaration = directorship_declaration
1298
+ @ownership_declaration = ownership_declaration
1299
+ @persons_provided = persons_provided
1300
+ @terms_of_service = terms_of_service
1301
+ end
1302
+ end
1303
+
1304
+ class BusinessDetails < Stripe::RequestParams
1305
+ class Address < Stripe::RequestParams
1306
+ # City, district, suburb, town, or village.
1307
+ attr_accessor :city
1308
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1309
+ attr_accessor :country
1310
+ # Address line 1 (e.g., street, PO Box, or company name).
1311
+ attr_accessor :line1
1312
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1313
+ attr_accessor :line2
1314
+ # ZIP or postal code.
1315
+ attr_accessor :postal_code
1316
+ # State, county, province, or region.
1317
+ attr_accessor :state
1318
+ # Town or cho-me.
1319
+ attr_accessor :town
1320
+
1321
+ def initialize(
1322
+ city: nil,
1323
+ country: nil,
1324
+ line1: nil,
1325
+ line2: nil,
1326
+ postal_code: nil,
1327
+ state: nil,
1328
+ town: nil
1329
+ )
1330
+ @city = city
1331
+ @country = country
1332
+ @line1 = line1
1333
+ @line2 = line2
1334
+ @postal_code = postal_code
1335
+ @state = state
1336
+ @town = town
1337
+ end
1338
+ end
1339
+
1340
+ class AnnualRevenue < Stripe::RequestParams
1341
+ # A non-negative integer representing the amount in the smallest currency unit.
1342
+ attr_accessor :amount
1343
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1344
+ attr_accessor :fiscal_year_end
1345
+
1346
+ def initialize(amount: nil, fiscal_year_end: nil)
1347
+ @amount = amount
1348
+ @fiscal_year_end = fiscal_year_end
1349
+ end
1350
+ end
1351
+
1352
+ class Documents < Stripe::RequestParams
1353
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1354
+ # 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`.
1355
+ attr_accessor :files
1356
+ # The format of the document. Currently supports `files` only.
1357
+ attr_accessor :type
1358
+
1359
+ def initialize(files: nil, type: nil)
1360
+ @files = files
1361
+ @type = type
1362
+ end
1363
+ end
1364
+
1365
+ class CompanyLicense < Stripe::RequestParams
1366
+ # 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`.
1367
+ attr_accessor :files
1368
+ # The format of the document. Currently supports `files` only.
1369
+ attr_accessor :type
1370
+
1371
+ def initialize(files: nil, type: nil)
1372
+ @files = files
1373
+ @type = type
1374
+ end
1375
+ end
1376
+
1377
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1378
+ # 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`.
1379
+ attr_accessor :files
1380
+ # The format of the document. Currently supports `files` only.
1381
+ attr_accessor :type
1382
+
1383
+ def initialize(files: nil, type: nil)
1384
+ @files = files
1385
+ @type = type
1386
+ end
1387
+ end
1388
+
1389
+ class CompanyMinisterialDecree < Stripe::RequestParams
1390
+ # 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`.
1391
+ attr_accessor :files
1392
+ # The format of the document. Currently supports `files` only.
1393
+ attr_accessor :type
1394
+
1395
+ def initialize(files: nil, type: nil)
1396
+ @files = files
1397
+ @type = type
1398
+ end
1399
+ end
1400
+
1401
+ class CompanyRegistrationVerification < Stripe::RequestParams
1402
+ # 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`.
1403
+ attr_accessor :files
1404
+ # The format of the document. Currently supports `files` only.
1405
+ attr_accessor :type
1406
+
1407
+ def initialize(files: nil, type: nil)
1408
+ @files = files
1409
+ @type = type
1410
+ end
1411
+ end
1412
+
1413
+ class CompanyTaxIdVerification < Stripe::RequestParams
1414
+ # 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`.
1415
+ attr_accessor :files
1416
+ # The format of the document. Currently supports `files` only.
1417
+ attr_accessor :type
1418
+
1419
+ def initialize(files: nil, type: nil)
1420
+ @files = files
1421
+ @type = type
1422
+ end
1423
+ end
1424
+
1425
+ class PrimaryVerification < Stripe::RequestParams
1426
+ class FrontBack < Stripe::RequestParams
1427
+ # 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.
1428
+ attr_accessor :back
1429
+ # 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.
1430
+ attr_accessor :front
1431
+
1432
+ def initialize(back: nil, front: nil)
1433
+ @back = back
1434
+ @front = front
1435
+ end
1436
+ end
1437
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1438
+ attr_accessor :front_back
1439
+ # The format of the verification document. Currently supports `front_back` only.
1440
+ attr_accessor :type
1441
+
1442
+ def initialize(front_back: nil, type: nil)
1443
+ @front_back = front_back
1444
+ @type = type
1445
+ end
1446
+ end
1447
+
1448
+ class ProofOfAddress < Stripe::RequestParams
1449
+ # 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`.
1450
+ attr_accessor :files
1451
+ # The format of the document. Currently supports `files` only.
1452
+ attr_accessor :type
1453
+
1454
+ def initialize(files: nil, type: nil)
1455
+ @files = files
1456
+ @type = type
1457
+ end
1458
+ end
1459
+
1460
+ class ProofOfRegistration < Stripe::RequestParams
1461
+ # 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`.
1462
+ attr_accessor :files
1463
+ # The format of the document. Currently supports `files` only.
1464
+ attr_accessor :type
1465
+
1466
+ def initialize(files: nil, type: nil)
1467
+ @files = files
1468
+ @type = type
1469
+ end
1470
+ end
1471
+
1472
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1473
+ # 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`.
1474
+ attr_accessor :files
1475
+ # The format of the document. Currently supports `files` only.
1476
+ attr_accessor :type
1477
+
1478
+ def initialize(files: nil, type: nil)
1479
+ @files = files
1480
+ @type = type
1481
+ end
1482
+ end
1483
+ # 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.
1484
+ attr_accessor :bank_account_ownership_verification
1485
+ # One or more documents that demonstrate proof of a company’s license to operate.
1486
+ attr_accessor :company_license
1487
+ # One or more documents showing the company’s Memorandum of Association.
1488
+ attr_accessor :company_memorandum_of_association
1489
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1490
+ attr_accessor :company_ministerial_decree
1491
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1492
+ attr_accessor :company_registration_verification
1493
+ # One or more documents that demonstrate proof of a company’s tax ID.
1494
+ attr_accessor :company_tax_id_verification
1495
+ # A document verifying the business.
1496
+ attr_accessor :primary_verification
1497
+ # One or more documents that demonstrate proof of address.
1498
+ attr_accessor :proof_of_address
1499
+ # One or more documents showing the company’s proof of registration with the national business registry.
1500
+ attr_accessor :proof_of_registration
1501
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1502
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1503
+
1504
+ def initialize(
1505
+ bank_account_ownership_verification: nil,
1506
+ company_license: nil,
1507
+ company_memorandum_of_association: nil,
1508
+ company_ministerial_decree: nil,
1509
+ company_registration_verification: nil,
1510
+ company_tax_id_verification: nil,
1511
+ primary_verification: nil,
1512
+ proof_of_address: nil,
1513
+ proof_of_registration: nil,
1514
+ proof_of_ultimate_beneficial_ownership: nil
1515
+ )
1516
+ @bank_account_ownership_verification = bank_account_ownership_verification
1517
+ @company_license = company_license
1518
+ @company_memorandum_of_association = company_memorandum_of_association
1519
+ @company_ministerial_decree = company_ministerial_decree
1520
+ @company_registration_verification = company_registration_verification
1521
+ @company_tax_id_verification = company_tax_id_verification
1522
+ @primary_verification = primary_verification
1523
+ @proof_of_address = proof_of_address
1524
+ @proof_of_registration = proof_of_registration
1525
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1526
+ end
1527
+ end
1528
+
1529
+ class IdNumber < Stripe::RequestParams
1530
+ # The registrar of the ID number (Only valid for DE ID number types).
1531
+ attr_accessor :registrar
1532
+ # Open Enum. The ID number type of a business entity.
1533
+ attr_accessor :type
1534
+ # The value of the ID number.
1535
+ attr_accessor :value
1536
+
1537
+ def initialize(registrar: nil, type: nil, value: nil)
1538
+ @registrar = registrar
1539
+ @type = type
1540
+ @value = value
1541
+ end
1542
+ end
1543
+
1544
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
1545
+ # A non-negative integer representing the amount in the smallest currency unit.
1546
+ attr_accessor :amount
1547
+
1548
+ def initialize(amount: nil)
1549
+ @amount = amount
1550
+ end
1551
+ end
1552
+
1553
+ class ScriptAddresses < Stripe::RequestParams
1554
+ class Kana < Stripe::RequestParams
1555
+ # City, district, suburb, town, or village.
1556
+ attr_accessor :city
1557
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1558
+ attr_accessor :country
1559
+ # Address line 1 (e.g., street, PO Box, or company name).
1560
+ attr_accessor :line1
1561
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1562
+ attr_accessor :line2
1563
+ # ZIP or postal code.
1564
+ attr_accessor :postal_code
1565
+ # State, county, province, or region.
1566
+ attr_accessor :state
1567
+ # Town or cho-me.
1568
+ attr_accessor :town
1569
+
1570
+ def initialize(
1571
+ city: nil,
1572
+ country: nil,
1573
+ line1: nil,
1574
+ line2: nil,
1575
+ postal_code: nil,
1576
+ state: nil,
1577
+ town: nil
1578
+ )
1579
+ @city = city
1580
+ @country = country
1581
+ @line1 = line1
1582
+ @line2 = line2
1583
+ @postal_code = postal_code
1584
+ @state = state
1585
+ @town = town
1586
+ end
1587
+ end
1588
+
1589
+ class Kanji < Stripe::RequestParams
1590
+ # City, district, suburb, town, or village.
1591
+ attr_accessor :city
1592
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1593
+ attr_accessor :country
1594
+ # Address line 1 (e.g., street, PO Box, or company name).
1595
+ attr_accessor :line1
1596
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1597
+ attr_accessor :line2
1598
+ # ZIP or postal code.
1599
+ attr_accessor :postal_code
1600
+ # State, county, province, or region.
1601
+ attr_accessor :state
1602
+ # Town or cho-me.
1603
+ attr_accessor :town
1604
+
1605
+ def initialize(
1606
+ city: nil,
1607
+ country: nil,
1608
+ line1: nil,
1609
+ line2: nil,
1610
+ postal_code: nil,
1611
+ state: nil,
1612
+ town: nil
1613
+ )
1614
+ @city = city
1615
+ @country = country
1616
+ @line1 = line1
1617
+ @line2 = line2
1618
+ @postal_code = postal_code
1619
+ @state = state
1620
+ @town = town
1621
+ end
1622
+ end
1623
+ # Kana Address.
1624
+ attr_accessor :kana
1625
+ # Kanji Address.
1626
+ attr_accessor :kanji
1627
+
1628
+ def initialize(kana: nil, kanji: nil)
1629
+ @kana = kana
1630
+ @kanji = kanji
1631
+ end
1632
+ end
1633
+
1634
+ class ScriptNames < Stripe::RequestParams
1635
+ class Kana < Stripe::RequestParams
1636
+ # Registered name of the business.
1637
+ attr_accessor :registered_name
1638
+
1639
+ def initialize(registered_name: nil)
1640
+ @registered_name = registered_name
1641
+ end
1642
+ end
1643
+
1644
+ class Kanji < Stripe::RequestParams
1645
+ # Registered name of the business.
1646
+ attr_accessor :registered_name
1647
+
1648
+ def initialize(registered_name: nil)
1649
+ @registered_name = registered_name
1650
+ end
1651
+ end
1652
+ # Kana name.
1653
+ attr_accessor :kana
1654
+ # Kanji name.
1655
+ attr_accessor :kanji
1656
+
1657
+ def initialize(kana: nil, kanji: nil)
1658
+ @kana = kana
1659
+ @kanji = kanji
1660
+ end
1661
+ end
1662
+ # The business registration address of the business entity.
1663
+ attr_accessor :address
1664
+ # The business gross annual revenue for its preceding fiscal year.
1665
+ attr_accessor :annual_revenue
1666
+ # A document verifying the business.
1667
+ attr_accessor :documents
1668
+ # The name which is used by the business.
1669
+ attr_accessor :doing_business_as
1670
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1671
+ attr_accessor :estimated_worker_count
1672
+ # The ID numbers of a business entity.
1673
+ attr_accessor :id_numbers
1674
+ # An estimate of the monthly revenue of the business.
1675
+ attr_accessor :monthly_estimated_revenue
1676
+ # The phone number of the Business Entity.
1677
+ attr_accessor :phone
1678
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1679
+ attr_accessor :product_description
1680
+ # The business legal name.
1681
+ attr_accessor :registered_name
1682
+ # The business registration address of the business entity in non latin script.
1683
+ attr_accessor :script_addresses
1684
+ # The business legal name in non latin script.
1685
+ attr_accessor :script_names
1686
+ # The category identifying the legal structure of the business.
1687
+ attr_accessor :structure
1688
+ # The business's publicly available website.
1689
+ attr_accessor :url
1690
+
1691
+ def initialize(
1692
+ address: nil,
1693
+ annual_revenue: nil,
1694
+ documents: nil,
1695
+ doing_business_as: nil,
1696
+ estimated_worker_count: nil,
1697
+ id_numbers: nil,
1698
+ monthly_estimated_revenue: nil,
1699
+ phone: nil,
1700
+ product_description: nil,
1701
+ registered_name: nil,
1702
+ script_addresses: nil,
1703
+ script_names: nil,
1704
+ structure: nil,
1705
+ url: nil
1706
+ )
1707
+ @address = address
1708
+ @annual_revenue = annual_revenue
1709
+ @documents = documents
1710
+ @doing_business_as = doing_business_as
1711
+ @estimated_worker_count = estimated_worker_count
1712
+ @id_numbers = id_numbers
1713
+ @monthly_estimated_revenue = monthly_estimated_revenue
1714
+ @phone = phone
1715
+ @product_description = product_description
1716
+ @registered_name = registered_name
1717
+ @script_addresses = script_addresses
1718
+ @script_names = script_names
1719
+ @structure = structure
1720
+ @url = url
1721
+ end
1722
+ end
1723
+
1724
+ class Individual < Stripe::RequestParams
1725
+ class AdditionalAddress < Stripe::RequestParams
1726
+ # City, district, suburb, town, or village.
1727
+ attr_accessor :city
1728
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1729
+ attr_accessor :country
1730
+ # Address line 1 (e.g., street, PO Box, or company name).
1731
+ attr_accessor :line1
1732
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1733
+ attr_accessor :line2
1734
+ # ZIP or postal code.
1735
+ attr_accessor :postal_code
1736
+ # Purpose of additional address.
1737
+ attr_accessor :purpose
1738
+ # State, county, province, or region.
1739
+ attr_accessor :state
1740
+ # Town or cho-me.
1741
+ attr_accessor :town
1742
+
1743
+ def initialize(
1744
+ city: nil,
1745
+ country: nil,
1746
+ line1: nil,
1747
+ line2: nil,
1748
+ postal_code: nil,
1749
+ purpose: nil,
1750
+ state: nil,
1751
+ town: nil
1752
+ )
1753
+ @city = city
1754
+ @country = country
1755
+ @line1 = line1
1756
+ @line2 = line2
1757
+ @postal_code = postal_code
1758
+ @purpose = purpose
1759
+ @state = state
1760
+ @town = town
1761
+ end
1762
+ end
1763
+
1764
+ class AdditionalName < Stripe::RequestParams
1765
+ # The person's full name.
1766
+ attr_accessor :full_name
1767
+ # The person's first or given name.
1768
+ attr_accessor :given_name
1769
+ # The purpose or type of the additional name.
1770
+ attr_accessor :purpose
1771
+ # The person's last or family name.
1772
+ attr_accessor :surname
1773
+
1774
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1775
+ @full_name = full_name
1776
+ @given_name = given_name
1777
+ @purpose = purpose
1778
+ @surname = surname
1779
+ end
1780
+ end
1781
+
1782
+ class Address < Stripe::RequestParams
1783
+ # City, district, suburb, town, or village.
1784
+ attr_accessor :city
1785
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1786
+ attr_accessor :country
1787
+ # Address line 1 (e.g., street, PO Box, or company name).
1788
+ attr_accessor :line1
1789
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1790
+ attr_accessor :line2
1791
+ # ZIP or postal code.
1792
+ attr_accessor :postal_code
1793
+ # State, county, province, or region.
1794
+ attr_accessor :state
1795
+ # Town or cho-me.
1796
+ attr_accessor :town
1797
+
1798
+ def initialize(
1799
+ city: nil,
1800
+ country: nil,
1801
+ line1: nil,
1802
+ line2: nil,
1803
+ postal_code: nil,
1804
+ state: nil,
1805
+ town: nil
1806
+ )
1807
+ @city = city
1808
+ @country = country
1809
+ @line1 = line1
1810
+ @line2 = line2
1811
+ @postal_code = postal_code
1812
+ @state = state
1813
+ @town = town
1814
+ end
1815
+ end
1816
+
1817
+ class DateOfBirth < Stripe::RequestParams
1818
+ # The day of birth.
1819
+ attr_accessor :day
1820
+ # The month of birth.
1821
+ attr_accessor :month
1822
+ # The year of birth.
1823
+ attr_accessor :year
1824
+
1825
+ def initialize(day: nil, month: nil, year: nil)
1826
+ @day = day
1827
+ @month = month
1828
+ @year = year
1829
+ end
1830
+ end
1831
+
1832
+ class Documents < Stripe::RequestParams
1833
+ class CompanyAuthorization < Stripe::RequestParams
1834
+ # 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`.
1835
+ attr_accessor :files
1836
+ # The format of the document. Currently supports `files` only.
1837
+ attr_accessor :type
1838
+
1839
+ def initialize(files: nil, type: nil)
1840
+ @files = files
1841
+ @type = type
1842
+ end
1843
+ end
1844
+
1845
+ class Passport < Stripe::RequestParams
1846
+ # 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`.
1847
+ attr_accessor :files
1848
+ # The format of the document. Currently supports `files` only.
1849
+ attr_accessor :type
1850
+
1851
+ def initialize(files: nil, type: nil)
1852
+ @files = files
1853
+ @type = type
1854
+ end
1855
+ end
1856
+
1857
+ class PrimaryVerification < Stripe::RequestParams
1858
+ class FrontBack < Stripe::RequestParams
1859
+ # 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.
1860
+ attr_accessor :back
1861
+ # 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.
1862
+ attr_accessor :front
1863
+
1864
+ def initialize(back: nil, front: nil)
1865
+ @back = back
1866
+ @front = front
1867
+ end
1868
+ end
1869
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1870
+ attr_accessor :front_back
1871
+ # The format of the verification document. Currently supports `front_back` only.
1872
+ attr_accessor :type
1873
+
1874
+ def initialize(front_back: nil, type: nil)
1875
+ @front_back = front_back
1876
+ @type = type
1877
+ end
1878
+ end
1879
+
1880
+ class SecondaryVerification < Stripe::RequestParams
1881
+ class FrontBack < Stripe::RequestParams
1882
+ # 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.
1883
+ attr_accessor :back
1884
+ # 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.
1885
+ attr_accessor :front
1886
+
1887
+ def initialize(back: nil, front: nil)
1888
+ @back = back
1889
+ @front = front
1890
+ end
1891
+ end
1892
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1893
+ attr_accessor :front_back
1894
+ # The format of the verification document. Currently supports `front_back` only.
1895
+ attr_accessor :type
1896
+
1897
+ def initialize(front_back: nil, type: nil)
1898
+ @front_back = front_back
1899
+ @type = type
1900
+ end
1901
+ end
1902
+
1903
+ class Visa < Stripe::RequestParams
1904
+ # 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`.
1905
+ attr_accessor :files
1906
+ # The format of the document. Currently supports `files` only.
1907
+ attr_accessor :type
1908
+
1909
+ def initialize(files: nil, type: nil)
1910
+ @files = files
1911
+ @type = type
1912
+ end
1913
+ end
1914
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1915
+ attr_accessor :company_authorization
1916
+ # One or more documents showing the person’s passport page with photo and personal data.
1917
+ attr_accessor :passport
1918
+ # An identifying document showing the person's name, either a passport or local ID card.
1919
+ attr_accessor :primary_verification
1920
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1921
+ attr_accessor :secondary_verification
1922
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1923
+ attr_accessor :visa
1924
+
1925
+ def initialize(
1926
+ company_authorization: nil,
1927
+ passport: nil,
1928
+ primary_verification: nil,
1929
+ secondary_verification: nil,
1930
+ visa: nil
1931
+ )
1932
+ @company_authorization = company_authorization
1933
+ @passport = passport
1934
+ @primary_verification = primary_verification
1935
+ @secondary_verification = secondary_verification
1936
+ @visa = visa
1937
+ end
1938
+ end
1939
+
1940
+ class IdNumber < Stripe::RequestParams
1941
+ # The ID number type of an individual.
1942
+ attr_accessor :type
1943
+ # The value of the ID number.
1944
+ attr_accessor :value
1945
+
1946
+ def initialize(type: nil, value: nil)
1947
+ @type = type
1948
+ @value = value
1949
+ end
1950
+ end
1951
+
1952
+ class Relationship < Stripe::RequestParams
1953
+ # 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.
1954
+ attr_accessor :director
1955
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1956
+ attr_accessor :executive
1957
+ # Whether the person is an owner of the account’s identity.
1958
+ attr_accessor :owner
1959
+ # The percent owned by the person of the account's legal entity.
1960
+ attr_accessor :percent_ownership
1961
+ # The person's title (e.g., CEO, Support Engineer).
1962
+ attr_accessor :title
1963
+
1964
+ def initialize(
1965
+ director: nil,
1966
+ executive: nil,
1967
+ owner: nil,
1968
+ percent_ownership: nil,
1969
+ title: nil
1970
+ )
1971
+ @director = director
1972
+ @executive = executive
1973
+ @owner = owner
1974
+ @percent_ownership = percent_ownership
1975
+ @title = title
1976
+ end
1977
+ end
1978
+
1979
+ class ScriptAddresses < Stripe::RequestParams
1980
+ class Kana < Stripe::RequestParams
1981
+ # City, district, suburb, town, or village.
1982
+ attr_accessor :city
1983
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1984
+ attr_accessor :country
1985
+ # Address line 1 (e.g., street, PO Box, or company name).
1986
+ attr_accessor :line1
1987
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1988
+ attr_accessor :line2
1989
+ # ZIP or postal code.
1990
+ attr_accessor :postal_code
1991
+ # State, county, province, or region.
1992
+ attr_accessor :state
1993
+ # Town or cho-me.
1994
+ attr_accessor :town
1995
+
1996
+ def initialize(
1997
+ city: nil,
1998
+ country: nil,
1999
+ line1: nil,
2000
+ line2: nil,
2001
+ postal_code: nil,
2002
+ state: nil,
2003
+ town: nil
2004
+ )
2005
+ @city = city
2006
+ @country = country
2007
+ @line1 = line1
2008
+ @line2 = line2
2009
+ @postal_code = postal_code
2010
+ @state = state
2011
+ @town = town
2012
+ end
2013
+ end
2014
+
2015
+ class Kanji < Stripe::RequestParams
2016
+ # City, district, suburb, town, or village.
2017
+ attr_accessor :city
2018
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2019
+ attr_accessor :country
2020
+ # Address line 1 (e.g., street, PO Box, or company name).
2021
+ attr_accessor :line1
2022
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2023
+ attr_accessor :line2
2024
+ # ZIP or postal code.
2025
+ attr_accessor :postal_code
2026
+ # State, county, province, or region.
2027
+ attr_accessor :state
2028
+ # Town or cho-me.
2029
+ attr_accessor :town
2030
+
2031
+ def initialize(
2032
+ city: nil,
2033
+ country: nil,
2034
+ line1: nil,
2035
+ line2: nil,
2036
+ postal_code: nil,
2037
+ state: nil,
2038
+ town: nil
2039
+ )
2040
+ @city = city
2041
+ @country = country
2042
+ @line1 = line1
2043
+ @line2 = line2
2044
+ @postal_code = postal_code
2045
+ @state = state
2046
+ @town = town
2047
+ end
2048
+ end
2049
+ # Kana Address.
2050
+ attr_accessor :kana
2051
+ # Kanji Address.
2052
+ attr_accessor :kanji
2053
+
2054
+ def initialize(kana: nil, kanji: nil)
2055
+ @kana = kana
2056
+ @kanji = kanji
2057
+ end
2058
+ end
2059
+
2060
+ class ScriptNames < Stripe::RequestParams
2061
+ class Kana < Stripe::RequestParams
2062
+ # The person's first or given name.
2063
+ attr_accessor :given_name
2064
+ # The person's last or family name.
2065
+ attr_accessor :surname
2066
+
2067
+ def initialize(given_name: nil, surname: nil)
2068
+ @given_name = given_name
2069
+ @surname = surname
2070
+ end
2071
+ end
2072
+
2073
+ class Kanji < Stripe::RequestParams
2074
+ # The person's first or given name.
2075
+ attr_accessor :given_name
2076
+ # The person's last or family name.
2077
+ attr_accessor :surname
2078
+
2079
+ def initialize(given_name: nil, surname: nil)
2080
+ @given_name = given_name
2081
+ @surname = surname
2082
+ end
2083
+ end
2084
+ # Persons name in kana script.
2085
+ attr_accessor :kana
2086
+ # Persons name in kanji script.
2087
+ attr_accessor :kanji
2088
+
2089
+ def initialize(kana: nil, kanji: nil)
2090
+ @kana = kana
2091
+ @kanji = kanji
2092
+ end
2093
+ end
2094
+ # Additional addresses associated with the individual.
2095
+ attr_accessor :additional_addresses
2096
+ # Additional names (e.g. aliases) associated with the individual.
2097
+ attr_accessor :additional_names
2098
+ # The individual's residential address.
2099
+ attr_accessor :address
2100
+ # The individual's date of birth.
2101
+ attr_accessor :date_of_birth
2102
+ # Documents that may be submitted to satisfy various informational requests.
2103
+ attr_accessor :documents
2104
+ # The individual's email address.
2105
+ attr_accessor :email
2106
+ # The individual's first name.
2107
+ attr_accessor :given_name
2108
+ # The identification numbers (e.g., SSN) associated with the individual.
2109
+ attr_accessor :id_numbers
2110
+ # The individual's gender (International regulations require either "male" or "female").
2111
+ attr_accessor :legal_gender
2112
+ # 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.
2113
+ attr_accessor :metadata
2114
+ # 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)).
2115
+ attr_accessor :nationalities
2116
+ # The individual's phone number.
2117
+ attr_accessor :phone
2118
+ # The individual's political exposure.
2119
+ attr_accessor :political_exposure
2120
+ # The relationship that this individual has with the account's identity.
2121
+ attr_accessor :relationship
2122
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2123
+ attr_accessor :script_addresses
2124
+ # The individuals primary name in non latin script.
2125
+ attr_accessor :script_names
2126
+ # The individual's last name.
2127
+ attr_accessor :surname
2128
+
2129
+ def initialize(
2130
+ additional_addresses: nil,
2131
+ additional_names: nil,
2132
+ address: nil,
2133
+ date_of_birth: nil,
2134
+ documents: nil,
2135
+ email: nil,
2136
+ given_name: nil,
2137
+ id_numbers: nil,
2138
+ legal_gender: nil,
2139
+ metadata: nil,
2140
+ nationalities: nil,
2141
+ phone: nil,
2142
+ political_exposure: nil,
2143
+ relationship: nil,
2144
+ script_addresses: nil,
2145
+ script_names: nil,
2146
+ surname: nil
2147
+ )
2148
+ @additional_addresses = additional_addresses
2149
+ @additional_names = additional_names
2150
+ @address = address
2151
+ @date_of_birth = date_of_birth
2152
+ @documents = documents
2153
+ @email = email
2154
+ @given_name = given_name
2155
+ @id_numbers = id_numbers
2156
+ @legal_gender = legal_gender
2157
+ @metadata = metadata
2158
+ @nationalities = nationalities
2159
+ @phone = phone
2160
+ @political_exposure = political_exposure
2161
+ @relationship = relationship
2162
+ @script_addresses = script_addresses
2163
+ @script_names = script_names
2164
+ @surname = surname
2165
+ end
2166
+ end
2167
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
2168
+ attr_accessor :attestations
2169
+ # Information about the company or business.
2170
+ attr_accessor :business_details
2171
+ # 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.
2172
+ attr_accessor :country
2173
+ # The entity type.
2174
+ attr_accessor :entity_type
2175
+ # Information about the person represented by the account.
2176
+ attr_accessor :individual
2177
+
2178
+ def initialize(
2179
+ attestations: nil,
2180
+ business_details: nil,
2181
+ country: nil,
2182
+ entity_type: nil,
2183
+ individual: nil
2184
+ )
2185
+ @attestations = attestations
2186
+ @business_details = business_details
2187
+ @country = country
2188
+ @entity_type = entity_type
2189
+ @individual = individual
2190
+ end
2191
+ end
2192
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2193
+ attr_accessor :configuration
2194
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2195
+ attr_accessor :contact_email
2196
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2197
+ attr_accessor :dashboard
2198
+ # Default values to be used on Account Configurations.
2199
+ attr_accessor :defaults
2200
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2201
+ attr_accessor :display_name
2202
+ # Information about the company, individual, and business represented by the Account.
2203
+ attr_accessor :identity
2204
+ # Additional fields to include in the response.
2205
+ attr_accessor :include
2206
+ # 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.
2207
+ attr_accessor :metadata
2208
+
2209
+ def initialize(
2210
+ configuration: nil,
2211
+ contact_email: nil,
2212
+ dashboard: nil,
2213
+ defaults: nil,
2214
+ display_name: nil,
2215
+ identity: nil,
2216
+ include: nil,
2217
+ metadata: nil
2218
+ )
2219
+ @configuration = configuration
2220
+ @contact_email = contact_email
2221
+ @dashboard = dashboard
2222
+ @defaults = defaults
2223
+ @display_name = display_name
2224
+ @identity = identity
2225
+ @include = include
2226
+ @metadata = metadata
2227
+ end
2228
+ end
2229
+
2230
+ class RetrieveParams < Stripe::RequestParams
2231
+ # Additional fields to include in the response.
2232
+ attr_accessor :include
2233
+
2234
+ def initialize(include: nil)
2235
+ @include = include
2236
+ end
2237
+ end
2238
+
2239
+ class UpdateParams < Stripe::RequestParams
2240
+ class Configuration < Stripe::RequestParams
2241
+ class Customer < Stripe::RequestParams
2242
+ class AutomaticIndirectTax < Stripe::RequestParams
2243
+ # 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”.
2244
+ attr_accessor :exempt
2245
+ # A recent IP address of the customer used for tax reporting and tax location inference.
2246
+ attr_accessor :ip_address
2247
+ # 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.
2248
+ attr_accessor :location_source
2249
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
2250
+ attr_accessor :validate_location
2251
+
2252
+ def initialize(
2253
+ exempt: nil,
2254
+ ip_address: nil,
2255
+ location_source: nil,
2256
+ validate_location: nil
2257
+ )
2258
+ @exempt = exempt
2259
+ @ip_address = ip_address
2260
+ @location_source = location_source
2261
+ @validate_location = validate_location
2262
+ end
2263
+ end
2264
+
2265
+ class Billing < Stripe::RequestParams
2266
+ class Invoice < Stripe::RequestParams
2267
+ class CustomField < Stripe::RequestParams
2268
+ # The name of the custom field. This may be up to 40 characters.
2269
+ attr_accessor :name
2270
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
2271
+ attr_accessor :value
2272
+
2273
+ def initialize(name: nil, value: nil)
2274
+ @name = name
2275
+ @value = value
2276
+ end
2277
+ end
2278
+
2279
+ class Rendering < Stripe::RequestParams
2280
+ # 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.
2281
+ attr_accessor :amount_tax_display
2282
+ # ID of the invoice rendering template to use for future invoices.
2283
+ attr_accessor :template
2284
+
2285
+ def initialize(amount_tax_display: nil, template: nil)
2286
+ @amount_tax_display = amount_tax_display
2287
+ @template = template
2288
+ end
2289
+ end
2290
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
2291
+ attr_accessor :custom_fields
2292
+ # Default footer to be displayed on invoices for this customer.
2293
+ attr_accessor :footer
2294
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
2295
+ attr_accessor :next_sequence
2296
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
2297
+ attr_accessor :prefix
2298
+ # Default options for invoice PDF rendering for this customer.
2299
+ attr_accessor :rendering
2300
+
2301
+ def initialize(
2302
+ custom_fields: nil,
2303
+ footer: nil,
2304
+ next_sequence: nil,
2305
+ prefix: nil,
2306
+ rendering: nil
2307
+ )
2308
+ @custom_fields = custom_fields
2309
+ @footer = footer
2310
+ @next_sequence = next_sequence
2311
+ @prefix = prefix
2312
+ @rendering = rendering
2313
+ end
2314
+ end
2315
+ # 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.
2316
+ attr_accessor :default_payment_method
2317
+ # Default settings used on invoices for this customer.
2318
+ attr_accessor :invoice
2319
+
2320
+ def initialize(default_payment_method: nil, invoice: nil)
2321
+ @default_payment_method = default_payment_method
2322
+ @invoice = invoice
2323
+ end
2324
+ end
2325
+
2326
+ class Capabilities < Stripe::RequestParams
2327
+ class AutomaticIndirectTax < Stripe::RequestParams
2328
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2329
+ attr_accessor :requested
2330
+
2331
+ def initialize(requested: nil)
2332
+ @requested = requested
2333
+ end
2334
+ end
2335
+ # 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.
2336
+ attr_accessor :automatic_indirect_tax
2337
+
2338
+ def initialize(automatic_indirect_tax: nil)
2339
+ @automatic_indirect_tax = automatic_indirect_tax
2340
+ end
2341
+ end
2342
+
2343
+ class Shipping < Stripe::RequestParams
2344
+ class Address < Stripe::RequestParams
2345
+ # City, district, suburb, town, or village.
2346
+ attr_accessor :city
2347
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2348
+ attr_accessor :country
2349
+ # Address line 1 (e.g., street, PO Box, or company name).
2350
+ attr_accessor :line1
2351
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2352
+ attr_accessor :line2
2353
+ # ZIP or postal code.
2354
+ attr_accessor :postal_code
2355
+ # State, county, province, or region.
2356
+ attr_accessor :state
2357
+
2358
+ def initialize(
2359
+ city: nil,
2360
+ country: nil,
2361
+ line1: nil,
2362
+ line2: nil,
2363
+ postal_code: nil,
2364
+ state: nil
2365
+ )
2366
+ @city = city
2367
+ @country = country
2368
+ @line1 = line1
2369
+ @line2 = line2
2370
+ @postal_code = postal_code
2371
+ @state = state
2372
+ end
2373
+ end
2374
+ # Customer shipping address.
2375
+ attr_accessor :address
2376
+ # Customer name.
2377
+ attr_accessor :name
2378
+ # Customer phone (including extension).
2379
+ attr_accessor :phone
2380
+
2381
+ def initialize(address: nil, name: nil, phone: nil)
2382
+ @address = address
2383
+ @name = name
2384
+ @phone = phone
2385
+ end
2386
+ end
2387
+ # 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.
2388
+ attr_accessor :automatic_indirect_tax
2389
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
2390
+ attr_accessor :billing
2391
+ # Capabilities that have been requested on the Customer Configuration.
2392
+ attr_accessor :capabilities
2393
+ # The customer's shipping information. Appears on invoices emailed to this customer.
2394
+ attr_accessor :shipping
2395
+ # 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.
2396
+ attr_accessor :test_clock
2397
+
2398
+ def initialize(
2399
+ automatic_indirect_tax: nil,
2400
+ billing: nil,
2401
+ capabilities: nil,
2402
+ shipping: nil,
2403
+ test_clock: nil
2404
+ )
2405
+ @automatic_indirect_tax = automatic_indirect_tax
2406
+ @billing = billing
2407
+ @capabilities = capabilities
2408
+ @shipping = shipping
2409
+ @test_clock = test_clock
2410
+ end
2411
+ end
2412
+
2413
+ class Merchant < Stripe::RequestParams
2414
+ class BacsDebitPayments < Stripe::RequestParams
2415
+ # Display name for Bacs debit payments.
2416
+ attr_accessor :display_name
2417
+
2418
+ def initialize(display_name: nil)
2419
+ @display_name = display_name
2420
+ end
2421
+ end
2422
+
2423
+ class Branding < Stripe::RequestParams
2424
+ # 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.
2425
+ attr_accessor :icon
2426
+ # 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.
2427
+ attr_accessor :logo
2428
+ # A CSS hex color value representing the primary branding color for the merchant.
2429
+ attr_accessor :primary_color
2430
+ # A CSS hex color value representing the secondary branding color for the merchant.
2431
+ attr_accessor :secondary_color
2432
+
2433
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
2434
+ @icon = icon
2435
+ @logo = logo
2436
+ @primary_color = primary_color
2437
+ @secondary_color = secondary_color
2438
+ end
2439
+ end
2440
+
2441
+ class Capabilities < Stripe::RequestParams
2442
+ class AchDebitPayments < Stripe::RequestParams
2443
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2444
+ attr_accessor :requested
2445
+
2446
+ def initialize(requested: nil)
2447
+ @requested = requested
2448
+ end
2449
+ end
2450
+
2451
+ class AcssDebitPayments < Stripe::RequestParams
2452
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2453
+ attr_accessor :requested
2454
+
2455
+ def initialize(requested: nil)
2456
+ @requested = requested
2457
+ end
2458
+ end
2459
+
2460
+ class AffirmPayments < Stripe::RequestParams
2461
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2462
+ attr_accessor :requested
2463
+
2464
+ def initialize(requested: nil)
2465
+ @requested = requested
2466
+ end
2467
+ end
2468
+
2469
+ class AfterpayClearpayPayments < Stripe::RequestParams
2470
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2471
+ attr_accessor :requested
2472
+
2473
+ def initialize(requested: nil)
2474
+ @requested = requested
2475
+ end
2476
+ end
2477
+
2478
+ class AlmaPayments < Stripe::RequestParams
2479
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2480
+ attr_accessor :requested
2481
+
2482
+ def initialize(requested: nil)
2483
+ @requested = requested
2484
+ end
2485
+ end
2486
+
2487
+ class AmazonPayPayments < Stripe::RequestParams
2488
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2489
+ attr_accessor :requested
2490
+
2491
+ def initialize(requested: nil)
2492
+ @requested = requested
2493
+ end
2494
+ end
2495
+
2496
+ class AuBecsDebitPayments < Stripe::RequestParams
2497
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2498
+ attr_accessor :requested
2499
+
2500
+ def initialize(requested: nil)
2501
+ @requested = requested
2502
+ end
2503
+ end
2504
+
2505
+ class BacsDebitPayments < Stripe::RequestParams
2506
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2507
+ attr_accessor :requested
2508
+
2509
+ def initialize(requested: nil)
2510
+ @requested = requested
2511
+ end
2512
+ end
2513
+
2514
+ class BancontactPayments < Stripe::RequestParams
2515
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2516
+ attr_accessor :requested
2517
+
2518
+ def initialize(requested: nil)
2519
+ @requested = requested
2520
+ end
2521
+ end
2522
+
2523
+ class BlikPayments < Stripe::RequestParams
2524
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2525
+ attr_accessor :requested
2526
+
2527
+ def initialize(requested: nil)
2528
+ @requested = requested
2529
+ end
2530
+ end
2531
+
2532
+ class BoletoPayments < Stripe::RequestParams
2533
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2534
+ attr_accessor :requested
2535
+
2536
+ def initialize(requested: nil)
2537
+ @requested = requested
2538
+ end
2539
+ end
2540
+
2541
+ class CardPayments < Stripe::RequestParams
2542
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2543
+ attr_accessor :requested
2544
+
2545
+ def initialize(requested: nil)
2546
+ @requested = requested
2547
+ end
2548
+ end
2549
+
2550
+ class CartesBancairesPayments < Stripe::RequestParams
2551
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2552
+ attr_accessor :requested
2553
+
2554
+ def initialize(requested: nil)
2555
+ @requested = requested
2556
+ end
2557
+ end
2558
+
2559
+ class CashappPayments < Stripe::RequestParams
2560
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2561
+ attr_accessor :requested
2562
+
2563
+ def initialize(requested: nil)
2564
+ @requested = requested
2565
+ end
2566
+ end
2567
+
2568
+ class EpsPayments < Stripe::RequestParams
2569
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2570
+ attr_accessor :requested
2571
+
2572
+ def initialize(requested: nil)
2573
+ @requested = requested
2574
+ end
2575
+ end
2576
+
2577
+ class FpxPayments < Stripe::RequestParams
2578
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2579
+ attr_accessor :requested
2580
+
2581
+ def initialize(requested: nil)
2582
+ @requested = requested
2583
+ end
2584
+ end
2585
+
2586
+ class GbBankTransferPayments < Stripe::RequestParams
2587
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2588
+ attr_accessor :requested
2589
+
2590
+ def initialize(requested: nil)
2591
+ @requested = requested
2592
+ end
2593
+ end
2594
+
2595
+ class GrabpayPayments < Stripe::RequestParams
2596
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2597
+ attr_accessor :requested
2598
+
2599
+ def initialize(requested: nil)
2600
+ @requested = requested
2601
+ end
2602
+ end
2603
+
2604
+ class IdealPayments < Stripe::RequestParams
2605
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2606
+ attr_accessor :requested
2607
+
2608
+ def initialize(requested: nil)
2609
+ @requested = requested
2610
+ end
2611
+ end
2612
+
2613
+ class JcbPayments < Stripe::RequestParams
2614
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2615
+ attr_accessor :requested
2616
+
2617
+ def initialize(requested: nil)
2618
+ @requested = requested
2619
+ end
2620
+ end
2621
+
2622
+ class JpBankTransferPayments < Stripe::RequestParams
2623
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2624
+ attr_accessor :requested
2625
+
2626
+ def initialize(requested: nil)
2627
+ @requested = requested
2628
+ end
2629
+ end
2630
+
2631
+ class KakaoPayPayments < Stripe::RequestParams
2632
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2633
+ attr_accessor :requested
2634
+
2635
+ def initialize(requested: nil)
2636
+ @requested = requested
2637
+ end
2638
+ end
2639
+
2640
+ class KlarnaPayments < Stripe::RequestParams
2641
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2642
+ attr_accessor :requested
2643
+
2644
+ def initialize(requested: nil)
2645
+ @requested = requested
2646
+ end
2647
+ end
2648
+
2649
+ class KonbiniPayments < Stripe::RequestParams
2650
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2651
+ attr_accessor :requested
2652
+
2653
+ def initialize(requested: nil)
2654
+ @requested = requested
2655
+ end
2656
+ end
2657
+
2658
+ class KrCardPayments < Stripe::RequestParams
2659
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2660
+ attr_accessor :requested
2661
+
2662
+ def initialize(requested: nil)
2663
+ @requested = requested
2664
+ end
2665
+ end
2666
+
2667
+ class LinkPayments < Stripe::RequestParams
2668
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2669
+ attr_accessor :requested
2670
+
2671
+ def initialize(requested: nil)
2672
+ @requested = requested
2673
+ end
2674
+ end
2675
+
2676
+ class MobilepayPayments < Stripe::RequestParams
2677
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2678
+ attr_accessor :requested
2679
+
2680
+ def initialize(requested: nil)
2681
+ @requested = requested
2682
+ end
2683
+ end
2684
+
2685
+ class MultibancoPayments < Stripe::RequestParams
2686
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2687
+ attr_accessor :requested
2688
+
2689
+ def initialize(requested: nil)
2690
+ @requested = requested
2691
+ end
2692
+ end
2693
+
2694
+ class MxBankTransferPayments < Stripe::RequestParams
2695
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2696
+ attr_accessor :requested
2697
+
2698
+ def initialize(requested: nil)
2699
+ @requested = requested
2700
+ end
2701
+ end
2702
+
2703
+ class NaverPayPayments < Stripe::RequestParams
2704
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2705
+ attr_accessor :requested
2706
+
2707
+ def initialize(requested: nil)
2708
+ @requested = requested
2709
+ end
2710
+ end
2711
+
2712
+ class OxxoPayments < Stripe::RequestParams
2713
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2714
+ attr_accessor :requested
2715
+
2716
+ def initialize(requested: nil)
2717
+ @requested = requested
2718
+ end
2719
+ end
2720
+
2721
+ class P24Payments < Stripe::RequestParams
2722
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2723
+ attr_accessor :requested
2724
+
2725
+ def initialize(requested: nil)
2726
+ @requested = requested
2727
+ end
2728
+ end
2729
+
2730
+ class PayByBankPayments < Stripe::RequestParams
2731
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2732
+ attr_accessor :requested
2733
+
2734
+ def initialize(requested: nil)
2735
+ @requested = requested
2736
+ end
2737
+ end
2738
+
2739
+ class PaycoPayments < Stripe::RequestParams
2740
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2741
+ attr_accessor :requested
2742
+
2743
+ def initialize(requested: nil)
2744
+ @requested = requested
2745
+ end
2746
+ end
2747
+
2748
+ class PaynowPayments < Stripe::RequestParams
2749
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2750
+ attr_accessor :requested
2751
+
2752
+ def initialize(requested: nil)
2753
+ @requested = requested
2754
+ end
2755
+ end
2756
+
2757
+ class PromptpayPayments < Stripe::RequestParams
2758
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2759
+ attr_accessor :requested
2760
+
2761
+ def initialize(requested: nil)
2762
+ @requested = requested
2763
+ end
2764
+ end
2765
+
2766
+ class RevolutPayPayments < Stripe::RequestParams
2767
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2768
+ attr_accessor :requested
2769
+
2770
+ def initialize(requested: nil)
2771
+ @requested = requested
2772
+ end
2773
+ end
2774
+
2775
+ class SamsungPayPayments < Stripe::RequestParams
2776
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2777
+ attr_accessor :requested
2778
+
2779
+ def initialize(requested: nil)
2780
+ @requested = requested
2781
+ end
2782
+ end
2783
+
2784
+ class SepaBankTransferPayments < Stripe::RequestParams
2785
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2786
+ attr_accessor :requested
2787
+
2788
+ def initialize(requested: nil)
2789
+ @requested = requested
2790
+ end
2791
+ end
2792
+
2793
+ class SepaDebitPayments < Stripe::RequestParams
2794
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2795
+ attr_accessor :requested
2796
+
2797
+ def initialize(requested: nil)
2798
+ @requested = requested
2799
+ end
2800
+ end
2801
+
2802
+ class SwishPayments < Stripe::RequestParams
2803
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2804
+ attr_accessor :requested
2805
+
2806
+ def initialize(requested: nil)
2807
+ @requested = requested
2808
+ end
2809
+ end
2810
+
2811
+ class TwintPayments < Stripe::RequestParams
2812
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2813
+ attr_accessor :requested
2814
+
2815
+ def initialize(requested: nil)
2816
+ @requested = requested
2817
+ end
2818
+ end
2819
+
2820
+ class UsBankTransferPayments < Stripe::RequestParams
2821
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2822
+ attr_accessor :requested
2823
+
2824
+ def initialize(requested: nil)
2825
+ @requested = requested
2826
+ end
2827
+ end
2828
+
2829
+ class ZipPayments < Stripe::RequestParams
2830
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2831
+ attr_accessor :requested
2832
+
2833
+ def initialize(requested: nil)
2834
+ @requested = requested
2835
+ end
2836
+ end
2837
+ # Allow the merchant to process ACH debit payments.
2838
+ attr_accessor :ach_debit_payments
2839
+ # Allow the merchant to process ACSS debit payments.
2840
+ attr_accessor :acss_debit_payments
2841
+ # Allow the merchant to process Affirm payments.
2842
+ attr_accessor :affirm_payments
2843
+ # Allow the merchant to process Afterpay/Clearpay payments.
2844
+ attr_accessor :afterpay_clearpay_payments
2845
+ # Allow the merchant to process Alma payments.
2846
+ attr_accessor :alma_payments
2847
+ # Allow the merchant to process Amazon Pay payments.
2848
+ attr_accessor :amazon_pay_payments
2849
+ # Allow the merchant to process Australian BECS Direct Debit payments.
2850
+ attr_accessor :au_becs_debit_payments
2851
+ # Allow the merchant to process BACS Direct Debit payments.
2852
+ attr_accessor :bacs_debit_payments
2853
+ # Allow the merchant to process Bancontact payments.
2854
+ attr_accessor :bancontact_payments
2855
+ # Allow the merchant to process BLIK payments.
2856
+ attr_accessor :blik_payments
2857
+ # Allow the merchant to process Boleto payments.
2858
+ attr_accessor :boleto_payments
2859
+ # Allow the merchant to collect card payments.
2860
+ attr_accessor :card_payments
2861
+ # Allow the merchant to process Cartes Bancaires payments.
2862
+ attr_accessor :cartes_bancaires_payments
2863
+ # Allow the merchant to process Cash App payments.
2864
+ attr_accessor :cashapp_payments
2865
+ # Allow the merchant to process EPS payments.
2866
+ attr_accessor :eps_payments
2867
+ # Allow the merchant to process FPX payments.
2868
+ attr_accessor :fpx_payments
2869
+ # Allow the merchant to process UK bank transfer payments.
2870
+ attr_accessor :gb_bank_transfer_payments
2871
+ # Allow the merchant to process GrabPay payments.
2872
+ attr_accessor :grabpay_payments
2873
+ # Allow the merchant to process iDEAL payments.
2874
+ attr_accessor :ideal_payments
2875
+ # Allow the merchant to process JCB card payments.
2876
+ attr_accessor :jcb_payments
2877
+ # Allow the merchant to process Japanese bank transfer payments.
2878
+ attr_accessor :jp_bank_transfer_payments
2879
+ # Allow the merchant to process Kakao Pay payments.
2880
+ attr_accessor :kakao_pay_payments
2881
+ # Allow the merchant to process Klarna payments.
2882
+ attr_accessor :klarna_payments
2883
+ # Allow the merchant to process Konbini convenience store payments.
2884
+ attr_accessor :konbini_payments
2885
+ # Allow the merchant to process Korean card payments.
2886
+ attr_accessor :kr_card_payments
2887
+ # Allow the merchant to process Link payments.
2888
+ attr_accessor :link_payments
2889
+ # Allow the merchant to process MobilePay payments.
2890
+ attr_accessor :mobilepay_payments
2891
+ # Allow the merchant to process Multibanco payments.
2892
+ attr_accessor :multibanco_payments
2893
+ # Allow the merchant to process Mexican bank transfer payments.
2894
+ attr_accessor :mx_bank_transfer_payments
2895
+ # Allow the merchant to process Naver Pay payments.
2896
+ attr_accessor :naver_pay_payments
2897
+ # Allow the merchant to process OXXO payments.
2898
+ attr_accessor :oxxo_payments
2899
+ # Allow the merchant to process Przelewy24 (P24) payments.
2900
+ attr_accessor :p24_payments
2901
+ # Allow the merchant to process Pay by Bank payments.
2902
+ attr_accessor :pay_by_bank_payments
2903
+ # Allow the merchant to process PAYCO payments.
2904
+ attr_accessor :payco_payments
2905
+ # Allow the merchant to process PayNow payments.
2906
+ attr_accessor :paynow_payments
2907
+ # Allow the merchant to process PromptPay payments.
2908
+ attr_accessor :promptpay_payments
2909
+ # Allow the merchant to process Revolut Pay payments.
2910
+ attr_accessor :revolut_pay_payments
2911
+ # Allow the merchant to process Samsung Pay payments.
2912
+ attr_accessor :samsung_pay_payments
2913
+ # Allow the merchant to process SEPA bank transfer payments.
2914
+ attr_accessor :sepa_bank_transfer_payments
2915
+ # Allow the merchant to process SEPA Direct Debit payments.
2916
+ attr_accessor :sepa_debit_payments
2917
+ # Allow the merchant to process Swish payments.
2918
+ attr_accessor :swish_payments
2919
+ # Allow the merchant to process TWINT payments.
2920
+ attr_accessor :twint_payments
2921
+ # Allow the merchant to process US bank transfer payments.
2922
+ attr_accessor :us_bank_transfer_payments
2923
+ # Allow the merchant to process Zip payments.
2924
+ attr_accessor :zip_payments
2925
+
2926
+ def initialize(
2927
+ ach_debit_payments: nil,
2928
+ acss_debit_payments: nil,
2929
+ affirm_payments: nil,
2930
+ afterpay_clearpay_payments: nil,
2931
+ alma_payments: nil,
2932
+ amazon_pay_payments: nil,
2933
+ au_becs_debit_payments: nil,
2934
+ bacs_debit_payments: nil,
2935
+ bancontact_payments: nil,
2936
+ blik_payments: nil,
2937
+ boleto_payments: nil,
2938
+ card_payments: nil,
2939
+ cartes_bancaires_payments: nil,
2940
+ cashapp_payments: nil,
2941
+ eps_payments: nil,
2942
+ fpx_payments: nil,
2943
+ gb_bank_transfer_payments: nil,
2944
+ grabpay_payments: nil,
2945
+ ideal_payments: nil,
2946
+ jcb_payments: nil,
2947
+ jp_bank_transfer_payments: nil,
2948
+ kakao_pay_payments: nil,
2949
+ klarna_payments: nil,
2950
+ konbini_payments: nil,
2951
+ kr_card_payments: nil,
2952
+ link_payments: nil,
2953
+ mobilepay_payments: nil,
2954
+ multibanco_payments: nil,
2955
+ mx_bank_transfer_payments: nil,
2956
+ naver_pay_payments: nil,
2957
+ oxxo_payments: nil,
2958
+ p24_payments: nil,
2959
+ pay_by_bank_payments: nil,
2960
+ payco_payments: nil,
2961
+ paynow_payments: nil,
2962
+ promptpay_payments: nil,
2963
+ revolut_pay_payments: nil,
2964
+ samsung_pay_payments: nil,
2965
+ sepa_bank_transfer_payments: nil,
2966
+ sepa_debit_payments: nil,
2967
+ swish_payments: nil,
2968
+ twint_payments: nil,
2969
+ us_bank_transfer_payments: nil,
2970
+ zip_payments: nil
2971
+ )
2972
+ @ach_debit_payments = ach_debit_payments
2973
+ @acss_debit_payments = acss_debit_payments
2974
+ @affirm_payments = affirm_payments
2975
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
2976
+ @alma_payments = alma_payments
2977
+ @amazon_pay_payments = amazon_pay_payments
2978
+ @au_becs_debit_payments = au_becs_debit_payments
2979
+ @bacs_debit_payments = bacs_debit_payments
2980
+ @bancontact_payments = bancontact_payments
2981
+ @blik_payments = blik_payments
2982
+ @boleto_payments = boleto_payments
2983
+ @card_payments = card_payments
2984
+ @cartes_bancaires_payments = cartes_bancaires_payments
2985
+ @cashapp_payments = cashapp_payments
2986
+ @eps_payments = eps_payments
2987
+ @fpx_payments = fpx_payments
2988
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
2989
+ @grabpay_payments = grabpay_payments
2990
+ @ideal_payments = ideal_payments
2991
+ @jcb_payments = jcb_payments
2992
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
2993
+ @kakao_pay_payments = kakao_pay_payments
2994
+ @klarna_payments = klarna_payments
2995
+ @konbini_payments = konbini_payments
2996
+ @kr_card_payments = kr_card_payments
2997
+ @link_payments = link_payments
2998
+ @mobilepay_payments = mobilepay_payments
2999
+ @multibanco_payments = multibanco_payments
3000
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
3001
+ @naver_pay_payments = naver_pay_payments
3002
+ @oxxo_payments = oxxo_payments
3003
+ @p24_payments = p24_payments
3004
+ @pay_by_bank_payments = pay_by_bank_payments
3005
+ @payco_payments = payco_payments
3006
+ @paynow_payments = paynow_payments
3007
+ @promptpay_payments = promptpay_payments
3008
+ @revolut_pay_payments = revolut_pay_payments
3009
+ @samsung_pay_payments = samsung_pay_payments
3010
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
3011
+ @sepa_debit_payments = sepa_debit_payments
3012
+ @swish_payments = swish_payments
3013
+ @twint_payments = twint_payments
3014
+ @us_bank_transfer_payments = us_bank_transfer_payments
3015
+ @zip_payments = zip_payments
3016
+ end
3017
+ end
3018
+
3019
+ class CardPayments < Stripe::RequestParams
3020
+ class DeclineOn < Stripe::RequestParams
3021
+ # 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.
3022
+ attr_accessor :avs_failure
3023
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
3024
+ attr_accessor :cvc_failure
3025
+
3026
+ def initialize(avs_failure: nil, cvc_failure: nil)
3027
+ @avs_failure = avs_failure
3028
+ @cvc_failure = cvc_failure
3029
+ end
3030
+ end
3031
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
3032
+ attr_accessor :decline_on
3033
+
3034
+ def initialize(decline_on: nil)
3035
+ @decline_on = decline_on
3036
+ end
3037
+ end
3038
+
3039
+ class StatementDescriptor < Stripe::RequestParams
3040
+ # 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.
3041
+ attr_accessor :descriptor
3042
+ # 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.
3043
+ attr_accessor :prefix
3044
+
3045
+ def initialize(descriptor: nil, prefix: nil)
3046
+ @descriptor = descriptor
3047
+ @prefix = prefix
3048
+ end
3049
+ end
3050
+
3051
+ class Support < Stripe::RequestParams
3052
+ class Address < Stripe::RequestParams
3053
+ # City, district, suburb, town, or village.
3054
+ attr_accessor :city
3055
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3056
+ attr_accessor :country
3057
+ # Address line 1 (e.g., street, PO Box, or company name).
3058
+ attr_accessor :line1
3059
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3060
+ attr_accessor :line2
3061
+ # ZIP or postal code.
3062
+ attr_accessor :postal_code
3063
+ # State, county, province, or region.
3064
+ attr_accessor :state
3065
+ # Town or cho-me.
3066
+ attr_accessor :town
3067
+
3068
+ def initialize(
3069
+ city: nil,
3070
+ country: nil,
3071
+ line1: nil,
3072
+ line2: nil,
3073
+ postal_code: nil,
3074
+ state: nil,
3075
+ town: nil
3076
+ )
3077
+ @city = city
3078
+ @country = country
3079
+ @line1 = line1
3080
+ @line2 = line2
3081
+ @postal_code = postal_code
3082
+ @state = state
3083
+ @town = town
3084
+ end
3085
+ end
3086
+ # A publicly available mailing address for sending support issues to.
3087
+ attr_accessor :address
3088
+ # A publicly available email address for sending support issues to.
3089
+ attr_accessor :email
3090
+ # A publicly available phone number to call with support issues.
3091
+ attr_accessor :phone
3092
+ # A publicly available website for handling support issues.
3093
+ attr_accessor :url
3094
+
3095
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
3096
+ @address = address
3097
+ @email = email
3098
+ @phone = phone
3099
+ @url = url
3100
+ end
3101
+ end
3102
+ # Settings used for Bacs debit payments.
3103
+ attr_accessor :bacs_debit_payments
3104
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
3105
+ attr_accessor :branding
3106
+ # Capabilities to request on the Merchant Configuration.
3107
+ attr_accessor :capabilities
3108
+ # Card payments settings.
3109
+ attr_accessor :card_payments
3110
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
3111
+ attr_accessor :mcc
3112
+ # Statement descriptor.
3113
+ attr_accessor :statement_descriptor
3114
+ # Publicly available contact information for sending support issues to.
3115
+ attr_accessor :support
3116
+
3117
+ def initialize(
3118
+ bacs_debit_payments: nil,
3119
+ branding: nil,
3120
+ capabilities: nil,
3121
+ card_payments: nil,
3122
+ mcc: nil,
3123
+ statement_descriptor: nil,
3124
+ support: nil
3125
+ )
3126
+ @bacs_debit_payments = bacs_debit_payments
3127
+ @branding = branding
3128
+ @capabilities = capabilities
3129
+ @card_payments = card_payments
3130
+ @mcc = mcc
3131
+ @statement_descriptor = statement_descriptor
3132
+ @support = support
3133
+ end
3134
+ end
3135
+
3136
+ class Recipient < Stripe::RequestParams
3137
+ class Capabilities < Stripe::RequestParams
3138
+ class BankAccounts < Stripe::RequestParams
3139
+ class Local < Stripe::RequestParams
3140
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3141
+ attr_accessor :requested
3142
+
3143
+ def initialize(requested: nil)
3144
+ @requested = requested
3145
+ end
3146
+ end
3147
+
3148
+ class Wire < Stripe::RequestParams
3149
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3150
+ attr_accessor :requested
3151
+
3152
+ def initialize(requested: nil)
3153
+ @requested = requested
3154
+ end
3155
+ end
3156
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
3157
+ attr_accessor :local
3158
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
3159
+ attr_accessor :wire
3160
+
3161
+ def initialize(local: nil, wire: nil)
3162
+ @local = local
3163
+ @wire = wire
3164
+ end
3165
+ end
3166
+
3167
+ class Cards < Stripe::RequestParams
3168
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3169
+ attr_accessor :requested
3170
+
3171
+ def initialize(requested: nil)
3172
+ @requested = requested
3173
+ end
3174
+ end
3175
+
3176
+ class StripeBalance < Stripe::RequestParams
3177
+ class StripeTransfers < Stripe::RequestParams
3178
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3179
+ attr_accessor :requested
3180
+
3181
+ def initialize(requested: nil)
3182
+ @requested = requested
3183
+ end
3184
+ end
3185
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
3186
+ attr_accessor :stripe_transfers
3187
+
3188
+ def initialize(stripe_transfers: nil)
3189
+ @stripe_transfers = stripe_transfers
3190
+ end
3191
+ end
3192
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
3193
+ attr_accessor :bank_accounts
3194
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
3195
+ attr_accessor :cards
3196
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
3197
+ attr_accessor :stripe_balance
3198
+
3199
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
3200
+ @bank_accounts = bank_accounts
3201
+ @cards = cards
3202
+ @stripe_balance = stripe_balance
3203
+ end
3204
+ end
3205
+ # Capabilities to request on the Recipient Configuration.
3206
+ attr_accessor :capabilities
3207
+ # 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.
3208
+ attr_accessor :default_outbound_destination
3209
+
3210
+ def initialize(capabilities: nil, default_outbound_destination: nil)
3211
+ @capabilities = capabilities
3212
+ @default_outbound_destination = default_outbound_destination
3213
+ end
3214
+ end
3215
+
3216
+ class Storer < Stripe::RequestParams
3217
+ class Capabilities < Stripe::RequestParams
3218
+ class FinancialAddresses < Stripe::RequestParams
3219
+ class BankAccounts < Stripe::RequestParams
3220
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3221
+ attr_accessor :requested
3222
+
3223
+ def initialize(requested: nil)
3224
+ @requested = requested
3225
+ end
3226
+ end
3227
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
3228
+ attr_accessor :bank_accounts
3229
+
3230
+ def initialize(bank_accounts: nil)
3231
+ @bank_accounts = bank_accounts
3232
+ end
3233
+ end
3234
+
3235
+ class HoldsCurrencies < Stripe::RequestParams
3236
+ class Gbp < Stripe::RequestParams
3237
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3238
+ attr_accessor :requested
3239
+
3240
+ def initialize(requested: nil)
3241
+ @requested = requested
3242
+ end
3243
+ end
3244
+ # Can hold storage-type funds on Stripe in GBP.
3245
+ attr_accessor :gbp
3246
+
3247
+ def initialize(gbp: nil)
3248
+ @gbp = gbp
3249
+ end
3250
+ end
3251
+
3252
+ class InboundTransfers < Stripe::RequestParams
3253
+ class BankAccounts < Stripe::RequestParams
3254
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3255
+ attr_accessor :requested
3256
+
3257
+ def initialize(requested: nil)
3258
+ @requested = requested
3259
+ end
3260
+ end
3261
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
3262
+ attr_accessor :bank_accounts
3263
+
3264
+ def initialize(bank_accounts: nil)
3265
+ @bank_accounts = bank_accounts
3266
+ end
3267
+ end
3268
+
3269
+ class OutboundPayments < Stripe::RequestParams
3270
+ class BankAccounts < Stripe::RequestParams
3271
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3272
+ attr_accessor :requested
3273
+
3274
+ def initialize(requested: nil)
3275
+ @requested = requested
3276
+ end
3277
+ end
3278
+
3279
+ class Cards < Stripe::RequestParams
3280
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3281
+ attr_accessor :requested
3282
+
3283
+ def initialize(requested: nil)
3284
+ @requested = requested
3285
+ end
3286
+ end
3287
+
3288
+ class FinancialAccounts < Stripe::RequestParams
3289
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3290
+ attr_accessor :requested
3291
+
3292
+ def initialize(requested: nil)
3293
+ @requested = requested
3294
+ end
3295
+ end
3296
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
3297
+ attr_accessor :bank_accounts
3298
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
3299
+ attr_accessor :cards
3300
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
3301
+ attr_accessor :financial_accounts
3302
+
3303
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
3304
+ @bank_accounts = bank_accounts
3305
+ @cards = cards
3306
+ @financial_accounts = financial_accounts
3307
+ end
3308
+ end
3309
+
3310
+ class OutboundTransfers < Stripe::RequestParams
3311
+ class BankAccounts < Stripe::RequestParams
3312
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3313
+ attr_accessor :requested
3314
+
3315
+ def initialize(requested: nil)
3316
+ @requested = requested
3317
+ end
3318
+ end
3319
+
3320
+ class FinancialAccounts < Stripe::RequestParams
3321
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3322
+ attr_accessor :requested
3323
+
3324
+ def initialize(requested: nil)
3325
+ @requested = requested
3326
+ end
3327
+ end
3328
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
3329
+ attr_accessor :bank_accounts
3330
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
3331
+ attr_accessor :financial_accounts
3332
+
3333
+ def initialize(bank_accounts: nil, financial_accounts: nil)
3334
+ @bank_accounts = bank_accounts
3335
+ @financial_accounts = financial_accounts
3336
+ end
3337
+ end
3338
+ # Can provision a financial address to credit/debit a FinancialAccount.
3339
+ attr_accessor :financial_addresses
3340
+ # Can hold storage-type funds on Stripe.
3341
+ attr_accessor :holds_currencies
3342
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
3343
+ attr_accessor :inbound_transfers
3344
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
3345
+ attr_accessor :outbound_payments
3346
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
3347
+ attr_accessor :outbound_transfers
3348
+
3349
+ def initialize(
3350
+ financial_addresses: nil,
3351
+ holds_currencies: nil,
3352
+ inbound_transfers: nil,
3353
+ outbound_payments: nil,
3354
+ outbound_transfers: nil
3355
+ )
3356
+ @financial_addresses = financial_addresses
3357
+ @holds_currencies = holds_currencies
3358
+ @inbound_transfers = inbound_transfers
3359
+ @outbound_payments = outbound_payments
3360
+ @outbound_transfers = outbound_transfers
3361
+ end
3362
+ end
3363
+ # Capabilities to request on the Storer Configuration.
3364
+ attr_accessor :capabilities
3365
+
3366
+ def initialize(capabilities: nil)
3367
+ @capabilities = capabilities
3368
+ end
3369
+ end
3370
+ # The Customer Configuration allows the Account to be charged.
3371
+ attr_accessor :customer
3372
+ # 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.
3373
+ attr_accessor :merchant
3374
+ # The Recipient Configuration allows the Account to receive funds.
3375
+ attr_accessor :recipient
3376
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
3377
+ attr_accessor :storer
3378
+
3379
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
3380
+ @customer = customer
3381
+ @merchant = merchant
3382
+ @recipient = recipient
3383
+ @storer = storer
3384
+ end
3385
+ end
3386
+
3387
+ class Defaults < Stripe::RequestParams
3388
+ class Responsibilities < Stripe::RequestParams
3389
+ # A value indicating the party responsible for collecting fees from this account.
3390
+ attr_accessor :fees_collector
3391
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
3392
+ attr_accessor :losses_collector
3393
+
3394
+ def initialize(fees_collector: nil, losses_collector: nil)
3395
+ @fees_collector = fees_collector
3396
+ @losses_collector = losses_collector
3397
+ end
3398
+ end
3399
+ # 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).
3400
+ attr_accessor :currency
3401
+ # The Account's preferred locales (languages), ordered by preference.
3402
+ attr_accessor :locales
3403
+ # Default responsibilities held by either Stripe or the platform.
3404
+ attr_accessor :responsibilities
3405
+
3406
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
3407
+ @currency = currency
3408
+ @locales = locales
3409
+ @responsibilities = responsibilities
3410
+ end
3411
+ end
3412
+
3413
+ class Identity < Stripe::RequestParams
3414
+ class Attestations < Stripe::RequestParams
3415
+ class DirectorshipDeclaration < Stripe::RequestParams
3416
+ # 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.
3417
+ attr_accessor :date
3418
+ # The IP address from which the director attestation was made.
3419
+ attr_accessor :ip
3420
+ # The user agent of the browser from which the director attestation was made.
3421
+ attr_accessor :user_agent
3422
+
3423
+ def initialize(date: nil, ip: nil, user_agent: nil)
3424
+ @date = date
3425
+ @ip = ip
3426
+ @user_agent = user_agent
3427
+ end
3428
+ end
3429
+
3430
+ class OwnershipDeclaration < Stripe::RequestParams
3431
+ # 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.
3432
+ attr_accessor :date
3433
+ # The IP address from which the beneficial owner attestation was made.
3434
+ attr_accessor :ip
3435
+ # The user agent of the browser from which the beneficial owner attestation was made.
3436
+ attr_accessor :user_agent
3437
+
3438
+ def initialize(date: nil, ip: nil, user_agent: nil)
3439
+ @date = date
3440
+ @ip = ip
3441
+ @user_agent = user_agent
3442
+ end
3443
+ end
3444
+
3445
+ class PersonsProvided < Stripe::RequestParams
3446
+ # 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).
3447
+ attr_accessor :directors
3448
+ # 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).
3449
+ attr_accessor :executives
3450
+ # 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).
3451
+ attr_accessor :owners
3452
+ # Reason for why the company is exempt from providing ownership information.
3453
+ attr_accessor :ownership_exemption_reason
3454
+
3455
+ def initialize(
3456
+ directors: nil,
3457
+ executives: nil,
3458
+ owners: nil,
3459
+ ownership_exemption_reason: nil
3460
+ )
3461
+ @directors = directors
3462
+ @executives = executives
3463
+ @owners = owners
3464
+ @ownership_exemption_reason = ownership_exemption_reason
3465
+ end
3466
+ end
3467
+
3468
+ class TermsOfService < Stripe::RequestParams
3469
+ class Account < Stripe::RequestParams
3470
+ # 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.
3471
+ attr_accessor :date
3472
+ # The IP address from which the Account's representative accepted the terms of service.
3473
+ attr_accessor :ip
3474
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
3475
+ attr_accessor :user_agent
3476
+
3477
+ def initialize(date: nil, ip: nil, user_agent: nil)
3478
+ @date = date
3479
+ @ip = ip
3480
+ @user_agent = user_agent
3481
+ end
3482
+ end
3483
+
3484
+ class Storer < Stripe::RequestParams
3485
+ # 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.
3486
+ attr_accessor :date
3487
+ # The IP address from which the Account's representative accepted the terms of service.
3488
+ attr_accessor :ip
3489
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
3490
+ attr_accessor :user_agent
3491
+
3492
+ def initialize(date: nil, ip: nil, user_agent: nil)
3493
+ @date = date
3494
+ @ip = ip
3495
+ @user_agent = user_agent
3496
+ end
3497
+ end
3498
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
3499
+ attr_accessor :account
3500
+ # Details on the Account's acceptance of Treasury-specific terms of service.
3501
+ attr_accessor :storer
3502
+
3503
+ def initialize(account: nil, storer: nil)
3504
+ @account = account
3505
+ @storer = storer
3506
+ end
3507
+ end
3508
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3509
+ attr_accessor :directorship_declaration
3510
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3511
+ attr_accessor :ownership_declaration
3512
+ # Attestation that all Persons with a specific Relationship value have been provided.
3513
+ attr_accessor :persons_provided
3514
+ # Attestations of accepted terms of service agreements.
3515
+ attr_accessor :terms_of_service
3516
+
3517
+ def initialize(
3518
+ directorship_declaration: nil,
3519
+ ownership_declaration: nil,
3520
+ persons_provided: nil,
3521
+ terms_of_service: nil
3522
+ )
3523
+ @directorship_declaration = directorship_declaration
3524
+ @ownership_declaration = ownership_declaration
3525
+ @persons_provided = persons_provided
3526
+ @terms_of_service = terms_of_service
3527
+ end
3528
+ end
3529
+
3530
+ class BusinessDetails < Stripe::RequestParams
3531
+ class Address < Stripe::RequestParams
3532
+ # City, district, suburb, town, or village.
3533
+ attr_accessor :city
3534
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3535
+ attr_accessor :country
3536
+ # Address line 1 (e.g., street, PO Box, or company name).
3537
+ attr_accessor :line1
3538
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3539
+ attr_accessor :line2
3540
+ # ZIP or postal code.
3541
+ attr_accessor :postal_code
3542
+ # State, county, province, or region.
3543
+ attr_accessor :state
3544
+ # Town or cho-me.
3545
+ attr_accessor :town
3546
+
3547
+ def initialize(
3548
+ city: nil,
3549
+ country: nil,
3550
+ line1: nil,
3551
+ line2: nil,
3552
+ postal_code: nil,
3553
+ state: nil,
3554
+ town: nil
3555
+ )
3556
+ @city = city
3557
+ @country = country
3558
+ @line1 = line1
3559
+ @line2 = line2
3560
+ @postal_code = postal_code
3561
+ @state = state
3562
+ @town = town
3563
+ end
3564
+ end
3565
+
3566
+ class AnnualRevenue < Stripe::RequestParams
3567
+ # A non-negative integer representing the amount in the smallest currency unit.
3568
+ attr_accessor :amount
3569
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
3570
+ attr_accessor :fiscal_year_end
3571
+
3572
+ def initialize(amount: nil, fiscal_year_end: nil)
3573
+ @amount = amount
3574
+ @fiscal_year_end = fiscal_year_end
3575
+ end
3576
+ end
3577
+
3578
+ class Documents < Stripe::RequestParams
3579
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3580
+ # 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`.
3581
+ attr_accessor :files
3582
+ # The format of the document. Currently supports `files` only.
3583
+ attr_accessor :type
3584
+
3585
+ def initialize(files: nil, type: nil)
3586
+ @files = files
3587
+ @type = type
3588
+ end
3589
+ end
3590
+
3591
+ class CompanyLicense < Stripe::RequestParams
3592
+ # 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`.
3593
+ attr_accessor :files
3594
+ # The format of the document. Currently supports `files` only.
3595
+ attr_accessor :type
3596
+
3597
+ def initialize(files: nil, type: nil)
3598
+ @files = files
3599
+ @type = type
3600
+ end
3601
+ end
3602
+
3603
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3604
+ # 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`.
3605
+ attr_accessor :files
3606
+ # The format of the document. Currently supports `files` only.
3607
+ attr_accessor :type
3608
+
3609
+ def initialize(files: nil, type: nil)
3610
+ @files = files
3611
+ @type = type
3612
+ end
3613
+ end
3614
+
3615
+ class CompanyMinisterialDecree < Stripe::RequestParams
3616
+ # 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`.
3617
+ attr_accessor :files
3618
+ # The format of the document. Currently supports `files` only.
3619
+ attr_accessor :type
3620
+
3621
+ def initialize(files: nil, type: nil)
3622
+ @files = files
3623
+ @type = type
3624
+ end
3625
+ end
3626
+
3627
+ class CompanyRegistrationVerification < Stripe::RequestParams
3628
+ # 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`.
3629
+ attr_accessor :files
3630
+ # The format of the document. Currently supports `files` only.
3631
+ attr_accessor :type
3632
+
3633
+ def initialize(files: nil, type: nil)
3634
+ @files = files
3635
+ @type = type
3636
+ end
3637
+ end
3638
+
3639
+ class CompanyTaxIdVerification < Stripe::RequestParams
3640
+ # 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`.
3641
+ attr_accessor :files
3642
+ # The format of the document. Currently supports `files` only.
3643
+ attr_accessor :type
3644
+
3645
+ def initialize(files: nil, type: nil)
3646
+ @files = files
3647
+ @type = type
3648
+ end
3649
+ end
3650
+
3651
+ class PrimaryVerification < Stripe::RequestParams
3652
+ class FrontBack < Stripe::RequestParams
3653
+ # 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.
3654
+ attr_accessor :back
3655
+ # 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.
3656
+ attr_accessor :front
3657
+
3658
+ def initialize(back: nil, front: nil)
3659
+ @back = back
3660
+ @front = front
3661
+ end
3662
+ end
3663
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3664
+ attr_accessor :front_back
3665
+ # The format of the verification document. Currently supports `front_back` only.
3666
+ attr_accessor :type
3667
+
3668
+ def initialize(front_back: nil, type: nil)
3669
+ @front_back = front_back
3670
+ @type = type
3671
+ end
3672
+ end
3673
+
3674
+ class ProofOfAddress < Stripe::RequestParams
3675
+ # 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`.
3676
+ attr_accessor :files
3677
+ # The format of the document. Currently supports `files` only.
3678
+ attr_accessor :type
3679
+
3680
+ def initialize(files: nil, type: nil)
3681
+ @files = files
3682
+ @type = type
3683
+ end
3684
+ end
3685
+
3686
+ class ProofOfRegistration < Stripe::RequestParams
3687
+ # 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`.
3688
+ attr_accessor :files
3689
+ # The format of the document. Currently supports `files` only.
3690
+ attr_accessor :type
3691
+
3692
+ def initialize(files: nil, type: nil)
3693
+ @files = files
3694
+ @type = type
3695
+ end
3696
+ end
3697
+
3698
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3699
+ # 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`.
3700
+ attr_accessor :files
3701
+ # The format of the document. Currently supports `files` only.
3702
+ attr_accessor :type
3703
+
3704
+ def initialize(files: nil, type: nil)
3705
+ @files = files
3706
+ @type = type
3707
+ end
3708
+ end
3709
+ # 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.
3710
+ attr_accessor :bank_account_ownership_verification
3711
+ # One or more documents that demonstrate proof of a company’s license to operate.
3712
+ attr_accessor :company_license
3713
+ # One or more documents showing the company’s Memorandum of Association.
3714
+ attr_accessor :company_memorandum_of_association
3715
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
3716
+ attr_accessor :company_ministerial_decree
3717
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
3718
+ attr_accessor :company_registration_verification
3719
+ # One or more documents that demonstrate proof of a company’s tax ID.
3720
+ attr_accessor :company_tax_id_verification
3721
+ # A document verifying the business.
3722
+ attr_accessor :primary_verification
3723
+ # One or more documents that demonstrate proof of address.
3724
+ attr_accessor :proof_of_address
3725
+ # One or more documents showing the company’s proof of registration with the national business registry.
3726
+ attr_accessor :proof_of_registration
3727
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3728
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3729
+
3730
+ def initialize(
3731
+ bank_account_ownership_verification: nil,
3732
+ company_license: nil,
3733
+ company_memorandum_of_association: nil,
3734
+ company_ministerial_decree: nil,
3735
+ company_registration_verification: nil,
3736
+ company_tax_id_verification: nil,
3737
+ primary_verification: nil,
3738
+ proof_of_address: nil,
3739
+ proof_of_registration: nil,
3740
+ proof_of_ultimate_beneficial_ownership: nil
3741
+ )
3742
+ @bank_account_ownership_verification = bank_account_ownership_verification
3743
+ @company_license = company_license
3744
+ @company_memorandum_of_association = company_memorandum_of_association
3745
+ @company_ministerial_decree = company_ministerial_decree
3746
+ @company_registration_verification = company_registration_verification
3747
+ @company_tax_id_verification = company_tax_id_verification
3748
+ @primary_verification = primary_verification
3749
+ @proof_of_address = proof_of_address
3750
+ @proof_of_registration = proof_of_registration
3751
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3752
+ end
3753
+ end
3754
+
3755
+ class IdNumber < Stripe::RequestParams
3756
+ # The registrar of the ID number (Only valid for DE ID number types).
3757
+ attr_accessor :registrar
3758
+ # Open Enum. The ID number type of a business entity.
3759
+ attr_accessor :type
3760
+ # The value of the ID number.
3761
+ attr_accessor :value
3762
+
3763
+ def initialize(registrar: nil, type: nil, value: nil)
3764
+ @registrar = registrar
3765
+ @type = type
3766
+ @value = value
3767
+ end
3768
+ end
3769
+
3770
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
3771
+ # A non-negative integer representing the amount in the smallest currency unit.
3772
+ attr_accessor :amount
3773
+
3774
+ def initialize(amount: nil)
3775
+ @amount = amount
3776
+ end
3777
+ end
3778
+
3779
+ class ScriptAddresses < Stripe::RequestParams
3780
+ class Kana < Stripe::RequestParams
3781
+ # City, district, suburb, town, or village.
3782
+ attr_accessor :city
3783
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3784
+ attr_accessor :country
3785
+ # Address line 1 (e.g., street, PO Box, or company name).
3786
+ attr_accessor :line1
3787
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3788
+ attr_accessor :line2
3789
+ # ZIP or postal code.
3790
+ attr_accessor :postal_code
3791
+ # State, county, province, or region.
3792
+ attr_accessor :state
3793
+ # Town or cho-me.
3794
+ attr_accessor :town
3795
+
3796
+ def initialize(
3797
+ city: nil,
3798
+ country: nil,
3799
+ line1: nil,
3800
+ line2: nil,
3801
+ postal_code: nil,
3802
+ state: nil,
3803
+ town: nil
3804
+ )
3805
+ @city = city
3806
+ @country = country
3807
+ @line1 = line1
3808
+ @line2 = line2
3809
+ @postal_code = postal_code
3810
+ @state = state
3811
+ @town = town
3812
+ end
3813
+ end
3814
+
3815
+ class Kanji < Stripe::RequestParams
3816
+ # City, district, suburb, town, or village.
3817
+ attr_accessor :city
3818
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3819
+ attr_accessor :country
3820
+ # Address line 1 (e.g., street, PO Box, or company name).
3821
+ attr_accessor :line1
3822
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3823
+ attr_accessor :line2
3824
+ # ZIP or postal code.
3825
+ attr_accessor :postal_code
3826
+ # State, county, province, or region.
3827
+ attr_accessor :state
3828
+ # Town or cho-me.
3829
+ attr_accessor :town
3830
+
3831
+ def initialize(
3832
+ city: nil,
3833
+ country: nil,
3834
+ line1: nil,
3835
+ line2: nil,
3836
+ postal_code: nil,
3837
+ state: nil,
3838
+ town: nil
3839
+ )
3840
+ @city = city
3841
+ @country = country
3842
+ @line1 = line1
3843
+ @line2 = line2
3844
+ @postal_code = postal_code
3845
+ @state = state
3846
+ @town = town
3847
+ end
3848
+ end
3849
+ # Kana Address.
3850
+ attr_accessor :kana
3851
+ # Kanji Address.
3852
+ attr_accessor :kanji
3853
+
3854
+ def initialize(kana: nil, kanji: nil)
3855
+ @kana = kana
3856
+ @kanji = kanji
3857
+ end
3858
+ end
3859
+
3860
+ class ScriptNames < Stripe::RequestParams
3861
+ class Kana < Stripe::RequestParams
3862
+ # Registered name of the business.
3863
+ attr_accessor :registered_name
3864
+
3865
+ def initialize(registered_name: nil)
3866
+ @registered_name = registered_name
3867
+ end
3868
+ end
3869
+
3870
+ class Kanji < Stripe::RequestParams
3871
+ # Registered name of the business.
3872
+ attr_accessor :registered_name
3873
+
3874
+ def initialize(registered_name: nil)
3875
+ @registered_name = registered_name
3876
+ end
3877
+ end
3878
+ # Kana name.
3879
+ attr_accessor :kana
3880
+ # Kanji name.
3881
+ attr_accessor :kanji
3882
+
3883
+ def initialize(kana: nil, kanji: nil)
3884
+ @kana = kana
3885
+ @kanji = kanji
3886
+ end
3887
+ end
3888
+ # The business registration address of the business entity.
3889
+ attr_accessor :address
3890
+ # The business gross annual revenue for its preceding fiscal year.
3891
+ attr_accessor :annual_revenue
3892
+ # A document verifying the business.
3893
+ attr_accessor :documents
3894
+ # The name which is used by the business.
3895
+ attr_accessor :doing_business_as
3896
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
3897
+ attr_accessor :estimated_worker_count
3898
+ # The ID numbers of a business entity.
3899
+ attr_accessor :id_numbers
3900
+ # An estimate of the monthly revenue of the business.
3901
+ attr_accessor :monthly_estimated_revenue
3902
+ # The phone number of the Business Entity.
3903
+ attr_accessor :phone
3904
+ # Internal-only description of the product sold or service provided by the business. It’s used by Stripe for risk and underwriting purposes.
3905
+ attr_accessor :product_description
3906
+ # The business legal name.
3907
+ attr_accessor :registered_name
3908
+ # The business registration address of the business entity in non latin script.
3909
+ attr_accessor :script_addresses
3910
+ # The business legal name in non latin script.
3911
+ attr_accessor :script_names
3912
+ # The category identifying the legal structure of the business.
3913
+ attr_accessor :structure
3914
+ # The business's publicly available website.
3915
+ attr_accessor :url
3916
+
3917
+ def initialize(
3918
+ address: nil,
3919
+ annual_revenue: nil,
3920
+ documents: nil,
3921
+ doing_business_as: nil,
3922
+ estimated_worker_count: nil,
3923
+ id_numbers: nil,
3924
+ monthly_estimated_revenue: nil,
3925
+ phone: nil,
3926
+ product_description: nil,
3927
+ registered_name: nil,
3928
+ script_addresses: nil,
3929
+ script_names: nil,
3930
+ structure: nil,
3931
+ url: nil
3932
+ )
3933
+ @address = address
3934
+ @annual_revenue = annual_revenue
3935
+ @documents = documents
3936
+ @doing_business_as = doing_business_as
3937
+ @estimated_worker_count = estimated_worker_count
3938
+ @id_numbers = id_numbers
3939
+ @monthly_estimated_revenue = monthly_estimated_revenue
3940
+ @phone = phone
3941
+ @product_description = product_description
3942
+ @registered_name = registered_name
3943
+ @script_addresses = script_addresses
3944
+ @script_names = script_names
3945
+ @structure = structure
3946
+ @url = url
3947
+ end
3948
+ end
3949
+
3950
+ class Individual < Stripe::RequestParams
3951
+ class AdditionalAddress < Stripe::RequestParams
3952
+ # City, district, suburb, town, or village.
3953
+ attr_accessor :city
3954
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3955
+ attr_accessor :country
3956
+ # Address line 1 (e.g., street, PO Box, or company name).
3957
+ attr_accessor :line1
3958
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3959
+ attr_accessor :line2
3960
+ # ZIP or postal code.
3961
+ attr_accessor :postal_code
3962
+ # Purpose of additional address.
3963
+ attr_accessor :purpose
3964
+ # State, county, province, or region.
3965
+ attr_accessor :state
3966
+ # Town or cho-me.
3967
+ attr_accessor :town
3968
+
3969
+ def initialize(
3970
+ city: nil,
3971
+ country: nil,
3972
+ line1: nil,
3973
+ line2: nil,
3974
+ postal_code: nil,
3975
+ purpose: nil,
3976
+ state: nil,
3977
+ town: nil
3978
+ )
3979
+ @city = city
3980
+ @country = country
3981
+ @line1 = line1
3982
+ @line2 = line2
3983
+ @postal_code = postal_code
3984
+ @purpose = purpose
3985
+ @state = state
3986
+ @town = town
3987
+ end
3988
+ end
3989
+
3990
+ class AdditionalName < Stripe::RequestParams
3991
+ # The person's full name.
3992
+ attr_accessor :full_name
3993
+ # The person's first or given name.
3994
+ attr_accessor :given_name
3995
+ # The purpose or type of the additional name.
3996
+ attr_accessor :purpose
3997
+ # The person's last or family name.
3998
+ attr_accessor :surname
3999
+
4000
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
4001
+ @full_name = full_name
4002
+ @given_name = given_name
4003
+ @purpose = purpose
4004
+ @surname = surname
4005
+ end
4006
+ end
4007
+
4008
+ class Address < Stripe::RequestParams
4009
+ # City, district, suburb, town, or village.
4010
+ attr_accessor :city
4011
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
4012
+ attr_accessor :country
4013
+ # Address line 1 (e.g., street, PO Box, or company name).
4014
+ attr_accessor :line1
4015
+ # Address line 2 (e.g., apartment, suite, unit, or building).
4016
+ attr_accessor :line2
4017
+ # ZIP or postal code.
4018
+ attr_accessor :postal_code
4019
+ # State, county, province, or region.
4020
+ attr_accessor :state
4021
+ # Town or cho-me.
4022
+ attr_accessor :town
4023
+
4024
+ def initialize(
4025
+ city: nil,
4026
+ country: nil,
4027
+ line1: nil,
4028
+ line2: nil,
4029
+ postal_code: nil,
4030
+ state: nil,
4031
+ town: nil
4032
+ )
4033
+ @city = city
4034
+ @country = country
4035
+ @line1 = line1
4036
+ @line2 = line2
4037
+ @postal_code = postal_code
4038
+ @state = state
4039
+ @town = town
4040
+ end
4041
+ end
4042
+
4043
+ class DateOfBirth < Stripe::RequestParams
4044
+ # The day of the birth.
4045
+ attr_accessor :day
4046
+ # The month of birth.
4047
+ attr_accessor :month
4048
+ # The year of birth.
4049
+ attr_accessor :year
4050
+
4051
+ def initialize(day: nil, month: nil, year: nil)
4052
+ @day = day
4053
+ @month = month
4054
+ @year = year
4055
+ end
4056
+ end
4057
+
4058
+ class Documents < Stripe::RequestParams
4059
+ class CompanyAuthorization < Stripe::RequestParams
4060
+ # 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`.
4061
+ attr_accessor :files
4062
+ # The format of the document. Currently supports `files` only.
4063
+ attr_accessor :type
4064
+
4065
+ def initialize(files: nil, type: nil)
4066
+ @files = files
4067
+ @type = type
4068
+ end
4069
+ end
4070
+
4071
+ class Passport < Stripe::RequestParams
4072
+ # 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`.
4073
+ attr_accessor :files
4074
+ # The format of the document. Currently supports `files` only.
4075
+ attr_accessor :type
4076
+
4077
+ def initialize(files: nil, type: nil)
4078
+ @files = files
4079
+ @type = type
4080
+ end
4081
+ end
4082
+
4083
+ class PrimaryVerification < Stripe::RequestParams
4084
+ class FrontBack < Stripe::RequestParams
4085
+ # 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.
4086
+ attr_accessor :back
4087
+ # 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.
4088
+ attr_accessor :front
4089
+
4090
+ def initialize(back: nil, front: nil)
4091
+ @back = back
4092
+ @front = front
4093
+ end
4094
+ end
4095
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
4096
+ attr_accessor :front_back
4097
+ # The format of the verification document. Currently supports `front_back` only.
4098
+ attr_accessor :type
4099
+
4100
+ def initialize(front_back: nil, type: nil)
4101
+ @front_back = front_back
4102
+ @type = type
4103
+ end
4104
+ end
4105
+
4106
+ class SecondaryVerification < Stripe::RequestParams
4107
+ class FrontBack < Stripe::RequestParams
4108
+ # 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.
4109
+ attr_accessor :back
4110
+ # 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.
4111
+ attr_accessor :front
4112
+
4113
+ def initialize(back: nil, front: nil)
4114
+ @back = back
4115
+ @front = front
4116
+ end
4117
+ end
4118
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
4119
+ attr_accessor :front_back
4120
+ # The format of the verification document. Currently supports `front_back` only.
4121
+ attr_accessor :type
4122
+
4123
+ def initialize(front_back: nil, type: nil)
4124
+ @front_back = front_back
4125
+ @type = type
4126
+ end
4127
+ end
4128
+
4129
+ class Visa < Stripe::RequestParams
4130
+ # 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`.
4131
+ attr_accessor :files
4132
+ # The format of the document. Currently supports `files` only.
4133
+ attr_accessor :type
4134
+
4135
+ def initialize(files: nil, type: nil)
4136
+ @files = files
4137
+ @type = type
4138
+ end
4139
+ end
4140
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
4141
+ attr_accessor :company_authorization
4142
+ # One or more documents showing the person’s passport page with photo and personal data.
4143
+ attr_accessor :passport
4144
+ # An identifying document showing the person's name, either a passport or local ID card.
4145
+ attr_accessor :primary_verification
4146
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
4147
+ attr_accessor :secondary_verification
4148
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
4149
+ attr_accessor :visa
4150
+
4151
+ def initialize(
4152
+ company_authorization: nil,
4153
+ passport: nil,
4154
+ primary_verification: nil,
4155
+ secondary_verification: nil,
4156
+ visa: nil
4157
+ )
4158
+ @company_authorization = company_authorization
4159
+ @passport = passport
4160
+ @primary_verification = primary_verification
4161
+ @secondary_verification = secondary_verification
4162
+ @visa = visa
4163
+ end
4164
+ end
4165
+
4166
+ class IdNumber < Stripe::RequestParams
4167
+ # The ID number type of an individual.
4168
+ attr_accessor :type
4169
+ # The value of the ID number.
4170
+ attr_accessor :value
4171
+
4172
+ def initialize(type: nil, value: nil)
4173
+ @type = type
4174
+ @value = value
4175
+ end
4176
+ end
4177
+
4178
+ class Relationship < Stripe::RequestParams
4179
+ # 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.
4180
+ attr_accessor :director
4181
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
4182
+ attr_accessor :executive
4183
+ # Whether the person is an owner of the account’s identity.
4184
+ attr_accessor :owner
4185
+ # The percent owned by the person of the account's legal entity.
4186
+ attr_accessor :percent_ownership
4187
+ # The person's title (e.g., CEO, Support Engineer).
4188
+ attr_accessor :title
4189
+
4190
+ def initialize(
4191
+ director: nil,
4192
+ executive: nil,
4193
+ owner: nil,
4194
+ percent_ownership: nil,
4195
+ title: nil
4196
+ )
4197
+ @director = director
4198
+ @executive = executive
4199
+ @owner = owner
4200
+ @percent_ownership = percent_ownership
4201
+ @title = title
4202
+ end
4203
+ end
4204
+
4205
+ class ScriptAddresses < Stripe::RequestParams
4206
+ class Kana < Stripe::RequestParams
4207
+ # City, district, suburb, town, or village.
4208
+ attr_accessor :city
4209
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
4210
+ attr_accessor :country
4211
+ # Address line 1 (e.g., street, PO Box, or company name).
4212
+ attr_accessor :line1
4213
+ # Address line 2 (e.g., apartment, suite, unit, or building).
4214
+ attr_accessor :line2
4215
+ # ZIP or postal code.
4216
+ attr_accessor :postal_code
4217
+ # State, county, province, or region.
4218
+ attr_accessor :state
4219
+ # Town or cho-me.
4220
+ attr_accessor :town
4221
+
4222
+ def initialize(
4223
+ city: nil,
4224
+ country: nil,
4225
+ line1: nil,
4226
+ line2: nil,
4227
+ postal_code: nil,
4228
+ state: nil,
4229
+ town: nil
4230
+ )
4231
+ @city = city
4232
+ @country = country
4233
+ @line1 = line1
4234
+ @line2 = line2
4235
+ @postal_code = postal_code
4236
+ @state = state
4237
+ @town = town
4238
+ end
4239
+ end
4240
+
4241
+ class Kanji < Stripe::RequestParams
4242
+ # City, district, suburb, town, or village.
4243
+ attr_accessor :city
4244
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
4245
+ attr_accessor :country
4246
+ # Address line 1 (e.g., street, PO Box, or company name).
4247
+ attr_accessor :line1
4248
+ # Address line 2 (e.g., apartment, suite, unit, or building).
4249
+ attr_accessor :line2
4250
+ # ZIP or postal code.
4251
+ attr_accessor :postal_code
4252
+ # State, county, province, or region.
4253
+ attr_accessor :state
4254
+ # Town or cho-me.
4255
+ attr_accessor :town
4256
+
4257
+ def initialize(
4258
+ city: nil,
4259
+ country: nil,
4260
+ line1: nil,
4261
+ line2: nil,
4262
+ postal_code: nil,
4263
+ state: nil,
4264
+ town: nil
4265
+ )
4266
+ @city = city
4267
+ @country = country
4268
+ @line1 = line1
4269
+ @line2 = line2
4270
+ @postal_code = postal_code
4271
+ @state = state
4272
+ @town = town
4273
+ end
4274
+ end
4275
+ # Kana Address.
4276
+ attr_accessor :kana
4277
+ # Kanji Address.
4278
+ attr_accessor :kanji
4279
+
4280
+ def initialize(kana: nil, kanji: nil)
4281
+ @kana = kana
4282
+ @kanji = kanji
4283
+ end
4284
+ end
4285
+
4286
+ class ScriptNames < Stripe::RequestParams
4287
+ class Kana < Stripe::RequestParams
4288
+ # The person's first or given name.
4289
+ attr_accessor :given_name
4290
+ # The person's last or family name.
4291
+ attr_accessor :surname
4292
+
4293
+ def initialize(given_name: nil, surname: nil)
4294
+ @given_name = given_name
4295
+ @surname = surname
4296
+ end
4297
+ end
4298
+
4299
+ class Kanji < Stripe::RequestParams
4300
+ # The person's first or given name.
4301
+ attr_accessor :given_name
4302
+ # The person's last or family name.
4303
+ attr_accessor :surname
4304
+
4305
+ def initialize(given_name: nil, surname: nil)
4306
+ @given_name = given_name
4307
+ @surname = surname
4308
+ end
4309
+ end
4310
+ # Persons name in kana script.
4311
+ attr_accessor :kana
4312
+ # Persons name in kanji script.
4313
+ attr_accessor :kanji
4314
+
4315
+ def initialize(kana: nil, kanji: nil)
4316
+ @kana = kana
4317
+ @kanji = kanji
4318
+ end
4319
+ end
4320
+ # Additional addresses associated with the individual.
4321
+ attr_accessor :additional_addresses
4322
+ # Additional names (e.g. aliases) associated with the individual.
4323
+ attr_accessor :additional_names
4324
+ # The individual's residential address.
4325
+ attr_accessor :address
4326
+ # The individual's date of birth.
4327
+ attr_accessor :date_of_birth
4328
+ # Documents that may be submitted to satisfy various informational requests.
4329
+ attr_accessor :documents
4330
+ # The individual's email address.
4331
+ attr_accessor :email
4332
+ # The individual's first name.
4333
+ attr_accessor :given_name
4334
+ # The identification numbers (e.g., SSN) associated with the individual.
4335
+ attr_accessor :id_numbers
4336
+ # The individual's gender (International regulations require either "male" or "female").
4337
+ attr_accessor :legal_gender
4338
+ # 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.
4339
+ attr_accessor :metadata
4340
+ # 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)).
4341
+ attr_accessor :nationalities
4342
+ # The individual's phone number.
4343
+ attr_accessor :phone
4344
+ # The individual's political exposure.
4345
+ attr_accessor :political_exposure
4346
+ # The relationship that this individual has with the account's identity.
4347
+ attr_accessor :relationship
4348
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
4349
+ attr_accessor :script_addresses
4350
+ # The individuals primary name in non latin script.
4351
+ attr_accessor :script_names
4352
+ # The individual's last name.
4353
+ attr_accessor :surname
4354
+
4355
+ def initialize(
4356
+ additional_addresses: nil,
4357
+ additional_names: nil,
4358
+ address: nil,
4359
+ date_of_birth: nil,
4360
+ documents: nil,
4361
+ email: nil,
4362
+ given_name: nil,
4363
+ id_numbers: nil,
4364
+ legal_gender: nil,
4365
+ metadata: nil,
4366
+ nationalities: nil,
4367
+ phone: nil,
4368
+ political_exposure: nil,
4369
+ relationship: nil,
4370
+ script_addresses: nil,
4371
+ script_names: nil,
4372
+ surname: nil
4373
+ )
4374
+ @additional_addresses = additional_addresses
4375
+ @additional_names = additional_names
4376
+ @address = address
4377
+ @date_of_birth = date_of_birth
4378
+ @documents = documents
4379
+ @email = email
4380
+ @given_name = given_name
4381
+ @id_numbers = id_numbers
4382
+ @legal_gender = legal_gender
4383
+ @metadata = metadata
4384
+ @nationalities = nationalities
4385
+ @phone = phone
4386
+ @political_exposure = political_exposure
4387
+ @relationship = relationship
4388
+ @script_addresses = script_addresses
4389
+ @script_names = script_names
4390
+ @surname = surname
4391
+ end
4392
+ end
4393
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
4394
+ attr_accessor :attestations
4395
+ # Information about the company or business.
4396
+ attr_accessor :business_details
4397
+ # 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.
4398
+ attr_accessor :country
4399
+ # The entity type.
4400
+ attr_accessor :entity_type
4401
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
4402
+ attr_accessor :individual
4403
+
4404
+ def initialize(
4405
+ attestations: nil,
4406
+ business_details: nil,
4407
+ country: nil,
4408
+ entity_type: nil,
4409
+ individual: nil
4410
+ )
4411
+ @attestations = attestations
4412
+ @business_details = business_details
4413
+ @country = country
4414
+ @entity_type = entity_type
4415
+ @individual = individual
4416
+ end
4417
+ end
4418
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
4419
+ attr_accessor :configuration
4420
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
4421
+ attr_accessor :contact_email
4422
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
4423
+ attr_accessor :dashboard
4424
+ # Default values to be used on Account Configurations.
4425
+ attr_accessor :defaults
4426
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
4427
+ attr_accessor :display_name
4428
+ # Information about the company, individual, and business represented by the Account.
4429
+ attr_accessor :identity
4430
+ # Additional fields to include in the response.
4431
+ attr_accessor :include
4432
+ # 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.
4433
+ attr_accessor :metadata
4434
+
4435
+ def initialize(
4436
+ configuration: nil,
4437
+ contact_email: nil,
4438
+ dashboard: nil,
4439
+ defaults: nil,
4440
+ display_name: nil,
4441
+ identity: nil,
4442
+ include: nil,
4443
+ metadata: nil
4444
+ )
4445
+ @configuration = configuration
4446
+ @contact_email = contact_email
4447
+ @dashboard = dashboard
4448
+ @defaults = defaults
4449
+ @display_name = display_name
4450
+ @identity = identity
4451
+ @include = include
4452
+ @metadata = metadata
4453
+ end
4454
+ end
4455
+
4456
+ class CloseParams < Stripe::RequestParams
4457
+ # Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
4458
+ attr_accessor :applied_configurations
4459
+
4460
+ def initialize(applied_configurations: nil)
4461
+ @applied_configurations = applied_configurations
4462
+ end
4463
+ end
4464
+
4465
+ # Removes access to the Account and its associated resources.
4466
+ def close(id, params = {}, opts = {})
4467
+ request(
4468
+ method: :post,
4469
+ path: format("/v2/core/accounts/%<id>s/close", { id: CGI.escape(id) }),
4470
+ params: params,
4471
+ opts: opts,
4472
+ base_address: :api
4473
+ )
4474
+ end
4475
+
4476
+ # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
4477
+ def create(params = {}, opts = {})
4478
+ request(
4479
+ method: :post,
4480
+ path: "/v2/core/accounts",
4481
+ params: params,
4482
+ opts: opts,
4483
+ base_address: :api
4484
+ )
4485
+ end
4486
+
4487
+ # Returns a list of Accounts.
4488
+ def list(params = {}, opts = {})
4489
+ request(
4490
+ method: :get,
4491
+ path: "/v2/core/accounts",
4492
+ params: params,
4493
+ opts: opts,
4494
+ base_address: :api
4495
+ )
4496
+ end
4497
+
4498
+ # Retrieves the details of an Account.
4499
+ def retrieve(id, params = {}, opts = {})
4500
+ request(
4501
+ method: :get,
4502
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4503
+ params: params,
4504
+ opts: opts,
4505
+ base_address: :api
4506
+ )
4507
+ end
4508
+
4509
+ # Updates the details of an Account.
4510
+ def update(id, params = {}, opts = {})
4511
+ request(
4512
+ method: :post,
4513
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4514
+ params: params,
4515
+ opts: opts,
4516
+ base_address: :api
4517
+ )
4518
+ end
4519
+ end
4520
+ end
4521
+ end
4522
+ end