@augustusbank/typescript-sdk 0.27.0 → 0.28.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 +7 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +186 -114
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +186 -114
- package/resources/accounts.d.ts.map +1 -1
- package/resources/counterparties.d.mts +243 -97
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +243 -97
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +3 -2
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +3 -2
- package/resources/counterparties.mjs.map +1 -1
- package/resources/payouts.d.mts +1 -1
- package/resources/payouts.d.ts +1 -1
- package/resources/payouts.js +1 -1
- package/resources/payouts.mjs +1 -1
- package/resources/simulations/account-programs.d.mts +37 -22
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +37 -22
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +3 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +3 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +37 -22
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +37 -22
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +4 -3
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +4 -3
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/deposits.d.mts +41 -20
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +41 -20
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/deposits.js +1 -1
- package/resources/simulations/deposits.mjs +1 -1
- package/resources/transactions.d.mts +62 -38
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +62 -38
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +258 -114
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +258 -114
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/accounts.ts +216 -126
- package/src/resources/counterparties.ts +286 -107
- package/src/resources/payouts.ts +1 -1
- package/src/resources/simulations/account-programs.ts +42 -25
- package/src/resources/simulations/accounts.ts +42 -25
- package/src/resources/simulations/deposits.ts +46 -22
- package/src/resources/transactions.ts +72 -42
- package/src/resources/webhooks.ts +306 -126
- 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
package/src/resources/payouts.ts
CHANGED
|
@@ -62,8 +62,9 @@ export class AccountPrograms extends APIResource {
|
|
|
62
62
|
* {
|
|
63
63
|
* destination: {
|
|
64
64
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* account_number: '000123456789',
|
|
66
|
+
* routing_number: '110000000',
|
|
67
|
+
* type: 'aba',
|
|
67
68
|
* },
|
|
68
69
|
* },
|
|
69
70
|
* );
|
|
@@ -185,7 +186,7 @@ export interface AccountProgramCreateParams {
|
|
|
185
186
|
/**
|
|
186
187
|
* Account program type.
|
|
187
188
|
*/
|
|
188
|
-
type: 'fbo_program' | 'fbo_sponsored';
|
|
189
|
+
type: 'fbo_program' | 'fbo_sponsored' | 'operating' | 'crypto';
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
export interface AccountProgramCloseParams {
|
|
@@ -201,76 +202,92 @@ export interface AccountProgramDrainParams {
|
|
|
201
202
|
* under the program is drained.
|
|
202
203
|
*/
|
|
203
204
|
destination:
|
|
205
|
+
| AccountProgramDrainParams.AbaFinancialAddressRequest
|
|
204
206
|
| AccountProgramDrainParams.IbanFinancialAddressRequest
|
|
205
|
-
| AccountProgramDrainParams.SortCodeFinancialAddressRequest
|
|
206
|
-
| AccountProgramDrainParams.AbaFinancialAddressRequest;
|
|
207
|
+
| AccountProgramDrainParams.SortCodeFinancialAddressRequest;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
export namespace AccountProgramDrainParams {
|
|
210
|
-
export interface
|
|
211
|
+
export interface AbaFinancialAddressRequest {
|
|
211
212
|
/**
|
|
212
213
|
* Name of the account holder.
|
|
213
214
|
*/
|
|
214
215
|
account_holder_name: string;
|
|
215
216
|
|
|
216
217
|
/**
|
|
217
|
-
*
|
|
218
|
+
* Bank account number.
|
|
218
219
|
*/
|
|
219
|
-
|
|
220
|
+
account_number: string;
|
|
220
221
|
|
|
221
222
|
/**
|
|
222
|
-
*
|
|
223
|
+
* ABA routing number (9 digits).
|
|
223
224
|
*/
|
|
224
|
-
|
|
225
|
+
routing_number: string;
|
|
225
226
|
|
|
226
227
|
/**
|
|
227
|
-
*
|
|
228
|
+
* Discriminator for ABA wire financial address.
|
|
228
229
|
*/
|
|
229
|
-
|
|
230
|
+
type: 'aba';
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
234
|
+
* null if not provided. Some destination countries require it (for example the
|
|
235
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
236
|
+
* code. A payment to an account without one is sent as checking.
|
|
237
|
+
*/
|
|
238
|
+
account_type?: 'checking' | 'savings' | null;
|
|
230
239
|
}
|
|
231
240
|
|
|
232
|
-
export interface
|
|
241
|
+
export interface IbanFinancialAddressRequest {
|
|
233
242
|
/**
|
|
234
243
|
* Name of the account holder.
|
|
235
244
|
*/
|
|
236
245
|
account_holder_name: string;
|
|
237
246
|
|
|
238
247
|
/**
|
|
239
|
-
*
|
|
248
|
+
* International Bank Account Number.
|
|
240
249
|
*/
|
|
241
|
-
|
|
250
|
+
iban: string;
|
|
242
251
|
|
|
243
252
|
/**
|
|
244
|
-
*
|
|
253
|
+
* Discriminator for IBAN financial address.
|
|
245
254
|
*/
|
|
246
|
-
|
|
255
|
+
type: 'iban';
|
|
247
256
|
|
|
248
257
|
/**
|
|
249
|
-
*
|
|
258
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
259
|
+
* null if not provided. Some destination countries require it (for example the
|
|
260
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
261
|
+
* code. A payment to an account without one is sent as checking.
|
|
250
262
|
*/
|
|
251
|
-
|
|
263
|
+
account_type?: 'checking' | 'savings' | null;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
267
|
+
*/
|
|
268
|
+
bic?: string | null;
|
|
252
269
|
}
|
|
253
270
|
|
|
254
|
-
export interface
|
|
271
|
+
export interface SortCodeFinancialAddressRequest {
|
|
255
272
|
/**
|
|
256
273
|
* Name of the account holder.
|
|
257
274
|
*/
|
|
258
275
|
account_holder_name: string;
|
|
259
276
|
|
|
260
277
|
/**
|
|
261
|
-
*
|
|
278
|
+
* UK account number (8 digits).
|
|
262
279
|
*/
|
|
263
280
|
account_number: string;
|
|
264
281
|
|
|
265
282
|
/**
|
|
266
|
-
*
|
|
283
|
+
* UK sort code (6 digits).
|
|
267
284
|
*/
|
|
268
|
-
|
|
285
|
+
sort_code: string;
|
|
269
286
|
|
|
270
287
|
/**
|
|
271
|
-
* Discriminator for
|
|
288
|
+
* Discriminator for UK sort code financial address.
|
|
272
289
|
*/
|
|
273
|
-
type: '
|
|
290
|
+
type: 'sort_code';
|
|
274
291
|
}
|
|
275
292
|
}
|
|
276
293
|
|
|
@@ -13,7 +13,7 @@ export class Accounts extends APIResource {
|
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
15
|
* const account = await client.simulations.accounts.create({
|
|
16
|
-
* label: 'Operating
|
|
16
|
+
* label: 'Operating USD account',
|
|
17
17
|
* type: 'operating',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
@@ -51,8 +51,9 @@ export class Accounts extends APIResource {
|
|
|
51
51
|
* {
|
|
52
52
|
* destination: {
|
|
53
53
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* account_number: '000123456789',
|
|
55
|
+
* routing_number: '110000000',
|
|
56
|
+
* type: 'aba',
|
|
56
57
|
* },
|
|
57
58
|
* },
|
|
58
59
|
* );
|
|
@@ -184,76 +185,92 @@ export interface AccountDrainParams {
|
|
|
184
185
|
* drained.
|
|
185
186
|
*/
|
|
186
187
|
destination:
|
|
188
|
+
| AccountDrainParams.AbaFinancialAddressRequest
|
|
187
189
|
| AccountDrainParams.IbanFinancialAddressRequest
|
|
188
|
-
| AccountDrainParams.SortCodeFinancialAddressRequest
|
|
189
|
-
| AccountDrainParams.AbaFinancialAddressRequest;
|
|
190
|
+
| AccountDrainParams.SortCodeFinancialAddressRequest;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
export namespace AccountDrainParams {
|
|
193
|
-
export interface
|
|
194
|
+
export interface AbaFinancialAddressRequest {
|
|
194
195
|
/**
|
|
195
196
|
* Name of the account holder.
|
|
196
197
|
*/
|
|
197
198
|
account_holder_name: string;
|
|
198
199
|
|
|
199
200
|
/**
|
|
200
|
-
*
|
|
201
|
+
* Bank account number.
|
|
201
202
|
*/
|
|
202
|
-
|
|
203
|
+
account_number: string;
|
|
203
204
|
|
|
204
205
|
/**
|
|
205
|
-
*
|
|
206
|
+
* ABA routing number (9 digits).
|
|
206
207
|
*/
|
|
207
|
-
|
|
208
|
+
routing_number: string;
|
|
208
209
|
|
|
209
210
|
/**
|
|
210
|
-
*
|
|
211
|
+
* Discriminator for ABA wire financial address.
|
|
211
212
|
*/
|
|
212
|
-
|
|
213
|
+
type: 'aba';
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
217
|
+
* null if not provided. Some destination countries require it (for example the
|
|
218
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
219
|
+
* code. A payment to an account without one is sent as checking.
|
|
220
|
+
*/
|
|
221
|
+
account_type?: 'checking' | 'savings' | null;
|
|
213
222
|
}
|
|
214
223
|
|
|
215
|
-
export interface
|
|
224
|
+
export interface IbanFinancialAddressRequest {
|
|
216
225
|
/**
|
|
217
226
|
* Name of the account holder.
|
|
218
227
|
*/
|
|
219
228
|
account_holder_name: string;
|
|
220
229
|
|
|
221
230
|
/**
|
|
222
|
-
*
|
|
231
|
+
* International Bank Account Number.
|
|
223
232
|
*/
|
|
224
|
-
|
|
233
|
+
iban: string;
|
|
225
234
|
|
|
226
235
|
/**
|
|
227
|
-
*
|
|
236
|
+
* Discriminator for IBAN financial address.
|
|
228
237
|
*/
|
|
229
|
-
|
|
238
|
+
type: 'iban';
|
|
230
239
|
|
|
231
240
|
/**
|
|
232
|
-
*
|
|
241
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
242
|
+
* null if not provided. Some destination countries require it (for example the
|
|
243
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
244
|
+
* code. A payment to an account without one is sent as checking.
|
|
233
245
|
*/
|
|
234
|
-
|
|
246
|
+
account_type?: 'checking' | 'savings' | null;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
250
|
+
*/
|
|
251
|
+
bic?: string | null;
|
|
235
252
|
}
|
|
236
253
|
|
|
237
|
-
export interface
|
|
254
|
+
export interface SortCodeFinancialAddressRequest {
|
|
238
255
|
/**
|
|
239
256
|
* Name of the account holder.
|
|
240
257
|
*/
|
|
241
258
|
account_holder_name: string;
|
|
242
259
|
|
|
243
260
|
/**
|
|
244
|
-
*
|
|
261
|
+
* UK account number (8 digits).
|
|
245
262
|
*/
|
|
246
263
|
account_number: string;
|
|
247
264
|
|
|
248
265
|
/**
|
|
249
|
-
*
|
|
266
|
+
* UK sort code (6 digits).
|
|
250
267
|
*/
|
|
251
|
-
|
|
268
|
+
sort_code: string;
|
|
252
269
|
|
|
253
270
|
/**
|
|
254
|
-
* Discriminator for
|
|
271
|
+
* Discriminator for UK sort code financial address.
|
|
255
272
|
*/
|
|
256
|
-
type: '
|
|
273
|
+
type: 'sort_code';
|
|
257
274
|
}
|
|
258
275
|
}
|
|
259
276
|
|
|
@@ -14,7 +14,7 @@ export class Deposits extends APIResource {
|
|
|
14
14
|
* const deposit = await client.simulations.deposits.create({
|
|
15
15
|
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
16
16
|
* amount: '100.50',
|
|
17
|
-
* currency: '
|
|
17
|
+
* currency: 'USD',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
@@ -95,9 +95,9 @@ export namespace DepositCreateParams {
|
|
|
95
95
|
* Financial address of the counterparty.
|
|
96
96
|
*/
|
|
97
97
|
financial_address:
|
|
98
|
+
| Counterparty.AbaFinancialAddressRequest
|
|
98
99
|
| Counterparty.IbanFinancialAddressRequest
|
|
99
100
|
| Counterparty.SortCodeFinancialAddressRequest
|
|
100
|
-
| Counterparty.AbaFinancialAddressRequest
|
|
101
101
|
| Counterparty.BicFinancialAddressRequest
|
|
102
102
|
| Counterparty.CryptoWalletFinancialAddress;
|
|
103
103
|
|
|
@@ -108,70 +108,86 @@ export namespace DepositCreateParams {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
export namespace Counterparty {
|
|
111
|
-
export interface
|
|
111
|
+
export interface AbaFinancialAddressRequest {
|
|
112
112
|
/**
|
|
113
113
|
* Name of the account holder.
|
|
114
114
|
*/
|
|
115
115
|
account_holder_name: string;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Bank account number.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
account_number: string;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* ABA routing number (9 digits).
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
routing_number: string;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Discriminator for ABA wire financial address.
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
type: 'aba';
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
134
|
+
* null if not provided. Some destination countries require it (for example the
|
|
135
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
136
|
+
* code. A payment to an account without one is sent as checking.
|
|
137
|
+
*/
|
|
138
|
+
account_type?: 'checking' | 'savings' | null;
|
|
131
139
|
}
|
|
132
140
|
|
|
133
|
-
export interface
|
|
141
|
+
export interface IbanFinancialAddressRequest {
|
|
134
142
|
/**
|
|
135
143
|
* Name of the account holder.
|
|
136
144
|
*/
|
|
137
145
|
account_holder_name: string;
|
|
138
146
|
|
|
139
147
|
/**
|
|
140
|
-
*
|
|
148
|
+
* International Bank Account Number.
|
|
141
149
|
*/
|
|
142
|
-
|
|
150
|
+
iban: string;
|
|
143
151
|
|
|
144
152
|
/**
|
|
145
|
-
*
|
|
153
|
+
* Discriminator for IBAN financial address.
|
|
146
154
|
*/
|
|
147
|
-
|
|
155
|
+
type: 'iban';
|
|
148
156
|
|
|
149
157
|
/**
|
|
150
|
-
*
|
|
158
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
159
|
+
* null if not provided. Some destination countries require it (for example the
|
|
160
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
161
|
+
* code. A payment to an account without one is sent as checking.
|
|
151
162
|
*/
|
|
152
|
-
|
|
163
|
+
account_type?: 'checking' | 'savings' | null;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
167
|
+
*/
|
|
168
|
+
bic?: string | null;
|
|
153
169
|
}
|
|
154
170
|
|
|
155
|
-
export interface
|
|
171
|
+
export interface SortCodeFinancialAddressRequest {
|
|
156
172
|
/**
|
|
157
173
|
* Name of the account holder.
|
|
158
174
|
*/
|
|
159
175
|
account_holder_name: string;
|
|
160
176
|
|
|
161
177
|
/**
|
|
162
|
-
*
|
|
178
|
+
* UK account number (8 digits).
|
|
163
179
|
*/
|
|
164
180
|
account_number: string;
|
|
165
181
|
|
|
166
182
|
/**
|
|
167
|
-
*
|
|
183
|
+
* UK sort code (6 digits).
|
|
168
184
|
*/
|
|
169
|
-
|
|
185
|
+
sort_code: string;
|
|
170
186
|
|
|
171
187
|
/**
|
|
172
|
-
* Discriminator for
|
|
188
|
+
* Discriminator for UK sort code financial address.
|
|
173
189
|
*/
|
|
174
|
-
type: '
|
|
190
|
+
type: 'sort_code';
|
|
175
191
|
}
|
|
176
192
|
|
|
177
193
|
export interface BicFinancialAddressRequest {
|
|
@@ -195,6 +211,14 @@ export namespace DepositCreateParams {
|
|
|
195
211
|
*/
|
|
196
212
|
type: 'bic';
|
|
197
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Whether the account is a checking or a savings account. Optional; omit or send
|
|
216
|
+
* null if not provided. Some destination countries require it (for example the
|
|
217
|
+
* Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
|
|
218
|
+
* code. A payment to an account without one is sent as checking.
|
|
219
|
+
*/
|
|
220
|
+
account_type?: 'checking' | 'savings' | null;
|
|
221
|
+
|
|
198
222
|
/**
|
|
199
223
|
* Domestic bank or branch code where the destination country uses one (for example
|
|
200
224
|
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
@@ -139,9 +139,9 @@ export namespace TransactionRetrieveResponse {
|
|
|
139
139
|
* Financial address of the counterparty.
|
|
140
140
|
*/
|
|
141
141
|
financial_address:
|
|
142
|
+
| Counterparty.AbaFinancialAddress
|
|
142
143
|
| Counterparty.IbanFinancialAddress
|
|
143
144
|
| Counterparty.SortCodeFinancialAddress
|
|
144
|
-
| Counterparty.AbaFinancialAddress
|
|
145
145
|
| Counterparty.BicFinancialAddress
|
|
146
146
|
| Counterparty.CryptoWalletFinancialAddress;
|
|
147
147
|
|
|
@@ -152,70 +152,80 @@ export namespace TransactionRetrieveResponse {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export namespace Counterparty {
|
|
155
|
-
export interface
|
|
155
|
+
export interface AbaFinancialAddress {
|
|
156
156
|
/**
|
|
157
157
|
* Name of the account holder.
|
|
158
158
|
*/
|
|
159
159
|
account_holder_name: string;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
|
-
* Bank
|
|
162
|
+
* Bank account number.
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
account_number: string;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
167
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
account_type: 'checking' | 'savings' | null;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* ABA routing number (9 digits).
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
routing_number: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Discriminator for ABA wire financial address.
|
|
178
|
+
*/
|
|
179
|
+
type: 'aba';
|
|
175
180
|
}
|
|
176
181
|
|
|
177
|
-
export interface
|
|
182
|
+
export interface IbanFinancialAddress {
|
|
178
183
|
/**
|
|
179
184
|
* Name of the account holder.
|
|
180
185
|
*/
|
|
181
186
|
account_holder_name: string;
|
|
182
187
|
|
|
183
188
|
/**
|
|
184
|
-
*
|
|
189
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
185
190
|
*/
|
|
186
|
-
|
|
191
|
+
account_type: 'checking' | 'savings' | null;
|
|
187
192
|
|
|
188
193
|
/**
|
|
189
|
-
*
|
|
194
|
+
* Bank Identifier Code, or null if not provided.
|
|
190
195
|
*/
|
|
191
|
-
|
|
196
|
+
bic: string | null;
|
|
192
197
|
|
|
193
198
|
/**
|
|
194
|
-
*
|
|
199
|
+
* International Bank Account Number.
|
|
195
200
|
*/
|
|
196
|
-
|
|
201
|
+
iban: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Discriminator for IBAN financial address.
|
|
205
|
+
*/
|
|
206
|
+
type: 'iban';
|
|
197
207
|
}
|
|
198
208
|
|
|
199
|
-
export interface
|
|
209
|
+
export interface SortCodeFinancialAddress {
|
|
200
210
|
/**
|
|
201
211
|
* Name of the account holder.
|
|
202
212
|
*/
|
|
203
213
|
account_holder_name: string;
|
|
204
214
|
|
|
205
215
|
/**
|
|
206
|
-
*
|
|
216
|
+
* UK account number (8 digits).
|
|
207
217
|
*/
|
|
208
218
|
account_number: string;
|
|
209
219
|
|
|
210
220
|
/**
|
|
211
|
-
*
|
|
221
|
+
* UK sort code (6 digits).
|
|
212
222
|
*/
|
|
213
|
-
|
|
223
|
+
sort_code: string;
|
|
214
224
|
|
|
215
225
|
/**
|
|
216
|
-
* Discriminator for
|
|
226
|
+
* Discriminator for UK sort code financial address.
|
|
217
227
|
*/
|
|
218
|
-
type: '
|
|
228
|
+
type: 'sort_code';
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
export interface BicFinancialAddress {
|
|
@@ -229,6 +239,11 @@ export namespace TransactionRetrieveResponse {
|
|
|
229
239
|
*/
|
|
230
240
|
account_number: string;
|
|
231
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
244
|
+
*/
|
|
245
|
+
account_type: 'checking' | 'savings' | null;
|
|
246
|
+
|
|
232
247
|
/**
|
|
233
248
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
234
249
|
*/
|
|
@@ -683,9 +698,9 @@ export namespace TransactionListResponse {
|
|
|
683
698
|
* Financial address of the counterparty.
|
|
684
699
|
*/
|
|
685
700
|
financial_address:
|
|
701
|
+
| Counterparty.AbaFinancialAddress
|
|
686
702
|
| Counterparty.IbanFinancialAddress
|
|
687
703
|
| Counterparty.SortCodeFinancialAddress
|
|
688
|
-
| Counterparty.AbaFinancialAddress
|
|
689
704
|
| Counterparty.BicFinancialAddress
|
|
690
705
|
| Counterparty.CryptoWalletFinancialAddress;
|
|
691
706
|
|
|
@@ -696,70 +711,80 @@ export namespace TransactionListResponse {
|
|
|
696
711
|
}
|
|
697
712
|
|
|
698
713
|
export namespace Counterparty {
|
|
699
|
-
export interface
|
|
714
|
+
export interface AbaFinancialAddress {
|
|
700
715
|
/**
|
|
701
716
|
* Name of the account holder.
|
|
702
717
|
*/
|
|
703
718
|
account_holder_name: string;
|
|
704
719
|
|
|
705
720
|
/**
|
|
706
|
-
* Bank
|
|
721
|
+
* Bank account number.
|
|
707
722
|
*/
|
|
708
|
-
|
|
723
|
+
account_number: string;
|
|
709
724
|
|
|
710
725
|
/**
|
|
711
|
-
*
|
|
726
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
712
727
|
*/
|
|
713
|
-
|
|
728
|
+
account_type: 'checking' | 'savings' | null;
|
|
714
729
|
|
|
715
730
|
/**
|
|
716
|
-
*
|
|
731
|
+
* ABA routing number (9 digits).
|
|
717
732
|
*/
|
|
718
|
-
|
|
733
|
+
routing_number: string;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Discriminator for ABA wire financial address.
|
|
737
|
+
*/
|
|
738
|
+
type: 'aba';
|
|
719
739
|
}
|
|
720
740
|
|
|
721
|
-
export interface
|
|
741
|
+
export interface IbanFinancialAddress {
|
|
722
742
|
/**
|
|
723
743
|
* Name of the account holder.
|
|
724
744
|
*/
|
|
725
745
|
account_holder_name: string;
|
|
726
746
|
|
|
727
747
|
/**
|
|
728
|
-
*
|
|
748
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
729
749
|
*/
|
|
730
|
-
|
|
750
|
+
account_type: 'checking' | 'savings' | null;
|
|
731
751
|
|
|
732
752
|
/**
|
|
733
|
-
*
|
|
753
|
+
* Bank Identifier Code, or null if not provided.
|
|
734
754
|
*/
|
|
735
|
-
|
|
755
|
+
bic: string | null;
|
|
736
756
|
|
|
737
757
|
/**
|
|
738
|
-
*
|
|
758
|
+
* International Bank Account Number.
|
|
739
759
|
*/
|
|
740
|
-
|
|
760
|
+
iban: string;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Discriminator for IBAN financial address.
|
|
764
|
+
*/
|
|
765
|
+
type: 'iban';
|
|
741
766
|
}
|
|
742
767
|
|
|
743
|
-
export interface
|
|
768
|
+
export interface SortCodeFinancialAddress {
|
|
744
769
|
/**
|
|
745
770
|
* Name of the account holder.
|
|
746
771
|
*/
|
|
747
772
|
account_holder_name: string;
|
|
748
773
|
|
|
749
774
|
/**
|
|
750
|
-
*
|
|
775
|
+
* UK account number (8 digits).
|
|
751
776
|
*/
|
|
752
777
|
account_number: string;
|
|
753
778
|
|
|
754
779
|
/**
|
|
755
|
-
*
|
|
780
|
+
* UK sort code (6 digits).
|
|
756
781
|
*/
|
|
757
|
-
|
|
782
|
+
sort_code: string;
|
|
758
783
|
|
|
759
784
|
/**
|
|
760
|
-
* Discriminator for
|
|
785
|
+
* Discriminator for UK sort code financial address.
|
|
761
786
|
*/
|
|
762
|
-
type: '
|
|
787
|
+
type: 'sort_code';
|
|
763
788
|
}
|
|
764
789
|
|
|
765
790
|
export interface BicFinancialAddress {
|
|
@@ -773,6 +798,11 @@ export namespace TransactionListResponse {
|
|
|
773
798
|
*/
|
|
774
799
|
account_number: string;
|
|
775
800
|
|
|
801
|
+
/**
|
|
802
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
803
|
+
*/
|
|
804
|
+
account_type: 'checking' | 'savings' | null;
|
|
805
|
+
|
|
776
806
|
/**
|
|
777
807
|
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
778
808
|
*/
|