increase 0.59.1 → 0.60.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 +18 -0
- package/README.md +41 -17
- package/error.d.ts.map +1 -1
- package/error.js +0 -3
- package/error.js.map +1 -1
- package/error.mjs +0 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +190 -172
- package/index.d.ts +190 -172
- package/index.d.ts.map +1 -1
- package/index.js +96 -87
- package/index.js.map +1 -1
- package/index.mjs +96 -87
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/cards.d.ts +1 -1
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +2 -231
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/{entities/entities.d.ts → entities.d.ts} +276 -46
- package/resources/entities.d.ts.map +1 -0
- package/resources/{entities/entities.js → entities.js} +28 -17
- package/resources/entities.js.map +1 -0
- package/resources/{entities/entities.mjs → entities.mjs} +28 -17
- package/resources/entities.mjs.map +1 -0
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +218 -7
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -8
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -8
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-check-deposits.d.ts +25 -1
- package/resources/inbound-check-deposits.d.ts.map +1 -1
- package/resources/inbound-check-deposits.js +6 -0
- package/resources/inbound-check-deposits.js.map +1 -1
- package/resources/inbound-check-deposits.mjs +6 -0
- package/resources/inbound-check-deposits.mjs.map +1 -1
- package/resources/inbound-mail-items.d.ts +0 -14
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -4
- package/resources/index.mjs.map +1 -1
- package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
- package/resources/intrafi-account-enrollments.d.ts.map +1 -0
- package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
- package/resources/intrafi-account-enrollments.js.map +1 -0
- package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
- package/resources/intrafi-account-enrollments.mjs.map +1 -0
- package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
- package/resources/intrafi-balances.d.ts.map +1 -0
- package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
- package/resources/intrafi-balances.js.map +1 -0
- package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
- package/resources/intrafi-balances.mjs.map +1 -0
- package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
- package/resources/intrafi-exclusions.d.ts.map +1 -0
- package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
- package/resources/intrafi-exclusions.js.map +1 -0
- package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
- package/resources/intrafi-exclusions.mjs.map +1 -0
- package/resources/lockboxes.d.ts +0 -14
- package/resources/lockboxes.d.ts.map +1 -1
- package/resources/lockboxes.js.map +1 -1
- package/resources/lockboxes.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +5 -5
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js +5 -5
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +3 -3
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +10 -61
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +10 -14
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +10 -14
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-authorization-expirations.d.ts +20 -0
- package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
- package/resources/simulations/card-authorization-expirations.js +17 -0
- package/resources/simulations/card-authorization-expirations.js.map +1 -0
- package/resources/simulations/card-authorization-expirations.mjs +13 -0
- package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
- package/resources/simulations/card-authorizations.d.ts +91 -0
- package/resources/simulations/card-authorizations.d.ts.map +1 -0
- package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
- package/resources/simulations/card-authorizations.js.map +1 -0
- package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
- package/resources/simulations/card-authorizations.mjs.map +1 -0
- package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
- package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
- package/resources/simulations/card-fuel-confirmations.js +19 -0
- package/resources/simulations/card-fuel-confirmations.js.map +1 -0
- package/resources/simulations/card-fuel-confirmations.mjs +15 -0
- package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
- package/resources/simulations/card-increments.d.ts +32 -0
- package/resources/simulations/card-increments.d.ts.map +1 -0
- package/resources/simulations/card-increments.js +18 -0
- package/resources/simulations/card-increments.js.map +1 -0
- package/resources/simulations/card-increments.mjs +14 -0
- package/resources/simulations/card-increments.mjs.map +1 -0
- package/resources/simulations/card-reversals.d.ts +28 -0
- package/resources/simulations/card-reversals.d.ts.map +1 -0
- package/resources/simulations/card-reversals.js +20 -0
- package/resources/simulations/card-reversals.js.map +1 -0
- package/resources/simulations/card-reversals.mjs +16 -0
- package/resources/simulations/card-reversals.mjs.map +1 -0
- package/resources/simulations/card-settlements.d.ts +34 -0
- package/resources/simulations/card-settlements.d.ts.map +1 -0
- package/resources/simulations/card-settlements.js +21 -0
- package/resources/simulations/card-settlements.js.map +1 -0
- package/resources/simulations/card-settlements.mjs +17 -0
- package/resources/simulations/card-settlements.mjs.map +1 -0
- package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
- package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-ach-transfers.js +26 -0
- package/resources/simulations/inbound-ach-transfers.js.map +1 -0
- package/resources/simulations/inbound-ach-transfers.mjs +22 -0
- package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
- package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-wire-transfers.js +17 -0
- package/resources/simulations/inbound-wire-transfers.js.map +1 -0
- package/resources/simulations/inbound-wire-transfers.mjs +13 -0
- package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
- package/resources/simulations/index.d.ts +14 -7
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +21 -7
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +11 -4
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts +3 -3
- package/resources/simulations/physical-cards.js +2 -2
- package/resources/simulations/physical-cards.mjs +2 -2
- package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +0 -7
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +0 -7
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +67 -118
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +45 -54
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +45 -54
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +10 -85
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +14 -5
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +14 -5
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
- package/resources/supplemental-documents.d.ts.map +1 -0
- package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
- package/resources/supplemental-documents.js.map +1 -0
- package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
- package/resources/supplemental-documents.mjs.map +1 -0
- package/resources/transactions.d.ts +6 -276
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +4 -13
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +0 -17
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +0 -17
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/error.ts +0 -8
- package/src/index.ts +210 -189
- package/src/resources/cards.ts +1 -1
- package/src/resources/declined-transactions.ts +0 -297
- package/src/resources/{entities/entities.ts → entities.ts} +351 -56
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +288 -13
- package/src/resources/inbound-check-deposits.ts +34 -1
- package/src/resources/inbound-mail-items.ts +0 -16
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +32 -14
- package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
- package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
- package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
- package/src/resources/lockboxes.ts +0 -16
- package/src/resources/routing-numbers.ts +6 -6
- package/src/resources/simulations/ach-transfers.ts +15 -76
- package/src/resources/simulations/card-authorization-expirations.ts +29 -0
- package/src/resources/simulations/card-authorizations.ts +112 -0
- package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
- package/src/resources/simulations/card-increments.ts +43 -0
- package/src/resources/simulations/card-reversals.ts +38 -0
- package/src/resources/simulations/card-settlements.ts +45 -0
- package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
- package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
- package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
- package/src/resources/simulations/index.ts +26 -21
- package/src/resources/simulations/interest-payments.ts +1 -1
- package/src/resources/simulations/physical-cards.ts +5 -5
- package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
- package/src/resources/simulations/simulations.ts +80 -157
- package/src/resources/simulations/wire-transfers.ts +18 -104
- package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
- package/src/resources/transactions.ts +5 -350
- package/src/resources/wire-transfers.ts +5 -19
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/entities/beneficial-owners.d.ts +0 -279
- package/resources/entities/beneficial-owners.d.ts.map +0 -1
- package/resources/entities/beneficial-owners.js +0 -29
- package/resources/entities/beneficial-owners.js.map +0 -1
- package/resources/entities/beneficial-owners.mjs +0 -25
- package/resources/entities/beneficial-owners.mjs.map +0 -1
- package/resources/entities/entities.d.ts.map +0 -1
- package/resources/entities/entities.js.map +0 -1
- package/resources/entities/entities.mjs.map +0 -1
- package/resources/entities/index.d.ts +0 -5
- package/resources/entities/index.d.ts.map +0 -1
- package/resources/entities/index.js +0 -15
- package/resources/entities/index.js.map +0 -1
- package/resources/entities/index.mjs +0 -6
- package/resources/entities/index.mjs.map +0 -1
- package/resources/entities/industry-code.d.ts +0 -23
- package/resources/entities/industry-code.d.ts.map +0 -1
- package/resources/entities/industry-code.js +0 -17
- package/resources/entities/industry-code.js.map +0 -1
- package/resources/entities/industry-code.mjs +0 -13
- package/resources/entities/industry-code.mjs.map +0 -1
- package/resources/entities/supplemental-documents.d.ts.map +0 -1
- package/resources/entities/supplemental-documents.js.map +0 -1
- package/resources/entities/supplemental-documents.mjs.map +0 -1
- package/resources/intrafi/account-enrollments.d.ts.map +0 -1
- package/resources/intrafi/account-enrollments.js.map +0 -1
- package/resources/intrafi/account-enrollments.mjs.map +0 -1
- package/resources/intrafi/balances.d.ts.map +0 -1
- package/resources/intrafi/balances.js.map +0 -1
- package/resources/intrafi/balances.mjs.map +0 -1
- package/resources/intrafi/exclusions.d.ts.map +0 -1
- package/resources/intrafi/exclusions.js.map +0 -1
- package/resources/intrafi/exclusions.mjs.map +0 -1
- package/resources/intrafi/index.d.ts +0 -5
- package/resources/intrafi/index.d.ts.map +0 -1
- package/resources/intrafi/index.js +0 -15
- package/resources/intrafi/index.js.map +0 -1
- package/resources/intrafi/index.mjs +0 -6
- package/resources/intrafi/index.mjs.map +0 -1
- package/resources/intrafi/intrafi.d.ts +0 -24
- package/resources/intrafi/intrafi.d.ts.map +0 -1
- package/resources/intrafi/intrafi.js +0 -48
- package/resources/intrafi/intrafi.js.map +0 -1
- package/resources/intrafi/intrafi.mjs +0 -21
- package/resources/intrafi/intrafi.mjs.map +0 -1
- package/resources/simulations/cards.d.ts +0 -1763
- package/resources/simulations/cards.d.ts.map +0 -1
- package/resources/simulations/cards.js.map +0 -1
- package/resources/simulations/cards.mjs.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
- package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.js +0 -21
- package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
- package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
- package/src/resources/entities/beneficial-owners.ts +0 -346
- package/src/resources/entities/index.ts +0 -25
- package/src/resources/entities/industry-code.ts +0 -33
- package/src/resources/intrafi/index.ts +0 -18
- package/src/resources/intrafi/intrafi.ts +0 -29
- package/src/resources/simulations/cards.ts +0 -2188
- package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { isRequestOptions } from '
|
|
5
|
-
import * as Core from '
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
6
|
import * as EntitiesAPI from './entities';
|
|
7
|
-
import * as BeneficialOwnersAPI from './beneficial-owners';
|
|
8
|
-
import * as IndustryCodeAPI from './industry-code';
|
|
9
7
|
import * as SupplementalDocumentsAPI from './supplemental-documents';
|
|
10
|
-
import { Page, type PageParams } from '
|
|
8
|
+
import { Page, type PageParams } from '../pagination';
|
|
11
9
|
|
|
12
10
|
export class Entities extends APIResource {
|
|
13
|
-
beneficialOwners: BeneficialOwnersAPI.BeneficialOwners = new BeneficialOwnersAPI.BeneficialOwners(
|
|
14
|
-
this._client,
|
|
15
|
-
);
|
|
16
|
-
supplementalDocuments: SupplementalDocumentsAPI.SupplementalDocuments =
|
|
17
|
-
new SupplementalDocumentsAPI.SupplementalDocuments(this._client);
|
|
18
|
-
industryCode: IndustryCodeAPI.IndustryCode = new IndustryCodeAPI.IndustryCode(this._client);
|
|
19
|
-
|
|
20
11
|
/**
|
|
21
12
|
* Create an Entity
|
|
22
13
|
*/
|
|
@@ -53,6 +44,17 @@ export class Entities extends APIResource {
|
|
|
53
44
|
return this._client.post(`/entities/${entityId}/archive`, options);
|
|
54
45
|
}
|
|
55
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Archive a beneficial owner for a corporate Entity
|
|
49
|
+
*/
|
|
50
|
+
archiveBeneficialOwner(
|
|
51
|
+
entityId: string,
|
|
52
|
+
body: EntityArchiveBeneficialOwnerParams,
|
|
53
|
+
options?: Core.RequestOptions,
|
|
54
|
+
): Core.APIPromise<Entity> {
|
|
55
|
+
return this._client.post(`/entities/${entityId}/archive_beneficial_owner`, { body, ...options });
|
|
56
|
+
}
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Depending on your program, you may be required to re-confirm an Entity's details
|
|
58
60
|
* on a recurring basis. After making any required updates, call this endpoint to
|
|
@@ -66,6 +68,17 @@ export class Entities extends APIResource {
|
|
|
66
68
|
return this._client.post(`/entities/${entityId}/confirm`, { body, ...options });
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Create a beneficial owner for a corporate Entity
|
|
73
|
+
*/
|
|
74
|
+
createBeneficialOwner(
|
|
75
|
+
entityId: string,
|
|
76
|
+
body: EntityCreateBeneficialOwnerParams,
|
|
77
|
+
options?: Core.RequestOptions,
|
|
78
|
+
): Core.APIPromise<Entity> {
|
|
79
|
+
return this._client.post(`/entities/${entityId}/create_beneficial_owner`, { body, ...options });
|
|
80
|
+
}
|
|
81
|
+
|
|
69
82
|
/**
|
|
70
83
|
* Update a Natural Person or Corporation's address
|
|
71
84
|
*/
|
|
@@ -74,7 +87,29 @@ export class Entities extends APIResource {
|
|
|
74
87
|
body: EntityUpdateAddressParams,
|
|
75
88
|
options?: Core.RequestOptions,
|
|
76
89
|
): Core.APIPromise<Entity> {
|
|
77
|
-
return this._client.post(`/entities/${entityId}/
|
|
90
|
+
return this._client.post(`/entities/${entityId}/update_address`, { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Update the address for a beneficial owner belonging to a corporate Entity
|
|
95
|
+
*/
|
|
96
|
+
updateBeneficialOwnerAddress(
|
|
97
|
+
entityId: string,
|
|
98
|
+
body: EntityUpdateBeneficialOwnerAddressParams,
|
|
99
|
+
options?: Core.RequestOptions,
|
|
100
|
+
): Core.APIPromise<Entity> {
|
|
101
|
+
return this._client.post(`/entities/${entityId}/update_beneficial_owner_address`, { body, ...options });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Update the industry code for a corporate Entity
|
|
106
|
+
*/
|
|
107
|
+
updateIndustryCode(
|
|
108
|
+
entityId: string,
|
|
109
|
+
body: EntityUpdateIndustryCodeParams,
|
|
110
|
+
options?: Core.RequestOptions,
|
|
111
|
+
): Core.APIPromise<Entity> {
|
|
112
|
+
return this._client.post(`/entities/${entityId}/update_industry_code`, { body, ...options });
|
|
78
113
|
}
|
|
79
114
|
}
|
|
80
115
|
|
|
@@ -164,7 +199,7 @@ export interface Entity {
|
|
|
164
199
|
* first 10 documents for an entity. If an entity has more than 10 documents, use
|
|
165
200
|
* the GET /entity_supplemental_documents list endpoint to retrieve them.
|
|
166
201
|
*/
|
|
167
|
-
supplemental_documents: Array<
|
|
202
|
+
supplemental_documents: Array<SupplementalDocumentsAPI.EntitySupplementalDocument>;
|
|
168
203
|
|
|
169
204
|
/**
|
|
170
205
|
* Details of the trust entity. Will be present if `structure` is equal to `trust`.
|
|
@@ -641,36 +676,6 @@ export namespace Entity {
|
|
|
641
676
|
}
|
|
642
677
|
}
|
|
643
678
|
|
|
644
|
-
/**
|
|
645
|
-
* Supplemental Documents are uploaded files connected to an Entity during
|
|
646
|
-
* onboarding.
|
|
647
|
-
*/
|
|
648
|
-
export interface SupplementalDocument {
|
|
649
|
-
/**
|
|
650
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
651
|
-
* Supplemental Document was created.
|
|
652
|
-
*/
|
|
653
|
-
created_at: string;
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* The File containing the document.
|
|
657
|
-
*/
|
|
658
|
-
file_id: string;
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* The idempotency key you chose for this object. This value is unique across
|
|
662
|
-
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
663
|
-
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
664
|
-
*/
|
|
665
|
-
idempotency_key: string | null;
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* A constant representing the object's type. For this resource it will always be
|
|
669
|
-
* `entity_supplemental_document`.
|
|
670
|
-
*/
|
|
671
|
-
type: 'entity_supplemental_document';
|
|
672
|
-
}
|
|
673
|
-
|
|
674
679
|
/**
|
|
675
680
|
* Details of the trust entity. Will be present if `structure` is equal to `trust`.
|
|
676
681
|
*/
|
|
@@ -2345,6 +2350,14 @@ export namespace EntityListParams {
|
|
|
2345
2350
|
}
|
|
2346
2351
|
}
|
|
2347
2352
|
|
|
2353
|
+
export interface EntityArchiveBeneficialOwnerParams {
|
|
2354
|
+
/**
|
|
2355
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
2356
|
+
* corporation.
|
|
2357
|
+
*/
|
|
2358
|
+
beneficial_owner_id: string;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2348
2361
|
export interface EntityConfirmParams {
|
|
2349
2362
|
/**
|
|
2350
2363
|
* When your user confirmed the Entity's details. If not provided, the current time
|
|
@@ -2353,6 +2366,237 @@ export interface EntityConfirmParams {
|
|
|
2353
2366
|
confirmed_at?: string;
|
|
2354
2367
|
}
|
|
2355
2368
|
|
|
2369
|
+
export interface EntityCreateBeneficialOwnerParams {
|
|
2370
|
+
/**
|
|
2371
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
2372
|
+
* corporation.
|
|
2373
|
+
*/
|
|
2374
|
+
beneficial_owner: EntityCreateBeneficialOwnerParams.BeneficialOwner;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
export namespace EntityCreateBeneficialOwnerParams {
|
|
2378
|
+
/**
|
|
2379
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
2380
|
+
* corporation.
|
|
2381
|
+
*/
|
|
2382
|
+
export interface BeneficialOwner {
|
|
2383
|
+
/**
|
|
2384
|
+
* Personal details for the beneficial owner.
|
|
2385
|
+
*/
|
|
2386
|
+
individual: BeneficialOwner.Individual;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Why this person is considered a beneficial owner of the entity. At least one
|
|
2390
|
+
* option is required, if a person is both a control person and owner, submit an
|
|
2391
|
+
* array containing both.
|
|
2392
|
+
*/
|
|
2393
|
+
prongs: Array<'ownership' | 'control'>;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* This person's role or title within the entity.
|
|
2397
|
+
*/
|
|
2398
|
+
company_title?: string;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
export namespace BeneficialOwner {
|
|
2402
|
+
/**
|
|
2403
|
+
* Personal details for the beneficial owner.
|
|
2404
|
+
*/
|
|
2405
|
+
export interface Individual {
|
|
2406
|
+
/**
|
|
2407
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
2408
|
+
* PMB's are disallowed.
|
|
2409
|
+
*/
|
|
2410
|
+
address: Individual.Address;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
2414
|
+
*/
|
|
2415
|
+
date_of_birth: string;
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* A means of verifying the person's identity.
|
|
2419
|
+
*/
|
|
2420
|
+
identification: Individual.Identification;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* The person's legal name.
|
|
2424
|
+
*/
|
|
2425
|
+
name: string;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* The identification method for an individual can only be a passport, driver's
|
|
2429
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
2430
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
2431
|
+
* Number).
|
|
2432
|
+
*/
|
|
2433
|
+
confirmed_no_us_tax_id?: boolean;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
export namespace Individual {
|
|
2437
|
+
/**
|
|
2438
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
2439
|
+
* PMB's are disallowed.
|
|
2440
|
+
*/
|
|
2441
|
+
export interface Address {
|
|
2442
|
+
/**
|
|
2443
|
+
* The city of the address.
|
|
2444
|
+
*/
|
|
2445
|
+
city: string;
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* The first line of the address. This is usually the street number and street.
|
|
2449
|
+
*/
|
|
2450
|
+
line1: string;
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2454
|
+
* the address.
|
|
2455
|
+
*/
|
|
2456
|
+
state: string;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* The ZIP code of the address.
|
|
2460
|
+
*/
|
|
2461
|
+
zip: string;
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* The second line of the address. This might be the floor or room number.
|
|
2465
|
+
*/
|
|
2466
|
+
line2?: string;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* A means of verifying the person's identity.
|
|
2471
|
+
*/
|
|
2472
|
+
export interface Identification {
|
|
2473
|
+
/**
|
|
2474
|
+
* A method that can be used to verify the individual's identity.
|
|
2475
|
+
*
|
|
2476
|
+
* - `social_security_number` - A social security number.
|
|
2477
|
+
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
2478
|
+
* identification number (ITIN).
|
|
2479
|
+
* - `passport` - A passport number.
|
|
2480
|
+
* - `drivers_license` - A driver's license number.
|
|
2481
|
+
* - `other` - Another identifying document.
|
|
2482
|
+
*/
|
|
2483
|
+
method:
|
|
2484
|
+
| 'social_security_number'
|
|
2485
|
+
| 'individual_taxpayer_identification_number'
|
|
2486
|
+
| 'passport'
|
|
2487
|
+
| 'drivers_license'
|
|
2488
|
+
| 'other';
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2492
|
+
* such as a social security number.
|
|
2493
|
+
*/
|
|
2494
|
+
number: string;
|
|
2495
|
+
|
|
2496
|
+
/**
|
|
2497
|
+
* Information about the United States driver's license used for identification.
|
|
2498
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2499
|
+
*/
|
|
2500
|
+
drivers_license?: Identification.DriversLicense;
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Information about the identification document provided. Required if `method` is
|
|
2504
|
+
* equal to `other`.
|
|
2505
|
+
*/
|
|
2506
|
+
other?: Identification.Other;
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2510
|
+
* equal to `passport`.
|
|
2511
|
+
*/
|
|
2512
|
+
passport?: Identification.Passport;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
export namespace Identification {
|
|
2516
|
+
/**
|
|
2517
|
+
* Information about the United States driver's license used for identification.
|
|
2518
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2519
|
+
*/
|
|
2520
|
+
export interface DriversLicense {
|
|
2521
|
+
/**
|
|
2522
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2523
|
+
*/
|
|
2524
|
+
expiration_date: string;
|
|
2525
|
+
|
|
2526
|
+
/**
|
|
2527
|
+
* The identifier of the File containing the front of the driver's license.
|
|
2528
|
+
*/
|
|
2529
|
+
file_id: string;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* The state that issued the provided driver's license.
|
|
2533
|
+
*/
|
|
2534
|
+
state: string;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* The identifier of the File containing the back of the driver's license.
|
|
2538
|
+
*/
|
|
2539
|
+
back_file_id?: string;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
* Information about the identification document provided. Required if `method` is
|
|
2544
|
+
* equal to `other`.
|
|
2545
|
+
*/
|
|
2546
|
+
export interface Other {
|
|
2547
|
+
/**
|
|
2548
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2549
|
+
* document.
|
|
2550
|
+
*/
|
|
2551
|
+
country: string;
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* A description of the document submitted.
|
|
2555
|
+
*/
|
|
2556
|
+
description: string;
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* The identifier of the File containing the front of the document.
|
|
2560
|
+
*/
|
|
2561
|
+
file_id: string;
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* The identifier of the File containing the back of the document. Not every
|
|
2565
|
+
* document has a reverse side.
|
|
2566
|
+
*/
|
|
2567
|
+
back_file_id?: string;
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2571
|
+
*/
|
|
2572
|
+
expiration_date?: string;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2577
|
+
* equal to `passport`.
|
|
2578
|
+
*/
|
|
2579
|
+
export interface Passport {
|
|
2580
|
+
/**
|
|
2581
|
+
* The country that issued the passport.
|
|
2582
|
+
*/
|
|
2583
|
+
country: string;
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2587
|
+
*/
|
|
2588
|
+
expiration_date: string;
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* The identifier of the File containing the passport.
|
|
2592
|
+
*/
|
|
2593
|
+
file_id: string;
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2356
2600
|
export interface EntityUpdateAddressParams {
|
|
2357
2601
|
/**
|
|
2358
2602
|
* The entity's physical address. Mail receiving locations like PO Boxes and PMB's
|
|
@@ -2395,22 +2639,73 @@ export namespace EntityUpdateAddressParams {
|
|
|
2395
2639
|
}
|
|
2396
2640
|
}
|
|
2397
2641
|
|
|
2642
|
+
export interface EntityUpdateBeneficialOwnerAddressParams {
|
|
2643
|
+
/**
|
|
2644
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
2645
|
+
* PMB's are disallowed.
|
|
2646
|
+
*/
|
|
2647
|
+
address: EntityUpdateBeneficialOwnerAddressParams.Address;
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
2651
|
+
* corporation.
|
|
2652
|
+
*/
|
|
2653
|
+
beneficial_owner_id: string;
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
export namespace EntityUpdateBeneficialOwnerAddressParams {
|
|
2657
|
+
/**
|
|
2658
|
+
* The individual's physical address. Mail receiving locations like PO Boxes and
|
|
2659
|
+
* PMB's are disallowed.
|
|
2660
|
+
*/
|
|
2661
|
+
export interface Address {
|
|
2662
|
+
/**
|
|
2663
|
+
* The city of the address.
|
|
2664
|
+
*/
|
|
2665
|
+
city: string;
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* The first line of the address. This is usually the street number and street.
|
|
2669
|
+
*/
|
|
2670
|
+
line1: string;
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2674
|
+
* the address.
|
|
2675
|
+
*/
|
|
2676
|
+
state: string;
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* The ZIP code of the address.
|
|
2680
|
+
*/
|
|
2681
|
+
zip: string;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* The second line of the address. This might be the floor or room number.
|
|
2685
|
+
*/
|
|
2686
|
+
line2?: string;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
export interface EntityUpdateIndustryCodeParams {
|
|
2691
|
+
/**
|
|
2692
|
+
* The North American Industry Classification System (NAICS) code for the
|
|
2693
|
+
* corporation's primary line of business. This is a number, like `5132` for
|
|
2694
|
+
* `Software Publishers`. A full list of classification codes is available
|
|
2695
|
+
* [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
|
|
2696
|
+
*/
|
|
2697
|
+
industry_code: string;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2398
2700
|
export namespace Entities {
|
|
2399
2701
|
export import Entity = EntitiesAPI.Entity;
|
|
2400
2702
|
export import EntitiesPage = EntitiesAPI.EntitiesPage;
|
|
2401
2703
|
export import EntityCreateParams = EntitiesAPI.EntityCreateParams;
|
|
2402
2704
|
export import EntityListParams = EntitiesAPI.EntityListParams;
|
|
2705
|
+
export import EntityArchiveBeneficialOwnerParams = EntitiesAPI.EntityArchiveBeneficialOwnerParams;
|
|
2403
2706
|
export import EntityConfirmParams = EntitiesAPI.EntityConfirmParams;
|
|
2707
|
+
export import EntityCreateBeneficialOwnerParams = EntitiesAPI.EntityCreateBeneficialOwnerParams;
|
|
2404
2708
|
export import EntityUpdateAddressParams = EntitiesAPI.EntityUpdateAddressParams;
|
|
2405
|
-
export import
|
|
2406
|
-
export import
|
|
2407
|
-
export import BeneficialOwnerArchiveParams = BeneficialOwnersAPI.BeneficialOwnerArchiveParams;
|
|
2408
|
-
export import BeneficialOwnerUpdateAddressParams = BeneficialOwnersAPI.BeneficialOwnerUpdateAddressParams;
|
|
2409
|
-
export import SupplementalDocuments = SupplementalDocumentsAPI.SupplementalDocuments;
|
|
2410
|
-
export import SupplementalDocument = SupplementalDocumentsAPI.SupplementalDocument;
|
|
2411
|
-
export import SupplementalDocumentsPage = SupplementalDocumentsAPI.SupplementalDocumentsPage;
|
|
2412
|
-
export import SupplementalDocumentCreateParams = SupplementalDocumentsAPI.SupplementalDocumentCreateParams;
|
|
2413
|
-
export import SupplementalDocumentListParams = SupplementalDocumentsAPI.SupplementalDocumentListParams;
|
|
2414
|
-
export import IndustryCode = IndustryCodeAPI.IndustryCode;
|
|
2415
|
-
export import IndustryCodeCreateParams = IndustryCodeAPI.IndustryCodeCreateParams;
|
|
2709
|
+
export import EntityUpdateBeneficialOwnerAddressParams = EntitiesAPI.EntityUpdateBeneficialOwnerAddressParams;
|
|
2710
|
+
export import EntityUpdateIndustryCodeParams = EntitiesAPI.EntityUpdateIndustryCodeParams;
|
|
2416
2711
|
}
|
package/src/resources/groups.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class Groups extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns details for the currently authenticated Group.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<Group> {
|
|
12
12
|
return this._client.get('/groups/current', options);
|
|
13
13
|
}
|
|
14
14
|
}
|