increase 0.476.0 → 0.478.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.
- package/CHANGELOG.md +17 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beneficial-owners.d.mts +226 -1
- package/resources/beneficial-owners.d.mts.map +1 -1
- package/resources/beneficial-owners.d.ts +226 -1
- package/resources/beneficial-owners.d.ts.map +1 -1
- package/resources/beneficial-owners.js +28 -0
- package/resources/beneficial-owners.js.map +1 -1
- package/resources/beneficial-owners.mjs +28 -0
- package/resources/beneficial-owners.mjs.map +1 -1
- package/resources/check-transfers.d.mts +35 -6
- package/resources/check-transfers.d.mts.map +1 -1
- package/resources/check-transfers.d.ts +35 -6
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/entities.d.mts +1 -232
- package/resources/entities.d.mts.map +1 -1
- package/resources/entities.d.ts +1 -232
- package/resources/entities.d.ts.map +1 -1
- package/resources/entities.js +0 -31
- package/resources/entities.js.map +1 -1
- package/resources/entities.mjs +0 -31
- package/resources/entities.mjs.map +1 -1
- package/resources/files.d.mts +7 -3
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +7 -3
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +2 -2
- package/src/resources/beneficial-owners.ts +269 -0
- package/src/resources/check-transfers.ts +39 -6
- package/src/resources/entities.ts +0 -278
- package/src/resources/files.ts +7 -0
- package/src/resources/index.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,6 +3,32 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { Page, type PageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
5
|
export declare class BeneficialOwners extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a beneficial owner
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const entityBeneficialOwner =
|
|
12
|
+
* await client.beneficialOwners.create({
|
|
13
|
+
* entity_id: 'entity_n8y8tnk2p9339ti393yi',
|
|
14
|
+
* individual: {
|
|
15
|
+
* address: {
|
|
16
|
+
* city: 'New York',
|
|
17
|
+
* country: 'US',
|
|
18
|
+
* line1: '33 Liberty Street',
|
|
19
|
+
* },
|
|
20
|
+
* date_of_birth: '1970-01-31',
|
|
21
|
+
* identification: {
|
|
22
|
+
* method: 'social_security_number',
|
|
23
|
+
* number: '078051120',
|
|
24
|
+
* },
|
|
25
|
+
* name: 'Ian Crease',
|
|
26
|
+
* },
|
|
27
|
+
* prongs: ['control'],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body: BeneficialOwnerCreateParams, options?: RequestOptions): APIPromise<EntityBeneficialOwner>;
|
|
6
32
|
/**
|
|
7
33
|
* Retrieve a Beneficial Owner
|
|
8
34
|
*
|
|
@@ -76,6 +102,12 @@ export interface EntityBeneficialOwner {
|
|
|
76
102
|
* Beneficial Owner was created.
|
|
77
103
|
*/
|
|
78
104
|
created_at: string;
|
|
105
|
+
/**
|
|
106
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
107
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
108
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
109
|
+
*/
|
|
110
|
+
idempotency_key: string | null;
|
|
79
111
|
/**
|
|
80
112
|
* Personal details for the beneficial owner.
|
|
81
113
|
*/
|
|
@@ -168,6 +200,199 @@ export declare namespace EntityBeneficialOwner {
|
|
|
168
200
|
}
|
|
169
201
|
}
|
|
170
202
|
}
|
|
203
|
+
export interface BeneficialOwnerCreateParams {
|
|
204
|
+
/**
|
|
205
|
+
* The identifier of the Entity to associate with the new Beneficial Owner.
|
|
206
|
+
*/
|
|
207
|
+
entity_id: string;
|
|
208
|
+
/**
|
|
209
|
+
* Personal details for the beneficial owner.
|
|
210
|
+
*/
|
|
211
|
+
individual: BeneficialOwnerCreateParams.Individual;
|
|
212
|
+
/**
|
|
213
|
+
* Why this person is considered a beneficial owner of the entity. At least one
|
|
214
|
+
* option is required, if a person is both a control person and owner, submit an
|
|
215
|
+
* array containing both.
|
|
216
|
+
*/
|
|
217
|
+
prongs: Array<'ownership' | 'control'>;
|
|
218
|
+
/**
|
|
219
|
+
* This person's role or title within the entity.
|
|
220
|
+
*/
|
|
221
|
+
company_title?: string;
|
|
222
|
+
[k: string]: unknown;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace BeneficialOwnerCreateParams {
|
|
225
|
+
/**
|
|
226
|
+
* Personal details for the beneficial owner.
|
|
227
|
+
*/
|
|
228
|
+
interface Individual {
|
|
229
|
+
/**
|
|
230
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
231
|
+
* PMB's are disallowed.
|
|
232
|
+
*/
|
|
233
|
+
address: Individual.Address;
|
|
234
|
+
/**
|
|
235
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
236
|
+
*/
|
|
237
|
+
date_of_birth: string;
|
|
238
|
+
/**
|
|
239
|
+
* A means of verifying the person's identity.
|
|
240
|
+
*/
|
|
241
|
+
identification: Individual.Identification;
|
|
242
|
+
/**
|
|
243
|
+
* The person's legal name.
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
/**
|
|
247
|
+
* The identification method for an individual can only be a passport, driver's
|
|
248
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
249
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
250
|
+
* Number).
|
|
251
|
+
*/
|
|
252
|
+
confirmed_no_us_tax_id?: boolean;
|
|
253
|
+
}
|
|
254
|
+
namespace Individual {
|
|
255
|
+
/**
|
|
256
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
257
|
+
* PMB's are disallowed.
|
|
258
|
+
*/
|
|
259
|
+
interface Address {
|
|
260
|
+
/**
|
|
261
|
+
* The city, district, town, or village of the address.
|
|
262
|
+
*/
|
|
263
|
+
city: string;
|
|
264
|
+
/**
|
|
265
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
266
|
+
*/
|
|
267
|
+
country: string;
|
|
268
|
+
/**
|
|
269
|
+
* The first line of the address. This is usually the street number and street.
|
|
270
|
+
*/
|
|
271
|
+
line1: string;
|
|
272
|
+
/**
|
|
273
|
+
* The second line of the address. This might be the floor or room number.
|
|
274
|
+
*/
|
|
275
|
+
line2?: string;
|
|
276
|
+
/**
|
|
277
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
278
|
+
* state, province, or region of the address. Required in certain countries.
|
|
279
|
+
*/
|
|
280
|
+
state?: string;
|
|
281
|
+
/**
|
|
282
|
+
* The ZIP or postal code of the address. Required in certain countries.
|
|
283
|
+
*/
|
|
284
|
+
zip?: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* A means of verifying the person's identity.
|
|
288
|
+
*/
|
|
289
|
+
interface Identification {
|
|
290
|
+
/**
|
|
291
|
+
* A method that can be used to verify the individual's identity.
|
|
292
|
+
*
|
|
293
|
+
* - `social_security_number` - A social security number.
|
|
294
|
+
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
295
|
+
* identification number (ITIN).
|
|
296
|
+
* - `passport` - A passport number.
|
|
297
|
+
* - `drivers_license` - A driver's license number.
|
|
298
|
+
* - `other` - Another identifying document.
|
|
299
|
+
*/
|
|
300
|
+
method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
|
|
301
|
+
/**
|
|
302
|
+
* An identification number that can be used to verify the individual's identity,
|
|
303
|
+
* such as a social security number.
|
|
304
|
+
*/
|
|
305
|
+
number: string;
|
|
306
|
+
/**
|
|
307
|
+
* Information about the United States driver's license used for identification.
|
|
308
|
+
* Required if `method` is equal to `drivers_license`.
|
|
309
|
+
*/
|
|
310
|
+
drivers_license?: Identification.DriversLicense;
|
|
311
|
+
/**
|
|
312
|
+
* Information about the identification document provided. Required if `method` is
|
|
313
|
+
* equal to `other`.
|
|
314
|
+
*/
|
|
315
|
+
other?: Identification.Other;
|
|
316
|
+
/**
|
|
317
|
+
* Information about the passport used for identification. Required if `method` is
|
|
318
|
+
* equal to `passport`.
|
|
319
|
+
*/
|
|
320
|
+
passport?: Identification.Passport;
|
|
321
|
+
[k: string]: unknown;
|
|
322
|
+
}
|
|
323
|
+
namespace Identification {
|
|
324
|
+
/**
|
|
325
|
+
* Information about the United States driver's license used for identification.
|
|
326
|
+
* Required if `method` is equal to `drivers_license`.
|
|
327
|
+
*/
|
|
328
|
+
interface DriversLicense {
|
|
329
|
+
/**
|
|
330
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
331
|
+
*/
|
|
332
|
+
expiration_date: string;
|
|
333
|
+
/**
|
|
334
|
+
* The identifier of the File containing the front of the driver's license.
|
|
335
|
+
*/
|
|
336
|
+
file_id: string;
|
|
337
|
+
/**
|
|
338
|
+
* The state that issued the provided driver's license.
|
|
339
|
+
*/
|
|
340
|
+
state: string;
|
|
341
|
+
/**
|
|
342
|
+
* The identifier of the File containing the back of the driver's license.
|
|
343
|
+
*/
|
|
344
|
+
back_file_id?: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Information about the identification document provided. Required if `method` is
|
|
348
|
+
* equal to `other`.
|
|
349
|
+
*/
|
|
350
|
+
interface Other {
|
|
351
|
+
/**
|
|
352
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
353
|
+
* document (e.g., `US`).
|
|
354
|
+
*/
|
|
355
|
+
country: string;
|
|
356
|
+
/**
|
|
357
|
+
* A description of the document submitted.
|
|
358
|
+
*/
|
|
359
|
+
description: string;
|
|
360
|
+
/**
|
|
361
|
+
* The identifier of the File containing the front of the document.
|
|
362
|
+
*/
|
|
363
|
+
file_id: string;
|
|
364
|
+
/**
|
|
365
|
+
* The identifier of the File containing the back of the document. Not every
|
|
366
|
+
* document has a reverse side.
|
|
367
|
+
*/
|
|
368
|
+
back_file_id?: string;
|
|
369
|
+
/**
|
|
370
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
371
|
+
*/
|
|
372
|
+
expiration_date?: string;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Information about the passport used for identification. Required if `method` is
|
|
376
|
+
* equal to `passport`.
|
|
377
|
+
*/
|
|
378
|
+
interface Passport {
|
|
379
|
+
/**
|
|
380
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
381
|
+
* document (e.g., `US`).
|
|
382
|
+
*/
|
|
383
|
+
country: string;
|
|
384
|
+
/**
|
|
385
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
386
|
+
*/
|
|
387
|
+
expiration_date: string;
|
|
388
|
+
/**
|
|
389
|
+
* The identifier of the File containing the passport.
|
|
390
|
+
*/
|
|
391
|
+
file_id: string;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
171
396
|
export interface BeneficialOwnerUpdateParams {
|
|
172
397
|
/**
|
|
173
398
|
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
@@ -346,6 +571,6 @@ export interface BeneficialOwnerListParams extends PageParams {
|
|
|
346
571
|
idempotency_key?: string;
|
|
347
572
|
}
|
|
348
573
|
export declare namespace BeneficialOwners {
|
|
349
|
-
export { type EntityBeneficialOwner as EntityBeneficialOwner, type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage, type BeneficialOwnerUpdateParams as BeneficialOwnerUpdateParams, type BeneficialOwnerListParams as BeneficialOwnerListParams, };
|
|
574
|
+
export { type EntityBeneficialOwner as EntityBeneficialOwner, type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage, type BeneficialOwnerCreateParams as BeneficialOwnerCreateParams, type BeneficialOwnerUpdateParams as BeneficialOwnerUpdateParams, type BeneficialOwnerListParams as BeneficialOwnerListParams, };
|
|
350
575
|
}
|
|
351
576
|
//# sourceMappingURL=beneficial-owners.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beneficial-owners.d.mts","sourceRoot":"","sources":["../src/resources/beneficial-owners.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,uBAAuB,EAAE,MAAM,EAC/B,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAOpC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;IAOjE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGtG;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;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ACvB;QAED;;;WAGG;QACH,UAAiB,KAAK;YACpB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;eAGG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B;QAED;;;WAGG;QACH,UAAiB,QAAQ;YACvB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"beneficial-owners.d.mts","sourceRoot":"","sources":["../src/resources/beneficial-owners.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItG;;;;;;;;;;OAUG;IACH,QAA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+3,32 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { Page, type PageParams, PagePromise } from "../core/pagination.js";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
5
5
|
export declare class BeneficialOwners extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a beneficial owner
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const entityBeneficialOwner =
|
|
12
|
+
* await client.beneficialOwners.create({
|
|
13
|
+
* entity_id: 'entity_n8y8tnk2p9339ti393yi',
|
|
14
|
+
* individual: {
|
|
15
|
+
* address: {
|
|
16
|
+
* city: 'New York',
|
|
17
|
+
* country: 'US',
|
|
18
|
+
* line1: '33 Liberty Street',
|
|
19
|
+
* },
|
|
20
|
+
* date_of_birth: '1970-01-31',
|
|
21
|
+
* identification: {
|
|
22
|
+
* method: 'social_security_number',
|
|
23
|
+
* number: '078051120',
|
|
24
|
+
* },
|
|
25
|
+
* name: 'Ian Crease',
|
|
26
|
+
* },
|
|
27
|
+
* prongs: ['control'],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body: BeneficialOwnerCreateParams, options?: RequestOptions): APIPromise<EntityBeneficialOwner>;
|
|
6
32
|
/**
|
|
7
33
|
* Retrieve a Beneficial Owner
|
|
8
34
|
*
|
|
@@ -76,6 +102,12 @@ export interface EntityBeneficialOwner {
|
|
|
76
102
|
* Beneficial Owner was created.
|
|
77
103
|
*/
|
|
78
104
|
created_at: string;
|
|
105
|
+
/**
|
|
106
|
+
* The idempotency key you chose for this object. This value is unique across
|
|
107
|
+
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
108
|
+
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
109
|
+
*/
|
|
110
|
+
idempotency_key: string | null;
|
|
79
111
|
/**
|
|
80
112
|
* Personal details for the beneficial owner.
|
|
81
113
|
*/
|
|
@@ -168,6 +200,199 @@ export declare namespace EntityBeneficialOwner {
|
|
|
168
200
|
}
|
|
169
201
|
}
|
|
170
202
|
}
|
|
203
|
+
export interface BeneficialOwnerCreateParams {
|
|
204
|
+
/**
|
|
205
|
+
* The identifier of the Entity to associate with the new Beneficial Owner.
|
|
206
|
+
*/
|
|
207
|
+
entity_id: string;
|
|
208
|
+
/**
|
|
209
|
+
* Personal details for the beneficial owner.
|
|
210
|
+
*/
|
|
211
|
+
individual: BeneficialOwnerCreateParams.Individual;
|
|
212
|
+
/**
|
|
213
|
+
* Why this person is considered a beneficial owner of the entity. At least one
|
|
214
|
+
* option is required, if a person is both a control person and owner, submit an
|
|
215
|
+
* array containing both.
|
|
216
|
+
*/
|
|
217
|
+
prongs: Array<'ownership' | 'control'>;
|
|
218
|
+
/**
|
|
219
|
+
* This person's role or title within the entity.
|
|
220
|
+
*/
|
|
221
|
+
company_title?: string;
|
|
222
|
+
[k: string]: unknown;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace BeneficialOwnerCreateParams {
|
|
225
|
+
/**
|
|
226
|
+
* Personal details for the beneficial owner.
|
|
227
|
+
*/
|
|
228
|
+
interface Individual {
|
|
229
|
+
/**
|
|
230
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
231
|
+
* PMB's are disallowed.
|
|
232
|
+
*/
|
|
233
|
+
address: Individual.Address;
|
|
234
|
+
/**
|
|
235
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
236
|
+
*/
|
|
237
|
+
date_of_birth: string;
|
|
238
|
+
/**
|
|
239
|
+
* A means of verifying the person's identity.
|
|
240
|
+
*/
|
|
241
|
+
identification: Individual.Identification;
|
|
242
|
+
/**
|
|
243
|
+
* The person's legal name.
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
/**
|
|
247
|
+
* The identification method for an individual can only be a passport, driver's
|
|
248
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
249
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
250
|
+
* Number).
|
|
251
|
+
*/
|
|
252
|
+
confirmed_no_us_tax_id?: boolean;
|
|
253
|
+
}
|
|
254
|
+
namespace Individual {
|
|
255
|
+
/**
|
|
256
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
257
|
+
* PMB's are disallowed.
|
|
258
|
+
*/
|
|
259
|
+
interface Address {
|
|
260
|
+
/**
|
|
261
|
+
* The city, district, town, or village of the address.
|
|
262
|
+
*/
|
|
263
|
+
city: string;
|
|
264
|
+
/**
|
|
265
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
266
|
+
*/
|
|
267
|
+
country: string;
|
|
268
|
+
/**
|
|
269
|
+
* The first line of the address. This is usually the street number and street.
|
|
270
|
+
*/
|
|
271
|
+
line1: string;
|
|
272
|
+
/**
|
|
273
|
+
* The second line of the address. This might be the floor or room number.
|
|
274
|
+
*/
|
|
275
|
+
line2?: string;
|
|
276
|
+
/**
|
|
277
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
278
|
+
* state, province, or region of the address. Required in certain countries.
|
|
279
|
+
*/
|
|
280
|
+
state?: string;
|
|
281
|
+
/**
|
|
282
|
+
* The ZIP or postal code of the address. Required in certain countries.
|
|
283
|
+
*/
|
|
284
|
+
zip?: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* A means of verifying the person's identity.
|
|
288
|
+
*/
|
|
289
|
+
interface Identification {
|
|
290
|
+
/**
|
|
291
|
+
* A method that can be used to verify the individual's identity.
|
|
292
|
+
*
|
|
293
|
+
* - `social_security_number` - A social security number.
|
|
294
|
+
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
295
|
+
* identification number (ITIN).
|
|
296
|
+
* - `passport` - A passport number.
|
|
297
|
+
* - `drivers_license` - A driver's license number.
|
|
298
|
+
* - `other` - Another identifying document.
|
|
299
|
+
*/
|
|
300
|
+
method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
|
|
301
|
+
/**
|
|
302
|
+
* An identification number that can be used to verify the individual's identity,
|
|
303
|
+
* such as a social security number.
|
|
304
|
+
*/
|
|
305
|
+
number: string;
|
|
306
|
+
/**
|
|
307
|
+
* Information about the United States driver's license used for identification.
|
|
308
|
+
* Required if `method` is equal to `drivers_license`.
|
|
309
|
+
*/
|
|
310
|
+
drivers_license?: Identification.DriversLicense;
|
|
311
|
+
/**
|
|
312
|
+
* Information about the identification document provided. Required if `method` is
|
|
313
|
+
* equal to `other`.
|
|
314
|
+
*/
|
|
315
|
+
other?: Identification.Other;
|
|
316
|
+
/**
|
|
317
|
+
* Information about the passport used for identification. Required if `method` is
|
|
318
|
+
* equal to `passport`.
|
|
319
|
+
*/
|
|
320
|
+
passport?: Identification.Passport;
|
|
321
|
+
[k: string]: unknown;
|
|
322
|
+
}
|
|
323
|
+
namespace Identification {
|
|
324
|
+
/**
|
|
325
|
+
* Information about the United States driver's license used for identification.
|
|
326
|
+
* Required if `method` is equal to `drivers_license`.
|
|
327
|
+
*/
|
|
328
|
+
interface DriversLicense {
|
|
329
|
+
/**
|
|
330
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
331
|
+
*/
|
|
332
|
+
expiration_date: string;
|
|
333
|
+
/**
|
|
334
|
+
* The identifier of the File containing the front of the driver's license.
|
|
335
|
+
*/
|
|
336
|
+
file_id: string;
|
|
337
|
+
/**
|
|
338
|
+
* The state that issued the provided driver's license.
|
|
339
|
+
*/
|
|
340
|
+
state: string;
|
|
341
|
+
/**
|
|
342
|
+
* The identifier of the File containing the back of the driver's license.
|
|
343
|
+
*/
|
|
344
|
+
back_file_id?: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Information about the identification document provided. Required if `method` is
|
|
348
|
+
* equal to `other`.
|
|
349
|
+
*/
|
|
350
|
+
interface Other {
|
|
351
|
+
/**
|
|
352
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
353
|
+
* document (e.g., `US`).
|
|
354
|
+
*/
|
|
355
|
+
country: string;
|
|
356
|
+
/**
|
|
357
|
+
* A description of the document submitted.
|
|
358
|
+
*/
|
|
359
|
+
description: string;
|
|
360
|
+
/**
|
|
361
|
+
* The identifier of the File containing the front of the document.
|
|
362
|
+
*/
|
|
363
|
+
file_id: string;
|
|
364
|
+
/**
|
|
365
|
+
* The identifier of the File containing the back of the document. Not every
|
|
366
|
+
* document has a reverse side.
|
|
367
|
+
*/
|
|
368
|
+
back_file_id?: string;
|
|
369
|
+
/**
|
|
370
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
371
|
+
*/
|
|
372
|
+
expiration_date?: string;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Information about the passport used for identification. Required if `method` is
|
|
376
|
+
* equal to `passport`.
|
|
377
|
+
*/
|
|
378
|
+
interface Passport {
|
|
379
|
+
/**
|
|
380
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
381
|
+
* document (e.g., `US`).
|
|
382
|
+
*/
|
|
383
|
+
country: string;
|
|
384
|
+
/**
|
|
385
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
386
|
+
*/
|
|
387
|
+
expiration_date: string;
|
|
388
|
+
/**
|
|
389
|
+
* The identifier of the File containing the passport.
|
|
390
|
+
*/
|
|
391
|
+
file_id: string;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
171
396
|
export interface BeneficialOwnerUpdateParams {
|
|
172
397
|
/**
|
|
173
398
|
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
@@ -346,6 +571,6 @@ export interface BeneficialOwnerListParams extends PageParams {
|
|
|
346
571
|
idempotency_key?: string;
|
|
347
572
|
}
|
|
348
573
|
export declare namespace BeneficialOwners {
|
|
349
|
-
export { type EntityBeneficialOwner as EntityBeneficialOwner, type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage, type BeneficialOwnerUpdateParams as BeneficialOwnerUpdateParams, type BeneficialOwnerListParams as BeneficialOwnerListParams, };
|
|
574
|
+
export { type EntityBeneficialOwner as EntityBeneficialOwner, type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage, type BeneficialOwnerCreateParams as BeneficialOwnerCreateParams, type BeneficialOwnerUpdateParams as BeneficialOwnerUpdateParams, type BeneficialOwnerListParams as BeneficialOwnerListParams, };
|
|
350
575
|
}
|
|
351
576
|
//# sourceMappingURL=beneficial-owners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beneficial-owners.d.ts","sourceRoot":"","sources":["../src/resources/beneficial-owners.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,uBAAuB,EAAE,MAAM,EAC/B,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAOpC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;IAOjE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGtG;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAC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 = require("../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class BeneficialOwners extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a beneficial owner
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const entityBeneficialOwner =
|
|
15
|
+
* await client.beneficialOwners.create({
|
|
16
|
+
* entity_id: 'entity_n8y8tnk2p9339ti393yi',
|
|
17
|
+
* individual: {
|
|
18
|
+
* address: {
|
|
19
|
+
* city: 'New York',
|
|
20
|
+
* country: 'US',
|
|
21
|
+
* line1: '33 Liberty Street',
|
|
22
|
+
* },
|
|
23
|
+
* date_of_birth: '1970-01-31',
|
|
24
|
+
* identification: {
|
|
25
|
+
* method: 'social_security_number',
|
|
26
|
+
* number: '078051120',
|
|
27
|
+
* },
|
|
28
|
+
* name: 'Ian Crease',
|
|
29
|
+
* },
|
|
30
|
+
* prongs: ['control'],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(body, options) {
|
|
35
|
+
return this._client.post('/entity_beneficial_owners', { body, ...options });
|
|
36
|
+
}
|
|
9
37
|
/**
|
|
10
38
|
* Retrieve a Beneficial Owner
|
|
11
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beneficial-owners.js","sourceRoot":"","sources":["../src/resources/beneficial-owners.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,uBAA+B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,uBAAuB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED;;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,uBAA+B,EAC/B,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,6BAA6B,uBAAuB,EAAE,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAA,iBAA2B,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,uBAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,uBAAuB,UAAU,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;CACF;AAxGD,4CAwGC"}
|
|
@@ -3,6 +3,34 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { Page } from "../core/pagination.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class BeneficialOwners extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a beneficial owner
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const entityBeneficialOwner =
|
|
12
|
+
* await client.beneficialOwners.create({
|
|
13
|
+
* entity_id: 'entity_n8y8tnk2p9339ti393yi',
|
|
14
|
+
* individual: {
|
|
15
|
+
* address: {
|
|
16
|
+
* city: 'New York',
|
|
17
|
+
* country: 'US',
|
|
18
|
+
* line1: '33 Liberty Street',
|
|
19
|
+
* },
|
|
20
|
+
* date_of_birth: '1970-01-31',
|
|
21
|
+
* identification: {
|
|
22
|
+
* method: 'social_security_number',
|
|
23
|
+
* number: '078051120',
|
|
24
|
+
* },
|
|
25
|
+
* name: 'Ian Crease',
|
|
26
|
+
* },
|
|
27
|
+
* prongs: ['control'],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body, options) {
|
|
32
|
+
return this._client.post('/entity_beneficial_owners', { body, ...options });
|
|
33
|
+
}
|
|
6
34
|
/**
|
|
7
35
|
* Retrieve a Beneficial Owner
|
|
8
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beneficial-owners.mjs","sourceRoot":"","sources":["../src/resources/beneficial-owners.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,uBAA+B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,uBAAuB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,uBAA+B,EAC/B,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,6BAA6B,uBAAuB,EAAE,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAA,IAA2B,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,uBAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,uBAAuB,UAAU,EAAE,O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