stripe 18.1.0-beta.2 → 18.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 (309) hide show
  1. package/CHANGELOG.md +140 -1185
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +3 -93
  6. package/cjs/RequestSender.js +3 -7
  7. package/cjs/Webhooks.js +6 -2
  8. package/cjs/apiVersion.js +1 -1
  9. package/cjs/net/FetchHttpClient.js +3 -4
  10. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  11. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  12. package/cjs/resources/Invoices.js +0 -17
  13. package/cjs/resources/PaymentIntents.js +0 -8
  14. package/cjs/resources/Quotes.js +0 -32
  15. package/cjs/resources/SubscriptionSchedules.js +0 -4
  16. package/cjs/resources/Terminal/Readers.js +0 -12
  17. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  18. package/cjs/resources.js +18 -106
  19. package/cjs/stripe.core.js +2 -4
  20. package/cjs/utils.js +28 -4
  21. package/esm/Error.js +2 -81
  22. package/esm/RequestSender.js +4 -8
  23. package/esm/Webhooks.js +6 -2
  24. package/esm/apiVersion.js +1 -1
  25. package/esm/net/FetchHttpClient.js +3 -4
  26. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  27. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  28. package/esm/resources/Invoices.js +0 -17
  29. package/esm/resources/PaymentIntents.js +0 -8
  30. package/esm/resources/Quotes.js +0 -32
  31. package/esm/resources/SubscriptionSchedules.js +0 -4
  32. package/esm/resources/Terminal/Readers.js +0 -12
  33. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  34. package/esm/resources.js +1 -83
  35. package/esm/stripe.core.js +2 -4
  36. package/esm/utils.js +24 -3
  37. package/package.json +12 -3
  38. package/types/AccountLinksResource.d.ts +1 -5
  39. package/types/AccountSessions.d.ts +0 -45
  40. package/types/AccountSessionsResource.d.ts +0 -300
  41. package/types/Accounts.d.ts +20 -212
  42. package/types/AccountsResource.d.ts +214 -546
  43. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  44. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  45. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  46. package/types/Billing/CreditGrants.d.ts +0 -5
  47. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  48. package/types/BillingPortal/Sessions.d.ts +0 -5
  49. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  50. package/types/Cards.d.ts +0 -5
  51. package/types/CashBalances.d.ts +0 -5
  52. package/types/Charges.d.ts +5 -166
  53. package/types/ChargesResource.d.ts +0 -1294
  54. package/types/Checkout/Sessions.d.ts +13 -306
  55. package/types/Checkout/SessionsResource.d.ts +3 -246
  56. package/types/ConfirmationTokens.d.ts +5 -120
  57. package/types/CreditNoteLineItems.d.ts +0 -17
  58. package/types/CreditNotes.d.ts +0 -9
  59. package/types/CreditNotesResource.d.ts +0 -5
  60. package/types/CustomerBalanceTransactions.d.ts +0 -2
  61. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  62. package/types/CustomerSessions.d.ts +0 -5
  63. package/types/CustomerSessionsResource.d.ts +1 -6
  64. package/types/Customers.d.ts +0 -2
  65. package/types/CustomersResource.d.ts +23 -11
  66. package/types/Discounts.d.ts +0 -10
  67. package/types/Errors.d.ts +2 -69
  68. package/types/EventTypes.d.ts +0 -681
  69. package/types/Events.d.ts +1 -99
  70. package/types/FinancialConnections/Accounts.d.ts +1 -31
  71. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  72. package/types/FinancialConnections/Sessions.d.ts +1 -51
  73. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  74. package/types/Identity/VerificationSessions.d.ts +0 -5
  75. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  76. package/types/InvoiceItems.d.ts +0 -10
  77. package/types/InvoiceItemsResource.d.ts +6 -117
  78. package/types/InvoiceLineItems.d.ts +2 -46
  79. package/types/InvoicePayments.d.ts +0 -5
  80. package/types/InvoicePaymentsResource.d.ts +74 -0
  81. package/types/Invoices.d.ts +16 -138
  82. package/types/InvoicesResource.d.ts +20 -1550
  83. package/types/Issuing/CardholdersResource.d.ts +1 -2
  84. package/types/Issuing/Transactions.d.ts +0 -5
  85. package/types/Issuing/TransactionsResource.d.ts +0 -5
  86. package/types/LineItems.d.ts +0 -49
  87. package/types/Mandates.d.ts +0 -77
  88. package/types/PaymentIntents.d.ts +2 -675
  89. package/types/PaymentIntentsResource.d.ts +3983 -8416
  90. package/types/PaymentLinks.d.ts +0 -6
  91. package/types/PaymentLinksResource.d.ts +0 -12
  92. package/types/PaymentMethodConfigurations.d.ts +4 -148
  93. package/types/PaymentMethodConfigurationsResource.d.ts +10 -210
  94. package/types/PaymentMethods.d.ts +5 -120
  95. package/types/PaymentMethodsResource.d.ts +12 -167
  96. package/types/Payouts.d.ts +0 -5
  97. package/types/PayoutsResource.d.ts +0 -5
  98. package/types/Persons.d.ts +88 -1
  99. package/types/Prices.d.ts +0 -22
  100. package/types/PricesResource.d.ts +0 -22
  101. package/types/Products.d.ts +0 -39
  102. package/types/ProductsResource.d.ts +0 -36
  103. package/types/PromotionCodes.d.ts +0 -5
  104. package/types/PromotionCodesResource.d.ts +0 -10
  105. package/types/Quotes.d.ts +2 -597
  106. package/types/QuotesResource.d.ts +224 -2571
  107. package/types/Refunds.d.ts +10 -14
  108. package/types/SetupAttempts.d.ts +1 -50
  109. package/types/SetupIntents.d.ts +2 -121
  110. package/types/SetupIntentsResource.d.ts +18 -730
  111. package/types/Sources.d.ts +0 -29
  112. package/types/SubscriptionItems.d.ts +0 -23
  113. package/types/SubscriptionItemsResource.d.ts +0 -109
  114. package/types/SubscriptionSchedules.d.ts +0 -205
  115. package/types/SubscriptionSchedulesResource.d.ts +8 -1236
  116. package/types/Subscriptions.d.ts +2 -97
  117. package/types/SubscriptionsResource.d.ts +11 -391
  118. package/types/Tax/Calculations.d.ts +11 -1
  119. package/types/Tax/CalculationsResource.d.ts +11 -1
  120. package/types/Tax/Registrations.d.ts +99 -0
  121. package/types/Tax/RegistrationsResource.d.ts +132 -0
  122. package/types/Tax/Transactions.d.ts +11 -1
  123. package/types/TaxIds.d.ts +11 -11
  124. package/types/TaxIdsResource.d.ts +11 -11
  125. package/types/Terminal/Readers.d.ts +0 -300
  126. package/types/Terminal/ReadersResource.d.ts +0 -220
  127. package/types/TestHelpers/ConfirmationTokensResource.d.ts +12 -127
  128. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  129. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  130. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  131. package/types/TokensResource.d.ts +106 -0
  132. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  133. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  134. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  135. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  136. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  137. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  138. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  139. package/types/V2/EventTypes.d.ts +7 -677
  140. package/types/WebhookEndpointsResource.d.ts +4 -83
  141. package/types/index.d.ts +5 -142
  142. package/types/lib.d.ts +1 -11
  143. package/types/test/typescriptTest.ts +3 -3
  144. package/cjs/resources/AccountNotices.js +0 -21
  145. package/cjs/resources/BalanceSettings.js +0 -10
  146. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  147. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  148. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  149. package/cjs/resources/ExternalAccounts.js +0 -23
  150. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  151. package/cjs/resources/GiftCards/Cards.js +0 -23
  152. package/cjs/resources/GiftCards/Transactions.js +0 -33
  153. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  154. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  155. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  156. package/cjs/resources/Margins.js +0 -22
  157. package/cjs/resources/Orders.js +0 -24
  158. package/cjs/resources/PaymentRecords.js +0 -29
  159. package/cjs/resources/Privacy/RedactionJobs.js +0 -46
  160. package/cjs/resources/Tax/Associations.js +0 -9
  161. package/cjs/resources/Tax/Forms.js +0 -20
  162. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  163. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  164. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  165. package/cjs/resources/V2/Core/Accounts.js +0 -25
  166. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  167. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  168. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  169. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  171. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  172. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
  173. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  174. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  175. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  176. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  177. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  178. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  179. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  180. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  181. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  182. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  183. package/esm/resources/AccountNotices.js +0 -18
  184. package/esm/resources/BalanceSettings.js +0 -7
  185. package/esm/resources/Capital/FinancingOffers.js +0 -18
  186. package/esm/resources/Capital/FinancingSummary.js +0 -9
  187. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  188. package/esm/resources/ExternalAccounts.js +0 -20
  189. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  190. package/esm/resources/GiftCards/Cards.js +0 -20
  191. package/esm/resources/GiftCards/Transactions.js +0 -30
  192. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  193. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  194. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  195. package/esm/resources/Margins.js +0 -19
  196. package/esm/resources/Orders.js +0 -21
  197. package/esm/resources/PaymentRecords.js +0 -26
  198. package/esm/resources/Privacy/RedactionJobs.js +0 -43
  199. package/esm/resources/Tax/Associations.js +0 -6
  200. package/esm/resources/Tax/Forms.js +0 -17
  201. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  202. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  203. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  204. package/esm/resources/V2/Core/Accounts.js +0 -22
  205. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  206. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  207. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  208. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  209. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  210. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  211. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
  212. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  213. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  214. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  215. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  216. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  217. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  218. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  219. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  220. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  221. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  222. package/types/AccountNotices.d.ts +0 -113
  223. package/types/AccountNoticesResource.d.ts +0 -98
  224. package/types/BalanceSettings.d.ts +0 -85
  225. package/types/BalanceSettingsResource.d.ts +0 -108
  226. package/types/Billing/MeterErrorReports.d.ts +0 -106
  227. package/types/Capital/FinancingOffers.d.ts +0 -188
  228. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  229. package/types/Capital/FinancingSummary.d.ts +0 -106
  230. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  231. package/types/Capital/FinancingTransactions.d.ts +0 -135
  232. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  233. package/types/ExternalAccountsResource.d.ts +0 -304
  234. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  235. package/types/FinancialConnections/Institutions.d.ts +0 -93
  236. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  237. package/types/GiftCards/Cards.d.ts +0 -118
  238. package/types/GiftCards/CardsResource.d.ts +0 -159
  239. package/types/GiftCards/Transactions.d.ts +0 -129
  240. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  241. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  242. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  243. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  244. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  245. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  246. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  247. package/types/Issuing/Settlements.d.ts +0 -113
  248. package/types/Margins.d.ts +0 -56
  249. package/types/MarginsResource.d.ts +0 -114
  250. package/types/Orders.d.ts +0 -1189
  251. package/types/OrdersResource.d.ts +0 -2981
  252. package/types/PaymentAttemptRecords.d.ts +0 -2112
  253. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  254. package/types/PaymentRecords.d.ts +0 -2105
  255. package/types/PaymentRecordsResource.d.ts +0 -455
  256. package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
  257. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  258. package/types/Privacy/RedactionJobs.d.ts +0 -43
  259. package/types/Privacy/RedactionJobsResource.d.ts +0 -240
  260. package/types/QuoteLines.d.ts +0 -634
  261. package/types/QuotePreviewInvoices.d.ts +0 -1686
  262. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  263. package/types/Tax/Associations.d.ts +0 -126
  264. package/types/Tax/AssociationsResource.d.ts +0 -29
  265. package/types/Tax/Forms.d.ts +0 -220
  266. package/types/Tax/FormsResource.d.ts +0 -107
  267. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  268. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  269. package/types/V2/Core/AccountLinks.d.ts +0 -101
  270. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  271. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
  272. package/types/V2/Core/Accounts.d.ts +0 -8057
  273. package/types/V2/Core/AccountsResource.d.ts +0 -10184
  274. package/types/V2/Core/Persons.d.ts +0 -1857
  275. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
  276. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  277. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
  278. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  279. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
  280. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
  281. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
  282. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  283. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
  284. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  285. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
  286. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
  287. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
  288. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  289. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
  290. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
  291. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
  292. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  293. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
  294. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  295. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
  296. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  297. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
  298. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  299. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
  300. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  301. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
  302. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  303. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
  304. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  305. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
  306. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  307. package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
  308. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  309. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -1,1857 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace V2 {
6
- namespace Core {
7
- /**
8
- * Person retrieval response schema.
9
- */
10
- interface Person {
11
- /**
12
- * Unique identifier for the Person.
13
- */
14
- id: string;
15
-
16
- /**
17
- * String representing the object's type. Objects of the same type share the same value of the object field.
18
- */
19
- object: 'v2.core.account_person';
20
-
21
- /**
22
- * The account ID which the individual belongs to.
23
- */
24
- account: string;
25
-
26
- /**
27
- * Additional addresses associated with the person.
28
- */
29
- additional_addresses: Array<Person.AdditionalAddress> | null;
30
-
31
- /**
32
- * Additional names (e.g. aliases) associated with the person.
33
- */
34
- additional_names: Array<Person.AdditionalName> | null;
35
-
36
- /**
37
- * Attestations of accepted terms of service agreements.
38
- */
39
- additional_terms_of_service: Person.AdditionalTermsOfService | null;
40
-
41
- /**
42
- * The person's residential address.
43
- */
44
- address: Person.Address | null;
45
-
46
- /**
47
- * Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
48
- */
49
- created: string;
50
-
51
- /**
52
- * The person's date of birth.
53
- */
54
- date_of_birth: Person.DateOfBirth | null;
55
-
56
- /**
57
- * Documents that may be submitted to satisfy various informational requests.
58
- */
59
- documents: Person.Documents | null;
60
-
61
- /**
62
- * The person's email address.
63
- */
64
- email: string | null;
65
-
66
- /**
67
- * The person's first name.
68
- */
69
- given_name: string | null;
70
-
71
- /**
72
- * The identification numbers (e.g., SSN) associated with the person.
73
- */
74
- id_numbers: Array<Person.IdNumber> | null;
75
-
76
- /**
77
- * The person's gender (International regulations require either "male" or "female").
78
- */
79
- legal_gender: Person.LegalGender | null;
80
-
81
- /**
82
- * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
83
- */
84
- metadata: Stripe.Metadata | null;
85
-
86
- /**
87
- * The countries 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)).
88
- */
89
- nationalities: Array<Person.Nationality> | null;
90
-
91
- /**
92
- * The person's phone number.
93
- */
94
- phone: string | null;
95
-
96
- /**
97
- * The person's political exposure.
98
- */
99
- political_exposure: Person.PoliticalExposure | null;
100
-
101
- /**
102
- * The relationship that this person has with the Account's business or legal entity.
103
- */
104
- relationship: Person.Relationship | null;
105
-
106
- /**
107
- * The script addresses (e.g., non-Latin characters) associated with the person.
108
- */
109
- script_addresses: Person.ScriptAddresses | null;
110
-
111
- /**
112
- * The script names (e.g. non-Latin characters) associated with the person.
113
- */
114
- script_names: Person.ScriptNames | null;
115
-
116
- /**
117
- * The person's last name.
118
- */
119
- surname: string | null;
120
-
121
- /**
122
- * Time at which the object was last updated. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
123
- */
124
- updated: string;
125
- }
126
-
127
- namespace Person {
128
- interface AdditionalAddress {
129
- /**
130
- * City, district, suburb, town, or village.
131
- */
132
- city: string | null;
133
-
134
- /**
135
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
136
- */
137
- country: AdditionalAddress.Country | null;
138
-
139
- /**
140
- * Address line 1 (e.g., street, PO Box, or company name).
141
- */
142
- line1: string | null;
143
-
144
- /**
145
- * Address line 2 (e.g., apartment, suite, unit, or building).
146
- */
147
- line2: string | null;
148
-
149
- /**
150
- * ZIP or postal code.
151
- */
152
- postal_code: string | null;
153
-
154
- /**
155
- * Purpose of additional address.
156
- */
157
- purpose: 'registered';
158
-
159
- /**
160
- * State, county, province, or region.
161
- */
162
- state: string | null;
163
-
164
- /**
165
- * Town or cho-me.
166
- */
167
- town: string | null;
168
- }
169
-
170
- namespace AdditionalAddress {
171
- type Country =
172
- | 'ad'
173
- | 'ae'
174
- | 'af'
175
- | 'ag'
176
- | 'ai'
177
- | 'al'
178
- | 'am'
179
- | 'ao'
180
- | 'aq'
181
- | 'ar'
182
- | 'as'
183
- | 'at'
184
- | 'au'
185
- | 'aw'
186
- | 'ax'
187
- | 'az'
188
- | 'ba'
189
- | 'bb'
190
- | 'bd'
191
- | 'be'
192
- | 'bf'
193
- | 'bg'
194
- | 'bh'
195
- | 'bi'
196
- | 'bj'
197
- | 'bl'
198
- | 'bm'
199
- | 'bn'
200
- | 'bo'
201
- | 'bq'
202
- | 'br'
203
- | 'bs'
204
- | 'bt'
205
- | 'bv'
206
- | 'bw'
207
- | 'by'
208
- | 'bz'
209
- | 'ca'
210
- | 'cc'
211
- | 'cd'
212
- | 'cf'
213
- | 'cg'
214
- | 'ch'
215
- | 'ci'
216
- | 'ck'
217
- | 'cl'
218
- | 'cm'
219
- | 'cn'
220
- | 'co'
221
- | 'cr'
222
- | 'cu'
223
- | 'cv'
224
- | 'cw'
225
- | 'cx'
226
- | 'cy'
227
- | 'cz'
228
- | 'de'
229
- | 'dj'
230
- | 'dk'
231
- | 'dm'
232
- | 'do'
233
- | 'dz'
234
- | 'ec'
235
- | 'ee'
236
- | 'eg'
237
- | 'eh'
238
- | 'er'
239
- | 'es'
240
- | 'et'
241
- | 'fi'
242
- | 'fj'
243
- | 'fk'
244
- | 'fm'
245
- | 'fo'
246
- | 'fr'
247
- | 'ga'
248
- | 'gb'
249
- | 'gd'
250
- | 'ge'
251
- | 'gf'
252
- | 'gg'
253
- | 'gh'
254
- | 'gi'
255
- | 'gl'
256
- | 'gm'
257
- | 'gn'
258
- | 'gp'
259
- | 'gq'
260
- | 'gr'
261
- | 'gs'
262
- | 'gt'
263
- | 'gu'
264
- | 'gw'
265
- | 'gy'
266
- | 'hk'
267
- | 'hm'
268
- | 'hn'
269
- | 'hr'
270
- | 'ht'
271
- | 'hu'
272
- | 'id'
273
- | 'ie'
274
- | 'il'
275
- | 'im'
276
- | 'in'
277
- | 'io'
278
- | 'iq'
279
- | 'ir'
280
- | 'is'
281
- | 'it'
282
- | 'je'
283
- | 'jm'
284
- | 'jo'
285
- | 'jp'
286
- | 'ke'
287
- | 'kg'
288
- | 'kh'
289
- | 'ki'
290
- | 'km'
291
- | 'kn'
292
- | 'kp'
293
- | 'kr'
294
- | 'kw'
295
- | 'ky'
296
- | 'kz'
297
- | 'la'
298
- | 'lb'
299
- | 'lc'
300
- | 'li'
301
- | 'lk'
302
- | 'lr'
303
- | 'ls'
304
- | 'lt'
305
- | 'lu'
306
- | 'lv'
307
- | 'ly'
308
- | 'ma'
309
- | 'mc'
310
- | 'md'
311
- | 'me'
312
- | 'mf'
313
- | 'mg'
314
- | 'mh'
315
- | 'mk'
316
- | 'ml'
317
- | 'mm'
318
- | 'mn'
319
- | 'mo'
320
- | 'mp'
321
- | 'mq'
322
- | 'mr'
323
- | 'ms'
324
- | 'mt'
325
- | 'mu'
326
- | 'mv'
327
- | 'mw'
328
- | 'mx'
329
- | 'my'
330
- | 'mz'
331
- | 'na'
332
- | 'nc'
333
- | 'ne'
334
- | 'nf'
335
- | 'ng'
336
- | 'ni'
337
- | 'nl'
338
- | 'no'
339
- | 'np'
340
- | 'nr'
341
- | 'nu'
342
- | 'nz'
343
- | 'om'
344
- | 'pa'
345
- | 'pe'
346
- | 'pf'
347
- | 'pg'
348
- | 'ph'
349
- | 'pk'
350
- | 'pl'
351
- | 'pm'
352
- | 'pn'
353
- | 'pr'
354
- | 'ps'
355
- | 'pt'
356
- | 'pw'
357
- | 'py'
358
- | 'qa'
359
- | 'qz'
360
- | 're'
361
- | 'ro'
362
- | 'rs'
363
- | 'ru'
364
- | 'rw'
365
- | 'sa'
366
- | 'sb'
367
- | 'sc'
368
- | 'sd'
369
- | 'se'
370
- | 'sg'
371
- | 'sh'
372
- | 'si'
373
- | 'sj'
374
- | 'sk'
375
- | 'sl'
376
- | 'sm'
377
- | 'sn'
378
- | 'so'
379
- | 'sr'
380
- | 'ss'
381
- | 'st'
382
- | 'sv'
383
- | 'sx'
384
- | 'sy'
385
- | 'sz'
386
- | 'tc'
387
- | 'td'
388
- | 'tf'
389
- | 'tg'
390
- | 'th'
391
- | 'tj'
392
- | 'tk'
393
- | 'tl'
394
- | 'tm'
395
- | 'tn'
396
- | 'to'
397
- | 'tr'
398
- | 'tt'
399
- | 'tv'
400
- | 'tw'
401
- | 'tz'
402
- | 'ua'
403
- | 'ug'
404
- | 'um'
405
- | 'us'
406
- | 'uy'
407
- | 'uz'
408
- | 'va'
409
- | 'vc'
410
- | 've'
411
- | 'vg'
412
- | 'vi'
413
- | 'vn'
414
- | 'vu'
415
- | 'wf'
416
- | 'ws'
417
- | 'ye'
418
- | 'yt'
419
- | 'za'
420
- | 'zm'
421
- | 'zw';
422
- }
423
-
424
- interface AdditionalName {
425
- /**
426
- * The individual's full name.
427
- */
428
- full_name: string | null;
429
-
430
- /**
431
- * The individual's first or given name.
432
- */
433
- given_name: string | null;
434
-
435
- /**
436
- * The purpose or type of the additional name.
437
- */
438
- purpose: AdditionalName.Purpose;
439
-
440
- /**
441
- * The individual's last or family name.
442
- */
443
- surname: string | null;
444
- }
445
-
446
- namespace AdditionalName {
447
- type Purpose = 'alias' | 'maiden';
448
- }
449
-
450
- interface AdditionalTermsOfService {
451
- /**
452
- * Stripe terms of service agreement.
453
- */
454
- account: AdditionalTermsOfService.Account | null;
455
- }
456
-
457
- namespace AdditionalTermsOfService {
458
- interface Account {
459
- /**
460
- * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
461
- */
462
- date: string | null;
463
-
464
- /**
465
- * The IP address from which the Account's representative accepted the terms of service.
466
- */
467
- ip: string | null;
468
-
469
- /**
470
- * The user agent of the browser from which the Account's representative accepted the terms of service.
471
- */
472
- user_agent: string | null;
473
- }
474
- }
475
-
476
- interface Address {
477
- /**
478
- * City, district, suburb, town, or village.
479
- */
480
- city: string | null;
481
-
482
- /**
483
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
484
- */
485
- country: Address.Country | null;
486
-
487
- /**
488
- * Address line 1 (e.g., street, PO Box, or company name).
489
- */
490
- line1: string | null;
491
-
492
- /**
493
- * Address line 2 (e.g., apartment, suite, unit, or building).
494
- */
495
- line2: string | null;
496
-
497
- /**
498
- * ZIP or postal code.
499
- */
500
- postal_code: string | null;
501
-
502
- /**
503
- * State, county, province, or region.
504
- */
505
- state: string | null;
506
-
507
- /**
508
- * Town or cho-me.
509
- */
510
- town: string | null;
511
- }
512
-
513
- namespace Address {
514
- type Country =
515
- | 'ad'
516
- | 'ae'
517
- | 'af'
518
- | 'ag'
519
- | 'ai'
520
- | 'al'
521
- | 'am'
522
- | 'ao'
523
- | 'aq'
524
- | 'ar'
525
- | 'as'
526
- | 'at'
527
- | 'au'
528
- | 'aw'
529
- | 'ax'
530
- | 'az'
531
- | 'ba'
532
- | 'bb'
533
- | 'bd'
534
- | 'be'
535
- | 'bf'
536
- | 'bg'
537
- | 'bh'
538
- | 'bi'
539
- | 'bj'
540
- | 'bl'
541
- | 'bm'
542
- | 'bn'
543
- | 'bo'
544
- | 'bq'
545
- | 'br'
546
- | 'bs'
547
- | 'bt'
548
- | 'bv'
549
- | 'bw'
550
- | 'by'
551
- | 'bz'
552
- | 'ca'
553
- | 'cc'
554
- | 'cd'
555
- | 'cf'
556
- | 'cg'
557
- | 'ch'
558
- | 'ci'
559
- | 'ck'
560
- | 'cl'
561
- | 'cm'
562
- | 'cn'
563
- | 'co'
564
- | 'cr'
565
- | 'cu'
566
- | 'cv'
567
- | 'cw'
568
- | 'cx'
569
- | 'cy'
570
- | 'cz'
571
- | 'de'
572
- | 'dj'
573
- | 'dk'
574
- | 'dm'
575
- | 'do'
576
- | 'dz'
577
- | 'ec'
578
- | 'ee'
579
- | 'eg'
580
- | 'eh'
581
- | 'er'
582
- | 'es'
583
- | 'et'
584
- | 'fi'
585
- | 'fj'
586
- | 'fk'
587
- | 'fm'
588
- | 'fo'
589
- | 'fr'
590
- | 'ga'
591
- | 'gb'
592
- | 'gd'
593
- | 'ge'
594
- | 'gf'
595
- | 'gg'
596
- | 'gh'
597
- | 'gi'
598
- | 'gl'
599
- | 'gm'
600
- | 'gn'
601
- | 'gp'
602
- | 'gq'
603
- | 'gr'
604
- | 'gs'
605
- | 'gt'
606
- | 'gu'
607
- | 'gw'
608
- | 'gy'
609
- | 'hk'
610
- | 'hm'
611
- | 'hn'
612
- | 'hr'
613
- | 'ht'
614
- | 'hu'
615
- | 'id'
616
- | 'ie'
617
- | 'il'
618
- | 'im'
619
- | 'in'
620
- | 'io'
621
- | 'iq'
622
- | 'ir'
623
- | 'is'
624
- | 'it'
625
- | 'je'
626
- | 'jm'
627
- | 'jo'
628
- | 'jp'
629
- | 'ke'
630
- | 'kg'
631
- | 'kh'
632
- | 'ki'
633
- | 'km'
634
- | 'kn'
635
- | 'kp'
636
- | 'kr'
637
- | 'kw'
638
- | 'ky'
639
- | 'kz'
640
- | 'la'
641
- | 'lb'
642
- | 'lc'
643
- | 'li'
644
- | 'lk'
645
- | 'lr'
646
- | 'ls'
647
- | 'lt'
648
- | 'lu'
649
- | 'lv'
650
- | 'ly'
651
- | 'ma'
652
- | 'mc'
653
- | 'md'
654
- | 'me'
655
- | 'mf'
656
- | 'mg'
657
- | 'mh'
658
- | 'mk'
659
- | 'ml'
660
- | 'mm'
661
- | 'mn'
662
- | 'mo'
663
- | 'mp'
664
- | 'mq'
665
- | 'mr'
666
- | 'ms'
667
- | 'mt'
668
- | 'mu'
669
- | 'mv'
670
- | 'mw'
671
- | 'mx'
672
- | 'my'
673
- | 'mz'
674
- | 'na'
675
- | 'nc'
676
- | 'ne'
677
- | 'nf'
678
- | 'ng'
679
- | 'ni'
680
- | 'nl'
681
- | 'no'
682
- | 'np'
683
- | 'nr'
684
- | 'nu'
685
- | 'nz'
686
- | 'om'
687
- | 'pa'
688
- | 'pe'
689
- | 'pf'
690
- | 'pg'
691
- | 'ph'
692
- | 'pk'
693
- | 'pl'
694
- | 'pm'
695
- | 'pn'
696
- | 'pr'
697
- | 'ps'
698
- | 'pt'
699
- | 'pw'
700
- | 'py'
701
- | 'qa'
702
- | 'qz'
703
- | 're'
704
- | 'ro'
705
- | 'rs'
706
- | 'ru'
707
- | 'rw'
708
- | 'sa'
709
- | 'sb'
710
- | 'sc'
711
- | 'sd'
712
- | 'se'
713
- | 'sg'
714
- | 'sh'
715
- | 'si'
716
- | 'sj'
717
- | 'sk'
718
- | 'sl'
719
- | 'sm'
720
- | 'sn'
721
- | 'so'
722
- | 'sr'
723
- | 'ss'
724
- | 'st'
725
- | 'sv'
726
- | 'sx'
727
- | 'sy'
728
- | 'sz'
729
- | 'tc'
730
- | 'td'
731
- | 'tf'
732
- | 'tg'
733
- | 'th'
734
- | 'tj'
735
- | 'tk'
736
- | 'tl'
737
- | 'tm'
738
- | 'tn'
739
- | 'to'
740
- | 'tr'
741
- | 'tt'
742
- | 'tv'
743
- | 'tw'
744
- | 'tz'
745
- | 'ua'
746
- | 'ug'
747
- | 'um'
748
- | 'us'
749
- | 'uy'
750
- | 'uz'
751
- | 'va'
752
- | 'vc'
753
- | 've'
754
- | 'vg'
755
- | 'vi'
756
- | 'vn'
757
- | 'vu'
758
- | 'wf'
759
- | 'ws'
760
- | 'ye'
761
- | 'yt'
762
- | 'za'
763
- | 'zm'
764
- | 'zw';
765
- }
766
-
767
- interface DateOfBirth {
768
- /**
769
- * The day of birth, between 1 and 31.
770
- */
771
- day: number;
772
-
773
- /**
774
- * The month of birth, between 1 and 12.
775
- */
776
- month: number;
777
-
778
- /**
779
- * The four-digit year of birth.
780
- */
781
- year: number;
782
- }
783
-
784
- interface Documents {
785
- /**
786
- * One or more documents that demonstrate proof that this person is authorized to represent the company.
787
- */
788
- company_authorization: Documents.CompanyAuthorization | null;
789
-
790
- /**
791
- * One or more documents showing the person's passport page with photo and personal data.
792
- */
793
- passport: Documents.Passport | null;
794
-
795
- /**
796
- * An identifying document showing the person's name, either a passport or local ID card.
797
- */
798
- primary_verification: Documents.PrimaryVerification | null;
799
-
800
- /**
801
- * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
802
- */
803
- secondary_verification: Documents.SecondaryVerification | null;
804
-
805
- /**
806
- * One or more documents showing the person's visa required for living in the country where they are residing.
807
- */
808
- visa: Documents.Visa | null;
809
- }
810
-
811
- namespace Documents {
812
- interface CompanyAuthorization {
813
- /**
814
- * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
815
- */
816
- files: Array<string>;
817
-
818
- /**
819
- * The format of the document. Currently supports `files` only.
820
- */
821
- type: 'files';
822
- }
823
-
824
- interface Passport {
825
- /**
826
- * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
827
- */
828
- files: Array<string>;
829
-
830
- /**
831
- * The format of the document. Currently supports `files` only.
832
- */
833
- type: 'files';
834
- }
835
-
836
- interface PrimaryVerification {
837
- /**
838
- * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
839
- */
840
- front_back: PrimaryVerification.FrontBack;
841
-
842
- /**
843
- * The format of the verification document. Currently supports `front_back` only.
844
- */
845
- type: 'front_back';
846
- }
847
-
848
- namespace PrimaryVerification {
849
- interface FrontBack {
850
- /**
851
- * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
852
- */
853
- back: string | null;
854
-
855
- /**
856
- * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
857
- */
858
- front: string;
859
- }
860
- }
861
-
862
- interface SecondaryVerification {
863
- /**
864
- * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
865
- */
866
- front_back: SecondaryVerification.FrontBack;
867
-
868
- /**
869
- * The format of the verification document. Currently supports `front_back` only.
870
- */
871
- type: 'front_back';
872
- }
873
-
874
- namespace SecondaryVerification {
875
- interface FrontBack {
876
- /**
877
- * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
878
- */
879
- back: string | null;
880
-
881
- /**
882
- * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
883
- */
884
- front: string;
885
- }
886
- }
887
-
888
- interface Visa {
889
- /**
890
- * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
891
- */
892
- files: Array<string>;
893
-
894
- /**
895
- * The format of the document. Currently supports `files` only.
896
- */
897
- type: 'files';
898
- }
899
- }
900
-
901
- interface IdNumber {
902
- /**
903
- * The ID number type of an individual.
904
- */
905
- type: IdNumber.Type;
906
- }
907
-
908
- namespace IdNumber {
909
- type Type =
910
- | 'ae_eid'
911
- | 'br_cpf'
912
- | 'de_stn'
913
- | 'hk_id'
914
- | 'mx_rfc'
915
- | 'my_nric'
916
- | 'nl_bsn'
917
- | 'sg_fin'
918
- | 'sg_nric'
919
- | 'th_lc'
920
- | 'th_pin'
921
- | 'us_itin'
922
- | 'us_itin_last_4'
923
- | 'us_ssn'
924
- | 'us_ssn_last_4';
925
- }
926
-
927
- type LegalGender = 'female' | 'male';
928
-
929
- type Nationality =
930
- | 'ad'
931
- | 'ae'
932
- | 'af'
933
- | 'ag'
934
- | 'ai'
935
- | 'al'
936
- | 'am'
937
- | 'ao'
938
- | 'aq'
939
- | 'ar'
940
- | 'as'
941
- | 'at'
942
- | 'au'
943
- | 'aw'
944
- | 'ax'
945
- | 'az'
946
- | 'ba'
947
- | 'bb'
948
- | 'bd'
949
- | 'be'
950
- | 'bf'
951
- | 'bg'
952
- | 'bh'
953
- | 'bi'
954
- | 'bj'
955
- | 'bl'
956
- | 'bm'
957
- | 'bn'
958
- | 'bo'
959
- | 'bq'
960
- | 'br'
961
- | 'bs'
962
- | 'bt'
963
- | 'bv'
964
- | 'bw'
965
- | 'by'
966
- | 'bz'
967
- | 'ca'
968
- | 'cc'
969
- | 'cd'
970
- | 'cf'
971
- | 'cg'
972
- | 'ch'
973
- | 'ci'
974
- | 'ck'
975
- | 'cl'
976
- | 'cm'
977
- | 'cn'
978
- | 'co'
979
- | 'cr'
980
- | 'cu'
981
- | 'cv'
982
- | 'cw'
983
- | 'cx'
984
- | 'cy'
985
- | 'cz'
986
- | 'de'
987
- | 'dj'
988
- | 'dk'
989
- | 'dm'
990
- | 'do'
991
- | 'dz'
992
- | 'ec'
993
- | 'ee'
994
- | 'eg'
995
- | 'eh'
996
- | 'er'
997
- | 'es'
998
- | 'et'
999
- | 'fi'
1000
- | 'fj'
1001
- | 'fk'
1002
- | 'fm'
1003
- | 'fo'
1004
- | 'fr'
1005
- | 'ga'
1006
- | 'gb'
1007
- | 'gd'
1008
- | 'ge'
1009
- | 'gf'
1010
- | 'gg'
1011
- | 'gh'
1012
- | 'gi'
1013
- | 'gl'
1014
- | 'gm'
1015
- | 'gn'
1016
- | 'gp'
1017
- | 'gq'
1018
- | 'gr'
1019
- | 'gs'
1020
- | 'gt'
1021
- | 'gu'
1022
- | 'gw'
1023
- | 'gy'
1024
- | 'hk'
1025
- | 'hm'
1026
- | 'hn'
1027
- | 'hr'
1028
- | 'ht'
1029
- | 'hu'
1030
- | 'id'
1031
- | 'ie'
1032
- | 'il'
1033
- | 'im'
1034
- | 'in'
1035
- | 'io'
1036
- | 'iq'
1037
- | 'ir'
1038
- | 'is'
1039
- | 'it'
1040
- | 'je'
1041
- | 'jm'
1042
- | 'jo'
1043
- | 'jp'
1044
- | 'ke'
1045
- | 'kg'
1046
- | 'kh'
1047
- | 'ki'
1048
- | 'km'
1049
- | 'kn'
1050
- | 'kp'
1051
- | 'kr'
1052
- | 'kw'
1053
- | 'ky'
1054
- | 'kz'
1055
- | 'la'
1056
- | 'lb'
1057
- | 'lc'
1058
- | 'li'
1059
- | 'lk'
1060
- | 'lr'
1061
- | 'ls'
1062
- | 'lt'
1063
- | 'lu'
1064
- | 'lv'
1065
- | 'ly'
1066
- | 'ma'
1067
- | 'mc'
1068
- | 'md'
1069
- | 'me'
1070
- | 'mf'
1071
- | 'mg'
1072
- | 'mh'
1073
- | 'mk'
1074
- | 'ml'
1075
- | 'mm'
1076
- | 'mn'
1077
- | 'mo'
1078
- | 'mp'
1079
- | 'mq'
1080
- | 'mr'
1081
- | 'ms'
1082
- | 'mt'
1083
- | 'mu'
1084
- | 'mv'
1085
- | 'mw'
1086
- | 'mx'
1087
- | 'my'
1088
- | 'mz'
1089
- | 'na'
1090
- | 'nc'
1091
- | 'ne'
1092
- | 'nf'
1093
- | 'ng'
1094
- | 'ni'
1095
- | 'nl'
1096
- | 'no'
1097
- | 'np'
1098
- | 'nr'
1099
- | 'nu'
1100
- | 'nz'
1101
- | 'om'
1102
- | 'pa'
1103
- | 'pe'
1104
- | 'pf'
1105
- | 'pg'
1106
- | 'ph'
1107
- | 'pk'
1108
- | 'pl'
1109
- | 'pm'
1110
- | 'pn'
1111
- | 'pr'
1112
- | 'ps'
1113
- | 'pt'
1114
- | 'pw'
1115
- | 'py'
1116
- | 'qa'
1117
- | 'qz'
1118
- | 're'
1119
- | 'ro'
1120
- | 'rs'
1121
- | 'ru'
1122
- | 'rw'
1123
- | 'sa'
1124
- | 'sb'
1125
- | 'sc'
1126
- | 'sd'
1127
- | 'se'
1128
- | 'sg'
1129
- | 'sh'
1130
- | 'si'
1131
- | 'sj'
1132
- | 'sk'
1133
- | 'sl'
1134
- | 'sm'
1135
- | 'sn'
1136
- | 'so'
1137
- | 'sr'
1138
- | 'ss'
1139
- | 'st'
1140
- | 'sv'
1141
- | 'sx'
1142
- | 'sy'
1143
- | 'sz'
1144
- | 'tc'
1145
- | 'td'
1146
- | 'tf'
1147
- | 'tg'
1148
- | 'th'
1149
- | 'tj'
1150
- | 'tk'
1151
- | 'tl'
1152
- | 'tm'
1153
- | 'tn'
1154
- | 'to'
1155
- | 'tr'
1156
- | 'tt'
1157
- | 'tv'
1158
- | 'tw'
1159
- | 'tz'
1160
- | 'ua'
1161
- | 'ug'
1162
- | 'um'
1163
- | 'us'
1164
- | 'uy'
1165
- | 'uz'
1166
- | 'va'
1167
- | 'vc'
1168
- | 've'
1169
- | 'vg'
1170
- | 'vi'
1171
- | 'vn'
1172
- | 'vu'
1173
- | 'wf'
1174
- | 'ws'
1175
- | 'ye'
1176
- | 'yt'
1177
- | 'za'
1178
- | 'zm'
1179
- | 'zw';
1180
-
1181
- type PoliticalExposure = 'existing' | 'none';
1182
-
1183
- interface Relationship {
1184
- /**
1185
- * Whether the individual 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.
1186
- */
1187
- director: boolean | null;
1188
-
1189
- /**
1190
- * Whether the individual has significant responsibility to control, manage, or direct the organization.
1191
- */
1192
- executive: boolean | null;
1193
-
1194
- /**
1195
- * Whether the individual is the legal guardian of the Account's representative.
1196
- */
1197
- legal_guardian: boolean | null;
1198
-
1199
- /**
1200
- * Whether the individual is an owner of the Account's legal entity.
1201
- */
1202
- owner: boolean | null;
1203
-
1204
- /**
1205
- * The percent owned by the individual of the Account's legal entity.
1206
- */
1207
- percent_ownership: string | null;
1208
-
1209
- /**
1210
- * Whether the individual 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.
1211
- */
1212
- representative: boolean | null;
1213
-
1214
- /**
1215
- * The individual's title (e.g., CEO, Support Engineer).
1216
- */
1217
- title: string | null;
1218
- }
1219
-
1220
- interface ScriptAddresses {
1221
- /**
1222
- * Kana Address.
1223
- */
1224
- kana: ScriptAddresses.Kana | null;
1225
-
1226
- /**
1227
- * Kanji Address.
1228
- */
1229
- kanji: ScriptAddresses.Kanji | null;
1230
- }
1231
-
1232
- namespace ScriptAddresses {
1233
- interface Kana {
1234
- /**
1235
- * City, district, suburb, town, or village.
1236
- */
1237
- city: string | null;
1238
-
1239
- /**
1240
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1241
- */
1242
- country: Kana.Country | null;
1243
-
1244
- /**
1245
- * Address line 1 (e.g., street, PO Box, or company name).
1246
- */
1247
- line1: string | null;
1248
-
1249
- /**
1250
- * Address line 2 (e.g., apartment, suite, unit, or building).
1251
- */
1252
- line2: string | null;
1253
-
1254
- /**
1255
- * ZIP or postal code.
1256
- */
1257
- postal_code: string | null;
1258
-
1259
- /**
1260
- * State, county, province, or region.
1261
- */
1262
- state: string | null;
1263
-
1264
- /**
1265
- * Town or cho-me.
1266
- */
1267
- town: string | null;
1268
- }
1269
-
1270
- namespace Kana {
1271
- type Country =
1272
- | 'ad'
1273
- | 'ae'
1274
- | 'af'
1275
- | 'ag'
1276
- | 'ai'
1277
- | 'al'
1278
- | 'am'
1279
- | 'ao'
1280
- | 'aq'
1281
- | 'ar'
1282
- | 'as'
1283
- | 'at'
1284
- | 'au'
1285
- | 'aw'
1286
- | 'ax'
1287
- | 'az'
1288
- | 'ba'
1289
- | 'bb'
1290
- | 'bd'
1291
- | 'be'
1292
- | 'bf'
1293
- | 'bg'
1294
- | 'bh'
1295
- | 'bi'
1296
- | 'bj'
1297
- | 'bl'
1298
- | 'bm'
1299
- | 'bn'
1300
- | 'bo'
1301
- | 'bq'
1302
- | 'br'
1303
- | 'bs'
1304
- | 'bt'
1305
- | 'bv'
1306
- | 'bw'
1307
- | 'by'
1308
- | 'bz'
1309
- | 'ca'
1310
- | 'cc'
1311
- | 'cd'
1312
- | 'cf'
1313
- | 'cg'
1314
- | 'ch'
1315
- | 'ci'
1316
- | 'ck'
1317
- | 'cl'
1318
- | 'cm'
1319
- | 'cn'
1320
- | 'co'
1321
- | 'cr'
1322
- | 'cu'
1323
- | 'cv'
1324
- | 'cw'
1325
- | 'cx'
1326
- | 'cy'
1327
- | 'cz'
1328
- | 'de'
1329
- | 'dj'
1330
- | 'dk'
1331
- | 'dm'
1332
- | 'do'
1333
- | 'dz'
1334
- | 'ec'
1335
- | 'ee'
1336
- | 'eg'
1337
- | 'eh'
1338
- | 'er'
1339
- | 'es'
1340
- | 'et'
1341
- | 'fi'
1342
- | 'fj'
1343
- | 'fk'
1344
- | 'fm'
1345
- | 'fo'
1346
- | 'fr'
1347
- | 'ga'
1348
- | 'gb'
1349
- | 'gd'
1350
- | 'ge'
1351
- | 'gf'
1352
- | 'gg'
1353
- | 'gh'
1354
- | 'gi'
1355
- | 'gl'
1356
- | 'gm'
1357
- | 'gn'
1358
- | 'gp'
1359
- | 'gq'
1360
- | 'gr'
1361
- | 'gs'
1362
- | 'gt'
1363
- | 'gu'
1364
- | 'gw'
1365
- | 'gy'
1366
- | 'hk'
1367
- | 'hm'
1368
- | 'hn'
1369
- | 'hr'
1370
- | 'ht'
1371
- | 'hu'
1372
- | 'id'
1373
- | 'ie'
1374
- | 'il'
1375
- | 'im'
1376
- | 'in'
1377
- | 'io'
1378
- | 'iq'
1379
- | 'ir'
1380
- | 'is'
1381
- | 'it'
1382
- | 'je'
1383
- | 'jm'
1384
- | 'jo'
1385
- | 'jp'
1386
- | 'ke'
1387
- | 'kg'
1388
- | 'kh'
1389
- | 'ki'
1390
- | 'km'
1391
- | 'kn'
1392
- | 'kp'
1393
- | 'kr'
1394
- | 'kw'
1395
- | 'ky'
1396
- | 'kz'
1397
- | 'la'
1398
- | 'lb'
1399
- | 'lc'
1400
- | 'li'
1401
- | 'lk'
1402
- | 'lr'
1403
- | 'ls'
1404
- | 'lt'
1405
- | 'lu'
1406
- | 'lv'
1407
- | 'ly'
1408
- | 'ma'
1409
- | 'mc'
1410
- | 'md'
1411
- | 'me'
1412
- | 'mf'
1413
- | 'mg'
1414
- | 'mh'
1415
- | 'mk'
1416
- | 'ml'
1417
- | 'mm'
1418
- | 'mn'
1419
- | 'mo'
1420
- | 'mp'
1421
- | 'mq'
1422
- | 'mr'
1423
- | 'ms'
1424
- | 'mt'
1425
- | 'mu'
1426
- | 'mv'
1427
- | 'mw'
1428
- | 'mx'
1429
- | 'my'
1430
- | 'mz'
1431
- | 'na'
1432
- | 'nc'
1433
- | 'ne'
1434
- | 'nf'
1435
- | 'ng'
1436
- | 'ni'
1437
- | 'nl'
1438
- | 'no'
1439
- | 'np'
1440
- | 'nr'
1441
- | 'nu'
1442
- | 'nz'
1443
- | 'om'
1444
- | 'pa'
1445
- | 'pe'
1446
- | 'pf'
1447
- | 'pg'
1448
- | 'ph'
1449
- | 'pk'
1450
- | 'pl'
1451
- | 'pm'
1452
- | 'pn'
1453
- | 'pr'
1454
- | 'ps'
1455
- | 'pt'
1456
- | 'pw'
1457
- | 'py'
1458
- | 'qa'
1459
- | 'qz'
1460
- | 're'
1461
- | 'ro'
1462
- | 'rs'
1463
- | 'ru'
1464
- | 'rw'
1465
- | 'sa'
1466
- | 'sb'
1467
- | 'sc'
1468
- | 'sd'
1469
- | 'se'
1470
- | 'sg'
1471
- | 'sh'
1472
- | 'si'
1473
- | 'sj'
1474
- | 'sk'
1475
- | 'sl'
1476
- | 'sm'
1477
- | 'sn'
1478
- | 'so'
1479
- | 'sr'
1480
- | 'ss'
1481
- | 'st'
1482
- | 'sv'
1483
- | 'sx'
1484
- | 'sy'
1485
- | 'sz'
1486
- | 'tc'
1487
- | 'td'
1488
- | 'tf'
1489
- | 'tg'
1490
- | 'th'
1491
- | 'tj'
1492
- | 'tk'
1493
- | 'tl'
1494
- | 'tm'
1495
- | 'tn'
1496
- | 'to'
1497
- | 'tr'
1498
- | 'tt'
1499
- | 'tv'
1500
- | 'tw'
1501
- | 'tz'
1502
- | 'ua'
1503
- | 'ug'
1504
- | 'um'
1505
- | 'us'
1506
- | 'uy'
1507
- | 'uz'
1508
- | 'va'
1509
- | 'vc'
1510
- | 've'
1511
- | 'vg'
1512
- | 'vi'
1513
- | 'vn'
1514
- | 'vu'
1515
- | 'wf'
1516
- | 'ws'
1517
- | 'ye'
1518
- | 'yt'
1519
- | 'za'
1520
- | 'zm'
1521
- | 'zw';
1522
- }
1523
-
1524
- interface Kanji {
1525
- /**
1526
- * City, district, suburb, town, or village.
1527
- */
1528
- city: string | null;
1529
-
1530
- /**
1531
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1532
- */
1533
- country: Kanji.Country | null;
1534
-
1535
- /**
1536
- * Address line 1 (e.g., street, PO Box, or company name).
1537
- */
1538
- line1: string | null;
1539
-
1540
- /**
1541
- * Address line 2 (e.g., apartment, suite, unit, or building).
1542
- */
1543
- line2: string | null;
1544
-
1545
- /**
1546
- * ZIP or postal code.
1547
- */
1548
- postal_code: string | null;
1549
-
1550
- /**
1551
- * State, county, province, or region.
1552
- */
1553
- state: string | null;
1554
-
1555
- /**
1556
- * Town or cho-me.
1557
- */
1558
- town: string | null;
1559
- }
1560
-
1561
- namespace Kanji {
1562
- type Country =
1563
- | 'ad'
1564
- | 'ae'
1565
- | 'af'
1566
- | 'ag'
1567
- | 'ai'
1568
- | 'al'
1569
- | 'am'
1570
- | 'ao'
1571
- | 'aq'
1572
- | 'ar'
1573
- | 'as'
1574
- | 'at'
1575
- | 'au'
1576
- | 'aw'
1577
- | 'ax'
1578
- | 'az'
1579
- | 'ba'
1580
- | 'bb'
1581
- | 'bd'
1582
- | 'be'
1583
- | 'bf'
1584
- | 'bg'
1585
- | 'bh'
1586
- | 'bi'
1587
- | 'bj'
1588
- | 'bl'
1589
- | 'bm'
1590
- | 'bn'
1591
- | 'bo'
1592
- | 'bq'
1593
- | 'br'
1594
- | 'bs'
1595
- | 'bt'
1596
- | 'bv'
1597
- | 'bw'
1598
- | 'by'
1599
- | 'bz'
1600
- | 'ca'
1601
- | 'cc'
1602
- | 'cd'
1603
- | 'cf'
1604
- | 'cg'
1605
- | 'ch'
1606
- | 'ci'
1607
- | 'ck'
1608
- | 'cl'
1609
- | 'cm'
1610
- | 'cn'
1611
- | 'co'
1612
- | 'cr'
1613
- | 'cu'
1614
- | 'cv'
1615
- | 'cw'
1616
- | 'cx'
1617
- | 'cy'
1618
- | 'cz'
1619
- | 'de'
1620
- | 'dj'
1621
- | 'dk'
1622
- | 'dm'
1623
- | 'do'
1624
- | 'dz'
1625
- | 'ec'
1626
- | 'ee'
1627
- | 'eg'
1628
- | 'eh'
1629
- | 'er'
1630
- | 'es'
1631
- | 'et'
1632
- | 'fi'
1633
- | 'fj'
1634
- | 'fk'
1635
- | 'fm'
1636
- | 'fo'
1637
- | 'fr'
1638
- | 'ga'
1639
- | 'gb'
1640
- | 'gd'
1641
- | 'ge'
1642
- | 'gf'
1643
- | 'gg'
1644
- | 'gh'
1645
- | 'gi'
1646
- | 'gl'
1647
- | 'gm'
1648
- | 'gn'
1649
- | 'gp'
1650
- | 'gq'
1651
- | 'gr'
1652
- | 'gs'
1653
- | 'gt'
1654
- | 'gu'
1655
- | 'gw'
1656
- | 'gy'
1657
- | 'hk'
1658
- | 'hm'
1659
- | 'hn'
1660
- | 'hr'
1661
- | 'ht'
1662
- | 'hu'
1663
- | 'id'
1664
- | 'ie'
1665
- | 'il'
1666
- | 'im'
1667
- | 'in'
1668
- | 'io'
1669
- | 'iq'
1670
- | 'ir'
1671
- | 'is'
1672
- | 'it'
1673
- | 'je'
1674
- | 'jm'
1675
- | 'jo'
1676
- | 'jp'
1677
- | 'ke'
1678
- | 'kg'
1679
- | 'kh'
1680
- | 'ki'
1681
- | 'km'
1682
- | 'kn'
1683
- | 'kp'
1684
- | 'kr'
1685
- | 'kw'
1686
- | 'ky'
1687
- | 'kz'
1688
- | 'la'
1689
- | 'lb'
1690
- | 'lc'
1691
- | 'li'
1692
- | 'lk'
1693
- | 'lr'
1694
- | 'ls'
1695
- | 'lt'
1696
- | 'lu'
1697
- | 'lv'
1698
- | 'ly'
1699
- | 'ma'
1700
- | 'mc'
1701
- | 'md'
1702
- | 'me'
1703
- | 'mf'
1704
- | 'mg'
1705
- | 'mh'
1706
- | 'mk'
1707
- | 'ml'
1708
- | 'mm'
1709
- | 'mn'
1710
- | 'mo'
1711
- | 'mp'
1712
- | 'mq'
1713
- | 'mr'
1714
- | 'ms'
1715
- | 'mt'
1716
- | 'mu'
1717
- | 'mv'
1718
- | 'mw'
1719
- | 'mx'
1720
- | 'my'
1721
- | 'mz'
1722
- | 'na'
1723
- | 'nc'
1724
- | 'ne'
1725
- | 'nf'
1726
- | 'ng'
1727
- | 'ni'
1728
- | 'nl'
1729
- | 'no'
1730
- | 'np'
1731
- | 'nr'
1732
- | 'nu'
1733
- | 'nz'
1734
- | 'om'
1735
- | 'pa'
1736
- | 'pe'
1737
- | 'pf'
1738
- | 'pg'
1739
- | 'ph'
1740
- | 'pk'
1741
- | 'pl'
1742
- | 'pm'
1743
- | 'pn'
1744
- | 'pr'
1745
- | 'ps'
1746
- | 'pt'
1747
- | 'pw'
1748
- | 'py'
1749
- | 'qa'
1750
- | 'qz'
1751
- | 're'
1752
- | 'ro'
1753
- | 'rs'
1754
- | 'ru'
1755
- | 'rw'
1756
- | 'sa'
1757
- | 'sb'
1758
- | 'sc'
1759
- | 'sd'
1760
- | 'se'
1761
- | 'sg'
1762
- | 'sh'
1763
- | 'si'
1764
- | 'sj'
1765
- | 'sk'
1766
- | 'sl'
1767
- | 'sm'
1768
- | 'sn'
1769
- | 'so'
1770
- | 'sr'
1771
- | 'ss'
1772
- | 'st'
1773
- | 'sv'
1774
- | 'sx'
1775
- | 'sy'
1776
- | 'sz'
1777
- | 'tc'
1778
- | 'td'
1779
- | 'tf'
1780
- | 'tg'
1781
- | 'th'
1782
- | 'tj'
1783
- | 'tk'
1784
- | 'tl'
1785
- | 'tm'
1786
- | 'tn'
1787
- | 'to'
1788
- | 'tr'
1789
- | 'tt'
1790
- | 'tv'
1791
- | 'tw'
1792
- | 'tz'
1793
- | 'ua'
1794
- | 'ug'
1795
- | 'um'
1796
- | 'us'
1797
- | 'uy'
1798
- | 'uz'
1799
- | 'va'
1800
- | 'vc'
1801
- | 've'
1802
- | 'vg'
1803
- | 'vi'
1804
- | 'vn'
1805
- | 'vu'
1806
- | 'wf'
1807
- | 'ws'
1808
- | 'ye'
1809
- | 'yt'
1810
- | 'za'
1811
- | 'zm'
1812
- | 'zw';
1813
- }
1814
- }
1815
-
1816
- interface ScriptNames {
1817
- /**
1818
- * Persons name in kana script.
1819
- */
1820
- kana: ScriptNames.Kana | null;
1821
-
1822
- /**
1823
- * Persons name in kanji script.
1824
- */
1825
- kanji: ScriptNames.Kanji | null;
1826
- }
1827
-
1828
- namespace ScriptNames {
1829
- interface Kana {
1830
- /**
1831
- * The person's first or given name.
1832
- */
1833
- given_name: string | null;
1834
-
1835
- /**
1836
- * The person's last or family name.
1837
- */
1838
- surname: string | null;
1839
- }
1840
-
1841
- interface Kanji {
1842
- /**
1843
- * The person's first or given name.
1844
- */
1845
- given_name: string | null;
1846
-
1847
- /**
1848
- * The person's last or family name.
1849
- */
1850
- surname: string | null;
1851
- }
1852
- }
1853
- }
1854
- }
1855
- }
1856
- }
1857
- }