increase 0.7.1 → 0.8.1
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 +71 -0
- package/README.md +8 -4
- package/_shims/ReadableStream.d.ts +38 -0
- package/_shims/ReadableStream.js +5 -0
- package/_shims/ReadableStream.mjs +7 -0
- package/_shims/ReadableStream.node.d.ts +6 -0
- package/_shims/ReadableStream.node.d.ts.map +1 -0
- package/_shims/ReadableStream.node.js +14 -0
- package/_shims/ReadableStream.node.js.map +1 -0
- package/_shims/ReadableStream.node.mjs +3 -0
- package/_shims/ReadableStream.node.mjs.map +1 -0
- package/_shims/fetch.js +1 -1
- package/core.d.ts +11 -10
- package/core.d.ts.map +1 -1
- package/core.js +123 -60
- package/core.js.map +1 -1
- package/core.mjs +113 -20
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.js +12 -3
- package/error.js.map +1 -1
- package/error.mjs +12 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +9 -5
- package/index.d.ts +9 -5
- package/index.d.ts.map +1 -1
- package/index.js +15 -11
- package/index.js.map +1 -1
- package/index.mjs +15 -11
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/accounts.d.ts.map +1 -1
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/balance-lookups.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-profiles.d.ts +17 -4
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +270 -0
- package/resources/card-purchase-supplements.d.ts.map +1 -0
- package/resources/card-purchase-supplements.js +28 -0
- package/resources/card-purchase-supplements.js.map +1 -0
- package/resources/card-purchase-supplements.mjs +21 -0
- package/resources/card-purchase-supplements.mjs.map +1 -0
- package/resources/cards.d.ts.map +1 -1
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-transfers.d.ts +184 -98
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +9 -7
- 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/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +219 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -0
- package/resources/entities/beneficial-owners.js +18 -0
- package/resources/entities/beneficial-owners.js.map +1 -0
- package/resources/entities/beneficial-owners.mjs +12 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -0
- package/resources/entities/entities.d.ts +4 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +3 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +3 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +1 -0
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js +8 -0
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs +1 -0
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/exports.d.ts.map +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/limits.d.ts +2 -2
- package/resources/limits.d.ts.map +1 -1
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/pending-transactions.d.ts +11 -7
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/programs.d.ts.map +1 -1
- package/resources/real-time-decisions.d.ts +49 -7
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/shared.d.ts +2 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +952 -26
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.d.ts.map +1 -1
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/cards.d.ts +20 -14
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts +4 -0
- package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.ts +951 -19
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/programs.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +952 -26
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +943 -19
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +943 -20
- 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-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-transfers.d.ts.map +1 -1
- package/src/_shims/ReadableStream.d.ts +38 -0
- package/src/_shims/ReadableStream.js +5 -0
- package/src/_shims/ReadableStream.mjs +7 -0
- package/src/_shims/ReadableStream.node.ts +6 -0
- package/src/_shims/fetch.deno.ts +23 -0
- package/src/_shims/fetch.js +1 -1
- package/src/_shims/formdata.deno.ts +16 -0
- package/src/core.ts +130 -21
- package/src/error.ts +11 -1
- package/src/index.ts +23 -16
- package/src/resources/account-numbers.ts +1 -1
- package/src/resources/account-statements.ts +1 -1
- package/src/resources/account-transfers.ts +1 -1
- package/src/resources/accounts.ts +1 -1
- package/src/resources/ach-prenotifications.ts +1 -1
- package/src/resources/ach-transfers.ts +1 -1
- package/src/resources/balance-lookups.ts +1 -1
- package/src/resources/bookkeeping-accounts.ts +1 -1
- package/src/resources/bookkeeping-entries.ts +1 -1
- package/src/resources/bookkeeping-entry-sets.ts +1 -1
- package/src/resources/card-disputes.ts +1 -1
- package/src/resources/card-profiles.ts +19 -5
- package/src/resources/card-purchase-supplements.ts +331 -0
- package/src/resources/cards.ts +1 -1
- package/src/resources/check-deposits.ts +1 -1
- package/src/resources/check-transfers.ts +208 -113
- package/src/resources/declined-transactions.ts +11 -9
- package/src/resources/digital-wallet-tokens.ts +1 -1
- package/src/resources/documents.ts +1 -1
- package/src/resources/entities/beneficial-owners.ts +255 -0
- package/src/resources/entities/entities.ts +6 -1
- package/src/resources/entities/index.ts +1 -0
- package/src/resources/entities/supplemental-documents.ts +1 -1
- package/src/resources/event-subscriptions.ts +1 -1
- package/src/resources/events.ts +1 -1
- package/src/resources/exports.ts +1 -1
- package/src/resources/external-accounts.ts +1 -1
- package/src/resources/files.ts +1 -1
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfer-returns.ts +1 -1
- package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/limits.ts +3 -3
- package/src/resources/oauth-connections.ts +1 -1
- package/src/resources/pending-transactions.ts +14 -9
- package/src/resources/programs.ts +1 -1
- package/src/resources/real-time-decisions.ts +57 -9
- package/src/resources/real-time-payments-transfers.ts +1 -1
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/shared.ts +2 -0
- package/src/resources/simulations/account-statements.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +1091 -30
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +24 -17
- package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
- package/src/resources/simulations/documents.ts +1 -1
- package/src/resources/simulations/inbound-funds-holds.ts +6 -1
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +1091 -22
- package/src/resources/simulations/programs.ts +1 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +1091 -30
- package/src/resources/simulations/simulations.ts +1 -1
- package/src/resources/simulations/wire-transfers.ts +1081 -22
- package/src/resources/transactions.ts +1081 -23
- package/src/resources/wire-drawdown-requests.ts +1 -1
- package/src/resources/wire-transfers.ts +1 -1
- package/src/uploads.ts +7 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +5 -4
- package/uploads.d.ts.map +1 -1
- package/uploads.js +2 -2
- package/uploads.js.map +1 -1
- package/uploads.mjs +2 -2
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
import { APIResource } from '../../resource';
|
|
5
|
+
import * as Entities from './index';
|
|
6
|
+
import * as API from './index';
|
|
7
|
+
|
|
8
|
+
export class BeneficialOwners extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a beneficial owner for a corporate Entity
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
entityId: string,
|
|
14
|
+
body: BeneficialOwnerCreateParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Promise<Core.APIResponse<Entities.Entity>> {
|
|
17
|
+
return this.post(`/entities/${entityId}/beneficial_owners`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface BeneficialOwnerCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
24
|
+
* corporation.
|
|
25
|
+
*/
|
|
26
|
+
beneficial_owner: BeneficialOwnerCreateParams.BeneficialOwner;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace BeneficialOwnerCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
32
|
+
* corporation.
|
|
33
|
+
*/
|
|
34
|
+
export interface BeneficialOwner {
|
|
35
|
+
/**
|
|
36
|
+
* Personal details for the beneficial owner.
|
|
37
|
+
*/
|
|
38
|
+
individual: BeneficialOwner.Individual;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Why this person is considered a beneficial owner of the entity.
|
|
42
|
+
*
|
|
43
|
+
* - `ownership` - A person with 25% or greater direct or indirect ownership of the
|
|
44
|
+
* entity.
|
|
45
|
+
* - `control` - A person who manages, directs, or has significant control of the
|
|
46
|
+
* entity.
|
|
47
|
+
*/
|
|
48
|
+
prong: 'ownership' | 'control';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* This person's role or title within the entity.
|
|
52
|
+
*/
|
|
53
|
+
company_title?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace BeneficialOwner {
|
|
57
|
+
/**
|
|
58
|
+
* Personal details for the beneficial owner.
|
|
59
|
+
*/
|
|
60
|
+
export interface Individual {
|
|
61
|
+
/**
|
|
62
|
+
* The individual's address.
|
|
63
|
+
*/
|
|
64
|
+
address: Individual.Address;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
68
|
+
*/
|
|
69
|
+
date_of_birth: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A means of verifying the person's identity.
|
|
73
|
+
*/
|
|
74
|
+
identification: Individual.Identification;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The person's legal name.
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The identification method for an individual can only be a passport, driver's
|
|
83
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
84
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
85
|
+
* Number).
|
|
86
|
+
*/
|
|
87
|
+
confirmed_no_us_tax_id?: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace Individual {
|
|
91
|
+
/**
|
|
92
|
+
* The individual's address.
|
|
93
|
+
*/
|
|
94
|
+
export interface Address {
|
|
95
|
+
/**
|
|
96
|
+
* The city of the address.
|
|
97
|
+
*/
|
|
98
|
+
city: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The first line of the address. This is usually the street number and street.
|
|
102
|
+
*/
|
|
103
|
+
line1: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
107
|
+
* the address.
|
|
108
|
+
*/
|
|
109
|
+
state: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The ZIP code of the address.
|
|
113
|
+
*/
|
|
114
|
+
zip: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The second line of the address. This might be the floor or room number.
|
|
118
|
+
*/
|
|
119
|
+
line2?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A means of verifying the person's identity.
|
|
124
|
+
*/
|
|
125
|
+
export interface Identification {
|
|
126
|
+
/**
|
|
127
|
+
* A method that can be used to verify the individual's identity.
|
|
128
|
+
*
|
|
129
|
+
* - `social_security_number` - A social security number.
|
|
130
|
+
* - `individual_taxpayer_identification_number` - An individual taxpayer
|
|
131
|
+
* identification number (ITIN).
|
|
132
|
+
* - `passport` - A passport number.
|
|
133
|
+
* - `drivers_license` - A driver's license number.
|
|
134
|
+
* - `other` - Another identifying document.
|
|
135
|
+
*/
|
|
136
|
+
method:
|
|
137
|
+
| 'social_security_number'
|
|
138
|
+
| 'individual_taxpayer_identification_number'
|
|
139
|
+
| 'passport'
|
|
140
|
+
| 'drivers_license'
|
|
141
|
+
| 'other';
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* An identification number that can be used to verify the individual's identity,
|
|
145
|
+
* such as a social security number.
|
|
146
|
+
*/
|
|
147
|
+
number: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Information about the United States driver's license used for identification.
|
|
151
|
+
* Required if `method` is equal to `drivers_license`.
|
|
152
|
+
*/
|
|
153
|
+
drivers_license?: Identification.DriversLicense;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Information about the identification document provided. Required if `method` is
|
|
157
|
+
* equal to `other`.
|
|
158
|
+
*/
|
|
159
|
+
other?: Identification.Other;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Information about the passport used for identification. Required if `method` is
|
|
163
|
+
* equal to `passport`.
|
|
164
|
+
*/
|
|
165
|
+
passport?: Identification.Passport;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace Identification {
|
|
169
|
+
/**
|
|
170
|
+
* Information about the United States driver's license used for identification.
|
|
171
|
+
* Required if `method` is equal to `drivers_license`.
|
|
172
|
+
*/
|
|
173
|
+
export interface DriversLicense {
|
|
174
|
+
/**
|
|
175
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
176
|
+
*/
|
|
177
|
+
expiration_date: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The identifier of the File containing the front of the driver's license.
|
|
181
|
+
*/
|
|
182
|
+
file_id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The state that issued the provided driver's license.
|
|
186
|
+
*/
|
|
187
|
+
state: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The identifier of the File containing the back of the driver's license.
|
|
191
|
+
*/
|
|
192
|
+
back_file_id?: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Information about the identification document provided. Required if `method` is
|
|
197
|
+
* equal to `other`.
|
|
198
|
+
*/
|
|
199
|
+
export interface Other {
|
|
200
|
+
/**
|
|
201
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
202
|
+
* document.
|
|
203
|
+
*/
|
|
204
|
+
country: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A description of the document submitted.
|
|
208
|
+
*/
|
|
209
|
+
description: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The identifier of the File containing the front of the document.
|
|
213
|
+
*/
|
|
214
|
+
file_id: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The identifier of the File containing the back of the document. Not every
|
|
218
|
+
* document has a reverse side.
|
|
219
|
+
*/
|
|
220
|
+
back_file_id?: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
224
|
+
*/
|
|
225
|
+
expiration_date?: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Information about the passport used for identification. Required if `method` is
|
|
230
|
+
* equal to `passport`.
|
|
231
|
+
*/
|
|
232
|
+
export interface Passport {
|
|
233
|
+
/**
|
|
234
|
+
* The country that issued the passport.
|
|
235
|
+
*/
|
|
236
|
+
country: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
240
|
+
*/
|
|
241
|
+
expiration_date: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The identifier of the File containing the passport.
|
|
245
|
+
*/
|
|
246
|
+
file_id: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export namespace BeneficialOwners {
|
|
254
|
+
export import BeneficialOwnerCreateParams = API.BeneficialOwnerCreateParams;
|
|
255
|
+
}
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
import * as Core from '../../core';
|
|
4
4
|
import { APIResource } from '../../resource';
|
|
5
5
|
import { isRequestOptions } from '../../core';
|
|
6
|
+
import { BeneficialOwners } from './beneficial-owners';
|
|
6
7
|
import { SupplementalDocuments } from './supplemental-documents';
|
|
7
|
-
import * as API from '
|
|
8
|
+
import * as API from './index';
|
|
8
9
|
import { Page, PageParams } from '../../pagination';
|
|
9
10
|
|
|
10
11
|
export class Entities extends APIResource {
|
|
12
|
+
beneficialOwners: BeneficialOwners = new BeneficialOwners(this.client);
|
|
11
13
|
supplementalDocuments: SupplementalDocuments = new SupplementalDocuments(this.client);
|
|
12
14
|
|
|
13
15
|
/**
|
|
@@ -2072,6 +2074,9 @@ export namespace Entities {
|
|
|
2072
2074
|
export import EntityCreateParams = API.EntityCreateParams;
|
|
2073
2075
|
export import EntityListParams = API.EntityListParams;
|
|
2074
2076
|
|
|
2077
|
+
export import BeneficialOwners = API.BeneficialOwners;
|
|
2078
|
+
export import BeneficialOwnerCreateParams = API.BeneficialOwnerCreateParams;
|
|
2079
|
+
|
|
2075
2080
|
export import SupplementalDocuments = API.SupplementalDocuments;
|
|
2076
2081
|
export import SupplementalDocument = API.SupplementalDocument;
|
|
2077
2082
|
export import SupplementalDocumentsPage = API.SupplementalDocumentsPage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
+
export { BeneficialOwnerCreateParams, BeneficialOwners } from './beneficial-owners';
|
|
3
4
|
export { Entity, EntityCreateParams, EntityListParams, EntitiesPage, Entities } from './entities';
|
|
4
5
|
export {
|
|
5
6
|
SupplementalDocument,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../../core';
|
|
4
4
|
import { APIResource } from '../../resource';
|
|
5
5
|
import * as Entities from './index';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../../pagination';
|
|
8
8
|
|
|
9
9
|
export class SupplementalDocuments extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class EventSubscriptions extends APIResource {
|
package/src/resources/events.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Events extends APIResource {
|
package/src/resources/exports.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Exports extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class ExternalAccounts extends APIResource {
|
package/src/resources/files.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { type Uploadable, multipartFormRequestOptions } from '../core';
|
|
8
8
|
import { Page, PageParams } from '../pagination';
|
|
9
9
|
|
package/src/resources/groups.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class InboundACHTransferReturns extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class InboundWireDrawdownRequests extends APIResource {
|
package/src/resources/index.ts
CHANGED
|
@@ -86,6 +86,12 @@ export {
|
|
|
86
86
|
CardProfilesPage,
|
|
87
87
|
CardProfiles,
|
|
88
88
|
} from './card-profiles';
|
|
89
|
+
export {
|
|
90
|
+
CardPurchaseSupplement,
|
|
91
|
+
CardPurchaseSupplementListParams,
|
|
92
|
+
CardPurchaseSupplementsPage,
|
|
93
|
+
CardPurchaseSupplements,
|
|
94
|
+
} from './card-purchase-supplements';
|
|
89
95
|
export {
|
|
90
96
|
CheckDeposit,
|
|
91
97
|
CheckDepositCreateParams,
|
package/src/resources/limits.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Limits extends APIResource {
|
|
@@ -134,8 +134,8 @@ export interface LimitCreateParams {
|
|
|
134
134
|
metric: 'count' | 'volume';
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* The identifier of the Account
|
|
138
|
-
* with.
|
|
137
|
+
* The identifier of the Account, Account Number, or Card you wish to associate the
|
|
138
|
+
* limit with.
|
|
139
139
|
*/
|
|
140
140
|
model_id: string;
|
|
141
141
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class OauthConnections extends APIResource {
|
|
@@ -4,7 +4,7 @@ import * as Core from '../core';
|
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
6
|
import * as Shared from './shared';
|
|
7
|
-
import * as API from '
|
|
7
|
+
import * as API from './index';
|
|
8
8
|
import { Page, PageParams } from '../pagination';
|
|
9
9
|
|
|
10
10
|
export class PendingTransactions extends APIResource {
|
|
@@ -348,13 +348,6 @@ export namespace PendingTransaction {
|
|
|
348
348
|
*/
|
|
349
349
|
merchant_descriptor: string;
|
|
350
350
|
|
|
351
|
-
/**
|
|
352
|
-
* The payment network used to process this card authorization
|
|
353
|
-
*
|
|
354
|
-
* - `visa` - Visa
|
|
355
|
-
*/
|
|
356
|
-
network: 'visa';
|
|
357
|
-
|
|
358
351
|
/**
|
|
359
352
|
* Fields specific to the `network`
|
|
360
353
|
*/
|
|
@@ -389,10 +382,17 @@ export namespace PendingTransaction {
|
|
|
389
382
|
* Fields specific to the `network`
|
|
390
383
|
*/
|
|
391
384
|
export interface NetworkDetails {
|
|
385
|
+
/**
|
|
386
|
+
* The payment network used to process this card authorization
|
|
387
|
+
*
|
|
388
|
+
* - `visa` - Visa
|
|
389
|
+
*/
|
|
390
|
+
category: 'visa';
|
|
391
|
+
|
|
392
392
|
/**
|
|
393
393
|
* Fields specific to the `visa` network
|
|
394
394
|
*/
|
|
395
|
-
visa: NetworkDetails.Visa;
|
|
395
|
+
visa: NetworkDetails.Visa | null;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
export namespace NetworkDetails {
|
|
@@ -532,6 +532,11 @@ export namespace PendingTransaction {
|
|
|
532
532
|
* and only if `category` is equal to `inbound_funds_hold`.
|
|
533
533
|
*/
|
|
534
534
|
export interface InboundFundsHold {
|
|
535
|
+
/**
|
|
536
|
+
* The Inbound Funds Hold identifier.
|
|
537
|
+
*/
|
|
538
|
+
id: string;
|
|
539
|
+
|
|
535
540
|
/**
|
|
536
541
|
* The held amount in the minor unit of the account's currency. For dollars, for
|
|
537
542
|
* example, this is cents.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Programs extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import * as Shared from './shared';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
|
|
8
8
|
export class RealTimeDecisions extends APIResource {
|
|
9
9
|
/**
|
|
@@ -147,13 +147,6 @@ export namespace RealTimeDecision {
|
|
|
147
147
|
*/
|
|
148
148
|
merchant_descriptor: string;
|
|
149
149
|
|
|
150
|
-
/**
|
|
151
|
-
* The payment network used to process this card authorization
|
|
152
|
-
*
|
|
153
|
-
* - `visa` - Visa
|
|
154
|
-
*/
|
|
155
|
-
network: 'visa';
|
|
156
|
-
|
|
157
150
|
/**
|
|
158
151
|
* Fields specific to the `network`
|
|
159
152
|
*/
|
|
@@ -178,6 +171,11 @@ export namespace RealTimeDecision {
|
|
|
178
171
|
*/
|
|
179
172
|
presentment_currency: string;
|
|
180
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Fields specific to the type of request, such as an incremental authorization.
|
|
176
|
+
*/
|
|
177
|
+
request_details: CardAuthorization.RequestDetails;
|
|
178
|
+
|
|
181
179
|
/**
|
|
182
180
|
* The amount of the attempted authorization in the currency it will be settled in.
|
|
183
181
|
* This currency is the same as that of the Account the card belongs to.
|
|
@@ -196,10 +194,17 @@ export namespace RealTimeDecision {
|
|
|
196
194
|
* Fields specific to the `network`
|
|
197
195
|
*/
|
|
198
196
|
export interface NetworkDetails {
|
|
197
|
+
/**
|
|
198
|
+
* The payment network used to process this card authorization
|
|
199
|
+
*
|
|
200
|
+
* - `visa` - Visa
|
|
201
|
+
*/
|
|
202
|
+
category: 'visa';
|
|
203
|
+
|
|
199
204
|
/**
|
|
200
205
|
* Fields specific to the `visa` network
|
|
201
206
|
*/
|
|
202
|
-
visa: NetworkDetails.Visa;
|
|
207
|
+
visa: NetworkDetails.Visa | null;
|
|
203
208
|
}
|
|
204
209
|
|
|
205
210
|
export namespace NetworkDetails {
|
|
@@ -260,6 +265,49 @@ export namespace RealTimeDecision {
|
|
|
260
265
|
point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
|
|
261
266
|
}
|
|
262
267
|
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Fields specific to the type of request, such as an incremental authorization.
|
|
271
|
+
*/
|
|
272
|
+
export interface RequestDetails {
|
|
273
|
+
/**
|
|
274
|
+
* The type of this request (e.g., an initial authorization or an incremental
|
|
275
|
+
* authorization.)
|
|
276
|
+
*
|
|
277
|
+
* - `initial_authorization` - A regular, standalone authorization.
|
|
278
|
+
* - `incremental_authorization` - An incremental request to increase the amount of
|
|
279
|
+
* an existing authorization.
|
|
280
|
+
*/
|
|
281
|
+
category: 'initial_authorization' | 'incremental_authorization';
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Fields specific to the categorty `incremental_authorization`.
|
|
285
|
+
*/
|
|
286
|
+
incremental_authorization: RequestDetails.IncrementalAuthorization | null;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Fields specific to the category `initial_authorization`.
|
|
290
|
+
*/
|
|
291
|
+
initial_authorization: unknown | null;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export namespace RequestDetails {
|
|
295
|
+
/**
|
|
296
|
+
* Fields specific to the categorty `incremental_authorization`.
|
|
297
|
+
*/
|
|
298
|
+
export interface IncrementalAuthorization {
|
|
299
|
+
/**
|
|
300
|
+
* The card payment for this authorization and increment.
|
|
301
|
+
*/
|
|
302
|
+
card_payment_id: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The identifier of the card authorization this request is attempting to
|
|
306
|
+
* increment.
|
|
307
|
+
*/
|
|
308
|
+
original_card_authorization_id: string;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
263
311
|
}
|
|
264
312
|
|
|
265
313
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class RealTimePaymentsTransfers extends APIResource {
|
package/src/resources/shared.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* The method used to enter the cardholder's primary account number and card
|
|
5
5
|
* expiration date
|
|
6
6
|
*
|
|
7
|
+
* - `unknown` - Unknown
|
|
7
8
|
* - `manual` - Manual key entry
|
|
8
9
|
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
9
10
|
* value
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
* verification value
|
|
19
20
|
*/
|
|
20
21
|
export type PointOfServiceEntryMode =
|
|
22
|
+
| 'unknown'
|
|
21
23
|
| 'manual'
|
|
22
24
|
| 'magnetic_stripe_no_cvv'
|
|
23
25
|
| 'optical_code'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../../core';
|
|
4
4
|
import { APIResource } from '../../resource';
|
|
5
5
|
import * as AccountStatements_ from '../account-statements';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
|
|
8
8
|
export class AccountStatements extends APIResource {
|
|
9
9
|
/**
|