increase 0.468.0 → 0.470.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 +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beneficial-owners.d.mts +157 -0
- package/resources/beneficial-owners.d.mts.map +1 -0
- package/resources/beneficial-owners.d.ts +157 -0
- package/resources/beneficial-owners.d.ts.map +1 -0
- package/resources/beneficial-owners.js +44 -0
- package/resources/beneficial-owners.js.map +1 -0
- package/resources/beneficial-owners.mjs +40 -0
- package/resources/beneficial-owners.mjs.map +1 -0
- package/resources/entities.d.mts +2 -97
- package/resources/entities.d.mts.map +1 -1
- package/resources/entities.d.ts +2 -97
- package/resources/entities.d.ts.map +1 -1
- package/resources/entities.js.map +1 -1
- package/resources/entities.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/simulations/card-tokens.d.mts +105 -0
- package/resources/simulations/card-tokens.d.mts.map +1 -1
- package/resources/simulations/card-tokens.d.ts +105 -0
- package/resources/simulations/card-tokens.d.ts.map +1 -1
- package/src/client.ts +15 -0
- package/src/resources/beneficial-owners.ts +204 -0
- package/src/resources/entities.ts +2 -120
- package/src/resources/index.ts +6 -0
- package/src/resources/simulations/card-tokens.ts +151 -0
- 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
|
@@ -27,6 +27,10 @@ export interface CardTokenCreateParams {
|
|
|
27
27
|
* The last 4 digits of the card number.
|
|
28
28
|
*/
|
|
29
29
|
last4?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The outcome to simulate for card push transfers using this token.
|
|
32
|
+
*/
|
|
33
|
+
outcome?: CardTokenCreateParams.Outcome;
|
|
30
34
|
/**
|
|
31
35
|
* The prefix of the card number, usually the first 8 digits.
|
|
32
36
|
*/
|
|
@@ -60,6 +64,107 @@ export declare namespace CardTokenCreateParams {
|
|
|
60
64
|
*/
|
|
61
65
|
route: 'visa' | 'mastercard';
|
|
62
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* The outcome to simulate for card push transfers using this token.
|
|
69
|
+
*/
|
|
70
|
+
interface Outcome {
|
|
71
|
+
/**
|
|
72
|
+
* Whether card push transfers or validations will be approved or declined.
|
|
73
|
+
*
|
|
74
|
+
* - `approve` - Any card push transfers or validations will be approved.
|
|
75
|
+
* - `decline` - Any card push transfers or validations will be declined.
|
|
76
|
+
*/
|
|
77
|
+
result: 'approve' | 'decline';
|
|
78
|
+
/**
|
|
79
|
+
* If the result is declined, the details of the decline.
|
|
80
|
+
*/
|
|
81
|
+
decline?: Outcome.Decline;
|
|
82
|
+
}
|
|
83
|
+
namespace Outcome {
|
|
84
|
+
/**
|
|
85
|
+
* If the result is declined, the details of the decline.
|
|
86
|
+
*/
|
|
87
|
+
interface Decline {
|
|
88
|
+
/**
|
|
89
|
+
* The reason for the decline.
|
|
90
|
+
*
|
|
91
|
+
* - `do_not_honor` - The card issuer has declined the transaction without
|
|
92
|
+
* providing a specific reason.
|
|
93
|
+
* - `activity_count_limit_exceeded` - The number of transactions for the card has
|
|
94
|
+
* exceeded the limit set by the issuer.
|
|
95
|
+
* - `refer_to_card_issuer` - The card issuer requires the cardholder to contact
|
|
96
|
+
* them for further information regarding the transaction.
|
|
97
|
+
* - `refer_to_card_issuer_special_condition` - The card issuer requires the
|
|
98
|
+
* cardholder to contact them due to a special condition related to the
|
|
99
|
+
* transaction.
|
|
100
|
+
* - `invalid_merchant` - The merchant is not valid for this transaction.
|
|
101
|
+
* - `pick_up_card` - The card should be retained by the terminal.
|
|
102
|
+
* - `error` - An error occurred during processing of the transaction.
|
|
103
|
+
* - `pick_up_card_special` - The card should be retained by the terminal due to a
|
|
104
|
+
* special condition.
|
|
105
|
+
* - `invalid_transaction` - The transaction is invalid and cannot be processed.
|
|
106
|
+
* - `invalid_amount` - The amount of the transaction is invalid.
|
|
107
|
+
* - `invalid_account_number` - The account number provided is invalid.
|
|
108
|
+
* - `no_such_issuer` - The issuer of the card could not be found.
|
|
109
|
+
* - `re_enter_transaction` - The transaction should be re-entered for processing.
|
|
110
|
+
* - `no_credit_account` - There is no credit account associated with the card.
|
|
111
|
+
* - `pick_up_card_lost` - The card should be retained by the terminal because it
|
|
112
|
+
* has been reported lost.
|
|
113
|
+
* - `pick_up_card_stolen` - The card should be retained by the terminal because it
|
|
114
|
+
* has been reported stolen.
|
|
115
|
+
* - `closed_account` - The account associated with the card has been closed.
|
|
116
|
+
* - `insufficient_funds` - There are insufficient funds in the account to complete
|
|
117
|
+
* the transaction.
|
|
118
|
+
* - `no_checking_account` - There is no checking account associated with the card.
|
|
119
|
+
* - `no_savings_account` - There is no savings account associated with the card.
|
|
120
|
+
* - `expired_card` - The card has expired and cannot be used for transactions.
|
|
121
|
+
* - `transaction_not_permitted_to_cardholder` - The transaction is not permitted
|
|
122
|
+
* for this cardholder.
|
|
123
|
+
* - `transaction_not_allowed_at_terminal` - The transaction is not allowed at this
|
|
124
|
+
* terminal.
|
|
125
|
+
* - `suspected_fraud` - The transaction has been flagged as suspected fraud and
|
|
126
|
+
* cannot be processed.
|
|
127
|
+
* - `activity_amount_limit_exceeded` - The amount of activity on the card has
|
|
128
|
+
* exceeded the limit set by the issuer.
|
|
129
|
+
* - `restricted_card` - The card has restrictions that prevent it from being used
|
|
130
|
+
* for this transaction.
|
|
131
|
+
* - `security_violation` - A security violation has occurred, preventing the
|
|
132
|
+
* transaction from being processed.
|
|
133
|
+
* - `transaction_does_not_fulfill_anti_money_laundering_requirement` - The
|
|
134
|
+
* transaction does not meet the anti-money laundering requirements set by the
|
|
135
|
+
* issuer.
|
|
136
|
+
* - `blocked_first_use` - The first use of the card has been blocked by the
|
|
137
|
+
* issuer.
|
|
138
|
+
* - `credit_issuer_unavailable` - The credit issuer is currently unavailable to
|
|
139
|
+
* process the transaction.
|
|
140
|
+
* - `negative_card_verification_value_results` - The card verification value (CVV)
|
|
141
|
+
* results were negative, indicating a potential issue with the card.
|
|
142
|
+
* - `issuer_unavailable` - The issuer of the card is currently unavailable to
|
|
143
|
+
* process the transaction.
|
|
144
|
+
* - `financial_institution_cannot_be_found` - The financial institution associated
|
|
145
|
+
* with the card could not be found.
|
|
146
|
+
* - `transaction_cannot_be_completed` - The transaction cannot be completed due to
|
|
147
|
+
* an unspecified reason.
|
|
148
|
+
* - `duplicate_transaction` - The transaction is a duplicate of a previous
|
|
149
|
+
* transaction and cannot be processed again.
|
|
150
|
+
* - `system_malfunction` - A system malfunction occurred, preventing the
|
|
151
|
+
* transaction from being processed.
|
|
152
|
+
* - `additional_customer_authentication_required` - Additional customer
|
|
153
|
+
* authentication is required to complete the transaction.
|
|
154
|
+
* - `surcharge_amount_not_permitted` - The surcharge amount applied to the
|
|
155
|
+
* transaction is not permitted by the issuer.
|
|
156
|
+
* - `decline_for_cvv2_failure` - The transaction was declined due to a failure in
|
|
157
|
+
* verifying the CVV2 code.
|
|
158
|
+
* - `stop_payment_order` - A stop payment order has been placed on this
|
|
159
|
+
* transaction.
|
|
160
|
+
* - `revocation_of_authorization_order` - An order has been placed to revoke
|
|
161
|
+
* authorization for this transaction.
|
|
162
|
+
* - `revocation_of_all_authorizations_order` - An order has been placed to revoke
|
|
163
|
+
* all authorizations for this cardholder.
|
|
164
|
+
*/
|
|
165
|
+
reason?: 'do_not_honor' | 'activity_count_limit_exceeded' | 'refer_to_card_issuer' | 'refer_to_card_issuer_special_condition' | 'invalid_merchant' | 'pick_up_card' | 'error' | 'pick_up_card_special' | 'invalid_transaction' | 'invalid_amount' | 'invalid_account_number' | 'no_such_issuer' | 're_enter_transaction' | 'no_credit_account' | 'pick_up_card_lost' | 'pick_up_card_stolen' | 'closed_account' | 'insufficient_funds' | 'no_checking_account' | 'no_savings_account' | 'expired_card' | 'transaction_not_permitted_to_cardholder' | 'transaction_not_allowed_at_terminal' | 'suspected_fraud' | 'activity_amount_limit_exceeded' | 'restricted_card' | 'security_violation' | 'transaction_does_not_fulfill_anti_money_laundering_requirement' | 'blocked_first_use' | 'credit_issuer_unavailable' | 'negative_card_verification_value_results' | 'issuer_unavailable' | 'financial_institution_cannot_be_found' | 'transaction_cannot_be_completed' | 'duplicate_transaction' | 'system_malfunction' | 'additional_customer_authentication_required' | 'surcharge_amount_not_permitted' | 'decline_for_cvv2_failure' | 'stop_payment_order' | 'revocation_of_authorization_order' | 'revocation_of_all_authorizations_order';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
63
168
|
}
|
|
64
169
|
export declare namespace CardTokens {
|
|
65
170
|
export { type CardTokenCreateParams as CardTokenCreateParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-tokens.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;CAGnG;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEvD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,UAAU;QACzB;;;;;WAKG;QACH,2BAA2B,EAAE,WAAW,GAAG,eAAe,CAAC;QAE3D;;;;;WAKG;QACH,uBAAuB,EAAE,WAAW,GAAG,eAAe,CAAC;QAEvD;;;;;WAKG;QACH,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
|
|
1
|
+
{"version":3,"file":"card-tokens.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;CAGnG;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEvD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,UAAU;QACzB;;;;;WAKG;QACH,2BAA2B,EAAE,WAAW,GAAG,eAAe,CAAC;QAE3D;;;;;WAKG;QACH,uBAAuB,EAAE,WAAW,GAAG,eAAe,CAAC;QAEvD;;;;;WAKG;QACH,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;KAC9B;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;;;;WAKG;QACH,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;QAE9B;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;KAC3B;IAED,UAAiB,OAAO,CAAC;QACvB;;WAEG;QACH,UAAiB,OAAO;YACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA4EG;YACH,MAAM,CAAC,EACH,cAAc,GACd,+BAA+B,GAC/B,sBAAsB,GACtB,wCAAwC,GACxC,kBAAkB,GAClB,cAAc,GACd,OAAO,GACP,sBAAsB,GACtB,qBAAqB,GACrB,gBAAgB,GAChB,wBAAwB,GACxB,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,cAAc,GACd,yCAAyC,GACzC,qCAAqC,GACrC,iBAAiB,GACjB,gCAAgC,GAChC,iBAAiB,GACjB,oBAAoB,GACpB,gEAAgE,GAChE,mBAAmB,GACnB,2BAA2B,GAC3B,0CAA0C,GAC1C,oBAAoB,GACpB,uCAAuC,GACvC,iCAAiC,GACjC,uBAAuB,GACvB,oBAAoB,GACpB,6CAA6C,GAC7C,gCAAgC,GAChC,0BAA0B,GAC1B,oBAAoB,GACpB,mCAAmC,GACnC,wCAAwC,CAAC;SAC9C;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
|
package/src/client.ts
CHANGED
|
@@ -64,6 +64,12 @@ import {
|
|
|
64
64
|
ACHTransfers,
|
|
65
65
|
ACHTransfersPage,
|
|
66
66
|
} from './resources/ach-transfers';
|
|
67
|
+
import {
|
|
68
|
+
BeneficialOwnerListParams,
|
|
69
|
+
BeneficialOwners,
|
|
70
|
+
EntityBeneficialOwner,
|
|
71
|
+
EntityBeneficialOwnersPage,
|
|
72
|
+
} from './resources/beneficial-owners';
|
|
67
73
|
import {
|
|
68
74
|
BookkeepingAccount,
|
|
69
75
|
BookkeepingAccountBalanceParams,
|
|
@@ -1178,6 +1184,7 @@ export class Increase {
|
|
|
1178
1184
|
routingNumbers: API.RoutingNumbers = new API.RoutingNumbers(this);
|
|
1179
1185
|
externalAccounts: API.ExternalAccounts = new API.ExternalAccounts(this);
|
|
1180
1186
|
entities: API.Entities = new API.Entities(this);
|
|
1187
|
+
beneficialOwners: API.BeneficialOwners = new API.BeneficialOwners(this);
|
|
1181
1188
|
supplementalDocuments: API.SupplementalDocuments = new API.SupplementalDocuments(this);
|
|
1182
1189
|
programs: API.Programs = new API.Programs(this);
|
|
1183
1190
|
accountStatements: API.AccountStatements = new API.AccountStatements(this);
|
|
@@ -1237,6 +1244,7 @@ Increase.InboundMailItems = InboundMailItems;
|
|
|
1237
1244
|
Increase.RoutingNumbers = RoutingNumbers;
|
|
1238
1245
|
Increase.ExternalAccounts = ExternalAccounts;
|
|
1239
1246
|
Increase.Entities = Entities;
|
|
1247
|
+
Increase.BeneficialOwners = BeneficialOwners;
|
|
1240
1248
|
Increase.SupplementalDocuments = SupplementalDocuments;
|
|
1241
1249
|
Increase.Programs = Programs;
|
|
1242
1250
|
Increase.AccountStatements = AccountStatements;
|
|
@@ -1553,6 +1561,13 @@ export declare namespace Increase {
|
|
|
1553
1561
|
type EntityUpdateBeneficialOwnerAddressParams as EntityUpdateBeneficialOwnerAddressParams,
|
|
1554
1562
|
};
|
|
1555
1563
|
|
|
1564
|
+
export {
|
|
1565
|
+
BeneficialOwners as BeneficialOwners,
|
|
1566
|
+
type EntityBeneficialOwner as EntityBeneficialOwner,
|
|
1567
|
+
type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage,
|
|
1568
|
+
type BeneficialOwnerListParams as BeneficialOwnerListParams,
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1556
1571
|
export {
|
|
1557
1572
|
SupplementalDocuments as SupplementalDocuments,
|
|
1558
1573
|
type EntitySupplementalDocument as EntitySupplementalDocument,
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Page, type PageParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class BeneficialOwners extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a Beneficial Owner
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const entityBeneficialOwner =
|
|
16
|
+
* await client.beneficialOwners.retrieve(
|
|
17
|
+
* 'entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieve(entityBeneficialOwnerID: string, options?: RequestOptions): APIPromise<EntityBeneficialOwner> {
|
|
22
|
+
return this._client.get(path`/entity_beneficial_owners/${entityBeneficialOwnerID}`, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List Beneficial Owners
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* // Automatically fetches more pages as needed.
|
|
31
|
+
* for await (const entityBeneficialOwner of client.beneficialOwners.list(
|
|
32
|
+
* { entity_id: 'entity_id' },
|
|
33
|
+
* )) {
|
|
34
|
+
* // ...
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(
|
|
39
|
+
query: BeneficialOwnerListParams,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): PagePromise<EntityBeneficialOwnersPage, EntityBeneficialOwner> {
|
|
42
|
+
return this._client.getAPIList('/entity_beneficial_owners', Page<EntityBeneficialOwner>, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type EntityBeneficialOwnersPage = Page<EntityBeneficialOwner>;
|
|
50
|
+
|
|
51
|
+
export interface EntityBeneficialOwner {
|
|
52
|
+
/**
|
|
53
|
+
* The identifier of this beneficial owner.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* This person's role or title within the entity.
|
|
59
|
+
*/
|
|
60
|
+
company_title: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
64
|
+
* Beneficial Owner was created.
|
|
65
|
+
*/
|
|
66
|
+
created_at: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Personal details for the beneficial owner.
|
|
70
|
+
*/
|
|
71
|
+
individual: EntityBeneficialOwner.Individual;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Why this person is considered a beneficial owner of the entity.
|
|
75
|
+
*/
|
|
76
|
+
prongs: Array<'ownership' | 'control'>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A constant representing the object's type. For this resource it will always be
|
|
80
|
+
* `entity_beneficial_owner`.
|
|
81
|
+
*/
|
|
82
|
+
type: 'entity_beneficial_owner';
|
|
83
|
+
|
|
84
|
+
[k: string]: unknown;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace EntityBeneficialOwner {
|
|
88
|
+
/**
|
|
89
|
+
* Personal details for the beneficial owner.
|
|
90
|
+
*/
|
|
91
|
+
export interface Individual {
|
|
92
|
+
/**
|
|
93
|
+
* The person's address.
|
|
94
|
+
*/
|
|
95
|
+
address: Individual.Address;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
99
|
+
*/
|
|
100
|
+
date_of_birth: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A means of verifying the person's identity.
|
|
104
|
+
*/
|
|
105
|
+
identification: Individual.Identification;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The person's legal name.
|
|
109
|
+
*/
|
|
110
|
+
name: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace Individual {
|
|
114
|
+
/**
|
|
115
|
+
* The person's address.
|
|
116
|
+
*/
|
|
117
|
+
export interface Address {
|
|
118
|
+
/**
|
|
119
|
+
* The city, district, town, or village of the address.
|
|
120
|
+
*/
|
|
121
|
+
city: string | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
125
|
+
*/
|
|
126
|
+
country: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The first line of the address.
|
|
130
|
+
*/
|
|
131
|
+
line1: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The second line of the address.
|
|
135
|
+
*/
|
|
136
|
+
line2: string | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
140
|
+
* state, province, or region of the address.
|
|
141
|
+
*/
|
|
142
|
+
state: string | null;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The ZIP or postal code of the address.
|
|
146
|
+
*/
|
|
147
|
+
zip: string | null;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* A means of verifying the person's identity.
|
|
152
|
+
*/
|
|
153
|
+
export interface Identification {
|
|
154
|
+
/**
|
|
155
|
+
* A method that can be used to verify the individual's identity.
|
|
156
|
+
*
|
|
157
|
+
* - `social_security_number` - A social security number.
|
|
158
|
+
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
159
|
+
* identification number (ITIN).
|
|
160
|
+
* - `passport` - A passport number.
|
|
161
|
+
* - `drivers_license` - A driver's license number.
|
|
162
|
+
* - `other` - Another identifying document.
|
|
163
|
+
*/
|
|
164
|
+
method:
|
|
165
|
+
| 'social_security_number'
|
|
166
|
+
| 'individual_taxpayer_identification_number'
|
|
167
|
+
| 'passport'
|
|
168
|
+
| 'drivers_license'
|
|
169
|
+
| 'other';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
173
|
+
* individual's identity.
|
|
174
|
+
*/
|
|
175
|
+
number_last4: string;
|
|
176
|
+
|
|
177
|
+
[k: string]: unknown;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface BeneficialOwnerListParams extends PageParams {
|
|
183
|
+
/**
|
|
184
|
+
* The identifier of the Entity to list beneficial owners for. Only `corporation`
|
|
185
|
+
* entities have beneficial owners.
|
|
186
|
+
*/
|
|
187
|
+
entity_id: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
191
|
+
* that object. This value is unique across Increase and is used to ensure that a
|
|
192
|
+
* request is only processed once. Learn more about
|
|
193
|
+
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
194
|
+
*/
|
|
195
|
+
idempotency_key?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare namespace BeneficialOwners {
|
|
199
|
+
export {
|
|
200
|
+
type EntityBeneficialOwner as EntityBeneficialOwner,
|
|
201
|
+
type EntityBeneficialOwnersPage as EntityBeneficialOwnersPage,
|
|
202
|
+
type BeneficialOwnerListParams as BeneficialOwnerListParams,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BeneficialOwnersAPI from './beneficial-owners';
|
|
4
5
|
import * as SupplementalDocumentsAPI from './supplemental-documents';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
6
7
|
import { Page, type PageParams, PagePromise } from '../core/pagination';
|
|
@@ -308,7 +309,7 @@ export namespace Entity {
|
|
|
308
309
|
* The identifying details of anyone controlling or owning 25% or more of the
|
|
309
310
|
* corporation.
|
|
310
311
|
*/
|
|
311
|
-
beneficial_owners: Array<
|
|
312
|
+
beneficial_owners: Array<BeneficialOwnersAPI.EntityBeneficialOwner>;
|
|
312
313
|
|
|
313
314
|
/**
|
|
314
315
|
* An email address for the business.
|
|
@@ -374,125 +375,6 @@ export namespace Entity {
|
|
|
374
375
|
*/
|
|
375
376
|
zip: string;
|
|
376
377
|
}
|
|
377
|
-
|
|
378
|
-
export interface BeneficialOwner {
|
|
379
|
-
/**
|
|
380
|
-
* The identifier of this beneficial owner.
|
|
381
|
-
*/
|
|
382
|
-
id: string;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* This person's role or title within the entity.
|
|
386
|
-
*/
|
|
387
|
-
company_title: string | null;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Personal details for the beneficial owner.
|
|
391
|
-
*/
|
|
392
|
-
individual: BeneficialOwner.Individual;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Why this person is considered a beneficial owner of the entity.
|
|
396
|
-
*/
|
|
397
|
-
prongs: Array<'ownership' | 'control'>;
|
|
398
|
-
|
|
399
|
-
[k: string]: unknown;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export namespace BeneficialOwner {
|
|
403
|
-
/**
|
|
404
|
-
* Personal details for the beneficial owner.
|
|
405
|
-
*/
|
|
406
|
-
export interface Individual {
|
|
407
|
-
/**
|
|
408
|
-
* The person's address.
|
|
409
|
-
*/
|
|
410
|
-
address: Individual.Address;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* The person's date of birth in YYYY-MM-DD format.
|
|
414
|
-
*/
|
|
415
|
-
date_of_birth: string;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* A means of verifying the person's identity.
|
|
419
|
-
*/
|
|
420
|
-
identification: Individual.Identification;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* The person's legal name.
|
|
424
|
-
*/
|
|
425
|
-
name: string;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export namespace Individual {
|
|
429
|
-
/**
|
|
430
|
-
* The person's address.
|
|
431
|
-
*/
|
|
432
|
-
export interface Address {
|
|
433
|
-
/**
|
|
434
|
-
* The city, district, town, or village of the address.
|
|
435
|
-
*/
|
|
436
|
-
city: string | null;
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
440
|
-
*/
|
|
441
|
-
country: string;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* The first line of the address.
|
|
445
|
-
*/
|
|
446
|
-
line1: string;
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* The second line of the address.
|
|
450
|
-
*/
|
|
451
|
-
line2: string | null;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
455
|
-
* state, province, or region of the address.
|
|
456
|
-
*/
|
|
457
|
-
state: string | null;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* The ZIP or postal code of the address.
|
|
461
|
-
*/
|
|
462
|
-
zip: string | null;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* A means of verifying the person's identity.
|
|
467
|
-
*/
|
|
468
|
-
export interface Identification {
|
|
469
|
-
/**
|
|
470
|
-
* A method that can be used to verify the individual's identity.
|
|
471
|
-
*
|
|
472
|
-
* - `social_security_number` - A social security number.
|
|
473
|
-
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
474
|
-
* identification number (ITIN).
|
|
475
|
-
* - `passport` - A passport number.
|
|
476
|
-
* - `drivers_license` - A driver's license number.
|
|
477
|
-
* - `other` - Another identifying document.
|
|
478
|
-
*/
|
|
479
|
-
method:
|
|
480
|
-
| 'social_security_number'
|
|
481
|
-
| 'individual_taxpayer_identification_number'
|
|
482
|
-
| 'passport'
|
|
483
|
-
| 'drivers_license'
|
|
484
|
-
| 'other';
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* The last 4 digits of the identification number that can be used to verify the
|
|
488
|
-
* individual's identity.
|
|
489
|
-
*/
|
|
490
|
-
number_last4: string;
|
|
491
|
-
|
|
492
|
-
[k: string]: unknown;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
378
|
}
|
|
497
379
|
|
|
498
380
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -45,6 +45,12 @@ export {
|
|
|
45
45
|
type AccountBalanceParams,
|
|
46
46
|
type AccountsPage,
|
|
47
47
|
} from './accounts';
|
|
48
|
+
export {
|
|
49
|
+
BeneficialOwners,
|
|
50
|
+
type EntityBeneficialOwner,
|
|
51
|
+
type BeneficialOwnerListParams,
|
|
52
|
+
type EntityBeneficialOwnersPage,
|
|
53
|
+
} from './beneficial-owners';
|
|
48
54
|
export {
|
|
49
55
|
BookkeepingAccounts,
|
|
50
56
|
type BookkeepingAccount,
|