stripe 15.1.0.pre.beta.2 → 15.1.0

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/CHANGELOG.md +696 -1554
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +6 -0
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +0 -28
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/errors.rb +0 -54
  9. data/lib/stripe/event_types.rb +1 -75
  10. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  11. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  12. data/lib/stripe/events/{v2_core_account_including_identity_updated_event.rb → v2_core_event_destination_ping_event.rb} +3 -3
  13. data/lib/stripe/object_types.rb +0 -53
  14. data/lib/stripe/resources/account.rb +3 -655
  15. data/lib/stripe/resources/account_session.rb +1 -299
  16. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  17. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
  18. data/lib/stripe/resources/billing/credit_grant.rb +0 -10
  19. data/lib/stripe/resources/billing_portal/session.rb +0 -6
  20. data/lib/stripe/resources/card.rb +0 -2
  21. data/lib/stripe/resources/cash_balance.rb +0 -2
  22. data/lib/stripe/resources/charge.rb +0 -1470
  23. data/lib/stripe/resources/checkout/session.rb +3 -327
  24. data/lib/stripe/resources/confirmation_token.rb +3 -177
  25. data/lib/stripe/resources/coupon.rb +1 -30
  26. data/lib/stripe/resources/credit_note.rb +0 -10
  27. data/lib/stripe/resources/credit_note_line_item.rb +0 -9
  28. data/lib/stripe/resources/customer.rb +2 -4
  29. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  30. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  31. data/lib/stripe/resources/customer_session.rb +1 -6
  32. data/lib/stripe/resources/discount.rb +0 -2
  33. data/lib/stripe/resources/event.rb +0 -31
  34. data/lib/stripe/resources/financial_connections/account.rb +1 -20
  35. data/lib/stripe/resources/financial_connections/session.rb +2 -62
  36. data/lib/stripe/resources/identity/verification_session.rb +0 -10
  37. data/lib/stripe/resources/invoice.rb +17 -1123
  38. data/lib/stripe/resources/invoice_item.rb +2 -78
  39. data/lib/stripe/resources/invoice_line_item.rb +1 -55
  40. data/lib/stripe/resources/invoice_payment.rb +53 -2
  41. data/lib/stripe/resources/issuing/cardholder.rb +1 -2
  42. data/lib/stripe/resources/issuing/transaction.rb +0 -6
  43. data/lib/stripe/resources/line_item.rb +0 -37
  44. data/lib/stripe/resources/mandate.rb +0 -24
  45. data/lib/stripe/resources/payment_intent.rb +331 -5153
  46. data/lib/stripe/resources/payment_method.rb +1 -196
  47. data/lib/stripe/resources/payment_method_configuration.rb +0 -295
  48. data/lib/stripe/resources/payout.rb +0 -6
  49. data/lib/stripe/resources/price.rb +0 -30
  50. data/lib/stripe/resources/product.rb +0 -59
  51. data/lib/stripe/resources/promotion_code.rb +0 -10
  52. data/lib/stripe/resources/quote.rb +6 -2040
  53. data/lib/stripe/resources/refund.rb +0 -9
  54. data/lib/stripe/resources/setup_attempt.rb +0 -21
  55. data/lib/stripe/resources/setup_intent.rb +9 -596
  56. data/lib/stripe/resources/source.rb +0 -29
  57. data/lib/stripe/resources/subscription.rb +11 -294
  58. data/lib/stripe/resources/subscription_item.rb +3 -84
  59. data/lib/stripe/resources/subscription_schedule.rb +10 -1007
  60. data/lib/stripe/resources/tax/calculation.rb +2 -2
  61. data/lib/stripe/resources/tax/registration.rb +60 -0
  62. data/lib/stripe/resources/tax/transaction.rb +1 -1
  63. data/lib/stripe/resources/tax_id.rb +4 -14
  64. data/lib/stripe/resources/terminal/reader.rb +0 -406
  65. data/lib/stripe/resources/transfer.rb +0 -6
  66. data/lib/stripe/resources/treasury/financial_account.rb +3 -22
  67. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  68. data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
  69. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
  70. data/lib/stripe/resources/treasury/received_credit.rb +1 -38
  71. data/lib/stripe/resources/treasury/received_debit.rb +1 -40
  72. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  73. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  74. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  75. data/lib/stripe/resources/v2/event.rb +2 -2
  76. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  77. data/lib/stripe/resources.rb +1 -90
  78. data/lib/stripe/services/account_external_account_service.rb +1 -1
  79. data/lib/stripe/services/account_service.rb +3 -564
  80. data/lib/stripe/services/account_session_service.rb +1 -269
  81. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
  82. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
  83. data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
  84. data/lib/stripe/services/billing_portal/session_service.rb +0 -4
  85. data/lib/stripe/services/charge_service.rb +0 -1350
  86. data/lib/stripe/services/checkout/session_service.rb +2 -243
  87. data/lib/stripe/services/coupon_service.rb +1 -17
  88. data/lib/stripe/services/credit_note_service.rb +0 -4
  89. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  90. data/lib/stripe/services/customer_service.rb +1 -1
  91. data/lib/stripe/services/customer_session_service.rb +1 -4
  92. data/lib/stripe/services/customer_tax_id_service.rb +1 -1
  93. data/lib/stripe/services/financial_connections/account_service.rb +2 -7
  94. data/lib/stripe/services/financial_connections/session_service.rb +2 -34
  95. data/lib/stripe/services/financial_connections_service.rb +1 -2
  96. data/lib/stripe/services/identity/verification_session_service.rb +0 -8
  97. data/lib/stripe/services/invoice_item_service.rb +2 -74
  98. data/lib/stripe/services/invoice_line_item_service.rb +1 -33
  99. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  100. data/lib/stripe/services/invoice_service.rb +16 -1052
  101. data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
  102. data/lib/stripe/services/issuing/transaction_service.rb +0 -4
  103. data/lib/stripe/services/issuing_service.rb +1 -5
  104. data/lib/stripe/services/payment_intent_service.rb +283 -4656
  105. data/lib/stripe/services/payment_method_configuration_service.rb +0 -210
  106. data/lib/stripe/services/payment_method_service.rb +1 -126
  107. data/lib/stripe/services/payout_service.rb +0 -4
  108. data/lib/stripe/services/price_service.rb +0 -19
  109. data/lib/stripe/services/product_service.rb +0 -38
  110. data/lib/stripe/services/promotion_code_service.rb +0 -8
  111. data/lib/stripe/services/quote_service.rb +7 -1726
  112. data/lib/stripe/services/setup_intent_service.rb +9 -556
  113. data/lib/stripe/services/subscription_item_service.rb +3 -75
  114. data/lib/stripe/services/subscription_schedule_service.rb +10 -911
  115. data/lib/stripe/services/subscription_service.rb +10 -254
  116. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  117. data/lib/stripe/services/tax/registration_service.rb +39 -0
  118. data/lib/stripe/services/tax_id_service.rb +3 -9
  119. data/lib/stripe/services/tax_service.rb +1 -3
  120. data/lib/stripe/services/terminal/reader_service.rb +0 -180
  121. data/lib/stripe/services/terminal_service.rb +1 -2
  122. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -106
  123. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
  124. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
  125. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
  126. data/lib/stripe/services/transfer_service.rb +0 -4
  127. data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
  128. data/lib/stripe/services/treasury/financial_account_service.rb +2 -16
  129. data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
  130. data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
  131. data/lib/stripe/services/v1_services.rb +2 -12
  132. data/lib/stripe/services/v2/core_service.rb +1 -4
  133. data/lib/stripe/services/v2_services.rb +2 -4
  134. data/lib/stripe/services.rb +1 -54
  135. data/lib/stripe/stripe_configuration.rb +1 -3
  136. data/lib/stripe/stripe_object.rb +1 -1
  137. data/lib/stripe/util.rb +1 -7
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe.rb +0 -53
  140. data/rbi/stripe/resources/account.rbi +4903 -0
  141. data/rbi/stripe/resources/account_link.rbi +74 -0
  142. data/rbi/stripe/resources/account_session.rbi +894 -0
  143. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  144. data/rbi/stripe/resources/application.rbi +20 -0
  145. data/rbi/stripe/resources/application_fee.rbi +118 -0
  146. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  147. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  148. data/rbi/stripe/resources/balance.rbi +180 -0
  149. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  150. data/rbi/stripe/resources/bank_account.rbi +127 -0
  151. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  152. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  153. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  154. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  155. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  156. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  157. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  158. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  159. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  160. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  161. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  162. data/rbi/stripe/resources/capability.rbi +125 -0
  163. data/rbi/stripe/resources/card.rbi +125 -0
  164. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  165. data/rbi/stripe/resources/charge.rbi +2057 -0
  166. data/rbi/stripe/resources/checkout/session.rbi +3988 -0
  167. data/rbi/stripe/resources/climate/order.rbi +245 -0
  168. data/rbi/stripe/resources/climate/product.rbi +75 -0
  169. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  170. data/rbi/stripe/resources/confirmation_token.rbi +1873 -0
  171. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  172. data/rbi/stripe/resources/country_spec.rbi +85 -0
  173. data/rbi/stripe/resources/coupon.rbi +252 -0
  174. data/rbi/stripe/resources/credit_note.rbi +747 -0
  175. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  176. data/rbi/stripe/resources/customer.rbi +1009 -0
  177. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  178. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  179. data/rbi/stripe/resources/customer_session.rbi +200 -0
  180. data/rbi/stripe/resources/discount.rbi +53 -0
  181. data/rbi/stripe/resources/dispute.rbi +761 -0
  182. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  183. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  184. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  185. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  186. data/rbi/stripe/resources/event.rbi +149 -0
  187. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  188. data/rbi/stripe/resources/file.rbi +143 -0
  189. data/rbi/stripe/resources/file_link.rbi +141 -0
  190. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  191. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  192. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  193. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  194. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  195. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  196. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  197. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  198. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  199. data/rbi/stripe/resources/invoice.rbi +3736 -0
  200. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  201. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  202. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  203. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  204. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  205. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  206. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  207. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  208. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  209. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  210. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  211. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  212. data/rbi/stripe/resources/line_item.rbi +72 -0
  213. data/rbi/stripe/resources/login_link.rbi +19 -0
  214. data/rbi/stripe/resources/mandate.rbi +187 -0
  215. data/rbi/stripe/resources/payment_intent.rbi +9795 -0
  216. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  217. data/rbi/stripe/resources/payment_method.rbi +1831 -0
  218. data/rbi/stripe/resources/payment_method_configuration.rbi +3220 -0
  219. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  220. data/rbi/stripe/resources/payout.rbi +300 -0
  221. data/rbi/stripe/resources/person.rbi +401 -0
  222. data/rbi/stripe/resources/plan.rbi +373 -0
  223. data/rbi/stripe/resources/price.rbi +694 -0
  224. data/rbi/stripe/resources/product.rbi +557 -0
  225. data/rbi/stripe/resources/product_feature.rbi +26 -0
  226. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  227. data/rbi/stripe/resources/quote.rbi +1126 -0
  228. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  229. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  230. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  231. data/rbi/stripe/resources/refund.rbi +519 -0
  232. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  233. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  234. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  235. data/rbi/stripe/resources/reversal.rbi +51 -0
  236. data/rbi/stripe/resources/review.rbi +154 -0
  237. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  238. data/rbi/stripe/resources/setup_intent.rbi +3869 -0
  239. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  240. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  241. data/rbi/stripe/resources/source.rbi +1496 -0
  242. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  243. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  244. data/rbi/stripe/resources/subscription.rbi +1964 -0
  245. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  246. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  247. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  248. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  249. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  250. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  251. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  252. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  253. data/rbi/stripe/resources/tax_code.rbi +44 -0
  254. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  255. data/rbi/stripe/resources/tax_id.rbi +167 -0
  256. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  257. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  258. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  259. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  260. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  261. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  262. data/rbi/stripe/resources/token.rbi +1283 -0
  263. data/rbi/stripe/resources/topup.rbi +222 -0
  264. data/rbi/stripe/resources/transfer.rbi +199 -0
  265. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  266. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  267. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  268. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  269. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  270. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  271. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  272. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  273. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  274. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  275. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  276. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  277. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  278. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  279. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  280. data/rbi/stripe/resources/v2/event.rbi +48 -0
  281. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  282. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  283. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  284. data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +124 -136
  285. data/rbi/stripe/services/account_link_service.rbi +58 -0
  286. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  287. data/rbi/stripe/services/account_person_service.rbi +1013 -0
  288. data/rbi/stripe/services/account_service.rbi +4189 -0
  289. data/rbi/stripe/services/account_session_service.rbi +572 -0
  290. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  291. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  292. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  293. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  294. data/rbi/stripe/services/apps_service.rbi +9 -0
  295. data/rbi/stripe/services/balance_service.rbi +21 -0
  296. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  297. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  298. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  299. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  300. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  301. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  302. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  303. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  304. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  305. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  306. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  307. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  308. data/rbi/stripe/services/billing_service.rbi +15 -0
  309. data/rbi/stripe/services/charge_service.rbi +448 -0
  310. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  311. data/rbi/stripe/services/checkout/session_service.rbi +2607 -0
  312. data/rbi/stripe/services/checkout_service.rbi +9 -0
  313. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  314. data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/product_service.rbi} +25 -36
  315. data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
  316. data/rbi/stripe/services/climate_service.rbi +11 -0
  317. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  318. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  319. data/rbi/stripe/services/coupon_service.rbi +196 -0
  320. data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
  321. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  322. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  323. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  324. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  325. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  326. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  327. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  328. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  329. data/rbi/stripe/services/customer_service.rbi +651 -0
  330. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  331. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  332. data/rbi/stripe/services/dispute_service.rbi +424 -0
  333. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  334. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  335. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  336. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  337. data/rbi/stripe/services/event_service.rbi +83 -0
  338. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  339. data/rbi/stripe/services/file_link_service.rbi +124 -0
  340. data/rbi/stripe/services/file_service.rbi +116 -0
  341. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  342. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  343. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  344. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  345. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  346. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  347. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  348. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  349. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  350. data/rbi/stripe/services/identity_service.rbi +10 -0
  351. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  352. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  353. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  354. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  355. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  356. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  357. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  358. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  359. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  360. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  361. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  362. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  363. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  364. data/rbi/stripe/services/issuing_service.rbi +16 -0
  365. data/rbi/stripe/services/mandate_service.rbi +20 -0
  366. data/rbi/stripe/services/payment_intent_service.rbi +7819 -0
  367. data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
  368. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  369. data/rbi/stripe/services/payment_method_configuration_service.rbi +2255 -0
  370. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  371. data/rbi/stripe/services/payment_method_service.rbi +846 -0
  372. data/rbi/stripe/services/payout_service.rbi +205 -0
  373. data/rbi/stripe/services/plan_service.rbi +284 -0
  374. data/rbi/stripe/services/price_service.rbi +546 -0
  375. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  376. data/rbi/stripe/services/product_service.rbi +479 -0
  377. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  378. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  379. data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
  380. data/rbi/stripe/services/quote_service.rbi +686 -0
  381. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  382. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  383. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  384. data/rbi/stripe/services/radar_service.rbi +11 -0
  385. data/rbi/stripe/services/refund_service.rbi +185 -0
  386. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  387. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  388. data/rbi/stripe/services/reporting_service.rbi +10 -0
  389. data/rbi/stripe/services/review_service.rbi +84 -0
  390. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  391. data/rbi/stripe/services/setup_intent_service.rbi +3605 -0
  392. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  393. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  394. data/rbi/stripe/services/sigma_service.rbi +9 -0
  395. data/rbi/stripe/services/source_service.rbi +663 -0
  396. data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
  397. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  398. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  399. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  400. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  401. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  402. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  403. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  404. data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
  405. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  406. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  407. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  408. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  409. data/rbi/stripe/services/tax_service.rbi +12 -0
  410. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  411. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  412. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  413. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  414. data/rbi/stripe/services/terminal_service.rbi +12 -0
  415. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +805 -0
  416. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  417. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  418. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  419. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  420. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  421. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  422. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  423. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  424. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  425. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  426. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  427. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  428. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  429. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  430. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  431. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  432. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  433. data/rbi/stripe/services/token_service.rbi +1257 -0
  434. data/rbi/stripe/services/topup_service.rbi +176 -0
  435. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  436. data/rbi/stripe/services/transfer_service.rbi +152 -0
  437. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  438. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  439. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  440. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  441. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  442. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  443. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  444. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  445. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  446. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  447. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  448. data/rbi/stripe/services/treasury_service.rbi +18 -0
  449. data/rbi/stripe/services/v1_services.rbi +77 -0
  450. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  451. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  452. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  453. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  454. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  455. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  456. data/rbi/stripe/services/v2/core/event_service.rbi +38 -0
  457. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  458. data/rbi/stripe/services/v2_services.rbi +10 -0
  459. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  460. data/stripe.gemspec +1 -4
  461. metadata +326 -149
  462. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
  463. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
  464. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
  465. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
  466. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
  467. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
  468. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
  469. data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
  470. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
  471. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
  472. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
  473. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
  474. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
  475. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
  476. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
  477. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
  478. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
  479. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
  480. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
  481. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
  482. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
  483. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
  484. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
  485. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
  486. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
  487. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
  488. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
  489. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
  490. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
  491. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
  492. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
  493. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
  494. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
  495. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
  496. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
  497. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
  498. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
  499. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
  500. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
  501. data/lib/stripe/resources/account_notice.rb +0 -123
  502. data/lib/stripe/resources/balance_settings.rb +0 -105
  503. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  504. data/lib/stripe/resources/capital/financing_offer.rb +0 -179
  505. data/lib/stripe/resources/capital/financing_summary.rb +0 -55
  506. data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
  507. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  508. data/lib/stripe/resources/financial_connections/institution.rb +0 -90
  509. data/lib/stripe/resources/fx_quote.rb +0 -184
  510. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  511. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  512. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
  513. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
  514. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
  515. data/lib/stripe/resources/issuing/settlement.rb +0 -53
  516. data/lib/stripe/resources/margin.rb +0 -115
  517. data/lib/stripe/resources/order.rb +0 -2859
  518. data/lib/stripe/resources/payment_attempt_record.rb +0 -1078
  519. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -65
  520. data/lib/stripe/resources/payment_record.rb +0 -1607
  521. data/lib/stripe/resources/privacy/redaction_job.rb +0 -254
  522. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
  523. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -25
  524. data/lib/stripe/resources/quote_line.rb +0 -274
  525. data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
  526. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -337
  527. data/lib/stripe/resources/tax/association.rb +0 -89
  528. data/lib/stripe/resources/tax/form.rb +0 -211
  529. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
  530. data/lib/stripe/resources/v2/core/account.rb +0 -1715
  531. data/lib/stripe/resources/v2/core/account_link.rb +0 -54
  532. data/lib/stripe/resources/v2/core/person.rb +0 -272
  533. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -72
  534. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -37
  535. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -18
  536. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -20
  537. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -49
  538. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -56
  539. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -66
  540. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -92
  541. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -127
  542. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -74
  543. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -43
  544. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -115
  545. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -73
  546. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -47
  547. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -134
  548. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -106
  549. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -76
  550. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -66
  551. data/lib/stripe/services/account_notice_service.rb +0 -101
  552. data/lib/stripe/services/balance_settings_service.rb +0 -96
  553. data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
  554. data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
  555. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
  556. data/lib/stripe/services/capital_service.rb +0 -15
  557. data/lib/stripe/services/fx_quote_service.rb +0 -123
  558. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  559. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  560. data/lib/stripe/services/gift_cards_service.rb +0 -14
  561. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
  562. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
  563. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
  564. data/lib/stripe/services/margin_service.rb +0 -119
  565. data/lib/stripe/services/order_service.rb +0 -2268
  566. data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
  567. data/lib/stripe/services/payment_record_service.rb +0 -542
  568. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -231
  569. data/lib/stripe/services/privacy_service.rb +0 -13
  570. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
  571. data/lib/stripe/services/tax/association_service.rb +0 -31
  572. data/lib/stripe/services/tax/form_service.rb +0 -100
  573. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
  574. data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
  575. data/lib/stripe/services/v2/core/account_service.rb +0 -4130
  576. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1040
  577. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -135
  578. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -109
  579. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  580. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -75
  581. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -44
  582. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
  583. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -126
  584. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -80
  585. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -202
  586. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -237
  587. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -174
  588. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -95
  589. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
  590. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -71
  591. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -44
  592. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -70
  593. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -74
  594. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  595. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  596. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -50
  597. data/rbi/stripe.rbi +0 -191592
@@ -0,0 +1,1257 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ class TokenService < StripeService
7
+ class RetrieveParams < Stripe::RequestParams
8
+ # Specifies which fields in the response should be expanded.
9
+ sig { returns(T.nilable(T::Array[String])) }
10
+ attr_accessor :expand
11
+ sig { params(expand: T.nilable(T::Array[String])).void }
12
+ def initialize(expand: nil); end
13
+ end
14
+ class CreateParams < Stripe::RequestParams
15
+ class Account < Stripe::RequestParams
16
+ class Company < Stripe::RequestParams
17
+ class Address < Stripe::RequestParams
18
+ # City, district, suburb, town, or village.
19
+ sig { returns(T.nilable(String)) }
20
+ attr_accessor :city
21
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :country
24
+ # Address line 1 (e.g., street, PO Box, or company name).
25
+ sig { returns(T.nilable(String)) }
26
+ attr_accessor :line1
27
+ # Address line 2 (e.g., apartment, suite, unit, or building).
28
+ sig { returns(T.nilable(String)) }
29
+ attr_accessor :line2
30
+ # ZIP or postal code.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :postal_code
33
+ # State, county, province, or region.
34
+ sig { returns(T.nilable(String)) }
35
+ attr_accessor :state
36
+ sig {
37
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
38
+ }
39
+ def initialize(
40
+ city: nil,
41
+ country: nil,
42
+ line1: nil,
43
+ line2: nil,
44
+ postal_code: nil,
45
+ state: nil
46
+ ); end
47
+ end
48
+ class AddressKana < Stripe::RequestParams
49
+ # City or ward.
50
+ sig { returns(T.nilable(String)) }
51
+ attr_accessor :city
52
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
53
+ sig { returns(T.nilable(String)) }
54
+ attr_accessor :country
55
+ # Block or building number.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_accessor :line1
58
+ # Building details.
59
+ sig { returns(T.nilable(String)) }
60
+ attr_accessor :line2
61
+ # Postal code.
62
+ sig { returns(T.nilable(String)) }
63
+ attr_accessor :postal_code
64
+ # Prefecture.
65
+ sig { returns(T.nilable(String)) }
66
+ attr_accessor :state
67
+ # Town or cho-me.
68
+ sig { returns(T.nilable(String)) }
69
+ attr_accessor :town
70
+ sig {
71
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
72
+ }
73
+ def initialize(
74
+ city: nil,
75
+ country: nil,
76
+ line1: nil,
77
+ line2: nil,
78
+ postal_code: nil,
79
+ state: nil,
80
+ town: nil
81
+ ); end
82
+ end
83
+ class AddressKanji < Stripe::RequestParams
84
+ # City or ward.
85
+ sig { returns(T.nilable(String)) }
86
+ attr_accessor :city
87
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
88
+ sig { returns(T.nilable(String)) }
89
+ attr_accessor :country
90
+ # Block or building number.
91
+ sig { returns(T.nilable(String)) }
92
+ attr_accessor :line1
93
+ # Building details.
94
+ sig { returns(T.nilable(String)) }
95
+ attr_accessor :line2
96
+ # Postal code.
97
+ sig { returns(T.nilable(String)) }
98
+ attr_accessor :postal_code
99
+ # Prefecture.
100
+ sig { returns(T.nilable(String)) }
101
+ attr_accessor :state
102
+ # Town or cho-me.
103
+ sig { returns(T.nilable(String)) }
104
+ attr_accessor :town
105
+ sig {
106
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
107
+ }
108
+ def initialize(
109
+ city: nil,
110
+ country: nil,
111
+ line1: nil,
112
+ line2: nil,
113
+ postal_code: nil,
114
+ state: nil,
115
+ town: nil
116
+ ); end
117
+ end
118
+ class DirectorshipDeclaration < Stripe::RequestParams
119
+ # The Unix timestamp marking when the directorship declaration attestation was made.
120
+ sig { returns(T.nilable(Integer)) }
121
+ attr_accessor :date
122
+ # The IP address from which the directorship declaration attestation was made.
123
+ sig { returns(T.nilable(String)) }
124
+ attr_accessor :ip
125
+ # The user agent of the browser from which the directorship declaration attestation was made.
126
+ sig { returns(T.nilable(String)) }
127
+ attr_accessor :user_agent
128
+ sig {
129
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
130
+ }
131
+ def initialize(date: nil, ip: nil, user_agent: nil); end
132
+ end
133
+ class OwnershipDeclaration < Stripe::RequestParams
134
+ # The Unix timestamp marking when the beneficial owner attestation was made.
135
+ sig { returns(T.nilable(Integer)) }
136
+ attr_accessor :date
137
+ # The IP address from which the beneficial owner attestation was made.
138
+ sig { returns(T.nilable(String)) }
139
+ attr_accessor :ip
140
+ # The user agent of the browser from which the beneficial owner attestation was made.
141
+ sig { returns(T.nilable(String)) }
142
+ attr_accessor :user_agent
143
+ sig {
144
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
145
+ }
146
+ def initialize(date: nil, ip: nil, user_agent: nil); end
147
+ end
148
+ class RegistrationDate < Stripe::RequestParams
149
+ # The day of registration, between 1 and 31.
150
+ sig { returns(Integer) }
151
+ attr_accessor :day
152
+ # The month of registration, between 1 and 12.
153
+ sig { returns(Integer) }
154
+ attr_accessor :month
155
+ # The four-digit year of registration.
156
+ sig { returns(Integer) }
157
+ attr_accessor :year
158
+ sig { params(day: Integer, month: Integer, year: Integer).void }
159
+ def initialize(day: nil, month: nil, year: nil); end
160
+ end
161
+ class Verification < Stripe::RequestParams
162
+ class Document < Stripe::RequestParams
163
+ # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. 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.
164
+ sig { returns(T.nilable(String)) }
165
+ attr_accessor :back
166
+ # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. 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.
167
+ sig { returns(T.nilable(String)) }
168
+ attr_accessor :front
169
+ sig { params(back: T.nilable(String), front: T.nilable(String)).void }
170
+ def initialize(back: nil, front: nil); end
171
+ end
172
+ # A document verifying the business.
173
+ sig {
174
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification::Document))
175
+ }
176
+ attr_accessor :document
177
+ sig {
178
+ params(document: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification::Document)).void
179
+ }
180
+ def initialize(document: nil); end
181
+ end
182
+ # The company's primary address.
183
+ sig {
184
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address))
185
+ }
186
+ attr_accessor :address
187
+ # The Kana variation of the company's primary address (Japan only).
188
+ sig {
189
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana))
190
+ }
191
+ attr_accessor :address_kana
192
+ # The Kanji variation of the company's primary address (Japan only).
193
+ sig {
194
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji))
195
+ }
196
+ attr_accessor :address_kanji
197
+ # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
198
+ sig { returns(T.nilable(T::Boolean)) }
199
+ attr_accessor :directors_provided
200
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
201
+ sig {
202
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration))
203
+ }
204
+ attr_accessor :directorship_declaration
205
+ # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
206
+ sig { returns(T.nilable(T::Boolean)) }
207
+ attr_accessor :executives_provided
208
+ # The export license ID number of the company, also referred as Import Export Code (India only).
209
+ sig { returns(T.nilable(String)) }
210
+ attr_accessor :export_license_id
211
+ # The purpose code to use for export transactions (India only).
212
+ sig { returns(T.nilable(String)) }
213
+ attr_accessor :export_purpose_code
214
+ # The company's legal name.
215
+ sig { returns(T.nilable(String)) }
216
+ attr_accessor :name
217
+ # The Kana variation of the company's legal name (Japan only).
218
+ sig { returns(T.nilable(String)) }
219
+ attr_accessor :name_kana
220
+ # The Kanji variation of the company's legal name (Japan only).
221
+ sig { returns(T.nilable(String)) }
222
+ attr_accessor :name_kanji
223
+ # Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
224
+ sig { returns(T.nilable(T::Boolean)) }
225
+ attr_accessor :owners_provided
226
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
227
+ sig {
228
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration))
229
+ }
230
+ attr_accessor :ownership_declaration
231
+ # Whether the user described by the data in the token has been shown the Ownership Declaration and indicated that it is correct.
232
+ sig { returns(T.nilable(T::Boolean)) }
233
+ attr_accessor :ownership_declaration_shown_and_signed
234
+ # This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
235
+ sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
236
+ attr_accessor :ownership_exemption_reason
237
+ # The company's phone number (used for verification).
238
+ sig { returns(T.nilable(String)) }
239
+ attr_accessor :phone
240
+ # Attribute for param field registration_date
241
+ sig {
242
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))))
243
+ }
244
+ attr_accessor :registration_date
245
+ # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
246
+ sig { returns(T.nilable(String)) }
247
+ attr_accessor :registration_number
248
+ # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
249
+ sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
250
+ attr_accessor :structure
251
+ # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
252
+ sig { returns(T.nilable(String)) }
253
+ attr_accessor :tax_id
254
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
255
+ sig { returns(T.nilable(String)) }
256
+ attr_accessor :tax_id_registrar
257
+ # The VAT number of the company.
258
+ sig { returns(T.nilable(String)) }
259
+ attr_accessor :vat_id
260
+ # Information on the verification state of the company.
261
+ sig {
262
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification))
263
+ }
264
+ attr_accessor :verification
265
+ sig {
266
+ params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void
267
+ }
268
+ def initialize(
269
+ address: nil,
270
+ address_kana: nil,
271
+ address_kanji: nil,
272
+ directors_provided: nil,
273
+ directorship_declaration: nil,
274
+ executives_provided: nil,
275
+ export_license_id: nil,
276
+ export_purpose_code: nil,
277
+ name: nil,
278
+ name_kana: nil,
279
+ name_kanji: nil,
280
+ owners_provided: nil,
281
+ ownership_declaration: nil,
282
+ ownership_declaration_shown_and_signed: nil,
283
+ ownership_exemption_reason: nil,
284
+ phone: nil,
285
+ registration_date: nil,
286
+ registration_number: nil,
287
+ structure: nil,
288
+ tax_id: nil,
289
+ tax_id_registrar: nil,
290
+ vat_id: nil,
291
+ verification: nil
292
+ ); end
293
+ end
294
+ class Individual < Stripe::RequestParams
295
+ class Address < Stripe::RequestParams
296
+ # City, district, suburb, town, or village.
297
+ sig { returns(T.nilable(String)) }
298
+ attr_accessor :city
299
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
300
+ sig { returns(T.nilable(String)) }
301
+ attr_accessor :country
302
+ # Address line 1 (e.g., street, PO Box, or company name).
303
+ sig { returns(T.nilable(String)) }
304
+ attr_accessor :line1
305
+ # Address line 2 (e.g., apartment, suite, unit, or building).
306
+ sig { returns(T.nilable(String)) }
307
+ attr_accessor :line2
308
+ # ZIP or postal code.
309
+ sig { returns(T.nilable(String)) }
310
+ attr_accessor :postal_code
311
+ # State, county, province, or region.
312
+ sig { returns(T.nilable(String)) }
313
+ attr_accessor :state
314
+ sig {
315
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
316
+ }
317
+ def initialize(
318
+ city: nil,
319
+ country: nil,
320
+ line1: nil,
321
+ line2: nil,
322
+ postal_code: nil,
323
+ state: nil
324
+ ); end
325
+ end
326
+ class AddressKana < Stripe::RequestParams
327
+ # City or ward.
328
+ sig { returns(T.nilable(String)) }
329
+ attr_accessor :city
330
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
331
+ sig { returns(T.nilable(String)) }
332
+ attr_accessor :country
333
+ # Block or building number.
334
+ sig { returns(T.nilable(String)) }
335
+ attr_accessor :line1
336
+ # Building details.
337
+ sig { returns(T.nilable(String)) }
338
+ attr_accessor :line2
339
+ # Postal code.
340
+ sig { returns(T.nilable(String)) }
341
+ attr_accessor :postal_code
342
+ # Prefecture.
343
+ sig { returns(T.nilable(String)) }
344
+ attr_accessor :state
345
+ # Town or cho-me.
346
+ sig { returns(T.nilable(String)) }
347
+ attr_accessor :town
348
+ sig {
349
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
350
+ }
351
+ def initialize(
352
+ city: nil,
353
+ country: nil,
354
+ line1: nil,
355
+ line2: nil,
356
+ postal_code: nil,
357
+ state: nil,
358
+ town: nil
359
+ ); end
360
+ end
361
+ class AddressKanji < Stripe::RequestParams
362
+ # City or ward.
363
+ sig { returns(T.nilable(String)) }
364
+ attr_accessor :city
365
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
366
+ sig { returns(T.nilable(String)) }
367
+ attr_accessor :country
368
+ # Block or building number.
369
+ sig { returns(T.nilable(String)) }
370
+ attr_accessor :line1
371
+ # Building details.
372
+ sig { returns(T.nilable(String)) }
373
+ attr_accessor :line2
374
+ # Postal code.
375
+ sig { returns(T.nilable(String)) }
376
+ attr_accessor :postal_code
377
+ # Prefecture.
378
+ sig { returns(T.nilable(String)) }
379
+ attr_accessor :state
380
+ # Town or cho-me.
381
+ sig { returns(T.nilable(String)) }
382
+ attr_accessor :town
383
+ sig {
384
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
385
+ }
386
+ def initialize(
387
+ city: nil,
388
+ country: nil,
389
+ line1: nil,
390
+ line2: nil,
391
+ postal_code: nil,
392
+ state: nil,
393
+ town: nil
394
+ ); end
395
+ end
396
+ class Dob < Stripe::RequestParams
397
+ # The day of birth, between 1 and 31.
398
+ sig { returns(Integer) }
399
+ attr_accessor :day
400
+ # The month of birth, between 1 and 12.
401
+ sig { returns(Integer) }
402
+ attr_accessor :month
403
+ # The four-digit year of birth.
404
+ sig { returns(Integer) }
405
+ attr_accessor :year
406
+ sig { params(day: Integer, month: Integer, year: Integer).void }
407
+ def initialize(day: nil, month: nil, year: nil); end
408
+ end
409
+ class RegisteredAddress < Stripe::RequestParams
410
+ # City, district, suburb, town, or village.
411
+ sig { returns(T.nilable(String)) }
412
+ attr_accessor :city
413
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
414
+ sig { returns(T.nilable(String)) }
415
+ attr_accessor :country
416
+ # Address line 1 (e.g., street, PO Box, or company name).
417
+ sig { returns(T.nilable(String)) }
418
+ attr_accessor :line1
419
+ # Address line 2 (e.g., apartment, suite, unit, or building).
420
+ sig { returns(T.nilable(String)) }
421
+ attr_accessor :line2
422
+ # ZIP or postal code.
423
+ sig { returns(T.nilable(String)) }
424
+ attr_accessor :postal_code
425
+ # State, county, province, or region.
426
+ sig { returns(T.nilable(String)) }
427
+ attr_accessor :state
428
+ sig {
429
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
430
+ }
431
+ def initialize(
432
+ city: nil,
433
+ country: nil,
434
+ line1: nil,
435
+ line2: nil,
436
+ postal_code: nil,
437
+ state: nil
438
+ ); end
439
+ end
440
+ class Relationship < Stripe::RequestParams
441
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
442
+ sig { returns(T.nilable(T::Boolean)) }
443
+ attr_accessor :director
444
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
445
+ sig { returns(T.nilable(T::Boolean)) }
446
+ attr_accessor :executive
447
+ # Whether the person is an owner of the account’s legal entity.
448
+ sig { returns(T.nilable(T::Boolean)) }
449
+ attr_accessor :owner
450
+ # The percent owned by the person of the account's legal entity.
451
+ sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
452
+ attr_accessor :percent_ownership
453
+ # The person's title (e.g., CEO, Support Engineer).
454
+ sig { returns(T.nilable(String)) }
455
+ attr_accessor :title
456
+ sig {
457
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
458
+ }
459
+ def initialize(
460
+ director: nil,
461
+ executive: nil,
462
+ owner: nil,
463
+ percent_ownership: nil,
464
+ title: nil
465
+ ); end
466
+ end
467
+ class Verification < Stripe::RequestParams
468
+ class AdditionalDocument < Stripe::RequestParams
469
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
470
+ sig { returns(T.nilable(String)) }
471
+ attr_accessor :back
472
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
473
+ sig { returns(T.nilable(String)) }
474
+ attr_accessor :front
475
+ sig { params(back: T.nilable(String), front: T.nilable(String)).void }
476
+ def initialize(back: nil, front: nil); end
477
+ end
478
+ class Document < Stripe::RequestParams
479
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
480
+ sig { returns(T.nilable(String)) }
481
+ attr_accessor :back
482
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
483
+ sig { returns(T.nilable(String)) }
484
+ attr_accessor :front
485
+ sig { params(back: T.nilable(String), front: T.nilable(String)).void }
486
+ def initialize(back: nil, front: nil); end
487
+ end
488
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
489
+ sig {
490
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification::AdditionalDocument))
491
+ }
492
+ attr_accessor :additional_document
493
+ # An identifying document, either a passport or local ID card.
494
+ sig {
495
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification::Document))
496
+ }
497
+ attr_accessor :document
498
+ sig {
499
+ params(additional_document: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification::AdditionalDocument), document: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification::Document)).void
500
+ }
501
+ def initialize(additional_document: nil, document: nil); end
502
+ end
503
+ # The individual's primary address.
504
+ sig {
505
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Address))
506
+ }
507
+ attr_accessor :address
508
+ # The Kana variation of the individual's primary address (Japan only).
509
+ sig {
510
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKana))
511
+ }
512
+ attr_accessor :address_kana
513
+ # The Kanji variation of the individual's primary address (Japan only).
514
+ sig {
515
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKanji))
516
+ }
517
+ attr_accessor :address_kanji
518
+ # The individual's date of birth.
519
+ sig {
520
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob))))
521
+ }
522
+ attr_accessor :dob
523
+ # The individual's email address.
524
+ sig { returns(T.nilable(String)) }
525
+ attr_accessor :email
526
+ # The individual's first name.
527
+ sig { returns(T.nilable(String)) }
528
+ attr_accessor :first_name
529
+ # The Kana variation of the individual's first name (Japan only).
530
+ sig { returns(T.nilable(String)) }
531
+ attr_accessor :first_name_kana
532
+ # The Kanji variation of the individual's first name (Japan only).
533
+ sig { returns(T.nilable(String)) }
534
+ attr_accessor :first_name_kanji
535
+ # A list of alternate names or aliases that the individual is known by.
536
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
537
+ attr_accessor :full_name_aliases
538
+ # The individual's gender
539
+ sig { returns(T.nilable(String)) }
540
+ attr_accessor :gender
541
+ # The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
542
+ sig { returns(T.nilable(String)) }
543
+ attr_accessor :id_number
544
+ # The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
545
+ sig { returns(T.nilable(String)) }
546
+ attr_accessor :id_number_secondary
547
+ # The individual's last name.
548
+ sig { returns(T.nilable(String)) }
549
+ attr_accessor :last_name
550
+ # The Kana variation of the individual's last name (Japan only).
551
+ sig { returns(T.nilable(String)) }
552
+ attr_accessor :last_name_kana
553
+ # The Kanji variation of the individual's last name (Japan only).
554
+ sig { returns(T.nilable(String)) }
555
+ attr_accessor :last_name_kanji
556
+ # The individual's maiden name.
557
+ sig { returns(T.nilable(String)) }
558
+ attr_accessor :maiden_name
559
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
560
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
561
+ attr_accessor :metadata
562
+ # The individual's phone number.
563
+ sig { returns(T.nilable(String)) }
564
+ attr_accessor :phone
565
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
566
+ sig { returns(T.nilable(String)) }
567
+ attr_accessor :political_exposure
568
+ # The individual's registered address.
569
+ sig {
570
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::RegisteredAddress))
571
+ }
572
+ attr_accessor :registered_address
573
+ # Describes the person’s relationship to the account.
574
+ sig {
575
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Relationship))
576
+ }
577
+ attr_accessor :relationship
578
+ # The last four digits of the individual's Social Security Number (U.S. only).
579
+ sig { returns(T.nilable(String)) }
580
+ attr_accessor :ssn_last_4
581
+ # The individual's verification document information.
582
+ sig {
583
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification))
584
+ }
585
+ attr_accessor :verification
586
+ sig {
587
+ params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification)).void
588
+ }
589
+ def initialize(
590
+ address: nil,
591
+ address_kana: nil,
592
+ address_kanji: nil,
593
+ dob: nil,
594
+ email: nil,
595
+ first_name: nil,
596
+ first_name_kana: nil,
597
+ first_name_kanji: nil,
598
+ full_name_aliases: nil,
599
+ gender: nil,
600
+ id_number: nil,
601
+ id_number_secondary: nil,
602
+ last_name: nil,
603
+ last_name_kana: nil,
604
+ last_name_kanji: nil,
605
+ maiden_name: nil,
606
+ metadata: nil,
607
+ phone: nil,
608
+ political_exposure: nil,
609
+ registered_address: nil,
610
+ relationship: nil,
611
+ ssn_last_4: nil,
612
+ verification: nil
613
+ ); end
614
+ end
615
+ # The business type.
616
+ sig { returns(T.nilable(String)) }
617
+ attr_accessor :business_type
618
+ # Information about the company or business.
619
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Company)) }
620
+ attr_accessor :company
621
+ # Information about the person represented by the account.
622
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Account::Individual)) }
623
+ attr_accessor :individual
624
+ # Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
625
+ sig { returns(T.nilable(T::Boolean)) }
626
+ attr_accessor :tos_shown_and_accepted
627
+ sig {
628
+ params(business_type: T.nilable(String), company: T.nilable(::Stripe::TokenService::CreateParams::Account::Company), individual: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual), tos_shown_and_accepted: T.nilable(T::Boolean)).void
629
+ }
630
+ def initialize(
631
+ business_type: nil,
632
+ company: nil,
633
+ individual: nil,
634
+ tos_shown_and_accepted: nil
635
+ ); end
636
+ end
637
+ class BankAccount < Stripe::RequestParams
638
+ # The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object.
639
+ sig { returns(T.nilable(String)) }
640
+ attr_accessor :account_holder_name
641
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
642
+ sig { returns(T.nilable(String)) }
643
+ attr_accessor :account_holder_type
644
+ # The account number for the bank account, in string form. Must be a checking account.
645
+ sig { returns(String) }
646
+ attr_accessor :account_number
647
+ # The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
648
+ sig { returns(T.nilable(String)) }
649
+ attr_accessor :account_type
650
+ # The country in which the bank account is located.
651
+ sig { returns(String) }
652
+ attr_accessor :country
653
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://stripe.com/docs/payouts)
654
+ sig { returns(T.nilable(String)) }
655
+ attr_accessor :currency
656
+ # The ID of a Payment Method with a `type` of `us_bank_account`. The Payment Method's bank account information will be copied and returned as a Bank Account Token. This parameter is exclusive with respect to all other parameters in the `bank_account` hash. You must include the top-level `customer` parameter if the Payment Method is attached to a `Customer` object. If the Payment Method is not attached to a `Customer` object, it will be consumed and cannot be used again. You may not use Payment Methods which were created by a Setup Intent with `attach_to_self=true`.
657
+ sig { returns(T.nilable(String)) }
658
+ attr_accessor :payment_method
659
+ # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
660
+ sig { returns(T.nilable(String)) }
661
+ attr_accessor :routing_number
662
+ sig {
663
+ params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(String), account_number: String, account_type: T.nilable(String), country: String, currency: T.nilable(String), payment_method: T.nilable(String), routing_number: T.nilable(String)).void
664
+ }
665
+ def initialize(
666
+ account_holder_name: nil,
667
+ account_holder_type: nil,
668
+ account_number: nil,
669
+ account_type: nil,
670
+ country: nil,
671
+ currency: nil,
672
+ payment_method: nil,
673
+ routing_number: nil
674
+ ); end
675
+ end
676
+ class Card < Stripe::RequestParams
677
+ class Networks < Stripe::RequestParams
678
+ # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
679
+ sig { returns(T.nilable(String)) }
680
+ attr_accessor :preferred
681
+ sig { params(preferred: T.nilable(String)).void }
682
+ def initialize(preferred: nil); end
683
+ end
684
+ # City / District / Suburb / Town / Village.
685
+ sig { returns(T.nilable(String)) }
686
+ attr_accessor :address_city
687
+ # Billing address country, if provided.
688
+ sig { returns(T.nilable(String)) }
689
+ attr_accessor :address_country
690
+ # Address line 1 (Street address / PO Box / Company name).
691
+ sig { returns(T.nilable(String)) }
692
+ attr_accessor :address_line1
693
+ # Address line 2 (Apartment / Suite / Unit / Building).
694
+ sig { returns(T.nilable(String)) }
695
+ attr_accessor :address_line2
696
+ # State / County / Province / Region.
697
+ sig { returns(T.nilable(String)) }
698
+ attr_accessor :address_state
699
+ # ZIP or postal code.
700
+ sig { returns(T.nilable(String)) }
701
+ attr_accessor :address_zip
702
+ # Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency.
703
+ sig { returns(T.nilable(String)) }
704
+ attr_accessor :currency
705
+ # Card security code. Highly recommended to always include this value.
706
+ sig { returns(T.nilable(String)) }
707
+ attr_accessor :cvc
708
+ # Two-digit number representing the card's expiration month.
709
+ sig { returns(String) }
710
+ attr_accessor :exp_month
711
+ # Two- or four-digit number representing the card's expiration year.
712
+ sig { returns(String) }
713
+ attr_accessor :exp_year
714
+ # Cardholder's full name.
715
+ sig { returns(T.nilable(String)) }
716
+ attr_accessor :name
717
+ # Contains information about card networks used to process the payment.
718
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Card::Networks)) }
719
+ attr_accessor :networks
720
+ # The card number, as a string without any separators.
721
+ sig { returns(String) }
722
+ attr_accessor :number
723
+ sig {
724
+ params(address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), currency: T.nilable(String), cvc: T.nilable(String), exp_month: String, exp_year: String, name: T.nilable(String), networks: T.nilable(::Stripe::TokenService::CreateParams::Card::Networks), number: String).void
725
+ }
726
+ def initialize(
727
+ address_city: nil,
728
+ address_country: nil,
729
+ address_line1: nil,
730
+ address_line2: nil,
731
+ address_state: nil,
732
+ address_zip: nil,
733
+ currency: nil,
734
+ cvc: nil,
735
+ exp_month: nil,
736
+ exp_year: nil,
737
+ name: nil,
738
+ networks: nil,
739
+ number: nil
740
+ ); end
741
+ end
742
+ class CvcUpdate < Stripe::RequestParams
743
+ # The CVC value, in string form.
744
+ sig { returns(String) }
745
+ attr_accessor :cvc
746
+ sig { params(cvc: String).void }
747
+ def initialize(cvc: nil); end
748
+ end
749
+ class Person < Stripe::RequestParams
750
+ class AdditionalTosAcceptances < Stripe::RequestParams
751
+ class Account < Stripe::RequestParams
752
+ # The Unix timestamp marking when the account representative accepted the service agreement.
753
+ sig { returns(T.nilable(Integer)) }
754
+ attr_accessor :date
755
+ # The IP address from which the account representative accepted the service agreement.
756
+ sig { returns(T.nilable(String)) }
757
+ attr_accessor :ip
758
+ # The user agent of the browser from which the account representative accepted the service agreement.
759
+ sig { returns(T.nilable(T.nilable(String))) }
760
+ attr_accessor :user_agent
761
+ sig {
762
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
763
+ }
764
+ def initialize(date: nil, ip: nil, user_agent: nil); end
765
+ end
766
+ # Details on the legal guardian's acceptance of the main Stripe service agreement.
767
+ sig {
768
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances::Account))
769
+ }
770
+ attr_accessor :account
771
+ sig {
772
+ params(account: T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances::Account)).void
773
+ }
774
+ def initialize(account: nil); end
775
+ end
776
+ class Address < Stripe::RequestParams
777
+ # City, district, suburb, town, or village.
778
+ sig { returns(T.nilable(String)) }
779
+ attr_accessor :city
780
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
781
+ sig { returns(T.nilable(String)) }
782
+ attr_accessor :country
783
+ # Address line 1 (e.g., street, PO Box, or company name).
784
+ sig { returns(T.nilable(String)) }
785
+ attr_accessor :line1
786
+ # Address line 2 (e.g., apartment, suite, unit, or building).
787
+ sig { returns(T.nilable(String)) }
788
+ attr_accessor :line2
789
+ # ZIP or postal code.
790
+ sig { returns(T.nilable(String)) }
791
+ attr_accessor :postal_code
792
+ # State, county, province, or region.
793
+ sig { returns(T.nilable(String)) }
794
+ attr_accessor :state
795
+ sig {
796
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
797
+ }
798
+ def initialize(
799
+ city: nil,
800
+ country: nil,
801
+ line1: nil,
802
+ line2: nil,
803
+ postal_code: nil,
804
+ state: nil
805
+ ); end
806
+ end
807
+ class AddressKana < Stripe::RequestParams
808
+ # City or ward.
809
+ sig { returns(T.nilable(String)) }
810
+ attr_accessor :city
811
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
812
+ sig { returns(T.nilable(String)) }
813
+ attr_accessor :country
814
+ # Block or building number.
815
+ sig { returns(T.nilable(String)) }
816
+ attr_accessor :line1
817
+ # Building details.
818
+ sig { returns(T.nilable(String)) }
819
+ attr_accessor :line2
820
+ # Postal code.
821
+ sig { returns(T.nilable(String)) }
822
+ attr_accessor :postal_code
823
+ # Prefecture.
824
+ sig { returns(T.nilable(String)) }
825
+ attr_accessor :state
826
+ # Town or cho-me.
827
+ sig { returns(T.nilable(String)) }
828
+ attr_accessor :town
829
+ sig {
830
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
831
+ }
832
+ def initialize(
833
+ city: nil,
834
+ country: nil,
835
+ line1: nil,
836
+ line2: nil,
837
+ postal_code: nil,
838
+ state: nil,
839
+ town: nil
840
+ ); end
841
+ end
842
+ class AddressKanji < Stripe::RequestParams
843
+ # City or ward.
844
+ sig { returns(T.nilable(String)) }
845
+ attr_accessor :city
846
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
847
+ sig { returns(T.nilable(String)) }
848
+ attr_accessor :country
849
+ # Block or building number.
850
+ sig { returns(T.nilable(String)) }
851
+ attr_accessor :line1
852
+ # Building details.
853
+ sig { returns(T.nilable(String)) }
854
+ attr_accessor :line2
855
+ # Postal code.
856
+ sig { returns(T.nilable(String)) }
857
+ attr_accessor :postal_code
858
+ # Prefecture.
859
+ sig { returns(T.nilable(String)) }
860
+ attr_accessor :state
861
+ # Town or cho-me.
862
+ sig { returns(T.nilable(String)) }
863
+ attr_accessor :town
864
+ sig {
865
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
866
+ }
867
+ def initialize(
868
+ city: nil,
869
+ country: nil,
870
+ line1: nil,
871
+ line2: nil,
872
+ postal_code: nil,
873
+ state: nil,
874
+ town: nil
875
+ ); end
876
+ end
877
+ class Dob < Stripe::RequestParams
878
+ # The day of birth, between 1 and 31.
879
+ sig { returns(Integer) }
880
+ attr_accessor :day
881
+ # The month of birth, between 1 and 12.
882
+ sig { returns(Integer) }
883
+ attr_accessor :month
884
+ # The four-digit year of birth.
885
+ sig { returns(Integer) }
886
+ attr_accessor :year
887
+ sig { params(day: Integer, month: Integer, year: Integer).void }
888
+ def initialize(day: nil, month: nil, year: nil); end
889
+ end
890
+ class Documents < Stripe::RequestParams
891
+ class CompanyAuthorization < Stripe::RequestParams
892
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
893
+ sig { returns(T.nilable(T::Array[String])) }
894
+ attr_accessor :files
895
+ sig { params(files: T.nilable(T::Array[String])).void }
896
+ def initialize(files: nil); end
897
+ end
898
+ class Passport < Stripe::RequestParams
899
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
900
+ sig { returns(T.nilable(T::Array[String])) }
901
+ attr_accessor :files
902
+ sig { params(files: T.nilable(T::Array[String])).void }
903
+ def initialize(files: nil); end
904
+ end
905
+ class Visa < Stripe::RequestParams
906
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
907
+ sig { returns(T.nilable(T::Array[String])) }
908
+ attr_accessor :files
909
+ sig { params(files: T.nilable(T::Array[String])).void }
910
+ def initialize(files: nil); end
911
+ end
912
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
913
+ sig {
914
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::CompanyAuthorization))
915
+ }
916
+ attr_accessor :company_authorization
917
+ # One or more documents showing the person's passport page with photo and personal data.
918
+ sig {
919
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::Passport))
920
+ }
921
+ attr_accessor :passport
922
+ # One or more documents showing the person's visa required for living in the country where they are residing.
923
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::Visa)) }
924
+ attr_accessor :visa
925
+ sig {
926
+ params(company_authorization: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::CompanyAuthorization), passport: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::Passport), visa: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents::Visa)).void
927
+ }
928
+ def initialize(company_authorization: nil, passport: nil, visa: nil); end
929
+ end
930
+ class RegisteredAddress < Stripe::RequestParams
931
+ # City, district, suburb, town, or village.
932
+ sig { returns(T.nilable(String)) }
933
+ attr_accessor :city
934
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
935
+ sig { returns(T.nilable(String)) }
936
+ attr_accessor :country
937
+ # Address line 1 (e.g., street, PO Box, or company name).
938
+ sig { returns(T.nilable(String)) }
939
+ attr_accessor :line1
940
+ # Address line 2 (e.g., apartment, suite, unit, or building).
941
+ sig { returns(T.nilable(String)) }
942
+ attr_accessor :line2
943
+ # ZIP or postal code.
944
+ sig { returns(T.nilable(String)) }
945
+ attr_accessor :postal_code
946
+ # State, county, province, or region.
947
+ sig { returns(T.nilable(String)) }
948
+ attr_accessor :state
949
+ sig {
950
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
951
+ }
952
+ def initialize(
953
+ city: nil,
954
+ country: nil,
955
+ line1: nil,
956
+ line2: nil,
957
+ postal_code: nil,
958
+ state: nil
959
+ ); end
960
+ end
961
+ class Relationship < Stripe::RequestParams
962
+ # Whether the person is the authorizer of the account's representative.
963
+ sig { returns(T.nilable(T::Boolean)) }
964
+ attr_accessor :authorizer
965
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
966
+ sig { returns(T.nilable(T::Boolean)) }
967
+ attr_accessor :director
968
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
969
+ sig { returns(T.nilable(T::Boolean)) }
970
+ attr_accessor :executive
971
+ # Whether the person is the legal guardian of the account's representative.
972
+ sig { returns(T.nilable(T::Boolean)) }
973
+ attr_accessor :legal_guardian
974
+ # Whether the person is an owner of the account’s legal entity.
975
+ sig { returns(T.nilable(T::Boolean)) }
976
+ attr_accessor :owner
977
+ # The percent owned by the person of the account's legal entity.
978
+ sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
979
+ attr_accessor :percent_ownership
980
+ # Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
981
+ sig { returns(T.nilable(T::Boolean)) }
982
+ attr_accessor :representative
983
+ # The person's title (e.g., CEO, Support Engineer).
984
+ sig { returns(T.nilable(String)) }
985
+ attr_accessor :title
986
+ sig {
987
+ params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
988
+ }
989
+ def initialize(
990
+ authorizer: nil,
991
+ director: nil,
992
+ executive: nil,
993
+ legal_guardian: nil,
994
+ owner: nil,
995
+ percent_ownership: nil,
996
+ representative: nil,
997
+ title: nil
998
+ ); end
999
+ end
1000
+ class UsCfpbData < Stripe::RequestParams
1001
+ class EthnicityDetails < Stripe::RequestParams
1002
+ # The persons ethnicity
1003
+ sig { returns(T.nilable(T::Array[String])) }
1004
+ attr_accessor :ethnicity
1005
+ # Please specify your origin, when other is selected.
1006
+ sig { returns(T.nilable(String)) }
1007
+ attr_accessor :ethnicity_other
1008
+ sig {
1009
+ params(ethnicity: T.nilable(T::Array[String]), ethnicity_other: T.nilable(String)).void
1010
+ }
1011
+ def initialize(ethnicity: nil, ethnicity_other: nil); end
1012
+ end
1013
+ class RaceDetails < Stripe::RequestParams
1014
+ # The persons race.
1015
+ sig { returns(T.nilable(T::Array[String])) }
1016
+ attr_accessor :race
1017
+ # Please specify your race, when other is selected.
1018
+ sig { returns(T.nilable(String)) }
1019
+ attr_accessor :race_other
1020
+ sig { params(race: T.nilable(T::Array[String]), race_other: T.nilable(String)).void }
1021
+ def initialize(race: nil, race_other: nil); end
1022
+ end
1023
+ # The persons ethnicity details
1024
+ sig {
1025
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData::EthnicityDetails))
1026
+ }
1027
+ attr_accessor :ethnicity_details
1028
+ # The persons race details
1029
+ sig {
1030
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData::RaceDetails))
1031
+ }
1032
+ attr_accessor :race_details
1033
+ # The persons self-identified gender
1034
+ sig { returns(T.nilable(String)) }
1035
+ attr_accessor :self_identified_gender
1036
+ sig {
1037
+ params(ethnicity_details: T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData::EthnicityDetails), race_details: T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData::RaceDetails), self_identified_gender: T.nilable(String)).void
1038
+ }
1039
+ def initialize(
1040
+ ethnicity_details: nil,
1041
+ race_details: nil,
1042
+ self_identified_gender: nil
1043
+ ); end
1044
+ end
1045
+ class Verification < Stripe::RequestParams
1046
+ class AdditionalDocument < Stripe::RequestParams
1047
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
1048
+ sig { returns(T.nilable(String)) }
1049
+ attr_accessor :back
1050
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
1051
+ sig { returns(T.nilable(String)) }
1052
+ attr_accessor :front
1053
+ sig { params(back: T.nilable(String), front: T.nilable(String)).void }
1054
+ def initialize(back: nil, front: nil); end
1055
+ end
1056
+ class Document < Stripe::RequestParams
1057
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
1058
+ sig { returns(T.nilable(String)) }
1059
+ attr_accessor :back
1060
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
1061
+ sig { returns(T.nilable(String)) }
1062
+ attr_accessor :front
1063
+ sig { params(back: T.nilable(String), front: T.nilable(String)).void }
1064
+ def initialize(back: nil, front: nil); end
1065
+ end
1066
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1067
+ sig {
1068
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Verification::AdditionalDocument))
1069
+ }
1070
+ attr_accessor :additional_document
1071
+ # An identifying document, either a passport or local ID card.
1072
+ sig {
1073
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Verification::Document))
1074
+ }
1075
+ attr_accessor :document
1076
+ sig {
1077
+ params(additional_document: T.nilable(::Stripe::TokenService::CreateParams::Person::Verification::AdditionalDocument), document: T.nilable(::Stripe::TokenService::CreateParams::Person::Verification::Document)).void
1078
+ }
1079
+ def initialize(additional_document: nil, document: nil); end
1080
+ end
1081
+ # Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
1082
+ sig {
1083
+ returns(T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances))
1084
+ }
1085
+ attr_accessor :additional_tos_acceptances
1086
+ # The person's address.
1087
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Address)) }
1088
+ attr_accessor :address
1089
+ # The Kana variation of the person's address (Japan only).
1090
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKana)) }
1091
+ attr_accessor :address_kana
1092
+ # The Kanji variation of the person's address (Japan only).
1093
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKanji)) }
1094
+ attr_accessor :address_kanji
1095
+ # The person's date of birth.
1096
+ sig {
1097
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob))))
1098
+ }
1099
+ attr_accessor :dob
1100
+ # Documents that may be submitted to satisfy various informational requests.
1101
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Documents)) }
1102
+ attr_accessor :documents
1103
+ # The person's email address.
1104
+ sig { returns(T.nilable(String)) }
1105
+ attr_accessor :email
1106
+ # The person's first name.
1107
+ sig { returns(T.nilable(String)) }
1108
+ attr_accessor :first_name
1109
+ # The Kana variation of the person's first name (Japan only).
1110
+ sig { returns(T.nilable(String)) }
1111
+ attr_accessor :first_name_kana
1112
+ # The Kanji variation of the person's first name (Japan only).
1113
+ sig { returns(T.nilable(String)) }
1114
+ attr_accessor :first_name_kanji
1115
+ # A list of alternate names or aliases that the person is known by.
1116
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
1117
+ attr_accessor :full_name_aliases
1118
+ # The person's gender (International regulations require either "male" or "female").
1119
+ sig { returns(T.nilable(String)) }
1120
+ attr_accessor :gender
1121
+ # The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
1122
+ sig { returns(T.nilable(String)) }
1123
+ attr_accessor :id_number
1124
+ # The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
1125
+ sig { returns(T.nilable(String)) }
1126
+ attr_accessor :id_number_secondary
1127
+ # The person's last name.
1128
+ sig { returns(T.nilable(String)) }
1129
+ attr_accessor :last_name
1130
+ # The Kana variation of the person's last name (Japan only).
1131
+ sig { returns(T.nilable(String)) }
1132
+ attr_accessor :last_name_kana
1133
+ # The Kanji variation of the person's last name (Japan only).
1134
+ sig { returns(T.nilable(String)) }
1135
+ attr_accessor :last_name_kanji
1136
+ # The person's maiden name.
1137
+ sig { returns(T.nilable(String)) }
1138
+ attr_accessor :maiden_name
1139
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1140
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
1141
+ attr_accessor :metadata
1142
+ # The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
1143
+ sig { returns(T.nilable(String)) }
1144
+ attr_accessor :nationality
1145
+ # The person's phone number.
1146
+ sig { returns(T.nilable(String)) }
1147
+ attr_accessor :phone
1148
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
1149
+ sig { returns(T.nilable(String)) }
1150
+ attr_accessor :political_exposure
1151
+ # The person's registered address.
1152
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::RegisteredAddress)) }
1153
+ attr_accessor :registered_address
1154
+ # The relationship that this person has with the account's legal entity.
1155
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Relationship)) }
1156
+ attr_accessor :relationship
1157
+ # The last four digits of the person's Social Security number (U.S. only).
1158
+ sig { returns(T.nilable(String)) }
1159
+ attr_accessor :ssn_last_4
1160
+ # Demographic data related to the person.
1161
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData)) }
1162
+ attr_accessor :us_cfpb_data
1163
+ # The person's verification status.
1164
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Verification)) }
1165
+ attr_accessor :verification
1166
+ sig {
1167
+ params(additional_tos_acceptances: T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances), address: T.nilable(::Stripe::TokenService::CreateParams::Person::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob))), documents: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Person::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Person::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData), verification: T.nilable(::Stripe::TokenService::CreateParams::Person::Verification)).void
1168
+ }
1169
+ def initialize(
1170
+ additional_tos_acceptances: nil,
1171
+ address: nil,
1172
+ address_kana: nil,
1173
+ address_kanji: nil,
1174
+ dob: nil,
1175
+ documents: nil,
1176
+ email: nil,
1177
+ first_name: nil,
1178
+ first_name_kana: nil,
1179
+ first_name_kanji: nil,
1180
+ full_name_aliases: nil,
1181
+ gender: nil,
1182
+ id_number: nil,
1183
+ id_number_secondary: nil,
1184
+ last_name: nil,
1185
+ last_name_kana: nil,
1186
+ last_name_kanji: nil,
1187
+ maiden_name: nil,
1188
+ metadata: nil,
1189
+ nationality: nil,
1190
+ phone: nil,
1191
+ political_exposure: nil,
1192
+ registered_address: nil,
1193
+ relationship: nil,
1194
+ ssn_last_4: nil,
1195
+ us_cfpb_data: nil,
1196
+ verification: nil
1197
+ ); end
1198
+ end
1199
+ class Pii < Stripe::RequestParams
1200
+ # The `id_number` for the PII, in string form.
1201
+ sig { returns(T.nilable(String)) }
1202
+ attr_accessor :id_number
1203
+ sig { params(id_number: T.nilable(String)).void }
1204
+ def initialize(id_number: nil); end
1205
+ end
1206
+ # Information for the account this token represents.
1207
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Account)) }
1208
+ attr_accessor :account
1209
+ # The bank account this token will represent.
1210
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::BankAccount)) }
1211
+ attr_accessor :bank_account
1212
+ # The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below.
1213
+ sig { returns(T.nilable(T.any(::Stripe::TokenService::CreateParams::Card, String))) }
1214
+ attr_accessor :card
1215
+ # Create a token for the customer, which is owned by the application's account. You can only use this with an [OAuth access token](https://stripe.com/docs/connect/standard-accounts) or [Stripe-Account header](https://stripe.com/docs/connect/authentication). Learn more about [cloning saved payment methods](https://stripe.com/docs/connect/cloning-saved-payment-methods).
1216
+ sig { returns(T.nilable(String)) }
1217
+ attr_accessor :customer
1218
+ # The updated CVC value this token represents.
1219
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::CvcUpdate)) }
1220
+ attr_accessor :cvc_update
1221
+ # Specifies which fields in the response should be expanded.
1222
+ sig { returns(T.nilable(T::Array[String])) }
1223
+ attr_accessor :expand
1224
+ # Information for the person this token represents.
1225
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person)) }
1226
+ attr_accessor :person
1227
+ # The PII this token represents.
1228
+ sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Pii)) }
1229
+ attr_accessor :pii
1230
+ sig {
1231
+ params(account: T.nilable(::Stripe::TokenService::CreateParams::Account), bank_account: T.nilable(::Stripe::TokenService::CreateParams::BankAccount), card: T.nilable(T.any(::Stripe::TokenService::CreateParams::Card, String)), customer: T.nilable(String), cvc_update: T.nilable(::Stripe::TokenService::CreateParams::CvcUpdate), expand: T.nilable(T::Array[String]), person: T.nilable(::Stripe::TokenService::CreateParams::Person), pii: T.nilable(::Stripe::TokenService::CreateParams::Pii)).void
1232
+ }
1233
+ def initialize(
1234
+ account: nil,
1235
+ bank_account: nil,
1236
+ card: nil,
1237
+ customer: nil,
1238
+ cvc_update: nil,
1239
+ expand: nil,
1240
+ person: nil,
1241
+ pii: nil
1242
+ ); end
1243
+ end
1244
+ # Creates a single-use token that represents a bank account's details.
1245
+ # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
1246
+ sig {
1247
+ params(params: T.any(::Stripe::TokenService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token)
1248
+ }
1249
+ def create(params = {}, opts = {}); end
1250
+
1251
+ # Retrieves the token with the given ID.
1252
+ sig {
1253
+ params(token: String, params: T.any(::Stripe::TokenService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token)
1254
+ }
1255
+ def retrieve(token, params = {}, opts = {}); end
1256
+ end
1257
+ end