@augustusbank/typescript-sdk 0.18.0 → 0.20.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 (75) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account-holders.d.mts +3379 -123
  10. package/resources/account-holders.d.mts.map +1 -1
  11. package/resources/account-holders.d.ts +3379 -123
  12. package/resources/account-holders.d.ts.map +1 -1
  13. package/resources/account-holders.js +6 -0
  14. package/resources/account-holders.js.map +1 -1
  15. package/resources/account-holders.mjs +6 -0
  16. package/resources/account-holders.mjs.map +1 -1
  17. package/resources/accounts.d.mts +11 -173
  18. package/resources/accounts.d.mts.map +1 -1
  19. package/resources/accounts.d.ts +11 -173
  20. package/resources/accounts.d.ts.map +1 -1
  21. package/resources/conversions.d.mts +8 -8
  22. package/resources/conversions.d.mts.map +1 -1
  23. package/resources/conversions.d.ts +8 -8
  24. package/resources/conversions.d.ts.map +1 -1
  25. package/resources/deposits.d.mts +2 -2
  26. package/resources/deposits.d.mts.map +1 -1
  27. package/resources/deposits.d.ts +2 -2
  28. package/resources/deposits.d.ts.map +1 -1
  29. package/resources/events.d.mts +3 -3
  30. package/resources/events.d.mts.map +1 -1
  31. package/resources/events.d.ts +3 -3
  32. package/resources/events.d.ts.map +1 -1
  33. package/resources/index.d.mts +2 -2
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +2 -2
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/payouts.d.mts +5 -5
  40. package/resources/payouts.d.mts.map +1 -1
  41. package/resources/payouts.d.ts +5 -5
  42. package/resources/payouts.d.ts.map +1 -1
  43. package/resources/returns.d.mts +3 -3
  44. package/resources/returns.d.mts.map +1 -1
  45. package/resources/returns.d.ts +3 -3
  46. package/resources/returns.d.ts.map +1 -1
  47. package/resources/transactions.d.mts +2 -2
  48. package/resources/transactions.d.mts.map +1 -1
  49. package/resources/transactions.d.ts +2 -2
  50. package/resources/transactions.d.ts.map +1 -1
  51. package/resources/webhook-subscriptions.d.mts +8 -8
  52. package/resources/webhook-subscriptions.d.mts.map +1 -1
  53. package/resources/webhook-subscriptions.d.ts +8 -8
  54. package/resources/webhook-subscriptions.d.ts.map +1 -1
  55. package/resources/webhooks.d.mts +1407 -17
  56. package/resources/webhooks.d.mts.map +1 -1
  57. package/resources/webhooks.d.ts +1407 -17
  58. package/resources/webhooks.d.ts.map +1 -1
  59. package/src/client.ts +8 -0
  60. package/src/resources/account-holders.ts +20047 -943
  61. package/src/resources/accounts.ts +12 -961
  62. package/src/resources/conversions.ts +8 -8
  63. package/src/resources/deposits.ts +2 -2
  64. package/src/resources/events.ts +6 -0
  65. package/src/resources/index.ts +4 -0
  66. package/src/resources/payouts.ts +5 -5
  67. package/src/resources/returns.ts +3 -3
  68. package/src/resources/transactions.ts +2 -2
  69. package/src/resources/webhook-subscriptions.ts +16 -0
  70. package/src/resources/webhooks.ts +7773 -15
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -86,7 +86,7 @@ export interface AccountCreateResponse {
86
86
  /**
87
87
  * ISO 4217 currency code for the account.
88
88
  */
89
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
89
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
90
90
 
91
91
  /**
92
92
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -237,7 +237,7 @@ export interface AccountRetrieveResponse {
237
237
  /**
238
238
  * ISO 4217 currency code for the account.
239
239
  */
240
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
240
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
241
241
 
242
242
  /**
243
243
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -388,7 +388,7 @@ export interface AccountListResponse {
388
388
  /**
389
389
  * ISO 4217 currency code for the account.
390
390
  */
391
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
391
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
392
392
 
393
393
  /**
394
394
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -539,7 +539,7 @@ export interface AccountCloseResponse {
539
539
  /**
540
540
  * ISO 4217 currency code for the account.
541
541
  */
542
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
542
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
543
543
 
544
544
  /**
545
545
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -690,7 +690,7 @@ export interface AccountFreezeResponse {
690
690
  /**
691
691
  * ISO 4217 currency code for the account.
692
692
  */
693
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
693
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
694
694
 
695
695
  /**
696
696
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -836,7 +836,7 @@ export interface AccountRetrieveBalanceResponse {
836
836
  /**
837
837
  * ISO 4217 currency code for the balance.
838
838
  */
839
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
839
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
840
840
 
841
841
  /**
842
842
  * Resource type discriminator.
@@ -868,7 +868,7 @@ export interface AccountUnfreezeResponse {
868
868
  /**
869
869
  * ISO 4217 currency code for the account.
870
870
  */
871
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
871
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
872
872
 
873
873
  /**
874
874
  * Payment identifiers (e.g. IBAN, account number, wallet address) through which
@@ -996,6 +996,11 @@ export namespace AccountUnfreezeResponse {
996
996
  }
997
997
 
998
998
  export interface AccountCreateParams {
999
+ /**
1000
+ * ID of an existing virtual account holder to provision the account for.
1001
+ */
1002
+ account_holder_id: string;
1003
+
999
1004
  /**
1000
1005
  * ID of the account program to create the account under.
1001
1006
  */
@@ -1005,960 +1010,6 @@ export interface AccountCreateParams {
1005
1010
  * Type of account. Currently only virtual account.
1006
1011
  */
1007
1012
  account_type: 'virtual_account';
1008
-
1009
- /**
1010
- * Personal information of the account beneficiary.
1011
- */
1012
- beneficiary_data: AccountCreateParams.UsBeneficiaryData | AccountCreateParams.NonUsBeneficiaryData;
1013
- }
1014
-
1015
- export namespace AccountCreateParams {
1016
- export interface UsBeneficiaryData {
1017
- /**
1018
- * ISO 3166-1 alpha-2 country code of citizenship.
1019
- */
1020
- country_of_citizenship: 'US';
1021
-
1022
- /**
1023
- * Date of birth as an ISO 8601 calendar date (YYYY-MM-DD).
1024
- */
1025
- date_of_birth: string;
1026
-
1027
- /**
1028
- * Government-issued identification with type: "ssn" (Social Security Number,
1029
- * format ###-##-####) or "itin" (Individual Taxpayer ID, format 9##-##-####).
1030
- */
1031
- identification: UsBeneficiaryData.SsnIdentification | UsBeneficiaryData.ItinIdentification;
1032
-
1033
- /**
1034
- * Full legal name of the account holder.
1035
- */
1036
- legal_name: string;
1037
-
1038
- /**
1039
- * Residential address of the account holder.
1040
- */
1041
- residential_address: UsBeneficiaryData.UsResidentialAddress | UsBeneficiaryData.NonUsResidentialAddress;
1042
- }
1043
-
1044
- export namespace UsBeneficiaryData {
1045
- export interface SsnIdentification {
1046
- type: 'ssn';
1047
-
1048
- value: string;
1049
- }
1050
-
1051
- export interface ItinIdentification {
1052
- type: 'itin';
1053
-
1054
- value: string;
1055
- }
1056
-
1057
- export interface UsResidentialAddress {
1058
- /**
1059
- * City name.
1060
- */
1061
- city: string;
1062
-
1063
- /**
1064
- * ISO 3166-1 alpha-2 country code.
1065
- */
1066
- country: 'US';
1067
-
1068
- /**
1069
- * Postal or ZIP code.
1070
- */
1071
- postal_code: string;
1072
-
1073
- /**
1074
- * Two-letter state code.
1075
- */
1076
- state: string;
1077
-
1078
- /**
1079
- * Primary street address.
1080
- */
1081
- street_line_1: string;
1082
-
1083
- /**
1084
- * Secondary street address (apartment, suite, etc.).
1085
- */
1086
- street_line_2?: string;
1087
- }
1088
-
1089
- export interface NonUsResidentialAddress {
1090
- /**
1091
- * City name.
1092
- */
1093
- city: string;
1094
-
1095
- /**
1096
- * ISO 3166-1 alpha-2 country code.
1097
- */
1098
- country:
1099
- | 'AF'
1100
- | 'AL'
1101
- | 'DZ'
1102
- | 'AS'
1103
- | 'AD'
1104
- | 'AO'
1105
- | 'AI'
1106
- | 'AQ'
1107
- | 'AG'
1108
- | 'AR'
1109
- | 'AM'
1110
- | 'AW'
1111
- | 'AU'
1112
- | 'AT'
1113
- | 'AZ'
1114
- | 'BS'
1115
- | 'BH'
1116
- | 'BD'
1117
- | 'BB'
1118
- | 'BY'
1119
- | 'BE'
1120
- | 'BZ'
1121
- | 'BJ'
1122
- | 'BM'
1123
- | 'BT'
1124
- | 'BO'
1125
- | 'BA'
1126
- | 'BW'
1127
- | 'BV'
1128
- | 'BR'
1129
- | 'IO'
1130
- | 'BN'
1131
- | 'BG'
1132
- | 'BF'
1133
- | 'BI'
1134
- | 'KH'
1135
- | 'CM'
1136
- | 'CA'
1137
- | 'CV'
1138
- | 'KY'
1139
- | 'CF'
1140
- | 'TD'
1141
- | 'CL'
1142
- | 'CN'
1143
- | 'CX'
1144
- | 'CC'
1145
- | 'CO'
1146
- | 'KM'
1147
- | 'CG'
1148
- | 'CD'
1149
- | 'CK'
1150
- | 'CR'
1151
- | 'CI'
1152
- | 'HR'
1153
- | 'CU'
1154
- | 'CY'
1155
- | 'CZ'
1156
- | 'DK'
1157
- | 'DJ'
1158
- | 'DM'
1159
- | 'DO'
1160
- | 'EC'
1161
- | 'EG'
1162
- | 'SV'
1163
- | 'GQ'
1164
- | 'ER'
1165
- | 'EE'
1166
- | 'ET'
1167
- | 'FK'
1168
- | 'FO'
1169
- | 'FJ'
1170
- | 'FI'
1171
- | 'FR'
1172
- | 'GF'
1173
- | 'PF'
1174
- | 'TF'
1175
- | 'GA'
1176
- | 'GM'
1177
- | 'GE'
1178
- | 'DE'
1179
- | 'GH'
1180
- | 'GI'
1181
- | 'GR'
1182
- | 'GL'
1183
- | 'GD'
1184
- | 'GP'
1185
- | 'GU'
1186
- | 'GT'
1187
- | 'GN'
1188
- | 'GW'
1189
- | 'GY'
1190
- | 'HT'
1191
- | 'HM'
1192
- | 'VA'
1193
- | 'HN'
1194
- | 'HK'
1195
- | 'HU'
1196
- | 'IS'
1197
- | 'IN'
1198
- | 'ID'
1199
- | 'IR'
1200
- | 'IQ'
1201
- | 'IE'
1202
- | 'IL'
1203
- | 'IT'
1204
- | 'JM'
1205
- | 'JP'
1206
- | 'JO'
1207
- | 'KZ'
1208
- | 'KE'
1209
- | 'KI'
1210
- | 'KP'
1211
- | 'KR'
1212
- | 'KW'
1213
- | 'KG'
1214
- | 'LA'
1215
- | 'LV'
1216
- | 'LB'
1217
- | 'LS'
1218
- | 'LR'
1219
- | 'LY'
1220
- | 'LI'
1221
- | 'LT'
1222
- | 'LU'
1223
- | 'MO'
1224
- | 'MG'
1225
- | 'MW'
1226
- | 'MY'
1227
- | 'MV'
1228
- | 'ML'
1229
- | 'MT'
1230
- | 'MH'
1231
- | 'MQ'
1232
- | 'MR'
1233
- | 'MU'
1234
- | 'YT'
1235
- | 'MX'
1236
- | 'FM'
1237
- | 'MD'
1238
- | 'MC'
1239
- | 'MN'
1240
- | 'MS'
1241
- | 'MA'
1242
- | 'MZ'
1243
- | 'MM'
1244
- | 'NA'
1245
- | 'NR'
1246
- | 'NP'
1247
- | 'NL'
1248
- | 'NC'
1249
- | 'NZ'
1250
- | 'NI'
1251
- | 'NE'
1252
- | 'NG'
1253
- | 'NU'
1254
- | 'NF'
1255
- | 'MP'
1256
- | 'MK'
1257
- | 'NO'
1258
- | 'OM'
1259
- | 'PK'
1260
- | 'PW'
1261
- | 'PS'
1262
- | 'PA'
1263
- | 'PG'
1264
- | 'PY'
1265
- | 'PE'
1266
- | 'PH'
1267
- | 'PN'
1268
- | 'PL'
1269
- | 'PT'
1270
- | 'PR'
1271
- | 'QA'
1272
- | 'RE'
1273
- | 'RO'
1274
- | 'RU'
1275
- | 'RW'
1276
- | 'SH'
1277
- | 'KN'
1278
- | 'LC'
1279
- | 'PM'
1280
- | 'VC'
1281
- | 'WS'
1282
- | 'SM'
1283
- | 'ST'
1284
- | 'SA'
1285
- | 'SN'
1286
- | 'SC'
1287
- | 'SL'
1288
- | 'SG'
1289
- | 'SK'
1290
- | 'SI'
1291
- | 'SB'
1292
- | 'SO'
1293
- | 'ZA'
1294
- | 'GS'
1295
- | 'ES'
1296
- | 'LK'
1297
- | 'SD'
1298
- | 'SR'
1299
- | 'SJ'
1300
- | 'SZ'
1301
- | 'SE'
1302
- | 'CH'
1303
- | 'SY'
1304
- | 'TW'
1305
- | 'TJ'
1306
- | 'TZ'
1307
- | 'TH'
1308
- | 'TL'
1309
- | 'TG'
1310
- | 'TK'
1311
- | 'TO'
1312
- | 'TT'
1313
- | 'TN'
1314
- | 'TR'
1315
- | 'TM'
1316
- | 'TC'
1317
- | 'TV'
1318
- | 'UG'
1319
- | 'UA'
1320
- | 'AE'
1321
- | 'GB'
1322
- | 'UM'
1323
- | 'UY'
1324
- | 'UZ'
1325
- | 'VU'
1326
- | 'VE'
1327
- | 'VN'
1328
- | 'VG'
1329
- | 'VI'
1330
- | 'WF'
1331
- | 'EH'
1332
- | 'YE'
1333
- | 'ZM'
1334
- | 'ZW'
1335
- | 'AX'
1336
- | 'BQ'
1337
- | 'CW'
1338
- | 'GG'
1339
- | 'IM'
1340
- | 'JE'
1341
- | 'ME'
1342
- | 'BL'
1343
- | 'MF'
1344
- | 'RS'
1345
- | 'SX'
1346
- | 'SS'
1347
- | 'XK';
1348
-
1349
- /**
1350
- * Postal or ZIP code.
1351
- */
1352
- postal_code: string;
1353
-
1354
- /**
1355
- * Primary street address.
1356
- */
1357
- street_line_1: string;
1358
-
1359
- /**
1360
- * Secondary street address (apartment, suite, etc.).
1361
- */
1362
- street_line_2?: string;
1363
- }
1364
- }
1365
-
1366
- export interface NonUsBeneficiaryData {
1367
- /**
1368
- * ISO 3166-1 alpha-2 country code of citizenship.
1369
- */
1370
- country_of_citizenship:
1371
- | 'AF'
1372
- | 'AL'
1373
- | 'DZ'
1374
- | 'AS'
1375
- | 'AD'
1376
- | 'AO'
1377
- | 'AI'
1378
- | 'AQ'
1379
- | 'AG'
1380
- | 'AR'
1381
- | 'AM'
1382
- | 'AW'
1383
- | 'AU'
1384
- | 'AT'
1385
- | 'AZ'
1386
- | 'BS'
1387
- | 'BH'
1388
- | 'BD'
1389
- | 'BB'
1390
- | 'BY'
1391
- | 'BE'
1392
- | 'BZ'
1393
- | 'BJ'
1394
- | 'BM'
1395
- | 'BT'
1396
- | 'BO'
1397
- | 'BA'
1398
- | 'BW'
1399
- | 'BV'
1400
- | 'BR'
1401
- | 'IO'
1402
- | 'BN'
1403
- | 'BG'
1404
- | 'BF'
1405
- | 'BI'
1406
- | 'KH'
1407
- | 'CM'
1408
- | 'CA'
1409
- | 'CV'
1410
- | 'KY'
1411
- | 'CF'
1412
- | 'TD'
1413
- | 'CL'
1414
- | 'CN'
1415
- | 'CX'
1416
- | 'CC'
1417
- | 'CO'
1418
- | 'KM'
1419
- | 'CG'
1420
- | 'CD'
1421
- | 'CK'
1422
- | 'CR'
1423
- | 'CI'
1424
- | 'HR'
1425
- | 'CU'
1426
- | 'CY'
1427
- | 'CZ'
1428
- | 'DK'
1429
- | 'DJ'
1430
- | 'DM'
1431
- | 'DO'
1432
- | 'EC'
1433
- | 'EG'
1434
- | 'SV'
1435
- | 'GQ'
1436
- | 'ER'
1437
- | 'EE'
1438
- | 'ET'
1439
- | 'FK'
1440
- | 'FO'
1441
- | 'FJ'
1442
- | 'FI'
1443
- | 'FR'
1444
- | 'GF'
1445
- | 'PF'
1446
- | 'TF'
1447
- | 'GA'
1448
- | 'GM'
1449
- | 'GE'
1450
- | 'DE'
1451
- | 'GH'
1452
- | 'GI'
1453
- | 'GR'
1454
- | 'GL'
1455
- | 'GD'
1456
- | 'GP'
1457
- | 'GU'
1458
- | 'GT'
1459
- | 'GN'
1460
- | 'GW'
1461
- | 'GY'
1462
- | 'HT'
1463
- | 'HM'
1464
- | 'VA'
1465
- | 'HN'
1466
- | 'HK'
1467
- | 'HU'
1468
- | 'IS'
1469
- | 'IN'
1470
- | 'ID'
1471
- | 'IR'
1472
- | 'IQ'
1473
- | 'IE'
1474
- | 'IL'
1475
- | 'IT'
1476
- | 'JM'
1477
- | 'JP'
1478
- | 'JO'
1479
- | 'KZ'
1480
- | 'KE'
1481
- | 'KI'
1482
- | 'KP'
1483
- | 'KR'
1484
- | 'KW'
1485
- | 'KG'
1486
- | 'LA'
1487
- | 'LV'
1488
- | 'LB'
1489
- | 'LS'
1490
- | 'LR'
1491
- | 'LY'
1492
- | 'LI'
1493
- | 'LT'
1494
- | 'LU'
1495
- | 'MO'
1496
- | 'MG'
1497
- | 'MW'
1498
- | 'MY'
1499
- | 'MV'
1500
- | 'ML'
1501
- | 'MT'
1502
- | 'MH'
1503
- | 'MQ'
1504
- | 'MR'
1505
- | 'MU'
1506
- | 'YT'
1507
- | 'MX'
1508
- | 'FM'
1509
- | 'MD'
1510
- | 'MC'
1511
- | 'MN'
1512
- | 'MS'
1513
- | 'MA'
1514
- | 'MZ'
1515
- | 'MM'
1516
- | 'NA'
1517
- | 'NR'
1518
- | 'NP'
1519
- | 'NL'
1520
- | 'NC'
1521
- | 'NZ'
1522
- | 'NI'
1523
- | 'NE'
1524
- | 'NG'
1525
- | 'NU'
1526
- | 'NF'
1527
- | 'MP'
1528
- | 'MK'
1529
- | 'NO'
1530
- | 'OM'
1531
- | 'PK'
1532
- | 'PW'
1533
- | 'PS'
1534
- | 'PA'
1535
- | 'PG'
1536
- | 'PY'
1537
- | 'PE'
1538
- | 'PH'
1539
- | 'PN'
1540
- | 'PL'
1541
- | 'PT'
1542
- | 'PR'
1543
- | 'QA'
1544
- | 'RE'
1545
- | 'RO'
1546
- | 'RU'
1547
- | 'RW'
1548
- | 'SH'
1549
- | 'KN'
1550
- | 'LC'
1551
- | 'PM'
1552
- | 'VC'
1553
- | 'WS'
1554
- | 'SM'
1555
- | 'ST'
1556
- | 'SA'
1557
- | 'SN'
1558
- | 'SC'
1559
- | 'SL'
1560
- | 'SG'
1561
- | 'SK'
1562
- | 'SI'
1563
- | 'SB'
1564
- | 'SO'
1565
- | 'ZA'
1566
- | 'GS'
1567
- | 'ES'
1568
- | 'LK'
1569
- | 'SD'
1570
- | 'SR'
1571
- | 'SJ'
1572
- | 'SZ'
1573
- | 'SE'
1574
- | 'CH'
1575
- | 'SY'
1576
- | 'TW'
1577
- | 'TJ'
1578
- | 'TZ'
1579
- | 'TH'
1580
- | 'TL'
1581
- | 'TG'
1582
- | 'TK'
1583
- | 'TO'
1584
- | 'TT'
1585
- | 'TN'
1586
- | 'TR'
1587
- | 'TM'
1588
- | 'TC'
1589
- | 'TV'
1590
- | 'UG'
1591
- | 'UA'
1592
- | 'AE'
1593
- | 'GB'
1594
- | 'UM'
1595
- | 'UY'
1596
- | 'UZ'
1597
- | 'VU'
1598
- | 'VE'
1599
- | 'VN'
1600
- | 'VG'
1601
- | 'VI'
1602
- | 'WF'
1603
- | 'EH'
1604
- | 'YE'
1605
- | 'ZM'
1606
- | 'ZW'
1607
- | 'AX'
1608
- | 'BQ'
1609
- | 'CW'
1610
- | 'GG'
1611
- | 'IM'
1612
- | 'JE'
1613
- | 'ME'
1614
- | 'BL'
1615
- | 'MF'
1616
- | 'RS'
1617
- | 'SX'
1618
- | 'SS'
1619
- | 'XK';
1620
-
1621
- /**
1622
- * Date of birth as an ISO 8601 calendar date (YYYY-MM-DD).
1623
- */
1624
- date_of_birth: string;
1625
-
1626
- /**
1627
- * Government-issued identification with type: "id" (generic government-issued ID).
1628
- */
1629
- identification: NonUsBeneficiaryData.Identification;
1630
-
1631
- /**
1632
- * Full legal name of the account holder.
1633
- */
1634
- legal_name: string;
1635
-
1636
- /**
1637
- * Residential address of the account holder.
1638
- */
1639
- residential_address:
1640
- | NonUsBeneficiaryData.UsResidentialAddress
1641
- | NonUsBeneficiaryData.NonUsResidentialAddress;
1642
- }
1643
-
1644
- export namespace NonUsBeneficiaryData {
1645
- /**
1646
- * Government-issued identification with type: "id" (generic government-issued ID).
1647
- */
1648
- export interface Identification {
1649
- type: 'id';
1650
-
1651
- value: string;
1652
- }
1653
-
1654
- export interface UsResidentialAddress {
1655
- /**
1656
- * City name.
1657
- */
1658
- city: string;
1659
-
1660
- /**
1661
- * ISO 3166-1 alpha-2 country code.
1662
- */
1663
- country: 'US';
1664
-
1665
- /**
1666
- * Postal or ZIP code.
1667
- */
1668
- postal_code: string;
1669
-
1670
- /**
1671
- * Two-letter state code.
1672
- */
1673
- state: string;
1674
-
1675
- /**
1676
- * Primary street address.
1677
- */
1678
- street_line_1: string;
1679
-
1680
- /**
1681
- * Secondary street address (apartment, suite, etc.).
1682
- */
1683
- street_line_2?: string;
1684
- }
1685
-
1686
- export interface NonUsResidentialAddress {
1687
- /**
1688
- * City name.
1689
- */
1690
- city: string;
1691
-
1692
- /**
1693
- * ISO 3166-1 alpha-2 country code.
1694
- */
1695
- country:
1696
- | 'AF'
1697
- | 'AL'
1698
- | 'DZ'
1699
- | 'AS'
1700
- | 'AD'
1701
- | 'AO'
1702
- | 'AI'
1703
- | 'AQ'
1704
- | 'AG'
1705
- | 'AR'
1706
- | 'AM'
1707
- | 'AW'
1708
- | 'AU'
1709
- | 'AT'
1710
- | 'AZ'
1711
- | 'BS'
1712
- | 'BH'
1713
- | 'BD'
1714
- | 'BB'
1715
- | 'BY'
1716
- | 'BE'
1717
- | 'BZ'
1718
- | 'BJ'
1719
- | 'BM'
1720
- | 'BT'
1721
- | 'BO'
1722
- | 'BA'
1723
- | 'BW'
1724
- | 'BV'
1725
- | 'BR'
1726
- | 'IO'
1727
- | 'BN'
1728
- | 'BG'
1729
- | 'BF'
1730
- | 'BI'
1731
- | 'KH'
1732
- | 'CM'
1733
- | 'CA'
1734
- | 'CV'
1735
- | 'KY'
1736
- | 'CF'
1737
- | 'TD'
1738
- | 'CL'
1739
- | 'CN'
1740
- | 'CX'
1741
- | 'CC'
1742
- | 'CO'
1743
- | 'KM'
1744
- | 'CG'
1745
- | 'CD'
1746
- | 'CK'
1747
- | 'CR'
1748
- | 'CI'
1749
- | 'HR'
1750
- | 'CU'
1751
- | 'CY'
1752
- | 'CZ'
1753
- | 'DK'
1754
- | 'DJ'
1755
- | 'DM'
1756
- | 'DO'
1757
- | 'EC'
1758
- | 'EG'
1759
- | 'SV'
1760
- | 'GQ'
1761
- | 'ER'
1762
- | 'EE'
1763
- | 'ET'
1764
- | 'FK'
1765
- | 'FO'
1766
- | 'FJ'
1767
- | 'FI'
1768
- | 'FR'
1769
- | 'GF'
1770
- | 'PF'
1771
- | 'TF'
1772
- | 'GA'
1773
- | 'GM'
1774
- | 'GE'
1775
- | 'DE'
1776
- | 'GH'
1777
- | 'GI'
1778
- | 'GR'
1779
- | 'GL'
1780
- | 'GD'
1781
- | 'GP'
1782
- | 'GU'
1783
- | 'GT'
1784
- | 'GN'
1785
- | 'GW'
1786
- | 'GY'
1787
- | 'HT'
1788
- | 'HM'
1789
- | 'VA'
1790
- | 'HN'
1791
- | 'HK'
1792
- | 'HU'
1793
- | 'IS'
1794
- | 'IN'
1795
- | 'ID'
1796
- | 'IR'
1797
- | 'IQ'
1798
- | 'IE'
1799
- | 'IL'
1800
- | 'IT'
1801
- | 'JM'
1802
- | 'JP'
1803
- | 'JO'
1804
- | 'KZ'
1805
- | 'KE'
1806
- | 'KI'
1807
- | 'KP'
1808
- | 'KR'
1809
- | 'KW'
1810
- | 'KG'
1811
- | 'LA'
1812
- | 'LV'
1813
- | 'LB'
1814
- | 'LS'
1815
- | 'LR'
1816
- | 'LY'
1817
- | 'LI'
1818
- | 'LT'
1819
- | 'LU'
1820
- | 'MO'
1821
- | 'MG'
1822
- | 'MW'
1823
- | 'MY'
1824
- | 'MV'
1825
- | 'ML'
1826
- | 'MT'
1827
- | 'MH'
1828
- | 'MQ'
1829
- | 'MR'
1830
- | 'MU'
1831
- | 'YT'
1832
- | 'MX'
1833
- | 'FM'
1834
- | 'MD'
1835
- | 'MC'
1836
- | 'MN'
1837
- | 'MS'
1838
- | 'MA'
1839
- | 'MZ'
1840
- | 'MM'
1841
- | 'NA'
1842
- | 'NR'
1843
- | 'NP'
1844
- | 'NL'
1845
- | 'NC'
1846
- | 'NZ'
1847
- | 'NI'
1848
- | 'NE'
1849
- | 'NG'
1850
- | 'NU'
1851
- | 'NF'
1852
- | 'MP'
1853
- | 'MK'
1854
- | 'NO'
1855
- | 'OM'
1856
- | 'PK'
1857
- | 'PW'
1858
- | 'PS'
1859
- | 'PA'
1860
- | 'PG'
1861
- | 'PY'
1862
- | 'PE'
1863
- | 'PH'
1864
- | 'PN'
1865
- | 'PL'
1866
- | 'PT'
1867
- | 'PR'
1868
- | 'QA'
1869
- | 'RE'
1870
- | 'RO'
1871
- | 'RU'
1872
- | 'RW'
1873
- | 'SH'
1874
- | 'KN'
1875
- | 'LC'
1876
- | 'PM'
1877
- | 'VC'
1878
- | 'WS'
1879
- | 'SM'
1880
- | 'ST'
1881
- | 'SA'
1882
- | 'SN'
1883
- | 'SC'
1884
- | 'SL'
1885
- | 'SG'
1886
- | 'SK'
1887
- | 'SI'
1888
- | 'SB'
1889
- | 'SO'
1890
- | 'ZA'
1891
- | 'GS'
1892
- | 'ES'
1893
- | 'LK'
1894
- | 'SD'
1895
- | 'SR'
1896
- | 'SJ'
1897
- | 'SZ'
1898
- | 'SE'
1899
- | 'CH'
1900
- | 'SY'
1901
- | 'TW'
1902
- | 'TJ'
1903
- | 'TZ'
1904
- | 'TH'
1905
- | 'TL'
1906
- | 'TG'
1907
- | 'TK'
1908
- | 'TO'
1909
- | 'TT'
1910
- | 'TN'
1911
- | 'TR'
1912
- | 'TM'
1913
- | 'TC'
1914
- | 'TV'
1915
- | 'UG'
1916
- | 'UA'
1917
- | 'AE'
1918
- | 'GB'
1919
- | 'UM'
1920
- | 'UY'
1921
- | 'UZ'
1922
- | 'VU'
1923
- | 'VE'
1924
- | 'VN'
1925
- | 'VG'
1926
- | 'VI'
1927
- | 'WF'
1928
- | 'EH'
1929
- | 'YE'
1930
- | 'ZM'
1931
- | 'ZW'
1932
- | 'AX'
1933
- | 'BQ'
1934
- | 'CW'
1935
- | 'GG'
1936
- | 'IM'
1937
- | 'JE'
1938
- | 'ME'
1939
- | 'BL'
1940
- | 'MF'
1941
- | 'RS'
1942
- | 'SX'
1943
- | 'SS'
1944
- | 'XK';
1945
-
1946
- /**
1947
- * Postal or ZIP code.
1948
- */
1949
- postal_code: string;
1950
-
1951
- /**
1952
- * Primary street address.
1953
- */
1954
- street_line_1: string;
1955
-
1956
- /**
1957
- * Secondary street address (apartment, suite, etc.).
1958
- */
1959
- street_line_2?: string;
1960
- }
1961
- }
1962
1013
  }
1963
1014
 
1964
1015
  export interface AccountListParams extends CursorPageParams {