@augustusbank/typescript-sdk 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- 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 +22 -17
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +22 -17
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +226 -48
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +226 -48
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +55 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +55 -2
- 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 +48 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +48 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- 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 +133 -335
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +133 -335
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +25 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +25 -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 +215 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +215 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +96 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +92 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +209 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +209 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +90 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +86 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +202 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +202 -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 +7 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +7 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +17 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +8 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +62 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +62 -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 +26 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +26 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +33 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +28 -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 +342 -162
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +342 -162
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +61 -11
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +61 -11
- 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 +976 -978
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +976 -978
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +48 -8
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +30 -19
- package/src/resources/accounts.ts +265 -50
- 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 +66 -269
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +21 -4
- package/src/resources/payouts.ts +204 -439
- 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 +282 -0
- package/src/resources/simulations/accounts.ts +265 -0
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +522 -0
- package/src/resources/simulations/index.ts +33 -0
- package/src/resources/simulations/payouts.ts +80 -0
- package/src/resources/simulations/simulations.ts +92 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +954 -206
- package/src/resources/webhook-subscriptions.ts +102 -36
- package/src/resources/webhooks.ts +1283 -1153
- 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,1042 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Counterparties extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a counterparty owned by the merchant.
|
|
8
|
+
*/
|
|
9
|
+
create(body: CounterpartyCreateParams, options?: RequestOptions): APIPromise<CounterpartyCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves a counterparty owned by the merchant.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CounterpartyRetrieveResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Updates the mutable details of a counterparty owned by the merchant.
|
|
16
|
+
*/
|
|
17
|
+
update(id: string, body: CounterpartyUpdateParams, options?: RequestOptions): APIPromise<CounterpartyUpdateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Lists counterparties owned by the merchant with cursor-based pagination.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: CounterpartyListParams | null | undefined, options?: RequestOptions): PagePromise<CounterpartyListResponsesCursorPage, CounterpartyListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Blocks payments to and from a counterparty owned by the merchant. Blocking an
|
|
24
|
+
* already-blocked counterparty succeeds without changing the existing block.
|
|
25
|
+
*/
|
|
26
|
+
block(id: string, options?: RequestOptions): APIPromise<CounterpartyBlockResponse>;
|
|
27
|
+
}
|
|
28
|
+
export type CounterpartyListResponsesCursorPage = CursorPage<CounterpartyListResponse>;
|
|
29
|
+
export interface CounterpartyCreateResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier of the counterparty.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
36
|
+
*/
|
|
37
|
+
blocked: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
40
|
+
*/
|
|
41
|
+
date_of_birth: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the counterparty is a business or an individual.
|
|
44
|
+
*/
|
|
45
|
+
entity_type: 'business' | 'individual';
|
|
46
|
+
/**
|
|
47
|
+
* Financial address of the counterparty.
|
|
48
|
+
*/
|
|
49
|
+
financial_address: CounterpartyCreateResponse.IbanFinancialAddress | CounterpartyCreateResponse.SortCodeFinancialAddress | CounterpartyCreateResponse.AbaFinancialAddress | CounterpartyCreateResponse.BicFinancialAddress | CounterpartyCreateResponse.CryptoWalletFinancialAddress;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
52
|
+
* by you, `true` if it is.
|
|
53
|
+
*/
|
|
54
|
+
is_self_owned: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Name of the counterparty, or null if not recorded.
|
|
57
|
+
*/
|
|
58
|
+
name: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
61
|
+
*/
|
|
62
|
+
physical_address: CounterpartyCreateResponse.PhysicalAddress | null;
|
|
63
|
+
/**
|
|
64
|
+
* Resource type discriminator.
|
|
65
|
+
*/
|
|
66
|
+
type: 'counterparty';
|
|
67
|
+
}
|
|
68
|
+
export declare namespace CounterpartyCreateResponse {
|
|
69
|
+
interface IbanFinancialAddress {
|
|
70
|
+
/**
|
|
71
|
+
* Name of the account holder.
|
|
72
|
+
*/
|
|
73
|
+
account_holder_name: string;
|
|
74
|
+
/**
|
|
75
|
+
* Bank Identifier Code, or null if not provided.
|
|
76
|
+
*/
|
|
77
|
+
bic: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* International Bank Account Number.
|
|
80
|
+
*/
|
|
81
|
+
iban: string;
|
|
82
|
+
/**
|
|
83
|
+
* Discriminator for IBAN financial address.
|
|
84
|
+
*/
|
|
85
|
+
type: 'iban';
|
|
86
|
+
}
|
|
87
|
+
interface SortCodeFinancialAddress {
|
|
88
|
+
/**
|
|
89
|
+
* Name of the account holder.
|
|
90
|
+
*/
|
|
91
|
+
account_holder_name: string;
|
|
92
|
+
/**
|
|
93
|
+
* UK account number (8 digits).
|
|
94
|
+
*/
|
|
95
|
+
account_number: string;
|
|
96
|
+
/**
|
|
97
|
+
* UK sort code (6 digits).
|
|
98
|
+
*/
|
|
99
|
+
sort_code: string;
|
|
100
|
+
/**
|
|
101
|
+
* Discriminator for UK sort code financial address.
|
|
102
|
+
*/
|
|
103
|
+
type: 'sort_code';
|
|
104
|
+
}
|
|
105
|
+
interface AbaFinancialAddress {
|
|
106
|
+
/**
|
|
107
|
+
* Name of the account holder.
|
|
108
|
+
*/
|
|
109
|
+
account_holder_name: string;
|
|
110
|
+
/**
|
|
111
|
+
* Bank account number.
|
|
112
|
+
*/
|
|
113
|
+
account_number: string;
|
|
114
|
+
/**
|
|
115
|
+
* ABA routing number (9 digits).
|
|
116
|
+
*/
|
|
117
|
+
routing_number: string;
|
|
118
|
+
/**
|
|
119
|
+
* Discriminator for ABA wire financial address.
|
|
120
|
+
*/
|
|
121
|
+
type: 'aba';
|
|
122
|
+
}
|
|
123
|
+
interface BicFinancialAddress {
|
|
124
|
+
/**
|
|
125
|
+
* Name of the account holder.
|
|
126
|
+
*/
|
|
127
|
+
account_holder_name: string;
|
|
128
|
+
/**
|
|
129
|
+
* Local-format bank account number.
|
|
130
|
+
*/
|
|
131
|
+
account_number: string;
|
|
132
|
+
/**
|
|
133
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
134
|
+
*/
|
|
135
|
+
bic: string;
|
|
136
|
+
/**
|
|
137
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
138
|
+
* the BSB in Australia), or null.
|
|
139
|
+
*/
|
|
140
|
+
local_bank_code: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Discriminator for BIC + local account financial address.
|
|
143
|
+
*/
|
|
144
|
+
type: 'bic';
|
|
145
|
+
}
|
|
146
|
+
interface CryptoWalletFinancialAddress {
|
|
147
|
+
/**
|
|
148
|
+
* Wallet address on the specified blockchain.
|
|
149
|
+
*/
|
|
150
|
+
address: string;
|
|
151
|
+
/**
|
|
152
|
+
* Blockchain network for the crypto wallet.
|
|
153
|
+
*/
|
|
154
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
155
|
+
/**
|
|
156
|
+
* Discriminator for crypto wallet financial address.
|
|
157
|
+
*/
|
|
158
|
+
type: 'crypto_wallet';
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
162
|
+
*/
|
|
163
|
+
interface PhysicalAddress {
|
|
164
|
+
/**
|
|
165
|
+
* City or locality.
|
|
166
|
+
*/
|
|
167
|
+
city: string;
|
|
168
|
+
/**
|
|
169
|
+
* ISO 3166-1 alpha-2 country code.
|
|
170
|
+
*/
|
|
171
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
172
|
+
/**
|
|
173
|
+
* Primary street address, or null if not recorded.
|
|
174
|
+
*/
|
|
175
|
+
line_1: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Secondary street address, or null if not recorded.
|
|
178
|
+
*/
|
|
179
|
+
line_2: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Postal or ZIP code, or null if not recorded.
|
|
182
|
+
*/
|
|
183
|
+
postal_code: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* State, province, or region, or null if not recorded.
|
|
186
|
+
*/
|
|
187
|
+
state: string | null;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export interface CounterpartyRetrieveResponse {
|
|
191
|
+
/**
|
|
192
|
+
* Unique identifier of the counterparty.
|
|
193
|
+
*/
|
|
194
|
+
id: string;
|
|
195
|
+
/**
|
|
196
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
197
|
+
*/
|
|
198
|
+
blocked: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
201
|
+
*/
|
|
202
|
+
date_of_birth: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* Whether the counterparty is a business or an individual.
|
|
205
|
+
*/
|
|
206
|
+
entity_type: 'business' | 'individual';
|
|
207
|
+
/**
|
|
208
|
+
* Financial address of the counterparty.
|
|
209
|
+
*/
|
|
210
|
+
financial_address: CounterpartyRetrieveResponse.IbanFinancialAddress | CounterpartyRetrieveResponse.SortCodeFinancialAddress | CounterpartyRetrieveResponse.AbaFinancialAddress | CounterpartyRetrieveResponse.BicFinancialAddress | CounterpartyRetrieveResponse.CryptoWalletFinancialAddress;
|
|
211
|
+
/**
|
|
212
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
213
|
+
* by you, `true` if it is.
|
|
214
|
+
*/
|
|
215
|
+
is_self_owned: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Name of the counterparty, or null if not recorded.
|
|
218
|
+
*/
|
|
219
|
+
name: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
222
|
+
*/
|
|
223
|
+
physical_address: CounterpartyRetrieveResponse.PhysicalAddress | null;
|
|
224
|
+
/**
|
|
225
|
+
* Resource type discriminator.
|
|
226
|
+
*/
|
|
227
|
+
type: 'counterparty';
|
|
228
|
+
}
|
|
229
|
+
export declare namespace CounterpartyRetrieveResponse {
|
|
230
|
+
interface IbanFinancialAddress {
|
|
231
|
+
/**
|
|
232
|
+
* Name of the account holder.
|
|
233
|
+
*/
|
|
234
|
+
account_holder_name: string;
|
|
235
|
+
/**
|
|
236
|
+
* Bank Identifier Code, or null if not provided.
|
|
237
|
+
*/
|
|
238
|
+
bic: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* International Bank Account Number.
|
|
241
|
+
*/
|
|
242
|
+
iban: string;
|
|
243
|
+
/**
|
|
244
|
+
* Discriminator for IBAN financial address.
|
|
245
|
+
*/
|
|
246
|
+
type: 'iban';
|
|
247
|
+
}
|
|
248
|
+
interface SortCodeFinancialAddress {
|
|
249
|
+
/**
|
|
250
|
+
* Name of the account holder.
|
|
251
|
+
*/
|
|
252
|
+
account_holder_name: string;
|
|
253
|
+
/**
|
|
254
|
+
* UK account number (8 digits).
|
|
255
|
+
*/
|
|
256
|
+
account_number: string;
|
|
257
|
+
/**
|
|
258
|
+
* UK sort code (6 digits).
|
|
259
|
+
*/
|
|
260
|
+
sort_code: string;
|
|
261
|
+
/**
|
|
262
|
+
* Discriminator for UK sort code financial address.
|
|
263
|
+
*/
|
|
264
|
+
type: 'sort_code';
|
|
265
|
+
}
|
|
266
|
+
interface AbaFinancialAddress {
|
|
267
|
+
/**
|
|
268
|
+
* Name of the account holder.
|
|
269
|
+
*/
|
|
270
|
+
account_holder_name: string;
|
|
271
|
+
/**
|
|
272
|
+
* Bank account number.
|
|
273
|
+
*/
|
|
274
|
+
account_number: string;
|
|
275
|
+
/**
|
|
276
|
+
* ABA routing number (9 digits).
|
|
277
|
+
*/
|
|
278
|
+
routing_number: string;
|
|
279
|
+
/**
|
|
280
|
+
* Discriminator for ABA wire financial address.
|
|
281
|
+
*/
|
|
282
|
+
type: 'aba';
|
|
283
|
+
}
|
|
284
|
+
interface BicFinancialAddress {
|
|
285
|
+
/**
|
|
286
|
+
* Name of the account holder.
|
|
287
|
+
*/
|
|
288
|
+
account_holder_name: string;
|
|
289
|
+
/**
|
|
290
|
+
* Local-format bank account number.
|
|
291
|
+
*/
|
|
292
|
+
account_number: string;
|
|
293
|
+
/**
|
|
294
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
295
|
+
*/
|
|
296
|
+
bic: string;
|
|
297
|
+
/**
|
|
298
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
299
|
+
* the BSB in Australia), or null.
|
|
300
|
+
*/
|
|
301
|
+
local_bank_code: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* Discriminator for BIC + local account financial address.
|
|
304
|
+
*/
|
|
305
|
+
type: 'bic';
|
|
306
|
+
}
|
|
307
|
+
interface CryptoWalletFinancialAddress {
|
|
308
|
+
/**
|
|
309
|
+
* Wallet address on the specified blockchain.
|
|
310
|
+
*/
|
|
311
|
+
address: string;
|
|
312
|
+
/**
|
|
313
|
+
* Blockchain network for the crypto wallet.
|
|
314
|
+
*/
|
|
315
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
316
|
+
/**
|
|
317
|
+
* Discriminator for crypto wallet financial address.
|
|
318
|
+
*/
|
|
319
|
+
type: 'crypto_wallet';
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
323
|
+
*/
|
|
324
|
+
interface PhysicalAddress {
|
|
325
|
+
/**
|
|
326
|
+
* City or locality.
|
|
327
|
+
*/
|
|
328
|
+
city: string;
|
|
329
|
+
/**
|
|
330
|
+
* ISO 3166-1 alpha-2 country code.
|
|
331
|
+
*/
|
|
332
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
333
|
+
/**
|
|
334
|
+
* Primary street address, or null if not recorded.
|
|
335
|
+
*/
|
|
336
|
+
line_1: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Secondary street address, or null if not recorded.
|
|
339
|
+
*/
|
|
340
|
+
line_2: string | null;
|
|
341
|
+
/**
|
|
342
|
+
* Postal or ZIP code, or null if not recorded.
|
|
343
|
+
*/
|
|
344
|
+
postal_code: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* State, province, or region, or null if not recorded.
|
|
347
|
+
*/
|
|
348
|
+
state: string | null;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
export interface CounterpartyUpdateResponse {
|
|
352
|
+
/**
|
|
353
|
+
* Unique identifier of the counterparty.
|
|
354
|
+
*/
|
|
355
|
+
id: string;
|
|
356
|
+
/**
|
|
357
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
358
|
+
*/
|
|
359
|
+
blocked: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
362
|
+
*/
|
|
363
|
+
date_of_birth: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Whether the counterparty is a business or an individual.
|
|
366
|
+
*/
|
|
367
|
+
entity_type: 'business' | 'individual';
|
|
368
|
+
/**
|
|
369
|
+
* Financial address of the counterparty.
|
|
370
|
+
*/
|
|
371
|
+
financial_address: CounterpartyUpdateResponse.IbanFinancialAddress | CounterpartyUpdateResponse.SortCodeFinancialAddress | CounterpartyUpdateResponse.AbaFinancialAddress | CounterpartyUpdateResponse.BicFinancialAddress | CounterpartyUpdateResponse.CryptoWalletFinancialAddress;
|
|
372
|
+
/**
|
|
373
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
374
|
+
* by you, `true` if it is.
|
|
375
|
+
*/
|
|
376
|
+
is_self_owned: boolean;
|
|
377
|
+
/**
|
|
378
|
+
* Name of the counterparty, or null if not recorded.
|
|
379
|
+
*/
|
|
380
|
+
name: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
383
|
+
*/
|
|
384
|
+
physical_address: CounterpartyUpdateResponse.PhysicalAddress | null;
|
|
385
|
+
/**
|
|
386
|
+
* Resource type discriminator.
|
|
387
|
+
*/
|
|
388
|
+
type: 'counterparty';
|
|
389
|
+
}
|
|
390
|
+
export declare namespace CounterpartyUpdateResponse {
|
|
391
|
+
interface IbanFinancialAddress {
|
|
392
|
+
/**
|
|
393
|
+
* Name of the account holder.
|
|
394
|
+
*/
|
|
395
|
+
account_holder_name: string;
|
|
396
|
+
/**
|
|
397
|
+
* Bank Identifier Code, or null if not provided.
|
|
398
|
+
*/
|
|
399
|
+
bic: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* International Bank Account Number.
|
|
402
|
+
*/
|
|
403
|
+
iban: string;
|
|
404
|
+
/**
|
|
405
|
+
* Discriminator for IBAN financial address.
|
|
406
|
+
*/
|
|
407
|
+
type: 'iban';
|
|
408
|
+
}
|
|
409
|
+
interface SortCodeFinancialAddress {
|
|
410
|
+
/**
|
|
411
|
+
* Name of the account holder.
|
|
412
|
+
*/
|
|
413
|
+
account_holder_name: string;
|
|
414
|
+
/**
|
|
415
|
+
* UK account number (8 digits).
|
|
416
|
+
*/
|
|
417
|
+
account_number: string;
|
|
418
|
+
/**
|
|
419
|
+
* UK sort code (6 digits).
|
|
420
|
+
*/
|
|
421
|
+
sort_code: string;
|
|
422
|
+
/**
|
|
423
|
+
* Discriminator for UK sort code financial address.
|
|
424
|
+
*/
|
|
425
|
+
type: 'sort_code';
|
|
426
|
+
}
|
|
427
|
+
interface AbaFinancialAddress {
|
|
428
|
+
/**
|
|
429
|
+
* Name of the account holder.
|
|
430
|
+
*/
|
|
431
|
+
account_holder_name: string;
|
|
432
|
+
/**
|
|
433
|
+
* Bank account number.
|
|
434
|
+
*/
|
|
435
|
+
account_number: string;
|
|
436
|
+
/**
|
|
437
|
+
* ABA routing number (9 digits).
|
|
438
|
+
*/
|
|
439
|
+
routing_number: string;
|
|
440
|
+
/**
|
|
441
|
+
* Discriminator for ABA wire financial address.
|
|
442
|
+
*/
|
|
443
|
+
type: 'aba';
|
|
444
|
+
}
|
|
445
|
+
interface BicFinancialAddress {
|
|
446
|
+
/**
|
|
447
|
+
* Name of the account holder.
|
|
448
|
+
*/
|
|
449
|
+
account_holder_name: string;
|
|
450
|
+
/**
|
|
451
|
+
* Local-format bank account number.
|
|
452
|
+
*/
|
|
453
|
+
account_number: string;
|
|
454
|
+
/**
|
|
455
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
456
|
+
*/
|
|
457
|
+
bic: string;
|
|
458
|
+
/**
|
|
459
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
460
|
+
* the BSB in Australia), or null.
|
|
461
|
+
*/
|
|
462
|
+
local_bank_code: string | null;
|
|
463
|
+
/**
|
|
464
|
+
* Discriminator for BIC + local account financial address.
|
|
465
|
+
*/
|
|
466
|
+
type: 'bic';
|
|
467
|
+
}
|
|
468
|
+
interface CryptoWalletFinancialAddress {
|
|
469
|
+
/**
|
|
470
|
+
* Wallet address on the specified blockchain.
|
|
471
|
+
*/
|
|
472
|
+
address: string;
|
|
473
|
+
/**
|
|
474
|
+
* Blockchain network for the crypto wallet.
|
|
475
|
+
*/
|
|
476
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
477
|
+
/**
|
|
478
|
+
* Discriminator for crypto wallet financial address.
|
|
479
|
+
*/
|
|
480
|
+
type: 'crypto_wallet';
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
484
|
+
*/
|
|
485
|
+
interface PhysicalAddress {
|
|
486
|
+
/**
|
|
487
|
+
* City or locality.
|
|
488
|
+
*/
|
|
489
|
+
city: string;
|
|
490
|
+
/**
|
|
491
|
+
* ISO 3166-1 alpha-2 country code.
|
|
492
|
+
*/
|
|
493
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
494
|
+
/**
|
|
495
|
+
* Primary street address, or null if not recorded.
|
|
496
|
+
*/
|
|
497
|
+
line_1: string | null;
|
|
498
|
+
/**
|
|
499
|
+
* Secondary street address, or null if not recorded.
|
|
500
|
+
*/
|
|
501
|
+
line_2: string | null;
|
|
502
|
+
/**
|
|
503
|
+
* Postal or ZIP code, or null if not recorded.
|
|
504
|
+
*/
|
|
505
|
+
postal_code: string | null;
|
|
506
|
+
/**
|
|
507
|
+
* State, province, or region, or null if not recorded.
|
|
508
|
+
*/
|
|
509
|
+
state: string | null;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
export interface CounterpartyListResponse {
|
|
513
|
+
/**
|
|
514
|
+
* Unique identifier of the counterparty.
|
|
515
|
+
*/
|
|
516
|
+
id: string;
|
|
517
|
+
/**
|
|
518
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
519
|
+
*/
|
|
520
|
+
blocked: boolean;
|
|
521
|
+
/**
|
|
522
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
523
|
+
*/
|
|
524
|
+
date_of_birth: string | null;
|
|
525
|
+
/**
|
|
526
|
+
* Whether the counterparty is a business or an individual.
|
|
527
|
+
*/
|
|
528
|
+
entity_type: 'business' | 'individual';
|
|
529
|
+
/**
|
|
530
|
+
* Financial address of the counterparty.
|
|
531
|
+
*/
|
|
532
|
+
financial_address: CounterpartyListResponse.IbanFinancialAddress | CounterpartyListResponse.SortCodeFinancialAddress | CounterpartyListResponse.AbaFinancialAddress | CounterpartyListResponse.BicFinancialAddress | CounterpartyListResponse.CryptoWalletFinancialAddress;
|
|
533
|
+
/**
|
|
534
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
535
|
+
* by you, `true` if it is.
|
|
536
|
+
*/
|
|
537
|
+
is_self_owned: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Name of the counterparty, or null if not recorded.
|
|
540
|
+
*/
|
|
541
|
+
name: string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
544
|
+
*/
|
|
545
|
+
physical_address: CounterpartyListResponse.PhysicalAddress | null;
|
|
546
|
+
/**
|
|
547
|
+
* Resource type discriminator.
|
|
548
|
+
*/
|
|
549
|
+
type: 'counterparty';
|
|
550
|
+
}
|
|
551
|
+
export declare namespace CounterpartyListResponse {
|
|
552
|
+
interface IbanFinancialAddress {
|
|
553
|
+
/**
|
|
554
|
+
* Name of the account holder.
|
|
555
|
+
*/
|
|
556
|
+
account_holder_name: string;
|
|
557
|
+
/**
|
|
558
|
+
* Bank Identifier Code, or null if not provided.
|
|
559
|
+
*/
|
|
560
|
+
bic: string | null;
|
|
561
|
+
/**
|
|
562
|
+
* International Bank Account Number.
|
|
563
|
+
*/
|
|
564
|
+
iban: string;
|
|
565
|
+
/**
|
|
566
|
+
* Discriminator for IBAN financial address.
|
|
567
|
+
*/
|
|
568
|
+
type: 'iban';
|
|
569
|
+
}
|
|
570
|
+
interface SortCodeFinancialAddress {
|
|
571
|
+
/**
|
|
572
|
+
* Name of the account holder.
|
|
573
|
+
*/
|
|
574
|
+
account_holder_name: string;
|
|
575
|
+
/**
|
|
576
|
+
* UK account number (8 digits).
|
|
577
|
+
*/
|
|
578
|
+
account_number: string;
|
|
579
|
+
/**
|
|
580
|
+
* UK sort code (6 digits).
|
|
581
|
+
*/
|
|
582
|
+
sort_code: string;
|
|
583
|
+
/**
|
|
584
|
+
* Discriminator for UK sort code financial address.
|
|
585
|
+
*/
|
|
586
|
+
type: 'sort_code';
|
|
587
|
+
}
|
|
588
|
+
interface AbaFinancialAddress {
|
|
589
|
+
/**
|
|
590
|
+
* Name of the account holder.
|
|
591
|
+
*/
|
|
592
|
+
account_holder_name: string;
|
|
593
|
+
/**
|
|
594
|
+
* Bank account number.
|
|
595
|
+
*/
|
|
596
|
+
account_number: string;
|
|
597
|
+
/**
|
|
598
|
+
* ABA routing number (9 digits).
|
|
599
|
+
*/
|
|
600
|
+
routing_number: string;
|
|
601
|
+
/**
|
|
602
|
+
* Discriminator for ABA wire financial address.
|
|
603
|
+
*/
|
|
604
|
+
type: 'aba';
|
|
605
|
+
}
|
|
606
|
+
interface BicFinancialAddress {
|
|
607
|
+
/**
|
|
608
|
+
* Name of the account holder.
|
|
609
|
+
*/
|
|
610
|
+
account_holder_name: string;
|
|
611
|
+
/**
|
|
612
|
+
* Local-format bank account number.
|
|
613
|
+
*/
|
|
614
|
+
account_number: string;
|
|
615
|
+
/**
|
|
616
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
617
|
+
*/
|
|
618
|
+
bic: string;
|
|
619
|
+
/**
|
|
620
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
621
|
+
* the BSB in Australia), or null.
|
|
622
|
+
*/
|
|
623
|
+
local_bank_code: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* Discriminator for BIC + local account financial address.
|
|
626
|
+
*/
|
|
627
|
+
type: 'bic';
|
|
628
|
+
}
|
|
629
|
+
interface CryptoWalletFinancialAddress {
|
|
630
|
+
/**
|
|
631
|
+
* Wallet address on the specified blockchain.
|
|
632
|
+
*/
|
|
633
|
+
address: string;
|
|
634
|
+
/**
|
|
635
|
+
* Blockchain network for the crypto wallet.
|
|
636
|
+
*/
|
|
637
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
638
|
+
/**
|
|
639
|
+
* Discriminator for crypto wallet financial address.
|
|
640
|
+
*/
|
|
641
|
+
type: 'crypto_wallet';
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
645
|
+
*/
|
|
646
|
+
interface PhysicalAddress {
|
|
647
|
+
/**
|
|
648
|
+
* City or locality.
|
|
649
|
+
*/
|
|
650
|
+
city: string;
|
|
651
|
+
/**
|
|
652
|
+
* ISO 3166-1 alpha-2 country code.
|
|
653
|
+
*/
|
|
654
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
655
|
+
/**
|
|
656
|
+
* Primary street address, or null if not recorded.
|
|
657
|
+
*/
|
|
658
|
+
line_1: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* Secondary street address, or null if not recorded.
|
|
661
|
+
*/
|
|
662
|
+
line_2: string | null;
|
|
663
|
+
/**
|
|
664
|
+
* Postal or ZIP code, or null if not recorded.
|
|
665
|
+
*/
|
|
666
|
+
postal_code: string | null;
|
|
667
|
+
/**
|
|
668
|
+
* State, province, or region, or null if not recorded.
|
|
669
|
+
*/
|
|
670
|
+
state: string | null;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
export interface CounterpartyBlockResponse {
|
|
674
|
+
/**
|
|
675
|
+
* Unique identifier of the counterparty.
|
|
676
|
+
*/
|
|
677
|
+
id: string;
|
|
678
|
+
/**
|
|
679
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
680
|
+
*/
|
|
681
|
+
blocked: boolean;
|
|
682
|
+
/**
|
|
683
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
684
|
+
*/
|
|
685
|
+
date_of_birth: string | null;
|
|
686
|
+
/**
|
|
687
|
+
* Whether the counterparty is a business or an individual.
|
|
688
|
+
*/
|
|
689
|
+
entity_type: 'business' | 'individual';
|
|
690
|
+
/**
|
|
691
|
+
* Financial address of the counterparty.
|
|
692
|
+
*/
|
|
693
|
+
financial_address: CounterpartyBlockResponse.IbanFinancialAddress | CounterpartyBlockResponse.SortCodeFinancialAddress | CounterpartyBlockResponse.AbaFinancialAddress | CounterpartyBlockResponse.BicFinancialAddress | CounterpartyBlockResponse.CryptoWalletFinancialAddress;
|
|
694
|
+
/**
|
|
695
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
696
|
+
* by you, `true` if it is.
|
|
697
|
+
*/
|
|
698
|
+
is_self_owned: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* Name of the counterparty, or null if not recorded.
|
|
701
|
+
*/
|
|
702
|
+
name: string | null;
|
|
703
|
+
/**
|
|
704
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
705
|
+
*/
|
|
706
|
+
physical_address: CounterpartyBlockResponse.PhysicalAddress | null;
|
|
707
|
+
/**
|
|
708
|
+
* Resource type discriminator.
|
|
709
|
+
*/
|
|
710
|
+
type: 'counterparty';
|
|
711
|
+
}
|
|
712
|
+
export declare namespace CounterpartyBlockResponse {
|
|
713
|
+
interface IbanFinancialAddress {
|
|
714
|
+
/**
|
|
715
|
+
* Name of the account holder.
|
|
716
|
+
*/
|
|
717
|
+
account_holder_name: string;
|
|
718
|
+
/**
|
|
719
|
+
* Bank Identifier Code, or null if not provided.
|
|
720
|
+
*/
|
|
721
|
+
bic: string | null;
|
|
722
|
+
/**
|
|
723
|
+
* International Bank Account Number.
|
|
724
|
+
*/
|
|
725
|
+
iban: string;
|
|
726
|
+
/**
|
|
727
|
+
* Discriminator for IBAN financial address.
|
|
728
|
+
*/
|
|
729
|
+
type: 'iban';
|
|
730
|
+
}
|
|
731
|
+
interface SortCodeFinancialAddress {
|
|
732
|
+
/**
|
|
733
|
+
* Name of the account holder.
|
|
734
|
+
*/
|
|
735
|
+
account_holder_name: string;
|
|
736
|
+
/**
|
|
737
|
+
* UK account number (8 digits).
|
|
738
|
+
*/
|
|
739
|
+
account_number: string;
|
|
740
|
+
/**
|
|
741
|
+
* UK sort code (6 digits).
|
|
742
|
+
*/
|
|
743
|
+
sort_code: string;
|
|
744
|
+
/**
|
|
745
|
+
* Discriminator for UK sort code financial address.
|
|
746
|
+
*/
|
|
747
|
+
type: 'sort_code';
|
|
748
|
+
}
|
|
749
|
+
interface AbaFinancialAddress {
|
|
750
|
+
/**
|
|
751
|
+
* Name of the account holder.
|
|
752
|
+
*/
|
|
753
|
+
account_holder_name: string;
|
|
754
|
+
/**
|
|
755
|
+
* Bank account number.
|
|
756
|
+
*/
|
|
757
|
+
account_number: string;
|
|
758
|
+
/**
|
|
759
|
+
* ABA routing number (9 digits).
|
|
760
|
+
*/
|
|
761
|
+
routing_number: string;
|
|
762
|
+
/**
|
|
763
|
+
* Discriminator for ABA wire financial address.
|
|
764
|
+
*/
|
|
765
|
+
type: 'aba';
|
|
766
|
+
}
|
|
767
|
+
interface BicFinancialAddress {
|
|
768
|
+
/**
|
|
769
|
+
* Name of the account holder.
|
|
770
|
+
*/
|
|
771
|
+
account_holder_name: string;
|
|
772
|
+
/**
|
|
773
|
+
* Local-format bank account number.
|
|
774
|
+
*/
|
|
775
|
+
account_number: string;
|
|
776
|
+
/**
|
|
777
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
778
|
+
*/
|
|
779
|
+
bic: string;
|
|
780
|
+
/**
|
|
781
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
782
|
+
* the BSB in Australia), or null.
|
|
783
|
+
*/
|
|
784
|
+
local_bank_code: string | null;
|
|
785
|
+
/**
|
|
786
|
+
* Discriminator for BIC + local account financial address.
|
|
787
|
+
*/
|
|
788
|
+
type: 'bic';
|
|
789
|
+
}
|
|
790
|
+
interface CryptoWalletFinancialAddress {
|
|
791
|
+
/**
|
|
792
|
+
* Wallet address on the specified blockchain.
|
|
793
|
+
*/
|
|
794
|
+
address: string;
|
|
795
|
+
/**
|
|
796
|
+
* Blockchain network for the crypto wallet.
|
|
797
|
+
*/
|
|
798
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
799
|
+
/**
|
|
800
|
+
* Discriminator for crypto wallet financial address.
|
|
801
|
+
*/
|
|
802
|
+
type: 'crypto_wallet';
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
806
|
+
*/
|
|
807
|
+
interface PhysicalAddress {
|
|
808
|
+
/**
|
|
809
|
+
* City or locality.
|
|
810
|
+
*/
|
|
811
|
+
city: string;
|
|
812
|
+
/**
|
|
813
|
+
* ISO 3166-1 alpha-2 country code.
|
|
814
|
+
*/
|
|
815
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
816
|
+
/**
|
|
817
|
+
* Primary street address, or null if not recorded.
|
|
818
|
+
*/
|
|
819
|
+
line_1: string | null;
|
|
820
|
+
/**
|
|
821
|
+
* Secondary street address, or null if not recorded.
|
|
822
|
+
*/
|
|
823
|
+
line_2: string | null;
|
|
824
|
+
/**
|
|
825
|
+
* Postal or ZIP code, or null if not recorded.
|
|
826
|
+
*/
|
|
827
|
+
postal_code: string | null;
|
|
828
|
+
/**
|
|
829
|
+
* State, province, or region, or null if not recorded.
|
|
830
|
+
*/
|
|
831
|
+
state: string | null;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
export interface CounterpartyCreateParams {
|
|
835
|
+
/**
|
|
836
|
+
* Financial address of the counterparty.
|
|
837
|
+
*/
|
|
838
|
+
financial_address: CounterpartyCreateParams.IbanFinancialAddressRequest | CounterpartyCreateParams.SortCodeFinancialAddress | CounterpartyCreateParams.AbaFinancialAddress | CounterpartyCreateParams.BicFinancialAddressRequest | CounterpartyCreateParams.CryptoWalletFinancialAddress;
|
|
839
|
+
/**
|
|
840
|
+
* Date of birth in YYYY-MM-DD format.
|
|
841
|
+
*/
|
|
842
|
+
date_of_birth?: string;
|
|
843
|
+
/**
|
|
844
|
+
* Whether the counterparty is a business or an individual. Defaults to business.
|
|
845
|
+
*/
|
|
846
|
+
entity_type?: 'business' | 'individual';
|
|
847
|
+
/**
|
|
848
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
849
|
+
* by you, `true` if it is.
|
|
850
|
+
*/
|
|
851
|
+
is_self_owned?: boolean;
|
|
852
|
+
/**
|
|
853
|
+
* Name of the counterparty.
|
|
854
|
+
*/
|
|
855
|
+
name?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Physical address of the counterparty.
|
|
858
|
+
*/
|
|
859
|
+
physical_address?: CounterpartyCreateParams.PhysicalAddress;
|
|
860
|
+
}
|
|
861
|
+
export declare namespace CounterpartyCreateParams {
|
|
862
|
+
interface IbanFinancialAddressRequest {
|
|
863
|
+
/**
|
|
864
|
+
* Name of the account holder.
|
|
865
|
+
*/
|
|
866
|
+
account_holder_name: string;
|
|
867
|
+
/**
|
|
868
|
+
* International Bank Account Number.
|
|
869
|
+
*/
|
|
870
|
+
iban: string;
|
|
871
|
+
/**
|
|
872
|
+
* Discriminator for IBAN financial address.
|
|
873
|
+
*/
|
|
874
|
+
type: 'iban';
|
|
875
|
+
/**
|
|
876
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
877
|
+
*/
|
|
878
|
+
bic?: string | null;
|
|
879
|
+
}
|
|
880
|
+
interface SortCodeFinancialAddress {
|
|
881
|
+
/**
|
|
882
|
+
* Name of the account holder.
|
|
883
|
+
*/
|
|
884
|
+
account_holder_name: string;
|
|
885
|
+
/**
|
|
886
|
+
* UK account number (8 digits).
|
|
887
|
+
*/
|
|
888
|
+
account_number: string;
|
|
889
|
+
/**
|
|
890
|
+
* UK sort code (6 digits).
|
|
891
|
+
*/
|
|
892
|
+
sort_code: string;
|
|
893
|
+
/**
|
|
894
|
+
* Discriminator for UK sort code financial address.
|
|
895
|
+
*/
|
|
896
|
+
type: 'sort_code';
|
|
897
|
+
}
|
|
898
|
+
interface AbaFinancialAddress {
|
|
899
|
+
/**
|
|
900
|
+
* Name of the account holder.
|
|
901
|
+
*/
|
|
902
|
+
account_holder_name: string;
|
|
903
|
+
/**
|
|
904
|
+
* Bank account number.
|
|
905
|
+
*/
|
|
906
|
+
account_number: string;
|
|
907
|
+
/**
|
|
908
|
+
* ABA routing number (9 digits).
|
|
909
|
+
*/
|
|
910
|
+
routing_number: string;
|
|
911
|
+
/**
|
|
912
|
+
* Discriminator for ABA wire financial address.
|
|
913
|
+
*/
|
|
914
|
+
type: 'aba';
|
|
915
|
+
}
|
|
916
|
+
interface BicFinancialAddressRequest {
|
|
917
|
+
/**
|
|
918
|
+
* Name of the account holder.
|
|
919
|
+
*/
|
|
920
|
+
account_holder_name: string;
|
|
921
|
+
/**
|
|
922
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
923
|
+
*/
|
|
924
|
+
account_number: string;
|
|
925
|
+
/**
|
|
926
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
927
|
+
*/
|
|
928
|
+
bic: string;
|
|
929
|
+
/**
|
|
930
|
+
* Discriminator for BIC + local account financial address.
|
|
931
|
+
*/
|
|
932
|
+
type: 'bic';
|
|
933
|
+
/**
|
|
934
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
935
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
936
|
+
*/
|
|
937
|
+
local_bank_code?: string | null;
|
|
938
|
+
}
|
|
939
|
+
interface CryptoWalletFinancialAddress {
|
|
940
|
+
/**
|
|
941
|
+
* Wallet address on the specified blockchain.
|
|
942
|
+
*/
|
|
943
|
+
address: string;
|
|
944
|
+
/**
|
|
945
|
+
* Blockchain network for the crypto wallet.
|
|
946
|
+
*/
|
|
947
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
948
|
+
/**
|
|
949
|
+
* Discriminator for crypto wallet financial address.
|
|
950
|
+
*/
|
|
951
|
+
type: 'crypto_wallet';
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Physical address of the counterparty.
|
|
955
|
+
*/
|
|
956
|
+
interface PhysicalAddress {
|
|
957
|
+
/**
|
|
958
|
+
* City or locality.
|
|
959
|
+
*/
|
|
960
|
+
city: string;
|
|
961
|
+
/**
|
|
962
|
+
* ISO 3166-1 alpha-2 country code.
|
|
963
|
+
*/
|
|
964
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
965
|
+
/**
|
|
966
|
+
* Primary street address. Optional; omit or send null if not recorded.
|
|
967
|
+
*/
|
|
968
|
+
line_1?: string | null;
|
|
969
|
+
/**
|
|
970
|
+
* Secondary street address. Optional; omit or send null if not recorded.
|
|
971
|
+
*/
|
|
972
|
+
line_2?: string | null;
|
|
973
|
+
/**
|
|
974
|
+
* Postal or ZIP code. Optional; omit or send null if not recorded.
|
|
975
|
+
*/
|
|
976
|
+
postal_code?: string | null;
|
|
977
|
+
/**
|
|
978
|
+
* State, province, or region. Optional; omit or send null if not recorded.
|
|
979
|
+
*/
|
|
980
|
+
state?: string | null;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
export interface CounterpartyUpdateParams {
|
|
984
|
+
/**
|
|
985
|
+
* New date of birth in YYYY-MM-DD format, or null to clear the current date of
|
|
986
|
+
* birth.
|
|
987
|
+
*/
|
|
988
|
+
date_of_birth?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* New entity type. Omit to keep the current entity type.
|
|
991
|
+
*/
|
|
992
|
+
entity_type?: 'business' | 'individual';
|
|
993
|
+
/**
|
|
994
|
+
* New ownership status. Omit to keep the current ownership status.
|
|
995
|
+
*/
|
|
996
|
+
is_self_owned?: boolean;
|
|
997
|
+
/**
|
|
998
|
+
* New name, or null to clear the current name.
|
|
999
|
+
*/
|
|
1000
|
+
name?: string | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* New physical address, or null to clear the current physical address.
|
|
1003
|
+
*/
|
|
1004
|
+
physical_address?: CounterpartyUpdateParams.PhysicalAddress | null;
|
|
1005
|
+
}
|
|
1006
|
+
export declare namespace CounterpartyUpdateParams {
|
|
1007
|
+
/**
|
|
1008
|
+
* New physical address, or null to clear the current physical address.
|
|
1009
|
+
*/
|
|
1010
|
+
interface PhysicalAddress {
|
|
1011
|
+
/**
|
|
1012
|
+
* City or locality.
|
|
1013
|
+
*/
|
|
1014
|
+
city: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1017
|
+
*/
|
|
1018
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
1019
|
+
/**
|
|
1020
|
+
* Primary street address. Optional; omit or send null if not recorded.
|
|
1021
|
+
*/
|
|
1022
|
+
line_1?: string | null;
|
|
1023
|
+
/**
|
|
1024
|
+
* Secondary street address. Optional; omit or send null if not recorded.
|
|
1025
|
+
*/
|
|
1026
|
+
line_2?: string | null;
|
|
1027
|
+
/**
|
|
1028
|
+
* Postal or ZIP code. Optional; omit or send null if not recorded.
|
|
1029
|
+
*/
|
|
1030
|
+
postal_code?: string | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* State, province, or region. Optional; omit or send null if not recorded.
|
|
1033
|
+
*/
|
|
1034
|
+
state?: string | null;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
export interface CounterpartyListParams extends CursorPageParams {
|
|
1038
|
+
}
|
|
1039
|
+
export declare namespace Counterparties {
|
|
1040
|
+
export { type CounterpartyCreateResponse as CounterpartyCreateResponse, type CounterpartyRetrieveResponse as CounterpartyRetrieveResponse, type CounterpartyUpdateResponse as CounterpartyUpdateResponse, type CounterpartyListResponse as CounterpartyListResponse, type CounterpartyBlockResponse as CounterpartyBlockResponse, type CounterpartyListResponsesCursorPage as CounterpartyListResponsesCursorPage, type CounterpartyCreateParams as CounterpartyCreateParams, type CounterpartyUpdateParams as CounterpartyUpdateParams, type CounterpartyListParams as CounterpartyListParams, };
|
|
1041
|
+
}
|
|
1042
|
+
//# sourceMappingURL=counterparties.d.ts.map
|