@augustusbank/typescript-sdk 0.20.0 → 0.22.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 +28 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +2 -2
- package/resources/account-programs.d.ts +2 -2
- package/resources/accounts.d.mts +206 -43
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +206 -43
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +53 -0
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +38 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +38 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +458 -276
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +458 -276
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +27 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +27 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +281 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +281 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +98 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +94 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +270 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +270 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +91 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +87 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +218 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +218 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +6 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +6 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +15 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +7 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +76 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +76 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +22 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +22 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +29 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +24 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +300 -180
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +300 -180
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +54 -4
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +54 -4
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +736 -953
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +736 -953
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +32 -0
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +2 -2
- package/src/resources/accounts.ts +236 -44
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +54 -269
- package/src/resources/index.ts +13 -0
- package/src/resources/payouts.ts +2089 -367
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +363 -0
- package/src/resources/simulations/accounts.ts +340 -0
- package/src/resources/simulations/deposits.ts +530 -0
- package/src/resources/simulations/index.ts +32 -0
- package/src/resources/simulations/payouts.ts +98 -0
- package/src/resources/simulations/simulations.ts +82 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +910 -232
- package/src/resources/webhook-subscriptions.ts +54 -4
- package/src/resources/webhooks.ts +948 -1126
- 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
|
@@ -0,0 +1,3127 @@
|
|
|
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 { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Counterparties extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a counterparty owned by the merchant.
|
|
12
|
+
*/
|
|
13
|
+
create(body: CounterpartyCreateParams, options?: RequestOptions): APIPromise<CounterpartyCreateResponse> {
|
|
14
|
+
return this._client.post('/v1/counterparties', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a counterparty owned by the merchant.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CounterpartyRetrieveResponse> {
|
|
21
|
+
return this._client.get(path`/v1/counterparties/${id}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Updates the mutable details of a counterparty owned by the merchant.
|
|
26
|
+
*/
|
|
27
|
+
update(
|
|
28
|
+
id: string,
|
|
29
|
+
body: CounterpartyUpdateParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<CounterpartyUpdateResponse> {
|
|
32
|
+
return this._client.post(path`/v1/counterparties/${id}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Lists counterparties owned by the merchant with cursor-based pagination.
|
|
37
|
+
*/
|
|
38
|
+
list(
|
|
39
|
+
query: CounterpartyListParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): PagePromise<CounterpartyListResponsesCursorPage, CounterpartyListResponse> {
|
|
42
|
+
return this._client.getAPIList('/v1/counterparties', CursorPage<CounterpartyListResponse>, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Blocks payments to and from a counterparty owned by the merchant. Blocking an
|
|
50
|
+
* already-blocked counterparty succeeds without changing the existing block.
|
|
51
|
+
*/
|
|
52
|
+
block(id: string, options?: RequestOptions): APIPromise<CounterpartyBlockResponse> {
|
|
53
|
+
return this._client.post(path`/v1/counterparties/${id}/block`, options);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type CounterpartyListResponsesCursorPage = CursorPage<CounterpartyListResponse>;
|
|
58
|
+
|
|
59
|
+
export interface CounterpartyCreateResponse {
|
|
60
|
+
/**
|
|
61
|
+
* Unique identifier of the counterparty.
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
67
|
+
*/
|
|
68
|
+
blocked: boolean;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
72
|
+
*/
|
|
73
|
+
date_of_birth: string | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether the counterparty is a business or an individual.
|
|
77
|
+
*/
|
|
78
|
+
entity_type: 'business' | 'individual';
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Financial address of the counterparty.
|
|
82
|
+
*/
|
|
83
|
+
financial_address:
|
|
84
|
+
| CounterpartyCreateResponse.IbanFinancialAddress
|
|
85
|
+
| CounterpartyCreateResponse.SortCodeFinancialAddress
|
|
86
|
+
| CounterpartyCreateResponse.AbaFinancialAddress
|
|
87
|
+
| CounterpartyCreateResponse.BicFinancialAddress
|
|
88
|
+
| CounterpartyCreateResponse.CryptoWalletFinancialAddress;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
92
|
+
* by you, `true` if it is.
|
|
93
|
+
*/
|
|
94
|
+
is_self_owned: boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Name of the counterparty, or null if not recorded.
|
|
98
|
+
*/
|
|
99
|
+
name: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
103
|
+
*/
|
|
104
|
+
physical_address: CounterpartyCreateResponse.PhysicalAddress | null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Resource type discriminator.
|
|
108
|
+
*/
|
|
109
|
+
type: 'counterparty';
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace CounterpartyCreateResponse {
|
|
113
|
+
export interface IbanFinancialAddress {
|
|
114
|
+
/**
|
|
115
|
+
* Name of the account holder.
|
|
116
|
+
*/
|
|
117
|
+
account_holder_name: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Bank Identifier Code, or null if not provided.
|
|
121
|
+
*/
|
|
122
|
+
bic: string | null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* International Bank Account Number.
|
|
126
|
+
*/
|
|
127
|
+
iban: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Discriminator for IBAN financial address.
|
|
131
|
+
*/
|
|
132
|
+
type: 'iban';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface SortCodeFinancialAddress {
|
|
136
|
+
/**
|
|
137
|
+
* Name of the account holder.
|
|
138
|
+
*/
|
|
139
|
+
account_holder_name: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* UK account number (8 digits).
|
|
143
|
+
*/
|
|
144
|
+
account_number: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* UK sort code (6 digits).
|
|
148
|
+
*/
|
|
149
|
+
sort_code: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Discriminator for UK sort code financial address.
|
|
153
|
+
*/
|
|
154
|
+
type: 'sort_code';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface AbaFinancialAddress {
|
|
158
|
+
/**
|
|
159
|
+
* Name of the account holder.
|
|
160
|
+
*/
|
|
161
|
+
account_holder_name: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Bank account number.
|
|
165
|
+
*/
|
|
166
|
+
account_number: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* ABA routing number (9 digits).
|
|
170
|
+
*/
|
|
171
|
+
routing_number: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Discriminator for ABA wire financial address.
|
|
175
|
+
*/
|
|
176
|
+
type: 'aba';
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface BicFinancialAddress {
|
|
180
|
+
/**
|
|
181
|
+
* Name of the account holder.
|
|
182
|
+
*/
|
|
183
|
+
account_holder_name: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Local-format bank account number.
|
|
187
|
+
*/
|
|
188
|
+
account_number: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
192
|
+
*/
|
|
193
|
+
bic: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
197
|
+
* the BSB in Australia), or null.
|
|
198
|
+
*/
|
|
199
|
+
local_bank_code: string | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Discriminator for BIC + local account financial address.
|
|
203
|
+
*/
|
|
204
|
+
type: 'bic';
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface CryptoWalletFinancialAddress {
|
|
208
|
+
/**
|
|
209
|
+
* Wallet address on the specified blockchain.
|
|
210
|
+
*/
|
|
211
|
+
address: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Blockchain network for the crypto wallet.
|
|
215
|
+
*/
|
|
216
|
+
blockchain:
|
|
217
|
+
| 'bitcoin'
|
|
218
|
+
| 'ethereum'
|
|
219
|
+
| 'solana'
|
|
220
|
+
| 'polygon'
|
|
221
|
+
| 'bitcoin_testnet4'
|
|
222
|
+
| 'ethereum_sepolia'
|
|
223
|
+
| 'solana_devnet'
|
|
224
|
+
| 'polygon_amoy';
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Discriminator for crypto wallet financial address.
|
|
228
|
+
*/
|
|
229
|
+
type: 'crypto_wallet';
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
234
|
+
*/
|
|
235
|
+
export interface PhysicalAddress {
|
|
236
|
+
/**
|
|
237
|
+
* City or locality.
|
|
238
|
+
*/
|
|
239
|
+
city: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* ISO 3166-1 alpha-2 country code.
|
|
243
|
+
*/
|
|
244
|
+
country_code:
|
|
245
|
+
| 'AF'
|
|
246
|
+
| 'AL'
|
|
247
|
+
| 'DZ'
|
|
248
|
+
| 'AS'
|
|
249
|
+
| 'AD'
|
|
250
|
+
| 'AO'
|
|
251
|
+
| 'AI'
|
|
252
|
+
| 'AQ'
|
|
253
|
+
| 'AG'
|
|
254
|
+
| 'AR'
|
|
255
|
+
| 'AM'
|
|
256
|
+
| 'AW'
|
|
257
|
+
| 'AU'
|
|
258
|
+
| 'AT'
|
|
259
|
+
| 'AZ'
|
|
260
|
+
| 'BS'
|
|
261
|
+
| 'BH'
|
|
262
|
+
| 'BD'
|
|
263
|
+
| 'BB'
|
|
264
|
+
| 'BY'
|
|
265
|
+
| 'BE'
|
|
266
|
+
| 'BZ'
|
|
267
|
+
| 'BJ'
|
|
268
|
+
| 'BM'
|
|
269
|
+
| 'BT'
|
|
270
|
+
| 'BO'
|
|
271
|
+
| 'BA'
|
|
272
|
+
| 'BW'
|
|
273
|
+
| 'BV'
|
|
274
|
+
| 'BR'
|
|
275
|
+
| 'IO'
|
|
276
|
+
| 'BN'
|
|
277
|
+
| 'BG'
|
|
278
|
+
| 'BF'
|
|
279
|
+
| 'BI'
|
|
280
|
+
| 'KH'
|
|
281
|
+
| 'CM'
|
|
282
|
+
| 'CA'
|
|
283
|
+
| 'CV'
|
|
284
|
+
| 'KY'
|
|
285
|
+
| 'CF'
|
|
286
|
+
| 'TD'
|
|
287
|
+
| 'CL'
|
|
288
|
+
| 'CN'
|
|
289
|
+
| 'CX'
|
|
290
|
+
| 'CC'
|
|
291
|
+
| 'CO'
|
|
292
|
+
| 'KM'
|
|
293
|
+
| 'CG'
|
|
294
|
+
| 'CD'
|
|
295
|
+
| 'CK'
|
|
296
|
+
| 'CR'
|
|
297
|
+
| 'CI'
|
|
298
|
+
| 'HR'
|
|
299
|
+
| 'CU'
|
|
300
|
+
| 'CY'
|
|
301
|
+
| 'CZ'
|
|
302
|
+
| 'DK'
|
|
303
|
+
| 'DJ'
|
|
304
|
+
| 'DM'
|
|
305
|
+
| 'DO'
|
|
306
|
+
| 'EC'
|
|
307
|
+
| 'EG'
|
|
308
|
+
| 'SV'
|
|
309
|
+
| 'GQ'
|
|
310
|
+
| 'ER'
|
|
311
|
+
| 'EE'
|
|
312
|
+
| 'ET'
|
|
313
|
+
| 'FK'
|
|
314
|
+
| 'FO'
|
|
315
|
+
| 'FJ'
|
|
316
|
+
| 'FI'
|
|
317
|
+
| 'FR'
|
|
318
|
+
| 'GF'
|
|
319
|
+
| 'PF'
|
|
320
|
+
| 'TF'
|
|
321
|
+
| 'GA'
|
|
322
|
+
| 'GM'
|
|
323
|
+
| 'GE'
|
|
324
|
+
| 'DE'
|
|
325
|
+
| 'GH'
|
|
326
|
+
| 'GI'
|
|
327
|
+
| 'GR'
|
|
328
|
+
| 'GL'
|
|
329
|
+
| 'GD'
|
|
330
|
+
| 'GP'
|
|
331
|
+
| 'GU'
|
|
332
|
+
| 'GT'
|
|
333
|
+
| 'GN'
|
|
334
|
+
| 'GW'
|
|
335
|
+
| 'GY'
|
|
336
|
+
| 'HT'
|
|
337
|
+
| 'HM'
|
|
338
|
+
| 'VA'
|
|
339
|
+
| 'HN'
|
|
340
|
+
| 'HK'
|
|
341
|
+
| 'HU'
|
|
342
|
+
| 'IS'
|
|
343
|
+
| 'IN'
|
|
344
|
+
| 'ID'
|
|
345
|
+
| 'IR'
|
|
346
|
+
| 'IQ'
|
|
347
|
+
| 'IE'
|
|
348
|
+
| 'IL'
|
|
349
|
+
| 'IT'
|
|
350
|
+
| 'JM'
|
|
351
|
+
| 'JP'
|
|
352
|
+
| 'JO'
|
|
353
|
+
| 'KZ'
|
|
354
|
+
| 'KE'
|
|
355
|
+
| 'KI'
|
|
356
|
+
| 'KP'
|
|
357
|
+
| 'KR'
|
|
358
|
+
| 'KW'
|
|
359
|
+
| 'KG'
|
|
360
|
+
| 'LA'
|
|
361
|
+
| 'LV'
|
|
362
|
+
| 'LB'
|
|
363
|
+
| 'LS'
|
|
364
|
+
| 'LR'
|
|
365
|
+
| 'LY'
|
|
366
|
+
| 'LI'
|
|
367
|
+
| 'LT'
|
|
368
|
+
| 'LU'
|
|
369
|
+
| 'MO'
|
|
370
|
+
| 'MG'
|
|
371
|
+
| 'MW'
|
|
372
|
+
| 'MY'
|
|
373
|
+
| 'MV'
|
|
374
|
+
| 'ML'
|
|
375
|
+
| 'MT'
|
|
376
|
+
| 'MH'
|
|
377
|
+
| 'MQ'
|
|
378
|
+
| 'MR'
|
|
379
|
+
| 'MU'
|
|
380
|
+
| 'YT'
|
|
381
|
+
| 'MX'
|
|
382
|
+
| 'FM'
|
|
383
|
+
| 'MD'
|
|
384
|
+
| 'MC'
|
|
385
|
+
| 'MN'
|
|
386
|
+
| 'MS'
|
|
387
|
+
| 'MA'
|
|
388
|
+
| 'MZ'
|
|
389
|
+
| 'MM'
|
|
390
|
+
| 'NA'
|
|
391
|
+
| 'NR'
|
|
392
|
+
| 'NP'
|
|
393
|
+
| 'NL'
|
|
394
|
+
| 'NC'
|
|
395
|
+
| 'NZ'
|
|
396
|
+
| 'NI'
|
|
397
|
+
| 'NE'
|
|
398
|
+
| 'NG'
|
|
399
|
+
| 'NU'
|
|
400
|
+
| 'NF'
|
|
401
|
+
| 'MP'
|
|
402
|
+
| 'MK'
|
|
403
|
+
| 'NO'
|
|
404
|
+
| 'OM'
|
|
405
|
+
| 'PK'
|
|
406
|
+
| 'PW'
|
|
407
|
+
| 'PS'
|
|
408
|
+
| 'PA'
|
|
409
|
+
| 'PG'
|
|
410
|
+
| 'PY'
|
|
411
|
+
| 'PE'
|
|
412
|
+
| 'PH'
|
|
413
|
+
| 'PN'
|
|
414
|
+
| 'PL'
|
|
415
|
+
| 'PT'
|
|
416
|
+
| 'PR'
|
|
417
|
+
| 'QA'
|
|
418
|
+
| 'RE'
|
|
419
|
+
| 'RO'
|
|
420
|
+
| 'RU'
|
|
421
|
+
| 'RW'
|
|
422
|
+
| 'SH'
|
|
423
|
+
| 'KN'
|
|
424
|
+
| 'LC'
|
|
425
|
+
| 'PM'
|
|
426
|
+
| 'VC'
|
|
427
|
+
| 'WS'
|
|
428
|
+
| 'SM'
|
|
429
|
+
| 'ST'
|
|
430
|
+
| 'SA'
|
|
431
|
+
| 'SN'
|
|
432
|
+
| 'SC'
|
|
433
|
+
| 'SL'
|
|
434
|
+
| 'SG'
|
|
435
|
+
| 'SK'
|
|
436
|
+
| 'SI'
|
|
437
|
+
| 'SB'
|
|
438
|
+
| 'SO'
|
|
439
|
+
| 'ZA'
|
|
440
|
+
| 'GS'
|
|
441
|
+
| 'ES'
|
|
442
|
+
| 'LK'
|
|
443
|
+
| 'SD'
|
|
444
|
+
| 'SR'
|
|
445
|
+
| 'SJ'
|
|
446
|
+
| 'SZ'
|
|
447
|
+
| 'SE'
|
|
448
|
+
| 'CH'
|
|
449
|
+
| 'SY'
|
|
450
|
+
| 'TW'
|
|
451
|
+
| 'TJ'
|
|
452
|
+
| 'TZ'
|
|
453
|
+
| 'TH'
|
|
454
|
+
| 'TL'
|
|
455
|
+
| 'TG'
|
|
456
|
+
| 'TK'
|
|
457
|
+
| 'TO'
|
|
458
|
+
| 'TT'
|
|
459
|
+
| 'TN'
|
|
460
|
+
| 'TR'
|
|
461
|
+
| 'TM'
|
|
462
|
+
| 'TC'
|
|
463
|
+
| 'TV'
|
|
464
|
+
| 'UG'
|
|
465
|
+
| 'UA'
|
|
466
|
+
| 'AE'
|
|
467
|
+
| 'GB'
|
|
468
|
+
| 'US'
|
|
469
|
+
| 'UM'
|
|
470
|
+
| 'UY'
|
|
471
|
+
| 'UZ'
|
|
472
|
+
| 'VU'
|
|
473
|
+
| 'VE'
|
|
474
|
+
| 'VN'
|
|
475
|
+
| 'VG'
|
|
476
|
+
| 'VI'
|
|
477
|
+
| 'WF'
|
|
478
|
+
| 'EH'
|
|
479
|
+
| 'YE'
|
|
480
|
+
| 'ZM'
|
|
481
|
+
| 'ZW'
|
|
482
|
+
| 'AX'
|
|
483
|
+
| 'BQ'
|
|
484
|
+
| 'CW'
|
|
485
|
+
| 'GG'
|
|
486
|
+
| 'IM'
|
|
487
|
+
| 'JE'
|
|
488
|
+
| 'ME'
|
|
489
|
+
| 'BL'
|
|
490
|
+
| 'MF'
|
|
491
|
+
| 'RS'
|
|
492
|
+
| 'SX'
|
|
493
|
+
| 'SS'
|
|
494
|
+
| 'XK';
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Primary street address, or null if not recorded.
|
|
498
|
+
*/
|
|
499
|
+
line_1: string | null;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Secondary street address, or null if not recorded.
|
|
503
|
+
*/
|
|
504
|
+
line_2: string | null;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Postal or ZIP code, or null if not recorded.
|
|
508
|
+
*/
|
|
509
|
+
postal_code: string | null;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* State, province, or region, or null if not recorded.
|
|
513
|
+
*/
|
|
514
|
+
state: string | null;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export interface CounterpartyRetrieveResponse {
|
|
519
|
+
/**
|
|
520
|
+
* Unique identifier of the counterparty.
|
|
521
|
+
*/
|
|
522
|
+
id: string;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
526
|
+
*/
|
|
527
|
+
blocked: boolean;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
531
|
+
*/
|
|
532
|
+
date_of_birth: string | null;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Whether the counterparty is a business or an individual.
|
|
536
|
+
*/
|
|
537
|
+
entity_type: 'business' | 'individual';
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Financial address of the counterparty.
|
|
541
|
+
*/
|
|
542
|
+
financial_address:
|
|
543
|
+
| CounterpartyRetrieveResponse.IbanFinancialAddress
|
|
544
|
+
| CounterpartyRetrieveResponse.SortCodeFinancialAddress
|
|
545
|
+
| CounterpartyRetrieveResponse.AbaFinancialAddress
|
|
546
|
+
| CounterpartyRetrieveResponse.BicFinancialAddress
|
|
547
|
+
| CounterpartyRetrieveResponse.CryptoWalletFinancialAddress;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
551
|
+
* by you, `true` if it is.
|
|
552
|
+
*/
|
|
553
|
+
is_self_owned: boolean;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Name of the counterparty, or null if not recorded.
|
|
557
|
+
*/
|
|
558
|
+
name: string | null;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
562
|
+
*/
|
|
563
|
+
physical_address: CounterpartyRetrieveResponse.PhysicalAddress | null;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Resource type discriminator.
|
|
567
|
+
*/
|
|
568
|
+
type: 'counterparty';
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export namespace CounterpartyRetrieveResponse {
|
|
572
|
+
export interface IbanFinancialAddress {
|
|
573
|
+
/**
|
|
574
|
+
* Name of the account holder.
|
|
575
|
+
*/
|
|
576
|
+
account_holder_name: string;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Bank Identifier Code, or null if not provided.
|
|
580
|
+
*/
|
|
581
|
+
bic: string | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* International Bank Account Number.
|
|
585
|
+
*/
|
|
586
|
+
iban: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Discriminator for IBAN financial address.
|
|
590
|
+
*/
|
|
591
|
+
type: 'iban';
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface SortCodeFinancialAddress {
|
|
595
|
+
/**
|
|
596
|
+
* Name of the account holder.
|
|
597
|
+
*/
|
|
598
|
+
account_holder_name: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* UK account number (8 digits).
|
|
602
|
+
*/
|
|
603
|
+
account_number: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* UK sort code (6 digits).
|
|
607
|
+
*/
|
|
608
|
+
sort_code: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Discriminator for UK sort code financial address.
|
|
612
|
+
*/
|
|
613
|
+
type: 'sort_code';
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export interface AbaFinancialAddress {
|
|
617
|
+
/**
|
|
618
|
+
* Name of the account holder.
|
|
619
|
+
*/
|
|
620
|
+
account_holder_name: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Bank account number.
|
|
624
|
+
*/
|
|
625
|
+
account_number: string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* ABA routing number (9 digits).
|
|
629
|
+
*/
|
|
630
|
+
routing_number: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Discriminator for ABA wire financial address.
|
|
634
|
+
*/
|
|
635
|
+
type: 'aba';
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export interface BicFinancialAddress {
|
|
639
|
+
/**
|
|
640
|
+
* Name of the account holder.
|
|
641
|
+
*/
|
|
642
|
+
account_holder_name: string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Local-format bank account number.
|
|
646
|
+
*/
|
|
647
|
+
account_number: string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
651
|
+
*/
|
|
652
|
+
bic: string;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
656
|
+
* the BSB in Australia), or null.
|
|
657
|
+
*/
|
|
658
|
+
local_bank_code: string | null;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Discriminator for BIC + local account financial address.
|
|
662
|
+
*/
|
|
663
|
+
type: 'bic';
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export interface CryptoWalletFinancialAddress {
|
|
667
|
+
/**
|
|
668
|
+
* Wallet address on the specified blockchain.
|
|
669
|
+
*/
|
|
670
|
+
address: string;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Blockchain network for the crypto wallet.
|
|
674
|
+
*/
|
|
675
|
+
blockchain:
|
|
676
|
+
| 'bitcoin'
|
|
677
|
+
| 'ethereum'
|
|
678
|
+
| 'solana'
|
|
679
|
+
| 'polygon'
|
|
680
|
+
| 'bitcoin_testnet4'
|
|
681
|
+
| 'ethereum_sepolia'
|
|
682
|
+
| 'solana_devnet'
|
|
683
|
+
| 'polygon_amoy';
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Discriminator for crypto wallet financial address.
|
|
687
|
+
*/
|
|
688
|
+
type: 'crypto_wallet';
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
693
|
+
*/
|
|
694
|
+
export interface PhysicalAddress {
|
|
695
|
+
/**
|
|
696
|
+
* City or locality.
|
|
697
|
+
*/
|
|
698
|
+
city: string;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* ISO 3166-1 alpha-2 country code.
|
|
702
|
+
*/
|
|
703
|
+
country_code:
|
|
704
|
+
| 'AF'
|
|
705
|
+
| 'AL'
|
|
706
|
+
| 'DZ'
|
|
707
|
+
| 'AS'
|
|
708
|
+
| 'AD'
|
|
709
|
+
| 'AO'
|
|
710
|
+
| 'AI'
|
|
711
|
+
| 'AQ'
|
|
712
|
+
| 'AG'
|
|
713
|
+
| 'AR'
|
|
714
|
+
| 'AM'
|
|
715
|
+
| 'AW'
|
|
716
|
+
| 'AU'
|
|
717
|
+
| 'AT'
|
|
718
|
+
| 'AZ'
|
|
719
|
+
| 'BS'
|
|
720
|
+
| 'BH'
|
|
721
|
+
| 'BD'
|
|
722
|
+
| 'BB'
|
|
723
|
+
| 'BY'
|
|
724
|
+
| 'BE'
|
|
725
|
+
| 'BZ'
|
|
726
|
+
| 'BJ'
|
|
727
|
+
| 'BM'
|
|
728
|
+
| 'BT'
|
|
729
|
+
| 'BO'
|
|
730
|
+
| 'BA'
|
|
731
|
+
| 'BW'
|
|
732
|
+
| 'BV'
|
|
733
|
+
| 'BR'
|
|
734
|
+
| 'IO'
|
|
735
|
+
| 'BN'
|
|
736
|
+
| 'BG'
|
|
737
|
+
| 'BF'
|
|
738
|
+
| 'BI'
|
|
739
|
+
| 'KH'
|
|
740
|
+
| 'CM'
|
|
741
|
+
| 'CA'
|
|
742
|
+
| 'CV'
|
|
743
|
+
| 'KY'
|
|
744
|
+
| 'CF'
|
|
745
|
+
| 'TD'
|
|
746
|
+
| 'CL'
|
|
747
|
+
| 'CN'
|
|
748
|
+
| 'CX'
|
|
749
|
+
| 'CC'
|
|
750
|
+
| 'CO'
|
|
751
|
+
| 'KM'
|
|
752
|
+
| 'CG'
|
|
753
|
+
| 'CD'
|
|
754
|
+
| 'CK'
|
|
755
|
+
| 'CR'
|
|
756
|
+
| 'CI'
|
|
757
|
+
| 'HR'
|
|
758
|
+
| 'CU'
|
|
759
|
+
| 'CY'
|
|
760
|
+
| 'CZ'
|
|
761
|
+
| 'DK'
|
|
762
|
+
| 'DJ'
|
|
763
|
+
| 'DM'
|
|
764
|
+
| 'DO'
|
|
765
|
+
| 'EC'
|
|
766
|
+
| 'EG'
|
|
767
|
+
| 'SV'
|
|
768
|
+
| 'GQ'
|
|
769
|
+
| 'ER'
|
|
770
|
+
| 'EE'
|
|
771
|
+
| 'ET'
|
|
772
|
+
| 'FK'
|
|
773
|
+
| 'FO'
|
|
774
|
+
| 'FJ'
|
|
775
|
+
| 'FI'
|
|
776
|
+
| 'FR'
|
|
777
|
+
| 'GF'
|
|
778
|
+
| 'PF'
|
|
779
|
+
| 'TF'
|
|
780
|
+
| 'GA'
|
|
781
|
+
| 'GM'
|
|
782
|
+
| 'GE'
|
|
783
|
+
| 'DE'
|
|
784
|
+
| 'GH'
|
|
785
|
+
| 'GI'
|
|
786
|
+
| 'GR'
|
|
787
|
+
| 'GL'
|
|
788
|
+
| 'GD'
|
|
789
|
+
| 'GP'
|
|
790
|
+
| 'GU'
|
|
791
|
+
| 'GT'
|
|
792
|
+
| 'GN'
|
|
793
|
+
| 'GW'
|
|
794
|
+
| 'GY'
|
|
795
|
+
| 'HT'
|
|
796
|
+
| 'HM'
|
|
797
|
+
| 'VA'
|
|
798
|
+
| 'HN'
|
|
799
|
+
| 'HK'
|
|
800
|
+
| 'HU'
|
|
801
|
+
| 'IS'
|
|
802
|
+
| 'IN'
|
|
803
|
+
| 'ID'
|
|
804
|
+
| 'IR'
|
|
805
|
+
| 'IQ'
|
|
806
|
+
| 'IE'
|
|
807
|
+
| 'IL'
|
|
808
|
+
| 'IT'
|
|
809
|
+
| 'JM'
|
|
810
|
+
| 'JP'
|
|
811
|
+
| 'JO'
|
|
812
|
+
| 'KZ'
|
|
813
|
+
| 'KE'
|
|
814
|
+
| 'KI'
|
|
815
|
+
| 'KP'
|
|
816
|
+
| 'KR'
|
|
817
|
+
| 'KW'
|
|
818
|
+
| 'KG'
|
|
819
|
+
| 'LA'
|
|
820
|
+
| 'LV'
|
|
821
|
+
| 'LB'
|
|
822
|
+
| 'LS'
|
|
823
|
+
| 'LR'
|
|
824
|
+
| 'LY'
|
|
825
|
+
| 'LI'
|
|
826
|
+
| 'LT'
|
|
827
|
+
| 'LU'
|
|
828
|
+
| 'MO'
|
|
829
|
+
| 'MG'
|
|
830
|
+
| 'MW'
|
|
831
|
+
| 'MY'
|
|
832
|
+
| 'MV'
|
|
833
|
+
| 'ML'
|
|
834
|
+
| 'MT'
|
|
835
|
+
| 'MH'
|
|
836
|
+
| 'MQ'
|
|
837
|
+
| 'MR'
|
|
838
|
+
| 'MU'
|
|
839
|
+
| 'YT'
|
|
840
|
+
| 'MX'
|
|
841
|
+
| 'FM'
|
|
842
|
+
| 'MD'
|
|
843
|
+
| 'MC'
|
|
844
|
+
| 'MN'
|
|
845
|
+
| 'MS'
|
|
846
|
+
| 'MA'
|
|
847
|
+
| 'MZ'
|
|
848
|
+
| 'MM'
|
|
849
|
+
| 'NA'
|
|
850
|
+
| 'NR'
|
|
851
|
+
| 'NP'
|
|
852
|
+
| 'NL'
|
|
853
|
+
| 'NC'
|
|
854
|
+
| 'NZ'
|
|
855
|
+
| 'NI'
|
|
856
|
+
| 'NE'
|
|
857
|
+
| 'NG'
|
|
858
|
+
| 'NU'
|
|
859
|
+
| 'NF'
|
|
860
|
+
| 'MP'
|
|
861
|
+
| 'MK'
|
|
862
|
+
| 'NO'
|
|
863
|
+
| 'OM'
|
|
864
|
+
| 'PK'
|
|
865
|
+
| 'PW'
|
|
866
|
+
| 'PS'
|
|
867
|
+
| 'PA'
|
|
868
|
+
| 'PG'
|
|
869
|
+
| 'PY'
|
|
870
|
+
| 'PE'
|
|
871
|
+
| 'PH'
|
|
872
|
+
| 'PN'
|
|
873
|
+
| 'PL'
|
|
874
|
+
| 'PT'
|
|
875
|
+
| 'PR'
|
|
876
|
+
| 'QA'
|
|
877
|
+
| 'RE'
|
|
878
|
+
| 'RO'
|
|
879
|
+
| 'RU'
|
|
880
|
+
| 'RW'
|
|
881
|
+
| 'SH'
|
|
882
|
+
| 'KN'
|
|
883
|
+
| 'LC'
|
|
884
|
+
| 'PM'
|
|
885
|
+
| 'VC'
|
|
886
|
+
| 'WS'
|
|
887
|
+
| 'SM'
|
|
888
|
+
| 'ST'
|
|
889
|
+
| 'SA'
|
|
890
|
+
| 'SN'
|
|
891
|
+
| 'SC'
|
|
892
|
+
| 'SL'
|
|
893
|
+
| 'SG'
|
|
894
|
+
| 'SK'
|
|
895
|
+
| 'SI'
|
|
896
|
+
| 'SB'
|
|
897
|
+
| 'SO'
|
|
898
|
+
| 'ZA'
|
|
899
|
+
| 'GS'
|
|
900
|
+
| 'ES'
|
|
901
|
+
| 'LK'
|
|
902
|
+
| 'SD'
|
|
903
|
+
| 'SR'
|
|
904
|
+
| 'SJ'
|
|
905
|
+
| 'SZ'
|
|
906
|
+
| 'SE'
|
|
907
|
+
| 'CH'
|
|
908
|
+
| 'SY'
|
|
909
|
+
| 'TW'
|
|
910
|
+
| 'TJ'
|
|
911
|
+
| 'TZ'
|
|
912
|
+
| 'TH'
|
|
913
|
+
| 'TL'
|
|
914
|
+
| 'TG'
|
|
915
|
+
| 'TK'
|
|
916
|
+
| 'TO'
|
|
917
|
+
| 'TT'
|
|
918
|
+
| 'TN'
|
|
919
|
+
| 'TR'
|
|
920
|
+
| 'TM'
|
|
921
|
+
| 'TC'
|
|
922
|
+
| 'TV'
|
|
923
|
+
| 'UG'
|
|
924
|
+
| 'UA'
|
|
925
|
+
| 'AE'
|
|
926
|
+
| 'GB'
|
|
927
|
+
| 'US'
|
|
928
|
+
| 'UM'
|
|
929
|
+
| 'UY'
|
|
930
|
+
| 'UZ'
|
|
931
|
+
| 'VU'
|
|
932
|
+
| 'VE'
|
|
933
|
+
| 'VN'
|
|
934
|
+
| 'VG'
|
|
935
|
+
| 'VI'
|
|
936
|
+
| 'WF'
|
|
937
|
+
| 'EH'
|
|
938
|
+
| 'YE'
|
|
939
|
+
| 'ZM'
|
|
940
|
+
| 'ZW'
|
|
941
|
+
| 'AX'
|
|
942
|
+
| 'BQ'
|
|
943
|
+
| 'CW'
|
|
944
|
+
| 'GG'
|
|
945
|
+
| 'IM'
|
|
946
|
+
| 'JE'
|
|
947
|
+
| 'ME'
|
|
948
|
+
| 'BL'
|
|
949
|
+
| 'MF'
|
|
950
|
+
| 'RS'
|
|
951
|
+
| 'SX'
|
|
952
|
+
| 'SS'
|
|
953
|
+
| 'XK';
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Primary street address, or null if not recorded.
|
|
957
|
+
*/
|
|
958
|
+
line_1: string | null;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Secondary street address, or null if not recorded.
|
|
962
|
+
*/
|
|
963
|
+
line_2: string | null;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Postal or ZIP code, or null if not recorded.
|
|
967
|
+
*/
|
|
968
|
+
postal_code: string | null;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* State, province, or region, or null if not recorded.
|
|
972
|
+
*/
|
|
973
|
+
state: string | null;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export interface CounterpartyUpdateResponse {
|
|
978
|
+
/**
|
|
979
|
+
* Unique identifier of the counterparty.
|
|
980
|
+
*/
|
|
981
|
+
id: string;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
985
|
+
*/
|
|
986
|
+
blocked: boolean;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
990
|
+
*/
|
|
991
|
+
date_of_birth: string | null;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Whether the counterparty is a business or an individual.
|
|
995
|
+
*/
|
|
996
|
+
entity_type: 'business' | 'individual';
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Financial address of the counterparty.
|
|
1000
|
+
*/
|
|
1001
|
+
financial_address:
|
|
1002
|
+
| CounterpartyUpdateResponse.IbanFinancialAddress
|
|
1003
|
+
| CounterpartyUpdateResponse.SortCodeFinancialAddress
|
|
1004
|
+
| CounterpartyUpdateResponse.AbaFinancialAddress
|
|
1005
|
+
| CounterpartyUpdateResponse.BicFinancialAddress
|
|
1006
|
+
| CounterpartyUpdateResponse.CryptoWalletFinancialAddress;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
1010
|
+
* by you, `true` if it is.
|
|
1011
|
+
*/
|
|
1012
|
+
is_self_owned: boolean;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Name of the counterparty, or null if not recorded.
|
|
1016
|
+
*/
|
|
1017
|
+
name: string | null;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
1021
|
+
*/
|
|
1022
|
+
physical_address: CounterpartyUpdateResponse.PhysicalAddress | null;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Resource type discriminator.
|
|
1026
|
+
*/
|
|
1027
|
+
type: 'counterparty';
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export namespace CounterpartyUpdateResponse {
|
|
1031
|
+
export interface IbanFinancialAddress {
|
|
1032
|
+
/**
|
|
1033
|
+
* Name of the account holder.
|
|
1034
|
+
*/
|
|
1035
|
+
account_holder_name: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Bank Identifier Code, or null if not provided.
|
|
1039
|
+
*/
|
|
1040
|
+
bic: string | null;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* International Bank Account Number.
|
|
1044
|
+
*/
|
|
1045
|
+
iban: string;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Discriminator for IBAN financial address.
|
|
1049
|
+
*/
|
|
1050
|
+
type: 'iban';
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export interface SortCodeFinancialAddress {
|
|
1054
|
+
/**
|
|
1055
|
+
* Name of the account holder.
|
|
1056
|
+
*/
|
|
1057
|
+
account_holder_name: string;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* UK account number (8 digits).
|
|
1061
|
+
*/
|
|
1062
|
+
account_number: string;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* UK sort code (6 digits).
|
|
1066
|
+
*/
|
|
1067
|
+
sort_code: string;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Discriminator for UK sort code financial address.
|
|
1071
|
+
*/
|
|
1072
|
+
type: 'sort_code';
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export interface AbaFinancialAddress {
|
|
1076
|
+
/**
|
|
1077
|
+
* Name of the account holder.
|
|
1078
|
+
*/
|
|
1079
|
+
account_holder_name: string;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Bank account number.
|
|
1083
|
+
*/
|
|
1084
|
+
account_number: string;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* ABA routing number (9 digits).
|
|
1088
|
+
*/
|
|
1089
|
+
routing_number: string;
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* Discriminator for ABA wire financial address.
|
|
1093
|
+
*/
|
|
1094
|
+
type: 'aba';
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export interface BicFinancialAddress {
|
|
1098
|
+
/**
|
|
1099
|
+
* Name of the account holder.
|
|
1100
|
+
*/
|
|
1101
|
+
account_holder_name: string;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Local-format bank account number.
|
|
1105
|
+
*/
|
|
1106
|
+
account_number: string;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
1110
|
+
*/
|
|
1111
|
+
bic: string;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
1115
|
+
* the BSB in Australia), or null.
|
|
1116
|
+
*/
|
|
1117
|
+
local_bank_code: string | null;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Discriminator for BIC + local account financial address.
|
|
1121
|
+
*/
|
|
1122
|
+
type: 'bic';
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export interface CryptoWalletFinancialAddress {
|
|
1126
|
+
/**
|
|
1127
|
+
* Wallet address on the specified blockchain.
|
|
1128
|
+
*/
|
|
1129
|
+
address: string;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Blockchain network for the crypto wallet.
|
|
1133
|
+
*/
|
|
1134
|
+
blockchain:
|
|
1135
|
+
| 'bitcoin'
|
|
1136
|
+
| 'ethereum'
|
|
1137
|
+
| 'solana'
|
|
1138
|
+
| 'polygon'
|
|
1139
|
+
| 'bitcoin_testnet4'
|
|
1140
|
+
| 'ethereum_sepolia'
|
|
1141
|
+
| 'solana_devnet'
|
|
1142
|
+
| 'polygon_amoy';
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Discriminator for crypto wallet financial address.
|
|
1146
|
+
*/
|
|
1147
|
+
type: 'crypto_wallet';
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
1152
|
+
*/
|
|
1153
|
+
export interface PhysicalAddress {
|
|
1154
|
+
/**
|
|
1155
|
+
* City or locality.
|
|
1156
|
+
*/
|
|
1157
|
+
city: string;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1161
|
+
*/
|
|
1162
|
+
country_code:
|
|
1163
|
+
| 'AF'
|
|
1164
|
+
| 'AL'
|
|
1165
|
+
| 'DZ'
|
|
1166
|
+
| 'AS'
|
|
1167
|
+
| 'AD'
|
|
1168
|
+
| 'AO'
|
|
1169
|
+
| 'AI'
|
|
1170
|
+
| 'AQ'
|
|
1171
|
+
| 'AG'
|
|
1172
|
+
| 'AR'
|
|
1173
|
+
| 'AM'
|
|
1174
|
+
| 'AW'
|
|
1175
|
+
| 'AU'
|
|
1176
|
+
| 'AT'
|
|
1177
|
+
| 'AZ'
|
|
1178
|
+
| 'BS'
|
|
1179
|
+
| 'BH'
|
|
1180
|
+
| 'BD'
|
|
1181
|
+
| 'BB'
|
|
1182
|
+
| 'BY'
|
|
1183
|
+
| 'BE'
|
|
1184
|
+
| 'BZ'
|
|
1185
|
+
| 'BJ'
|
|
1186
|
+
| 'BM'
|
|
1187
|
+
| 'BT'
|
|
1188
|
+
| 'BO'
|
|
1189
|
+
| 'BA'
|
|
1190
|
+
| 'BW'
|
|
1191
|
+
| 'BV'
|
|
1192
|
+
| 'BR'
|
|
1193
|
+
| 'IO'
|
|
1194
|
+
| 'BN'
|
|
1195
|
+
| 'BG'
|
|
1196
|
+
| 'BF'
|
|
1197
|
+
| 'BI'
|
|
1198
|
+
| 'KH'
|
|
1199
|
+
| 'CM'
|
|
1200
|
+
| 'CA'
|
|
1201
|
+
| 'CV'
|
|
1202
|
+
| 'KY'
|
|
1203
|
+
| 'CF'
|
|
1204
|
+
| 'TD'
|
|
1205
|
+
| 'CL'
|
|
1206
|
+
| 'CN'
|
|
1207
|
+
| 'CX'
|
|
1208
|
+
| 'CC'
|
|
1209
|
+
| 'CO'
|
|
1210
|
+
| 'KM'
|
|
1211
|
+
| 'CG'
|
|
1212
|
+
| 'CD'
|
|
1213
|
+
| 'CK'
|
|
1214
|
+
| 'CR'
|
|
1215
|
+
| 'CI'
|
|
1216
|
+
| 'HR'
|
|
1217
|
+
| 'CU'
|
|
1218
|
+
| 'CY'
|
|
1219
|
+
| 'CZ'
|
|
1220
|
+
| 'DK'
|
|
1221
|
+
| 'DJ'
|
|
1222
|
+
| 'DM'
|
|
1223
|
+
| 'DO'
|
|
1224
|
+
| 'EC'
|
|
1225
|
+
| 'EG'
|
|
1226
|
+
| 'SV'
|
|
1227
|
+
| 'GQ'
|
|
1228
|
+
| 'ER'
|
|
1229
|
+
| 'EE'
|
|
1230
|
+
| 'ET'
|
|
1231
|
+
| 'FK'
|
|
1232
|
+
| 'FO'
|
|
1233
|
+
| 'FJ'
|
|
1234
|
+
| 'FI'
|
|
1235
|
+
| 'FR'
|
|
1236
|
+
| 'GF'
|
|
1237
|
+
| 'PF'
|
|
1238
|
+
| 'TF'
|
|
1239
|
+
| 'GA'
|
|
1240
|
+
| 'GM'
|
|
1241
|
+
| 'GE'
|
|
1242
|
+
| 'DE'
|
|
1243
|
+
| 'GH'
|
|
1244
|
+
| 'GI'
|
|
1245
|
+
| 'GR'
|
|
1246
|
+
| 'GL'
|
|
1247
|
+
| 'GD'
|
|
1248
|
+
| 'GP'
|
|
1249
|
+
| 'GU'
|
|
1250
|
+
| 'GT'
|
|
1251
|
+
| 'GN'
|
|
1252
|
+
| 'GW'
|
|
1253
|
+
| 'GY'
|
|
1254
|
+
| 'HT'
|
|
1255
|
+
| 'HM'
|
|
1256
|
+
| 'VA'
|
|
1257
|
+
| 'HN'
|
|
1258
|
+
| 'HK'
|
|
1259
|
+
| 'HU'
|
|
1260
|
+
| 'IS'
|
|
1261
|
+
| 'IN'
|
|
1262
|
+
| 'ID'
|
|
1263
|
+
| 'IR'
|
|
1264
|
+
| 'IQ'
|
|
1265
|
+
| 'IE'
|
|
1266
|
+
| 'IL'
|
|
1267
|
+
| 'IT'
|
|
1268
|
+
| 'JM'
|
|
1269
|
+
| 'JP'
|
|
1270
|
+
| 'JO'
|
|
1271
|
+
| 'KZ'
|
|
1272
|
+
| 'KE'
|
|
1273
|
+
| 'KI'
|
|
1274
|
+
| 'KP'
|
|
1275
|
+
| 'KR'
|
|
1276
|
+
| 'KW'
|
|
1277
|
+
| 'KG'
|
|
1278
|
+
| 'LA'
|
|
1279
|
+
| 'LV'
|
|
1280
|
+
| 'LB'
|
|
1281
|
+
| 'LS'
|
|
1282
|
+
| 'LR'
|
|
1283
|
+
| 'LY'
|
|
1284
|
+
| 'LI'
|
|
1285
|
+
| 'LT'
|
|
1286
|
+
| 'LU'
|
|
1287
|
+
| 'MO'
|
|
1288
|
+
| 'MG'
|
|
1289
|
+
| 'MW'
|
|
1290
|
+
| 'MY'
|
|
1291
|
+
| 'MV'
|
|
1292
|
+
| 'ML'
|
|
1293
|
+
| 'MT'
|
|
1294
|
+
| 'MH'
|
|
1295
|
+
| 'MQ'
|
|
1296
|
+
| 'MR'
|
|
1297
|
+
| 'MU'
|
|
1298
|
+
| 'YT'
|
|
1299
|
+
| 'MX'
|
|
1300
|
+
| 'FM'
|
|
1301
|
+
| 'MD'
|
|
1302
|
+
| 'MC'
|
|
1303
|
+
| 'MN'
|
|
1304
|
+
| 'MS'
|
|
1305
|
+
| 'MA'
|
|
1306
|
+
| 'MZ'
|
|
1307
|
+
| 'MM'
|
|
1308
|
+
| 'NA'
|
|
1309
|
+
| 'NR'
|
|
1310
|
+
| 'NP'
|
|
1311
|
+
| 'NL'
|
|
1312
|
+
| 'NC'
|
|
1313
|
+
| 'NZ'
|
|
1314
|
+
| 'NI'
|
|
1315
|
+
| 'NE'
|
|
1316
|
+
| 'NG'
|
|
1317
|
+
| 'NU'
|
|
1318
|
+
| 'NF'
|
|
1319
|
+
| 'MP'
|
|
1320
|
+
| 'MK'
|
|
1321
|
+
| 'NO'
|
|
1322
|
+
| 'OM'
|
|
1323
|
+
| 'PK'
|
|
1324
|
+
| 'PW'
|
|
1325
|
+
| 'PS'
|
|
1326
|
+
| 'PA'
|
|
1327
|
+
| 'PG'
|
|
1328
|
+
| 'PY'
|
|
1329
|
+
| 'PE'
|
|
1330
|
+
| 'PH'
|
|
1331
|
+
| 'PN'
|
|
1332
|
+
| 'PL'
|
|
1333
|
+
| 'PT'
|
|
1334
|
+
| 'PR'
|
|
1335
|
+
| 'QA'
|
|
1336
|
+
| 'RE'
|
|
1337
|
+
| 'RO'
|
|
1338
|
+
| 'RU'
|
|
1339
|
+
| 'RW'
|
|
1340
|
+
| 'SH'
|
|
1341
|
+
| 'KN'
|
|
1342
|
+
| 'LC'
|
|
1343
|
+
| 'PM'
|
|
1344
|
+
| 'VC'
|
|
1345
|
+
| 'WS'
|
|
1346
|
+
| 'SM'
|
|
1347
|
+
| 'ST'
|
|
1348
|
+
| 'SA'
|
|
1349
|
+
| 'SN'
|
|
1350
|
+
| 'SC'
|
|
1351
|
+
| 'SL'
|
|
1352
|
+
| 'SG'
|
|
1353
|
+
| 'SK'
|
|
1354
|
+
| 'SI'
|
|
1355
|
+
| 'SB'
|
|
1356
|
+
| 'SO'
|
|
1357
|
+
| 'ZA'
|
|
1358
|
+
| 'GS'
|
|
1359
|
+
| 'ES'
|
|
1360
|
+
| 'LK'
|
|
1361
|
+
| 'SD'
|
|
1362
|
+
| 'SR'
|
|
1363
|
+
| 'SJ'
|
|
1364
|
+
| 'SZ'
|
|
1365
|
+
| 'SE'
|
|
1366
|
+
| 'CH'
|
|
1367
|
+
| 'SY'
|
|
1368
|
+
| 'TW'
|
|
1369
|
+
| 'TJ'
|
|
1370
|
+
| 'TZ'
|
|
1371
|
+
| 'TH'
|
|
1372
|
+
| 'TL'
|
|
1373
|
+
| 'TG'
|
|
1374
|
+
| 'TK'
|
|
1375
|
+
| 'TO'
|
|
1376
|
+
| 'TT'
|
|
1377
|
+
| 'TN'
|
|
1378
|
+
| 'TR'
|
|
1379
|
+
| 'TM'
|
|
1380
|
+
| 'TC'
|
|
1381
|
+
| 'TV'
|
|
1382
|
+
| 'UG'
|
|
1383
|
+
| 'UA'
|
|
1384
|
+
| 'AE'
|
|
1385
|
+
| 'GB'
|
|
1386
|
+
| 'US'
|
|
1387
|
+
| 'UM'
|
|
1388
|
+
| 'UY'
|
|
1389
|
+
| 'UZ'
|
|
1390
|
+
| 'VU'
|
|
1391
|
+
| 'VE'
|
|
1392
|
+
| 'VN'
|
|
1393
|
+
| 'VG'
|
|
1394
|
+
| 'VI'
|
|
1395
|
+
| 'WF'
|
|
1396
|
+
| 'EH'
|
|
1397
|
+
| 'YE'
|
|
1398
|
+
| 'ZM'
|
|
1399
|
+
| 'ZW'
|
|
1400
|
+
| 'AX'
|
|
1401
|
+
| 'BQ'
|
|
1402
|
+
| 'CW'
|
|
1403
|
+
| 'GG'
|
|
1404
|
+
| 'IM'
|
|
1405
|
+
| 'JE'
|
|
1406
|
+
| 'ME'
|
|
1407
|
+
| 'BL'
|
|
1408
|
+
| 'MF'
|
|
1409
|
+
| 'RS'
|
|
1410
|
+
| 'SX'
|
|
1411
|
+
| 'SS'
|
|
1412
|
+
| 'XK';
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Primary street address, or null if not recorded.
|
|
1416
|
+
*/
|
|
1417
|
+
line_1: string | null;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Secondary street address, or null if not recorded.
|
|
1421
|
+
*/
|
|
1422
|
+
line_2: string | null;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Postal or ZIP code, or null if not recorded.
|
|
1426
|
+
*/
|
|
1427
|
+
postal_code: string | null;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* State, province, or region, or null if not recorded.
|
|
1431
|
+
*/
|
|
1432
|
+
state: string | null;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
export interface CounterpartyListResponse {
|
|
1437
|
+
/**
|
|
1438
|
+
* Unique identifier of the counterparty.
|
|
1439
|
+
*/
|
|
1440
|
+
id: string;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
1444
|
+
*/
|
|
1445
|
+
blocked: boolean;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
1449
|
+
*/
|
|
1450
|
+
date_of_birth: string | null;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether the counterparty is a business or an individual.
|
|
1454
|
+
*/
|
|
1455
|
+
entity_type: 'business' | 'individual';
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Financial address of the counterparty.
|
|
1459
|
+
*/
|
|
1460
|
+
financial_address:
|
|
1461
|
+
| CounterpartyListResponse.IbanFinancialAddress
|
|
1462
|
+
| CounterpartyListResponse.SortCodeFinancialAddress
|
|
1463
|
+
| CounterpartyListResponse.AbaFinancialAddress
|
|
1464
|
+
| CounterpartyListResponse.BicFinancialAddress
|
|
1465
|
+
| CounterpartyListResponse.CryptoWalletFinancialAddress;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
1469
|
+
* by you, `true` if it is.
|
|
1470
|
+
*/
|
|
1471
|
+
is_self_owned: boolean;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Name of the counterparty, or null if not recorded.
|
|
1475
|
+
*/
|
|
1476
|
+
name: string | null;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
1480
|
+
*/
|
|
1481
|
+
physical_address: CounterpartyListResponse.PhysicalAddress | null;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Resource type discriminator.
|
|
1485
|
+
*/
|
|
1486
|
+
type: 'counterparty';
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
export namespace CounterpartyListResponse {
|
|
1490
|
+
export interface IbanFinancialAddress {
|
|
1491
|
+
/**
|
|
1492
|
+
* Name of the account holder.
|
|
1493
|
+
*/
|
|
1494
|
+
account_holder_name: string;
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* Bank Identifier Code, or null if not provided.
|
|
1498
|
+
*/
|
|
1499
|
+
bic: string | null;
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* International Bank Account Number.
|
|
1503
|
+
*/
|
|
1504
|
+
iban: string;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Discriminator for IBAN financial address.
|
|
1508
|
+
*/
|
|
1509
|
+
type: 'iban';
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
export interface SortCodeFinancialAddress {
|
|
1513
|
+
/**
|
|
1514
|
+
* Name of the account holder.
|
|
1515
|
+
*/
|
|
1516
|
+
account_holder_name: string;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* UK account number (8 digits).
|
|
1520
|
+
*/
|
|
1521
|
+
account_number: string;
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* UK sort code (6 digits).
|
|
1525
|
+
*/
|
|
1526
|
+
sort_code: string;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Discriminator for UK sort code financial address.
|
|
1530
|
+
*/
|
|
1531
|
+
type: 'sort_code';
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
export interface AbaFinancialAddress {
|
|
1535
|
+
/**
|
|
1536
|
+
* Name of the account holder.
|
|
1537
|
+
*/
|
|
1538
|
+
account_holder_name: string;
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* Bank account number.
|
|
1542
|
+
*/
|
|
1543
|
+
account_number: string;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* ABA routing number (9 digits).
|
|
1547
|
+
*/
|
|
1548
|
+
routing_number: string;
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Discriminator for ABA wire financial address.
|
|
1552
|
+
*/
|
|
1553
|
+
type: 'aba';
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export interface BicFinancialAddress {
|
|
1557
|
+
/**
|
|
1558
|
+
* Name of the account holder.
|
|
1559
|
+
*/
|
|
1560
|
+
account_holder_name: string;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Local-format bank account number.
|
|
1564
|
+
*/
|
|
1565
|
+
account_number: string;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
1569
|
+
*/
|
|
1570
|
+
bic: string;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
1574
|
+
* the BSB in Australia), or null.
|
|
1575
|
+
*/
|
|
1576
|
+
local_bank_code: string | null;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Discriminator for BIC + local account financial address.
|
|
1580
|
+
*/
|
|
1581
|
+
type: 'bic';
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
export interface CryptoWalletFinancialAddress {
|
|
1585
|
+
/**
|
|
1586
|
+
* Wallet address on the specified blockchain.
|
|
1587
|
+
*/
|
|
1588
|
+
address: string;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Blockchain network for the crypto wallet.
|
|
1592
|
+
*/
|
|
1593
|
+
blockchain:
|
|
1594
|
+
| 'bitcoin'
|
|
1595
|
+
| 'ethereum'
|
|
1596
|
+
| 'solana'
|
|
1597
|
+
| 'polygon'
|
|
1598
|
+
| 'bitcoin_testnet4'
|
|
1599
|
+
| 'ethereum_sepolia'
|
|
1600
|
+
| 'solana_devnet'
|
|
1601
|
+
| 'polygon_amoy';
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* Discriminator for crypto wallet financial address.
|
|
1605
|
+
*/
|
|
1606
|
+
type: 'crypto_wallet';
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
1611
|
+
*/
|
|
1612
|
+
export interface PhysicalAddress {
|
|
1613
|
+
/**
|
|
1614
|
+
* City or locality.
|
|
1615
|
+
*/
|
|
1616
|
+
city: string;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1620
|
+
*/
|
|
1621
|
+
country_code:
|
|
1622
|
+
| 'AF'
|
|
1623
|
+
| 'AL'
|
|
1624
|
+
| 'DZ'
|
|
1625
|
+
| 'AS'
|
|
1626
|
+
| 'AD'
|
|
1627
|
+
| 'AO'
|
|
1628
|
+
| 'AI'
|
|
1629
|
+
| 'AQ'
|
|
1630
|
+
| 'AG'
|
|
1631
|
+
| 'AR'
|
|
1632
|
+
| 'AM'
|
|
1633
|
+
| 'AW'
|
|
1634
|
+
| 'AU'
|
|
1635
|
+
| 'AT'
|
|
1636
|
+
| 'AZ'
|
|
1637
|
+
| 'BS'
|
|
1638
|
+
| 'BH'
|
|
1639
|
+
| 'BD'
|
|
1640
|
+
| 'BB'
|
|
1641
|
+
| 'BY'
|
|
1642
|
+
| 'BE'
|
|
1643
|
+
| 'BZ'
|
|
1644
|
+
| 'BJ'
|
|
1645
|
+
| 'BM'
|
|
1646
|
+
| 'BT'
|
|
1647
|
+
| 'BO'
|
|
1648
|
+
| 'BA'
|
|
1649
|
+
| 'BW'
|
|
1650
|
+
| 'BV'
|
|
1651
|
+
| 'BR'
|
|
1652
|
+
| 'IO'
|
|
1653
|
+
| 'BN'
|
|
1654
|
+
| 'BG'
|
|
1655
|
+
| 'BF'
|
|
1656
|
+
| 'BI'
|
|
1657
|
+
| 'KH'
|
|
1658
|
+
| 'CM'
|
|
1659
|
+
| 'CA'
|
|
1660
|
+
| 'CV'
|
|
1661
|
+
| 'KY'
|
|
1662
|
+
| 'CF'
|
|
1663
|
+
| 'TD'
|
|
1664
|
+
| 'CL'
|
|
1665
|
+
| 'CN'
|
|
1666
|
+
| 'CX'
|
|
1667
|
+
| 'CC'
|
|
1668
|
+
| 'CO'
|
|
1669
|
+
| 'KM'
|
|
1670
|
+
| 'CG'
|
|
1671
|
+
| 'CD'
|
|
1672
|
+
| 'CK'
|
|
1673
|
+
| 'CR'
|
|
1674
|
+
| 'CI'
|
|
1675
|
+
| 'HR'
|
|
1676
|
+
| 'CU'
|
|
1677
|
+
| 'CY'
|
|
1678
|
+
| 'CZ'
|
|
1679
|
+
| 'DK'
|
|
1680
|
+
| 'DJ'
|
|
1681
|
+
| 'DM'
|
|
1682
|
+
| 'DO'
|
|
1683
|
+
| 'EC'
|
|
1684
|
+
| 'EG'
|
|
1685
|
+
| 'SV'
|
|
1686
|
+
| 'GQ'
|
|
1687
|
+
| 'ER'
|
|
1688
|
+
| 'EE'
|
|
1689
|
+
| 'ET'
|
|
1690
|
+
| 'FK'
|
|
1691
|
+
| 'FO'
|
|
1692
|
+
| 'FJ'
|
|
1693
|
+
| 'FI'
|
|
1694
|
+
| 'FR'
|
|
1695
|
+
| 'GF'
|
|
1696
|
+
| 'PF'
|
|
1697
|
+
| 'TF'
|
|
1698
|
+
| 'GA'
|
|
1699
|
+
| 'GM'
|
|
1700
|
+
| 'GE'
|
|
1701
|
+
| 'DE'
|
|
1702
|
+
| 'GH'
|
|
1703
|
+
| 'GI'
|
|
1704
|
+
| 'GR'
|
|
1705
|
+
| 'GL'
|
|
1706
|
+
| 'GD'
|
|
1707
|
+
| 'GP'
|
|
1708
|
+
| 'GU'
|
|
1709
|
+
| 'GT'
|
|
1710
|
+
| 'GN'
|
|
1711
|
+
| 'GW'
|
|
1712
|
+
| 'GY'
|
|
1713
|
+
| 'HT'
|
|
1714
|
+
| 'HM'
|
|
1715
|
+
| 'VA'
|
|
1716
|
+
| 'HN'
|
|
1717
|
+
| 'HK'
|
|
1718
|
+
| 'HU'
|
|
1719
|
+
| 'IS'
|
|
1720
|
+
| 'IN'
|
|
1721
|
+
| 'ID'
|
|
1722
|
+
| 'IR'
|
|
1723
|
+
| 'IQ'
|
|
1724
|
+
| 'IE'
|
|
1725
|
+
| 'IL'
|
|
1726
|
+
| 'IT'
|
|
1727
|
+
| 'JM'
|
|
1728
|
+
| 'JP'
|
|
1729
|
+
| 'JO'
|
|
1730
|
+
| 'KZ'
|
|
1731
|
+
| 'KE'
|
|
1732
|
+
| 'KI'
|
|
1733
|
+
| 'KP'
|
|
1734
|
+
| 'KR'
|
|
1735
|
+
| 'KW'
|
|
1736
|
+
| 'KG'
|
|
1737
|
+
| 'LA'
|
|
1738
|
+
| 'LV'
|
|
1739
|
+
| 'LB'
|
|
1740
|
+
| 'LS'
|
|
1741
|
+
| 'LR'
|
|
1742
|
+
| 'LY'
|
|
1743
|
+
| 'LI'
|
|
1744
|
+
| 'LT'
|
|
1745
|
+
| 'LU'
|
|
1746
|
+
| 'MO'
|
|
1747
|
+
| 'MG'
|
|
1748
|
+
| 'MW'
|
|
1749
|
+
| 'MY'
|
|
1750
|
+
| 'MV'
|
|
1751
|
+
| 'ML'
|
|
1752
|
+
| 'MT'
|
|
1753
|
+
| 'MH'
|
|
1754
|
+
| 'MQ'
|
|
1755
|
+
| 'MR'
|
|
1756
|
+
| 'MU'
|
|
1757
|
+
| 'YT'
|
|
1758
|
+
| 'MX'
|
|
1759
|
+
| 'FM'
|
|
1760
|
+
| 'MD'
|
|
1761
|
+
| 'MC'
|
|
1762
|
+
| 'MN'
|
|
1763
|
+
| 'MS'
|
|
1764
|
+
| 'MA'
|
|
1765
|
+
| 'MZ'
|
|
1766
|
+
| 'MM'
|
|
1767
|
+
| 'NA'
|
|
1768
|
+
| 'NR'
|
|
1769
|
+
| 'NP'
|
|
1770
|
+
| 'NL'
|
|
1771
|
+
| 'NC'
|
|
1772
|
+
| 'NZ'
|
|
1773
|
+
| 'NI'
|
|
1774
|
+
| 'NE'
|
|
1775
|
+
| 'NG'
|
|
1776
|
+
| 'NU'
|
|
1777
|
+
| 'NF'
|
|
1778
|
+
| 'MP'
|
|
1779
|
+
| 'MK'
|
|
1780
|
+
| 'NO'
|
|
1781
|
+
| 'OM'
|
|
1782
|
+
| 'PK'
|
|
1783
|
+
| 'PW'
|
|
1784
|
+
| 'PS'
|
|
1785
|
+
| 'PA'
|
|
1786
|
+
| 'PG'
|
|
1787
|
+
| 'PY'
|
|
1788
|
+
| 'PE'
|
|
1789
|
+
| 'PH'
|
|
1790
|
+
| 'PN'
|
|
1791
|
+
| 'PL'
|
|
1792
|
+
| 'PT'
|
|
1793
|
+
| 'PR'
|
|
1794
|
+
| 'QA'
|
|
1795
|
+
| 'RE'
|
|
1796
|
+
| 'RO'
|
|
1797
|
+
| 'RU'
|
|
1798
|
+
| 'RW'
|
|
1799
|
+
| 'SH'
|
|
1800
|
+
| 'KN'
|
|
1801
|
+
| 'LC'
|
|
1802
|
+
| 'PM'
|
|
1803
|
+
| 'VC'
|
|
1804
|
+
| 'WS'
|
|
1805
|
+
| 'SM'
|
|
1806
|
+
| 'ST'
|
|
1807
|
+
| 'SA'
|
|
1808
|
+
| 'SN'
|
|
1809
|
+
| 'SC'
|
|
1810
|
+
| 'SL'
|
|
1811
|
+
| 'SG'
|
|
1812
|
+
| 'SK'
|
|
1813
|
+
| 'SI'
|
|
1814
|
+
| 'SB'
|
|
1815
|
+
| 'SO'
|
|
1816
|
+
| 'ZA'
|
|
1817
|
+
| 'GS'
|
|
1818
|
+
| 'ES'
|
|
1819
|
+
| 'LK'
|
|
1820
|
+
| 'SD'
|
|
1821
|
+
| 'SR'
|
|
1822
|
+
| 'SJ'
|
|
1823
|
+
| 'SZ'
|
|
1824
|
+
| 'SE'
|
|
1825
|
+
| 'CH'
|
|
1826
|
+
| 'SY'
|
|
1827
|
+
| 'TW'
|
|
1828
|
+
| 'TJ'
|
|
1829
|
+
| 'TZ'
|
|
1830
|
+
| 'TH'
|
|
1831
|
+
| 'TL'
|
|
1832
|
+
| 'TG'
|
|
1833
|
+
| 'TK'
|
|
1834
|
+
| 'TO'
|
|
1835
|
+
| 'TT'
|
|
1836
|
+
| 'TN'
|
|
1837
|
+
| 'TR'
|
|
1838
|
+
| 'TM'
|
|
1839
|
+
| 'TC'
|
|
1840
|
+
| 'TV'
|
|
1841
|
+
| 'UG'
|
|
1842
|
+
| 'UA'
|
|
1843
|
+
| 'AE'
|
|
1844
|
+
| 'GB'
|
|
1845
|
+
| 'US'
|
|
1846
|
+
| 'UM'
|
|
1847
|
+
| 'UY'
|
|
1848
|
+
| 'UZ'
|
|
1849
|
+
| 'VU'
|
|
1850
|
+
| 'VE'
|
|
1851
|
+
| 'VN'
|
|
1852
|
+
| 'VG'
|
|
1853
|
+
| 'VI'
|
|
1854
|
+
| 'WF'
|
|
1855
|
+
| 'EH'
|
|
1856
|
+
| 'YE'
|
|
1857
|
+
| 'ZM'
|
|
1858
|
+
| 'ZW'
|
|
1859
|
+
| 'AX'
|
|
1860
|
+
| 'BQ'
|
|
1861
|
+
| 'CW'
|
|
1862
|
+
| 'GG'
|
|
1863
|
+
| 'IM'
|
|
1864
|
+
| 'JE'
|
|
1865
|
+
| 'ME'
|
|
1866
|
+
| 'BL'
|
|
1867
|
+
| 'MF'
|
|
1868
|
+
| 'RS'
|
|
1869
|
+
| 'SX'
|
|
1870
|
+
| 'SS'
|
|
1871
|
+
| 'XK';
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Primary street address, or null if not recorded.
|
|
1875
|
+
*/
|
|
1876
|
+
line_1: string | null;
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Secondary street address, or null if not recorded.
|
|
1880
|
+
*/
|
|
1881
|
+
line_2: string | null;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Postal or ZIP code, or null if not recorded.
|
|
1885
|
+
*/
|
|
1886
|
+
postal_code: string | null;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* State, province, or region, or null if not recorded.
|
|
1890
|
+
*/
|
|
1891
|
+
state: string | null;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export interface CounterpartyBlockResponse {
|
|
1896
|
+
/**
|
|
1897
|
+
* Unique identifier of the counterparty.
|
|
1898
|
+
*/
|
|
1899
|
+
id: string;
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
1903
|
+
*/
|
|
1904
|
+
blocked: boolean;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
1908
|
+
*/
|
|
1909
|
+
date_of_birth: string | null;
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Whether the counterparty is a business or an individual.
|
|
1913
|
+
*/
|
|
1914
|
+
entity_type: 'business' | 'individual';
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* Financial address of the counterparty.
|
|
1918
|
+
*/
|
|
1919
|
+
financial_address:
|
|
1920
|
+
| CounterpartyBlockResponse.IbanFinancialAddress
|
|
1921
|
+
| CounterpartyBlockResponse.SortCodeFinancialAddress
|
|
1922
|
+
| CounterpartyBlockResponse.AbaFinancialAddress
|
|
1923
|
+
| CounterpartyBlockResponse.BicFinancialAddress
|
|
1924
|
+
| CounterpartyBlockResponse.CryptoWalletFinancialAddress;
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
1928
|
+
* by you, `true` if it is.
|
|
1929
|
+
*/
|
|
1930
|
+
is_self_owned: boolean;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Name of the counterparty, or null if not recorded.
|
|
1934
|
+
*/
|
|
1935
|
+
name: string | null;
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
1939
|
+
*/
|
|
1940
|
+
physical_address: CounterpartyBlockResponse.PhysicalAddress | null;
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Resource type discriminator.
|
|
1944
|
+
*/
|
|
1945
|
+
type: 'counterparty';
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
export namespace CounterpartyBlockResponse {
|
|
1949
|
+
export interface IbanFinancialAddress {
|
|
1950
|
+
/**
|
|
1951
|
+
* Name of the account holder.
|
|
1952
|
+
*/
|
|
1953
|
+
account_holder_name: string;
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* Bank Identifier Code, or null if not provided.
|
|
1957
|
+
*/
|
|
1958
|
+
bic: string | null;
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* International Bank Account Number.
|
|
1962
|
+
*/
|
|
1963
|
+
iban: string;
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Discriminator for IBAN financial address.
|
|
1967
|
+
*/
|
|
1968
|
+
type: 'iban';
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
export interface SortCodeFinancialAddress {
|
|
1972
|
+
/**
|
|
1973
|
+
* Name of the account holder.
|
|
1974
|
+
*/
|
|
1975
|
+
account_holder_name: string;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* UK account number (8 digits).
|
|
1979
|
+
*/
|
|
1980
|
+
account_number: string;
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* UK sort code (6 digits).
|
|
1984
|
+
*/
|
|
1985
|
+
sort_code: string;
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Discriminator for UK sort code financial address.
|
|
1989
|
+
*/
|
|
1990
|
+
type: 'sort_code';
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
export interface AbaFinancialAddress {
|
|
1994
|
+
/**
|
|
1995
|
+
* Name of the account holder.
|
|
1996
|
+
*/
|
|
1997
|
+
account_holder_name: string;
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Bank account number.
|
|
2001
|
+
*/
|
|
2002
|
+
account_number: string;
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* ABA routing number (9 digits).
|
|
2006
|
+
*/
|
|
2007
|
+
routing_number: string;
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Discriminator for ABA wire financial address.
|
|
2011
|
+
*/
|
|
2012
|
+
type: 'aba';
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
export interface BicFinancialAddress {
|
|
2016
|
+
/**
|
|
2017
|
+
* Name of the account holder.
|
|
2018
|
+
*/
|
|
2019
|
+
account_holder_name: string;
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* Local-format bank account number.
|
|
2023
|
+
*/
|
|
2024
|
+
account_number: string;
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
2028
|
+
*/
|
|
2029
|
+
bic: string;
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
2033
|
+
* the BSB in Australia), or null.
|
|
2034
|
+
*/
|
|
2035
|
+
local_bank_code: string | null;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Discriminator for BIC + local account financial address.
|
|
2039
|
+
*/
|
|
2040
|
+
type: 'bic';
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
export interface CryptoWalletFinancialAddress {
|
|
2044
|
+
/**
|
|
2045
|
+
* Wallet address on the specified blockchain.
|
|
2046
|
+
*/
|
|
2047
|
+
address: string;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Blockchain network for the crypto wallet.
|
|
2051
|
+
*/
|
|
2052
|
+
blockchain:
|
|
2053
|
+
| 'bitcoin'
|
|
2054
|
+
| 'ethereum'
|
|
2055
|
+
| 'solana'
|
|
2056
|
+
| 'polygon'
|
|
2057
|
+
| 'bitcoin_testnet4'
|
|
2058
|
+
| 'ethereum_sepolia'
|
|
2059
|
+
| 'solana_devnet'
|
|
2060
|
+
| 'polygon_amoy';
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* Discriminator for crypto wallet financial address.
|
|
2064
|
+
*/
|
|
2065
|
+
type: 'crypto_wallet';
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
2070
|
+
*/
|
|
2071
|
+
export interface PhysicalAddress {
|
|
2072
|
+
/**
|
|
2073
|
+
* City or locality.
|
|
2074
|
+
*/
|
|
2075
|
+
city: string;
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2079
|
+
*/
|
|
2080
|
+
country_code:
|
|
2081
|
+
| 'AF'
|
|
2082
|
+
| 'AL'
|
|
2083
|
+
| 'DZ'
|
|
2084
|
+
| 'AS'
|
|
2085
|
+
| 'AD'
|
|
2086
|
+
| 'AO'
|
|
2087
|
+
| 'AI'
|
|
2088
|
+
| 'AQ'
|
|
2089
|
+
| 'AG'
|
|
2090
|
+
| 'AR'
|
|
2091
|
+
| 'AM'
|
|
2092
|
+
| 'AW'
|
|
2093
|
+
| 'AU'
|
|
2094
|
+
| 'AT'
|
|
2095
|
+
| 'AZ'
|
|
2096
|
+
| 'BS'
|
|
2097
|
+
| 'BH'
|
|
2098
|
+
| 'BD'
|
|
2099
|
+
| 'BB'
|
|
2100
|
+
| 'BY'
|
|
2101
|
+
| 'BE'
|
|
2102
|
+
| 'BZ'
|
|
2103
|
+
| 'BJ'
|
|
2104
|
+
| 'BM'
|
|
2105
|
+
| 'BT'
|
|
2106
|
+
| 'BO'
|
|
2107
|
+
| 'BA'
|
|
2108
|
+
| 'BW'
|
|
2109
|
+
| 'BV'
|
|
2110
|
+
| 'BR'
|
|
2111
|
+
| 'IO'
|
|
2112
|
+
| 'BN'
|
|
2113
|
+
| 'BG'
|
|
2114
|
+
| 'BF'
|
|
2115
|
+
| 'BI'
|
|
2116
|
+
| 'KH'
|
|
2117
|
+
| 'CM'
|
|
2118
|
+
| 'CA'
|
|
2119
|
+
| 'CV'
|
|
2120
|
+
| 'KY'
|
|
2121
|
+
| 'CF'
|
|
2122
|
+
| 'TD'
|
|
2123
|
+
| 'CL'
|
|
2124
|
+
| 'CN'
|
|
2125
|
+
| 'CX'
|
|
2126
|
+
| 'CC'
|
|
2127
|
+
| 'CO'
|
|
2128
|
+
| 'KM'
|
|
2129
|
+
| 'CG'
|
|
2130
|
+
| 'CD'
|
|
2131
|
+
| 'CK'
|
|
2132
|
+
| 'CR'
|
|
2133
|
+
| 'CI'
|
|
2134
|
+
| 'HR'
|
|
2135
|
+
| 'CU'
|
|
2136
|
+
| 'CY'
|
|
2137
|
+
| 'CZ'
|
|
2138
|
+
| 'DK'
|
|
2139
|
+
| 'DJ'
|
|
2140
|
+
| 'DM'
|
|
2141
|
+
| 'DO'
|
|
2142
|
+
| 'EC'
|
|
2143
|
+
| 'EG'
|
|
2144
|
+
| 'SV'
|
|
2145
|
+
| 'GQ'
|
|
2146
|
+
| 'ER'
|
|
2147
|
+
| 'EE'
|
|
2148
|
+
| 'ET'
|
|
2149
|
+
| 'FK'
|
|
2150
|
+
| 'FO'
|
|
2151
|
+
| 'FJ'
|
|
2152
|
+
| 'FI'
|
|
2153
|
+
| 'FR'
|
|
2154
|
+
| 'GF'
|
|
2155
|
+
| 'PF'
|
|
2156
|
+
| 'TF'
|
|
2157
|
+
| 'GA'
|
|
2158
|
+
| 'GM'
|
|
2159
|
+
| 'GE'
|
|
2160
|
+
| 'DE'
|
|
2161
|
+
| 'GH'
|
|
2162
|
+
| 'GI'
|
|
2163
|
+
| 'GR'
|
|
2164
|
+
| 'GL'
|
|
2165
|
+
| 'GD'
|
|
2166
|
+
| 'GP'
|
|
2167
|
+
| 'GU'
|
|
2168
|
+
| 'GT'
|
|
2169
|
+
| 'GN'
|
|
2170
|
+
| 'GW'
|
|
2171
|
+
| 'GY'
|
|
2172
|
+
| 'HT'
|
|
2173
|
+
| 'HM'
|
|
2174
|
+
| 'VA'
|
|
2175
|
+
| 'HN'
|
|
2176
|
+
| 'HK'
|
|
2177
|
+
| 'HU'
|
|
2178
|
+
| 'IS'
|
|
2179
|
+
| 'IN'
|
|
2180
|
+
| 'ID'
|
|
2181
|
+
| 'IR'
|
|
2182
|
+
| 'IQ'
|
|
2183
|
+
| 'IE'
|
|
2184
|
+
| 'IL'
|
|
2185
|
+
| 'IT'
|
|
2186
|
+
| 'JM'
|
|
2187
|
+
| 'JP'
|
|
2188
|
+
| 'JO'
|
|
2189
|
+
| 'KZ'
|
|
2190
|
+
| 'KE'
|
|
2191
|
+
| 'KI'
|
|
2192
|
+
| 'KP'
|
|
2193
|
+
| 'KR'
|
|
2194
|
+
| 'KW'
|
|
2195
|
+
| 'KG'
|
|
2196
|
+
| 'LA'
|
|
2197
|
+
| 'LV'
|
|
2198
|
+
| 'LB'
|
|
2199
|
+
| 'LS'
|
|
2200
|
+
| 'LR'
|
|
2201
|
+
| 'LY'
|
|
2202
|
+
| 'LI'
|
|
2203
|
+
| 'LT'
|
|
2204
|
+
| 'LU'
|
|
2205
|
+
| 'MO'
|
|
2206
|
+
| 'MG'
|
|
2207
|
+
| 'MW'
|
|
2208
|
+
| 'MY'
|
|
2209
|
+
| 'MV'
|
|
2210
|
+
| 'ML'
|
|
2211
|
+
| 'MT'
|
|
2212
|
+
| 'MH'
|
|
2213
|
+
| 'MQ'
|
|
2214
|
+
| 'MR'
|
|
2215
|
+
| 'MU'
|
|
2216
|
+
| 'YT'
|
|
2217
|
+
| 'MX'
|
|
2218
|
+
| 'FM'
|
|
2219
|
+
| 'MD'
|
|
2220
|
+
| 'MC'
|
|
2221
|
+
| 'MN'
|
|
2222
|
+
| 'MS'
|
|
2223
|
+
| 'MA'
|
|
2224
|
+
| 'MZ'
|
|
2225
|
+
| 'MM'
|
|
2226
|
+
| 'NA'
|
|
2227
|
+
| 'NR'
|
|
2228
|
+
| 'NP'
|
|
2229
|
+
| 'NL'
|
|
2230
|
+
| 'NC'
|
|
2231
|
+
| 'NZ'
|
|
2232
|
+
| 'NI'
|
|
2233
|
+
| 'NE'
|
|
2234
|
+
| 'NG'
|
|
2235
|
+
| 'NU'
|
|
2236
|
+
| 'NF'
|
|
2237
|
+
| 'MP'
|
|
2238
|
+
| 'MK'
|
|
2239
|
+
| 'NO'
|
|
2240
|
+
| 'OM'
|
|
2241
|
+
| 'PK'
|
|
2242
|
+
| 'PW'
|
|
2243
|
+
| 'PS'
|
|
2244
|
+
| 'PA'
|
|
2245
|
+
| 'PG'
|
|
2246
|
+
| 'PY'
|
|
2247
|
+
| 'PE'
|
|
2248
|
+
| 'PH'
|
|
2249
|
+
| 'PN'
|
|
2250
|
+
| 'PL'
|
|
2251
|
+
| 'PT'
|
|
2252
|
+
| 'PR'
|
|
2253
|
+
| 'QA'
|
|
2254
|
+
| 'RE'
|
|
2255
|
+
| 'RO'
|
|
2256
|
+
| 'RU'
|
|
2257
|
+
| 'RW'
|
|
2258
|
+
| 'SH'
|
|
2259
|
+
| 'KN'
|
|
2260
|
+
| 'LC'
|
|
2261
|
+
| 'PM'
|
|
2262
|
+
| 'VC'
|
|
2263
|
+
| 'WS'
|
|
2264
|
+
| 'SM'
|
|
2265
|
+
| 'ST'
|
|
2266
|
+
| 'SA'
|
|
2267
|
+
| 'SN'
|
|
2268
|
+
| 'SC'
|
|
2269
|
+
| 'SL'
|
|
2270
|
+
| 'SG'
|
|
2271
|
+
| 'SK'
|
|
2272
|
+
| 'SI'
|
|
2273
|
+
| 'SB'
|
|
2274
|
+
| 'SO'
|
|
2275
|
+
| 'ZA'
|
|
2276
|
+
| 'GS'
|
|
2277
|
+
| 'ES'
|
|
2278
|
+
| 'LK'
|
|
2279
|
+
| 'SD'
|
|
2280
|
+
| 'SR'
|
|
2281
|
+
| 'SJ'
|
|
2282
|
+
| 'SZ'
|
|
2283
|
+
| 'SE'
|
|
2284
|
+
| 'CH'
|
|
2285
|
+
| 'SY'
|
|
2286
|
+
| 'TW'
|
|
2287
|
+
| 'TJ'
|
|
2288
|
+
| 'TZ'
|
|
2289
|
+
| 'TH'
|
|
2290
|
+
| 'TL'
|
|
2291
|
+
| 'TG'
|
|
2292
|
+
| 'TK'
|
|
2293
|
+
| 'TO'
|
|
2294
|
+
| 'TT'
|
|
2295
|
+
| 'TN'
|
|
2296
|
+
| 'TR'
|
|
2297
|
+
| 'TM'
|
|
2298
|
+
| 'TC'
|
|
2299
|
+
| 'TV'
|
|
2300
|
+
| 'UG'
|
|
2301
|
+
| 'UA'
|
|
2302
|
+
| 'AE'
|
|
2303
|
+
| 'GB'
|
|
2304
|
+
| 'US'
|
|
2305
|
+
| 'UM'
|
|
2306
|
+
| 'UY'
|
|
2307
|
+
| 'UZ'
|
|
2308
|
+
| 'VU'
|
|
2309
|
+
| 'VE'
|
|
2310
|
+
| 'VN'
|
|
2311
|
+
| 'VG'
|
|
2312
|
+
| 'VI'
|
|
2313
|
+
| 'WF'
|
|
2314
|
+
| 'EH'
|
|
2315
|
+
| 'YE'
|
|
2316
|
+
| 'ZM'
|
|
2317
|
+
| 'ZW'
|
|
2318
|
+
| 'AX'
|
|
2319
|
+
| 'BQ'
|
|
2320
|
+
| 'CW'
|
|
2321
|
+
| 'GG'
|
|
2322
|
+
| 'IM'
|
|
2323
|
+
| 'JE'
|
|
2324
|
+
| 'ME'
|
|
2325
|
+
| 'BL'
|
|
2326
|
+
| 'MF'
|
|
2327
|
+
| 'RS'
|
|
2328
|
+
| 'SX'
|
|
2329
|
+
| 'SS'
|
|
2330
|
+
| 'XK';
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* Primary street address, or null if not recorded.
|
|
2334
|
+
*/
|
|
2335
|
+
line_1: string | null;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Secondary street address, or null if not recorded.
|
|
2339
|
+
*/
|
|
2340
|
+
line_2: string | null;
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* Postal or ZIP code, or null if not recorded.
|
|
2344
|
+
*/
|
|
2345
|
+
postal_code: string | null;
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* State, province, or region, or null if not recorded.
|
|
2349
|
+
*/
|
|
2350
|
+
state: string | null;
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
export interface CounterpartyCreateParams {
|
|
2355
|
+
/**
|
|
2356
|
+
* Financial address of the counterparty.
|
|
2357
|
+
*/
|
|
2358
|
+
financial_address:
|
|
2359
|
+
| CounterpartyCreateParams.IbanFinancialAddressRequest
|
|
2360
|
+
| CounterpartyCreateParams.SortCodeFinancialAddress
|
|
2361
|
+
| CounterpartyCreateParams.AbaFinancialAddress
|
|
2362
|
+
| CounterpartyCreateParams.BicFinancialAddressRequest
|
|
2363
|
+
| CounterpartyCreateParams.CryptoWalletFinancialAddress;
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* Date of birth in YYYY-MM-DD format.
|
|
2367
|
+
*/
|
|
2368
|
+
date_of_birth?: string;
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* Whether the counterparty is a business or an individual. Defaults to business.
|
|
2372
|
+
*/
|
|
2373
|
+
entity_type?: 'business' | 'individual';
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
2377
|
+
* by you, `true` if it is.
|
|
2378
|
+
*/
|
|
2379
|
+
is_self_owned?: boolean;
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* Name of the counterparty.
|
|
2383
|
+
*/
|
|
2384
|
+
name?: string;
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* Physical address of the counterparty.
|
|
2388
|
+
*/
|
|
2389
|
+
physical_address?: CounterpartyCreateParams.PhysicalAddress;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
export namespace CounterpartyCreateParams {
|
|
2393
|
+
export interface IbanFinancialAddressRequest {
|
|
2394
|
+
/**
|
|
2395
|
+
* Name of the account holder.
|
|
2396
|
+
*/
|
|
2397
|
+
account_holder_name: string;
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* International Bank Account Number.
|
|
2401
|
+
*/
|
|
2402
|
+
iban: string;
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Discriminator for IBAN financial address.
|
|
2406
|
+
*/
|
|
2407
|
+
type: 'iban';
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
2411
|
+
*/
|
|
2412
|
+
bic?: string | null;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
export interface SortCodeFinancialAddress {
|
|
2416
|
+
/**
|
|
2417
|
+
* Name of the account holder.
|
|
2418
|
+
*/
|
|
2419
|
+
account_holder_name: string;
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
* UK account number (8 digits).
|
|
2423
|
+
*/
|
|
2424
|
+
account_number: string;
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* UK sort code (6 digits).
|
|
2428
|
+
*/
|
|
2429
|
+
sort_code: string;
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* Discriminator for UK sort code financial address.
|
|
2433
|
+
*/
|
|
2434
|
+
type: 'sort_code';
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
export interface AbaFinancialAddress {
|
|
2438
|
+
/**
|
|
2439
|
+
* Name of the account holder.
|
|
2440
|
+
*/
|
|
2441
|
+
account_holder_name: string;
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Bank account number.
|
|
2445
|
+
*/
|
|
2446
|
+
account_number: string;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* ABA routing number (9 digits).
|
|
2450
|
+
*/
|
|
2451
|
+
routing_number: string;
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Discriminator for ABA wire financial address.
|
|
2455
|
+
*/
|
|
2456
|
+
type: 'aba';
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
export interface BicFinancialAddressRequest {
|
|
2460
|
+
/**
|
|
2461
|
+
* Name of the account holder.
|
|
2462
|
+
*/
|
|
2463
|
+
account_holder_name: string;
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
2467
|
+
*/
|
|
2468
|
+
account_number: string;
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
2472
|
+
*/
|
|
2473
|
+
bic: string;
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* Discriminator for BIC + local account financial address.
|
|
2477
|
+
*/
|
|
2478
|
+
type: 'bic';
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
2482
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
2483
|
+
*/
|
|
2484
|
+
local_bank_code?: string | null;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
export interface CryptoWalletFinancialAddress {
|
|
2488
|
+
/**
|
|
2489
|
+
* Wallet address on the specified blockchain.
|
|
2490
|
+
*/
|
|
2491
|
+
address: string;
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Blockchain network for the crypto wallet.
|
|
2495
|
+
*/
|
|
2496
|
+
blockchain:
|
|
2497
|
+
| 'bitcoin'
|
|
2498
|
+
| 'ethereum'
|
|
2499
|
+
| 'solana'
|
|
2500
|
+
| 'polygon'
|
|
2501
|
+
| 'bitcoin_testnet4'
|
|
2502
|
+
| 'ethereum_sepolia'
|
|
2503
|
+
| 'solana_devnet'
|
|
2504
|
+
| 'polygon_amoy';
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Discriminator for crypto wallet financial address.
|
|
2508
|
+
*/
|
|
2509
|
+
type: 'crypto_wallet';
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Physical address of the counterparty.
|
|
2514
|
+
*/
|
|
2515
|
+
export interface PhysicalAddress {
|
|
2516
|
+
/**
|
|
2517
|
+
* City or locality.
|
|
2518
|
+
*/
|
|
2519
|
+
city: string;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2523
|
+
*/
|
|
2524
|
+
country_code:
|
|
2525
|
+
| 'AF'
|
|
2526
|
+
| 'AL'
|
|
2527
|
+
| 'DZ'
|
|
2528
|
+
| 'AS'
|
|
2529
|
+
| 'AD'
|
|
2530
|
+
| 'AO'
|
|
2531
|
+
| 'AI'
|
|
2532
|
+
| 'AQ'
|
|
2533
|
+
| 'AG'
|
|
2534
|
+
| 'AR'
|
|
2535
|
+
| 'AM'
|
|
2536
|
+
| 'AW'
|
|
2537
|
+
| 'AU'
|
|
2538
|
+
| 'AT'
|
|
2539
|
+
| 'AZ'
|
|
2540
|
+
| 'BS'
|
|
2541
|
+
| 'BH'
|
|
2542
|
+
| 'BD'
|
|
2543
|
+
| 'BB'
|
|
2544
|
+
| 'BY'
|
|
2545
|
+
| 'BE'
|
|
2546
|
+
| 'BZ'
|
|
2547
|
+
| 'BJ'
|
|
2548
|
+
| 'BM'
|
|
2549
|
+
| 'BT'
|
|
2550
|
+
| 'BO'
|
|
2551
|
+
| 'BA'
|
|
2552
|
+
| 'BW'
|
|
2553
|
+
| 'BV'
|
|
2554
|
+
| 'BR'
|
|
2555
|
+
| 'IO'
|
|
2556
|
+
| 'BN'
|
|
2557
|
+
| 'BG'
|
|
2558
|
+
| 'BF'
|
|
2559
|
+
| 'BI'
|
|
2560
|
+
| 'KH'
|
|
2561
|
+
| 'CM'
|
|
2562
|
+
| 'CA'
|
|
2563
|
+
| 'CV'
|
|
2564
|
+
| 'KY'
|
|
2565
|
+
| 'CF'
|
|
2566
|
+
| 'TD'
|
|
2567
|
+
| 'CL'
|
|
2568
|
+
| 'CN'
|
|
2569
|
+
| 'CX'
|
|
2570
|
+
| 'CC'
|
|
2571
|
+
| 'CO'
|
|
2572
|
+
| 'KM'
|
|
2573
|
+
| 'CG'
|
|
2574
|
+
| 'CD'
|
|
2575
|
+
| 'CK'
|
|
2576
|
+
| 'CR'
|
|
2577
|
+
| 'CI'
|
|
2578
|
+
| 'HR'
|
|
2579
|
+
| 'CU'
|
|
2580
|
+
| 'CY'
|
|
2581
|
+
| 'CZ'
|
|
2582
|
+
| 'DK'
|
|
2583
|
+
| 'DJ'
|
|
2584
|
+
| 'DM'
|
|
2585
|
+
| 'DO'
|
|
2586
|
+
| 'EC'
|
|
2587
|
+
| 'EG'
|
|
2588
|
+
| 'SV'
|
|
2589
|
+
| 'GQ'
|
|
2590
|
+
| 'ER'
|
|
2591
|
+
| 'EE'
|
|
2592
|
+
| 'ET'
|
|
2593
|
+
| 'FK'
|
|
2594
|
+
| 'FO'
|
|
2595
|
+
| 'FJ'
|
|
2596
|
+
| 'FI'
|
|
2597
|
+
| 'FR'
|
|
2598
|
+
| 'GF'
|
|
2599
|
+
| 'PF'
|
|
2600
|
+
| 'TF'
|
|
2601
|
+
| 'GA'
|
|
2602
|
+
| 'GM'
|
|
2603
|
+
| 'GE'
|
|
2604
|
+
| 'DE'
|
|
2605
|
+
| 'GH'
|
|
2606
|
+
| 'GI'
|
|
2607
|
+
| 'GR'
|
|
2608
|
+
| 'GL'
|
|
2609
|
+
| 'GD'
|
|
2610
|
+
| 'GP'
|
|
2611
|
+
| 'GU'
|
|
2612
|
+
| 'GT'
|
|
2613
|
+
| 'GN'
|
|
2614
|
+
| 'GW'
|
|
2615
|
+
| 'GY'
|
|
2616
|
+
| 'HT'
|
|
2617
|
+
| 'HM'
|
|
2618
|
+
| 'VA'
|
|
2619
|
+
| 'HN'
|
|
2620
|
+
| 'HK'
|
|
2621
|
+
| 'HU'
|
|
2622
|
+
| 'IS'
|
|
2623
|
+
| 'IN'
|
|
2624
|
+
| 'ID'
|
|
2625
|
+
| 'IR'
|
|
2626
|
+
| 'IQ'
|
|
2627
|
+
| 'IE'
|
|
2628
|
+
| 'IL'
|
|
2629
|
+
| 'IT'
|
|
2630
|
+
| 'JM'
|
|
2631
|
+
| 'JP'
|
|
2632
|
+
| 'JO'
|
|
2633
|
+
| 'KZ'
|
|
2634
|
+
| 'KE'
|
|
2635
|
+
| 'KI'
|
|
2636
|
+
| 'KP'
|
|
2637
|
+
| 'KR'
|
|
2638
|
+
| 'KW'
|
|
2639
|
+
| 'KG'
|
|
2640
|
+
| 'LA'
|
|
2641
|
+
| 'LV'
|
|
2642
|
+
| 'LB'
|
|
2643
|
+
| 'LS'
|
|
2644
|
+
| 'LR'
|
|
2645
|
+
| 'LY'
|
|
2646
|
+
| 'LI'
|
|
2647
|
+
| 'LT'
|
|
2648
|
+
| 'LU'
|
|
2649
|
+
| 'MO'
|
|
2650
|
+
| 'MG'
|
|
2651
|
+
| 'MW'
|
|
2652
|
+
| 'MY'
|
|
2653
|
+
| 'MV'
|
|
2654
|
+
| 'ML'
|
|
2655
|
+
| 'MT'
|
|
2656
|
+
| 'MH'
|
|
2657
|
+
| 'MQ'
|
|
2658
|
+
| 'MR'
|
|
2659
|
+
| 'MU'
|
|
2660
|
+
| 'YT'
|
|
2661
|
+
| 'MX'
|
|
2662
|
+
| 'FM'
|
|
2663
|
+
| 'MD'
|
|
2664
|
+
| 'MC'
|
|
2665
|
+
| 'MN'
|
|
2666
|
+
| 'MS'
|
|
2667
|
+
| 'MA'
|
|
2668
|
+
| 'MZ'
|
|
2669
|
+
| 'MM'
|
|
2670
|
+
| 'NA'
|
|
2671
|
+
| 'NR'
|
|
2672
|
+
| 'NP'
|
|
2673
|
+
| 'NL'
|
|
2674
|
+
| 'NC'
|
|
2675
|
+
| 'NZ'
|
|
2676
|
+
| 'NI'
|
|
2677
|
+
| 'NE'
|
|
2678
|
+
| 'NG'
|
|
2679
|
+
| 'NU'
|
|
2680
|
+
| 'NF'
|
|
2681
|
+
| 'MP'
|
|
2682
|
+
| 'MK'
|
|
2683
|
+
| 'NO'
|
|
2684
|
+
| 'OM'
|
|
2685
|
+
| 'PK'
|
|
2686
|
+
| 'PW'
|
|
2687
|
+
| 'PS'
|
|
2688
|
+
| 'PA'
|
|
2689
|
+
| 'PG'
|
|
2690
|
+
| 'PY'
|
|
2691
|
+
| 'PE'
|
|
2692
|
+
| 'PH'
|
|
2693
|
+
| 'PN'
|
|
2694
|
+
| 'PL'
|
|
2695
|
+
| 'PT'
|
|
2696
|
+
| 'PR'
|
|
2697
|
+
| 'QA'
|
|
2698
|
+
| 'RE'
|
|
2699
|
+
| 'RO'
|
|
2700
|
+
| 'RU'
|
|
2701
|
+
| 'RW'
|
|
2702
|
+
| 'SH'
|
|
2703
|
+
| 'KN'
|
|
2704
|
+
| 'LC'
|
|
2705
|
+
| 'PM'
|
|
2706
|
+
| 'VC'
|
|
2707
|
+
| 'WS'
|
|
2708
|
+
| 'SM'
|
|
2709
|
+
| 'ST'
|
|
2710
|
+
| 'SA'
|
|
2711
|
+
| 'SN'
|
|
2712
|
+
| 'SC'
|
|
2713
|
+
| 'SL'
|
|
2714
|
+
| 'SG'
|
|
2715
|
+
| 'SK'
|
|
2716
|
+
| 'SI'
|
|
2717
|
+
| 'SB'
|
|
2718
|
+
| 'SO'
|
|
2719
|
+
| 'ZA'
|
|
2720
|
+
| 'GS'
|
|
2721
|
+
| 'ES'
|
|
2722
|
+
| 'LK'
|
|
2723
|
+
| 'SD'
|
|
2724
|
+
| 'SR'
|
|
2725
|
+
| 'SJ'
|
|
2726
|
+
| 'SZ'
|
|
2727
|
+
| 'SE'
|
|
2728
|
+
| 'CH'
|
|
2729
|
+
| 'SY'
|
|
2730
|
+
| 'TW'
|
|
2731
|
+
| 'TJ'
|
|
2732
|
+
| 'TZ'
|
|
2733
|
+
| 'TH'
|
|
2734
|
+
| 'TL'
|
|
2735
|
+
| 'TG'
|
|
2736
|
+
| 'TK'
|
|
2737
|
+
| 'TO'
|
|
2738
|
+
| 'TT'
|
|
2739
|
+
| 'TN'
|
|
2740
|
+
| 'TR'
|
|
2741
|
+
| 'TM'
|
|
2742
|
+
| 'TC'
|
|
2743
|
+
| 'TV'
|
|
2744
|
+
| 'UG'
|
|
2745
|
+
| 'UA'
|
|
2746
|
+
| 'AE'
|
|
2747
|
+
| 'GB'
|
|
2748
|
+
| 'US'
|
|
2749
|
+
| 'UM'
|
|
2750
|
+
| 'UY'
|
|
2751
|
+
| 'UZ'
|
|
2752
|
+
| 'VU'
|
|
2753
|
+
| 'VE'
|
|
2754
|
+
| 'VN'
|
|
2755
|
+
| 'VG'
|
|
2756
|
+
| 'VI'
|
|
2757
|
+
| 'WF'
|
|
2758
|
+
| 'EH'
|
|
2759
|
+
| 'YE'
|
|
2760
|
+
| 'ZM'
|
|
2761
|
+
| 'ZW'
|
|
2762
|
+
| 'AX'
|
|
2763
|
+
| 'BQ'
|
|
2764
|
+
| 'CW'
|
|
2765
|
+
| 'GG'
|
|
2766
|
+
| 'IM'
|
|
2767
|
+
| 'JE'
|
|
2768
|
+
| 'ME'
|
|
2769
|
+
| 'BL'
|
|
2770
|
+
| 'MF'
|
|
2771
|
+
| 'RS'
|
|
2772
|
+
| 'SX'
|
|
2773
|
+
| 'SS'
|
|
2774
|
+
| 'XK';
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Primary street address, or null if not recorded.
|
|
2778
|
+
*/
|
|
2779
|
+
line_1: string | null;
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* Secondary street address, or null if not recorded.
|
|
2783
|
+
*/
|
|
2784
|
+
line_2: string | null;
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* Postal or ZIP code, or null if not recorded.
|
|
2788
|
+
*/
|
|
2789
|
+
postal_code: string | null;
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* State, province, or region, or null if not recorded.
|
|
2793
|
+
*/
|
|
2794
|
+
state: string | null;
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
export interface CounterpartyUpdateParams {
|
|
2799
|
+
/**
|
|
2800
|
+
* New date of birth in YYYY-MM-DD format, or null to clear the current date of
|
|
2801
|
+
* birth.
|
|
2802
|
+
*/
|
|
2803
|
+
date_of_birth?: string | null;
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* New entity type. Omit to keep the current entity type.
|
|
2807
|
+
*/
|
|
2808
|
+
entity_type?: 'business' | 'individual';
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* New ownership status. Omit to keep the current ownership status.
|
|
2812
|
+
*/
|
|
2813
|
+
is_self_owned?: boolean;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* New name, or null to clear the current name.
|
|
2817
|
+
*/
|
|
2818
|
+
name?: string | null;
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* New physical address, or null to clear the current physical address.
|
|
2822
|
+
*/
|
|
2823
|
+
physical_address?: CounterpartyUpdateParams.PhysicalAddress | null;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
export namespace CounterpartyUpdateParams {
|
|
2827
|
+
/**
|
|
2828
|
+
* New physical address, or null to clear the current physical address.
|
|
2829
|
+
*/
|
|
2830
|
+
export interface PhysicalAddress {
|
|
2831
|
+
/**
|
|
2832
|
+
* City or locality.
|
|
2833
|
+
*/
|
|
2834
|
+
city: string;
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2838
|
+
*/
|
|
2839
|
+
country_code:
|
|
2840
|
+
| 'AF'
|
|
2841
|
+
| 'AL'
|
|
2842
|
+
| 'DZ'
|
|
2843
|
+
| 'AS'
|
|
2844
|
+
| 'AD'
|
|
2845
|
+
| 'AO'
|
|
2846
|
+
| 'AI'
|
|
2847
|
+
| 'AQ'
|
|
2848
|
+
| 'AG'
|
|
2849
|
+
| 'AR'
|
|
2850
|
+
| 'AM'
|
|
2851
|
+
| 'AW'
|
|
2852
|
+
| 'AU'
|
|
2853
|
+
| 'AT'
|
|
2854
|
+
| 'AZ'
|
|
2855
|
+
| 'BS'
|
|
2856
|
+
| 'BH'
|
|
2857
|
+
| 'BD'
|
|
2858
|
+
| 'BB'
|
|
2859
|
+
| 'BY'
|
|
2860
|
+
| 'BE'
|
|
2861
|
+
| 'BZ'
|
|
2862
|
+
| 'BJ'
|
|
2863
|
+
| 'BM'
|
|
2864
|
+
| 'BT'
|
|
2865
|
+
| 'BO'
|
|
2866
|
+
| 'BA'
|
|
2867
|
+
| 'BW'
|
|
2868
|
+
| 'BV'
|
|
2869
|
+
| 'BR'
|
|
2870
|
+
| 'IO'
|
|
2871
|
+
| 'BN'
|
|
2872
|
+
| 'BG'
|
|
2873
|
+
| 'BF'
|
|
2874
|
+
| 'BI'
|
|
2875
|
+
| 'KH'
|
|
2876
|
+
| 'CM'
|
|
2877
|
+
| 'CA'
|
|
2878
|
+
| 'CV'
|
|
2879
|
+
| 'KY'
|
|
2880
|
+
| 'CF'
|
|
2881
|
+
| 'TD'
|
|
2882
|
+
| 'CL'
|
|
2883
|
+
| 'CN'
|
|
2884
|
+
| 'CX'
|
|
2885
|
+
| 'CC'
|
|
2886
|
+
| 'CO'
|
|
2887
|
+
| 'KM'
|
|
2888
|
+
| 'CG'
|
|
2889
|
+
| 'CD'
|
|
2890
|
+
| 'CK'
|
|
2891
|
+
| 'CR'
|
|
2892
|
+
| 'CI'
|
|
2893
|
+
| 'HR'
|
|
2894
|
+
| 'CU'
|
|
2895
|
+
| 'CY'
|
|
2896
|
+
| 'CZ'
|
|
2897
|
+
| 'DK'
|
|
2898
|
+
| 'DJ'
|
|
2899
|
+
| 'DM'
|
|
2900
|
+
| 'DO'
|
|
2901
|
+
| 'EC'
|
|
2902
|
+
| 'EG'
|
|
2903
|
+
| 'SV'
|
|
2904
|
+
| 'GQ'
|
|
2905
|
+
| 'ER'
|
|
2906
|
+
| 'EE'
|
|
2907
|
+
| 'ET'
|
|
2908
|
+
| 'FK'
|
|
2909
|
+
| 'FO'
|
|
2910
|
+
| 'FJ'
|
|
2911
|
+
| 'FI'
|
|
2912
|
+
| 'FR'
|
|
2913
|
+
| 'GF'
|
|
2914
|
+
| 'PF'
|
|
2915
|
+
| 'TF'
|
|
2916
|
+
| 'GA'
|
|
2917
|
+
| 'GM'
|
|
2918
|
+
| 'GE'
|
|
2919
|
+
| 'DE'
|
|
2920
|
+
| 'GH'
|
|
2921
|
+
| 'GI'
|
|
2922
|
+
| 'GR'
|
|
2923
|
+
| 'GL'
|
|
2924
|
+
| 'GD'
|
|
2925
|
+
| 'GP'
|
|
2926
|
+
| 'GU'
|
|
2927
|
+
| 'GT'
|
|
2928
|
+
| 'GN'
|
|
2929
|
+
| 'GW'
|
|
2930
|
+
| 'GY'
|
|
2931
|
+
| 'HT'
|
|
2932
|
+
| 'HM'
|
|
2933
|
+
| 'VA'
|
|
2934
|
+
| 'HN'
|
|
2935
|
+
| 'HK'
|
|
2936
|
+
| 'HU'
|
|
2937
|
+
| 'IS'
|
|
2938
|
+
| 'IN'
|
|
2939
|
+
| 'ID'
|
|
2940
|
+
| 'IR'
|
|
2941
|
+
| 'IQ'
|
|
2942
|
+
| 'IE'
|
|
2943
|
+
| 'IL'
|
|
2944
|
+
| 'IT'
|
|
2945
|
+
| 'JM'
|
|
2946
|
+
| 'JP'
|
|
2947
|
+
| 'JO'
|
|
2948
|
+
| 'KZ'
|
|
2949
|
+
| 'KE'
|
|
2950
|
+
| 'KI'
|
|
2951
|
+
| 'KP'
|
|
2952
|
+
| 'KR'
|
|
2953
|
+
| 'KW'
|
|
2954
|
+
| 'KG'
|
|
2955
|
+
| 'LA'
|
|
2956
|
+
| 'LV'
|
|
2957
|
+
| 'LB'
|
|
2958
|
+
| 'LS'
|
|
2959
|
+
| 'LR'
|
|
2960
|
+
| 'LY'
|
|
2961
|
+
| 'LI'
|
|
2962
|
+
| 'LT'
|
|
2963
|
+
| 'LU'
|
|
2964
|
+
| 'MO'
|
|
2965
|
+
| 'MG'
|
|
2966
|
+
| 'MW'
|
|
2967
|
+
| 'MY'
|
|
2968
|
+
| 'MV'
|
|
2969
|
+
| 'ML'
|
|
2970
|
+
| 'MT'
|
|
2971
|
+
| 'MH'
|
|
2972
|
+
| 'MQ'
|
|
2973
|
+
| 'MR'
|
|
2974
|
+
| 'MU'
|
|
2975
|
+
| 'YT'
|
|
2976
|
+
| 'MX'
|
|
2977
|
+
| 'FM'
|
|
2978
|
+
| 'MD'
|
|
2979
|
+
| 'MC'
|
|
2980
|
+
| 'MN'
|
|
2981
|
+
| 'MS'
|
|
2982
|
+
| 'MA'
|
|
2983
|
+
| 'MZ'
|
|
2984
|
+
| 'MM'
|
|
2985
|
+
| 'NA'
|
|
2986
|
+
| 'NR'
|
|
2987
|
+
| 'NP'
|
|
2988
|
+
| 'NL'
|
|
2989
|
+
| 'NC'
|
|
2990
|
+
| 'NZ'
|
|
2991
|
+
| 'NI'
|
|
2992
|
+
| 'NE'
|
|
2993
|
+
| 'NG'
|
|
2994
|
+
| 'NU'
|
|
2995
|
+
| 'NF'
|
|
2996
|
+
| 'MP'
|
|
2997
|
+
| 'MK'
|
|
2998
|
+
| 'NO'
|
|
2999
|
+
| 'OM'
|
|
3000
|
+
| 'PK'
|
|
3001
|
+
| 'PW'
|
|
3002
|
+
| 'PS'
|
|
3003
|
+
| 'PA'
|
|
3004
|
+
| 'PG'
|
|
3005
|
+
| 'PY'
|
|
3006
|
+
| 'PE'
|
|
3007
|
+
| 'PH'
|
|
3008
|
+
| 'PN'
|
|
3009
|
+
| 'PL'
|
|
3010
|
+
| 'PT'
|
|
3011
|
+
| 'PR'
|
|
3012
|
+
| 'QA'
|
|
3013
|
+
| 'RE'
|
|
3014
|
+
| 'RO'
|
|
3015
|
+
| 'RU'
|
|
3016
|
+
| 'RW'
|
|
3017
|
+
| 'SH'
|
|
3018
|
+
| 'KN'
|
|
3019
|
+
| 'LC'
|
|
3020
|
+
| 'PM'
|
|
3021
|
+
| 'VC'
|
|
3022
|
+
| 'WS'
|
|
3023
|
+
| 'SM'
|
|
3024
|
+
| 'ST'
|
|
3025
|
+
| 'SA'
|
|
3026
|
+
| 'SN'
|
|
3027
|
+
| 'SC'
|
|
3028
|
+
| 'SL'
|
|
3029
|
+
| 'SG'
|
|
3030
|
+
| 'SK'
|
|
3031
|
+
| 'SI'
|
|
3032
|
+
| 'SB'
|
|
3033
|
+
| 'SO'
|
|
3034
|
+
| 'ZA'
|
|
3035
|
+
| 'GS'
|
|
3036
|
+
| 'ES'
|
|
3037
|
+
| 'LK'
|
|
3038
|
+
| 'SD'
|
|
3039
|
+
| 'SR'
|
|
3040
|
+
| 'SJ'
|
|
3041
|
+
| 'SZ'
|
|
3042
|
+
| 'SE'
|
|
3043
|
+
| 'CH'
|
|
3044
|
+
| 'SY'
|
|
3045
|
+
| 'TW'
|
|
3046
|
+
| 'TJ'
|
|
3047
|
+
| 'TZ'
|
|
3048
|
+
| 'TH'
|
|
3049
|
+
| 'TL'
|
|
3050
|
+
| 'TG'
|
|
3051
|
+
| 'TK'
|
|
3052
|
+
| 'TO'
|
|
3053
|
+
| 'TT'
|
|
3054
|
+
| 'TN'
|
|
3055
|
+
| 'TR'
|
|
3056
|
+
| 'TM'
|
|
3057
|
+
| 'TC'
|
|
3058
|
+
| 'TV'
|
|
3059
|
+
| 'UG'
|
|
3060
|
+
| 'UA'
|
|
3061
|
+
| 'AE'
|
|
3062
|
+
| 'GB'
|
|
3063
|
+
| 'US'
|
|
3064
|
+
| 'UM'
|
|
3065
|
+
| 'UY'
|
|
3066
|
+
| 'UZ'
|
|
3067
|
+
| 'VU'
|
|
3068
|
+
| 'VE'
|
|
3069
|
+
| 'VN'
|
|
3070
|
+
| 'VG'
|
|
3071
|
+
| 'VI'
|
|
3072
|
+
| 'WF'
|
|
3073
|
+
| 'EH'
|
|
3074
|
+
| 'YE'
|
|
3075
|
+
| 'ZM'
|
|
3076
|
+
| 'ZW'
|
|
3077
|
+
| 'AX'
|
|
3078
|
+
| 'BQ'
|
|
3079
|
+
| 'CW'
|
|
3080
|
+
| 'GG'
|
|
3081
|
+
| 'IM'
|
|
3082
|
+
| 'JE'
|
|
3083
|
+
| 'ME'
|
|
3084
|
+
| 'BL'
|
|
3085
|
+
| 'MF'
|
|
3086
|
+
| 'RS'
|
|
3087
|
+
| 'SX'
|
|
3088
|
+
| 'SS'
|
|
3089
|
+
| 'XK';
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* Primary street address, or null if not recorded.
|
|
3093
|
+
*/
|
|
3094
|
+
line_1: string | null;
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* Secondary street address, or null if not recorded.
|
|
3098
|
+
*/
|
|
3099
|
+
line_2: string | null;
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Postal or ZIP code, or null if not recorded.
|
|
3103
|
+
*/
|
|
3104
|
+
postal_code: string | null;
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* State, province, or region, or null if not recorded.
|
|
3108
|
+
*/
|
|
3109
|
+
state: string | null;
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
export interface CounterpartyListParams extends CursorPageParams {}
|
|
3114
|
+
|
|
3115
|
+
export declare namespace Counterparties {
|
|
3116
|
+
export {
|
|
3117
|
+
type CounterpartyCreateResponse as CounterpartyCreateResponse,
|
|
3118
|
+
type CounterpartyRetrieveResponse as CounterpartyRetrieveResponse,
|
|
3119
|
+
type CounterpartyUpdateResponse as CounterpartyUpdateResponse,
|
|
3120
|
+
type CounterpartyListResponse as CounterpartyListResponse,
|
|
3121
|
+
type CounterpartyBlockResponse as CounterpartyBlockResponse,
|
|
3122
|
+
type CounterpartyListResponsesCursorPage as CounterpartyListResponsesCursorPage,
|
|
3123
|
+
type CounterpartyCreateParams as CounterpartyCreateParams,
|
|
3124
|
+
type CounterpartyUpdateParams as CounterpartyUpdateParams,
|
|
3125
|
+
type CounterpartyListParams as CounterpartyListParams,
|
|
3126
|
+
};
|
|
3127
|
+
}
|