@augustusbank/typescript-sdk 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +24 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +24 -6
- package/resources/accounts.d.ts.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/counterparties.d.mts +227 -12
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +227 -12
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +16 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +16 -0
- package/resources/counterparties.mjs.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 +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payout-tracking-events.d.mts +358 -0
- package/resources/payout-tracking-events.d.mts.map +1 -0
- package/resources/payout-tracking-events.d.ts +358 -0
- package/resources/payout-tracking-events.d.ts.map +1 -0
- package/resources/payout-tracking-events.js +23 -0
- package/resources/payout-tracking-events.js.map +1 -0
- package/resources/payout-tracking-events.mjs +19 -0
- package/resources/payout-tracking-events.mjs.map +1 -0
- package/resources/scopes.d.mts +1 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +1 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/transactions.d.mts +4 -4
- package/resources/transactions.d.ts +4 -4
- package/resources/webhook-subscriptions.d.mts +8 -8
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +8 -8
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +196 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +196 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +21 -0
- package/src/resources/accounts.ts +24 -6
- package/src/resources/api-keys.ts +1 -0
- package/src/resources/counterparties.ts +536 -12
- package/src/resources/events.ts +3 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/payout-tracking-events.ts +479 -0
- package/src/resources/scopes.ts +2 -1
- package/src/resources/transactions.ts +4 -4
- package/src/resources/webhook-subscriptions.ts +8 -0
- package/src/resources/webhooks.ts +241 -12
- 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
|
@@ -60,6 +60,7 @@ export class Counterparties extends APIResource {
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Lists counterparties owned by the merchant with cursor-based pagination.
|
|
63
|
+
* Optionally filter by status.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
@@ -78,6 +79,22 @@ export class Counterparties extends APIResource {
|
|
|
78
79
|
...options,
|
|
79
80
|
});
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Activates a pending counterparty owned by the merchant. A fiat counterparty
|
|
85
|
+
* becomes active immediately; a crypto counterparty starts verification and stays
|
|
86
|
+
* pending until it concludes.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const response = await client.counterparties.activate(
|
|
91
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
92
|
+
* );
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
activate(id: string, options?: RequestOptions): APIPromise<CounterpartyActivateResponse> {
|
|
96
|
+
return this._client.post(path`/v1/counterparties/${id}/activate`, options);
|
|
97
|
+
}
|
|
81
98
|
}
|
|
82
99
|
|
|
83
100
|
export type CounterpartyListResponsesCursorPage = CursorPage<CounterpartyListResponse>;
|
|
@@ -104,9 +121,9 @@ export interface CounterpartyCreateResponse {
|
|
|
104
121
|
email: string | null;
|
|
105
122
|
|
|
106
123
|
/**
|
|
107
|
-
*
|
|
124
|
+
* Classification of the counterparty.
|
|
108
125
|
*/
|
|
109
|
-
entity_type: 'business' | 'individual';
|
|
126
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
110
127
|
|
|
111
128
|
/**
|
|
112
129
|
* Financial address of the counterparty.
|
|
@@ -605,9 +622,9 @@ export interface CounterpartyRetrieveResponse {
|
|
|
605
622
|
email: string | null;
|
|
606
623
|
|
|
607
624
|
/**
|
|
608
|
-
*
|
|
625
|
+
* Classification of the counterparty.
|
|
609
626
|
*/
|
|
610
|
-
entity_type: 'business' | 'individual';
|
|
627
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
611
628
|
|
|
612
629
|
/**
|
|
613
630
|
* Financial address of the counterparty.
|
|
@@ -1106,9 +1123,9 @@ export interface CounterpartyUpdateResponse {
|
|
|
1106
1123
|
email: string | null;
|
|
1107
1124
|
|
|
1108
1125
|
/**
|
|
1109
|
-
*
|
|
1126
|
+
* Classification of the counterparty.
|
|
1110
1127
|
*/
|
|
1111
|
-
entity_type: 'business' | 'individual';
|
|
1128
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
1112
1129
|
|
|
1113
1130
|
/**
|
|
1114
1131
|
* Financial address of the counterparty.
|
|
@@ -1607,9 +1624,9 @@ export interface CounterpartyListResponse {
|
|
|
1607
1624
|
email: string | null;
|
|
1608
1625
|
|
|
1609
1626
|
/**
|
|
1610
|
-
*
|
|
1627
|
+
* Classification of the counterparty.
|
|
1611
1628
|
*/
|
|
1612
|
-
entity_type: 'business' | 'individual';
|
|
1629
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
1613
1630
|
|
|
1614
1631
|
/**
|
|
1615
1632
|
* Financial address of the counterparty.
|
|
@@ -2086,6 +2103,507 @@ export namespace CounterpartyListResponse {
|
|
|
2086
2103
|
}
|
|
2087
2104
|
}
|
|
2088
2105
|
|
|
2106
|
+
export interface CounterpartyActivateResponse {
|
|
2107
|
+
/**
|
|
2108
|
+
* Unique identifier of the counterparty.
|
|
2109
|
+
*/
|
|
2110
|
+
id: string;
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* Whether payments to or from this counterparty are currently blocked.
|
|
2114
|
+
*/
|
|
2115
|
+
blocked: boolean;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Date of birth in YYYY-MM-DD format, or null if not recorded.
|
|
2119
|
+
*/
|
|
2120
|
+
date_of_birth: string | null;
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Email address of the counterparty, or null if not recorded.
|
|
2124
|
+
*/
|
|
2125
|
+
email: string | null;
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Classification of the counterparty.
|
|
2129
|
+
*/
|
|
2130
|
+
entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Financial address of the counterparty.
|
|
2134
|
+
*/
|
|
2135
|
+
financial_address:
|
|
2136
|
+
| CounterpartyActivateResponse.AbaFinancialAddress
|
|
2137
|
+
| CounterpartyActivateResponse.IbanFinancialAddress
|
|
2138
|
+
| CounterpartyActivateResponse.SortCodeFinancialAddress
|
|
2139
|
+
| CounterpartyActivateResponse.BicFinancialAddress
|
|
2140
|
+
| CounterpartyActivateResponse.CryptoWalletFinancialAddress;
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
2144
|
+
* by you, `true` if it is.
|
|
2145
|
+
*/
|
|
2146
|
+
is_self_owned: boolean;
|
|
2147
|
+
|
|
2148
|
+
/**
|
|
2149
|
+
* National tax or identity number of the counterparty, or null if not recorded.
|
|
2150
|
+
*/
|
|
2151
|
+
legal_id: string | null;
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
2155
|
+
* information, such as correlating this resource with an object in your own
|
|
2156
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
2157
|
+
*/
|
|
2158
|
+
metadata: { [key: string]: string };
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Name of the counterparty, or null if not recorded.
|
|
2162
|
+
*/
|
|
2163
|
+
name: string | null;
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* Phone number of the counterparty, or null if not recorded.
|
|
2167
|
+
*/
|
|
2168
|
+
phone: string | null;
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
2172
|
+
*/
|
|
2173
|
+
physical_address: CounterpartyActivateResponse.PhysicalAddress | null;
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Counterparty lifecycle status. Blocking is separate.
|
|
2177
|
+
*/
|
|
2178
|
+
status: 'pending' | 'active' | 'rejected';
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Resource type discriminator.
|
|
2182
|
+
*/
|
|
2183
|
+
type: 'counterparty';
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
export namespace CounterpartyActivateResponse {
|
|
2187
|
+
export interface AbaFinancialAddress {
|
|
2188
|
+
/**
|
|
2189
|
+
* Name of the account holder.
|
|
2190
|
+
*/
|
|
2191
|
+
account_holder_name: string;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Bank account number.
|
|
2195
|
+
*/
|
|
2196
|
+
account_number: string;
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
2200
|
+
*/
|
|
2201
|
+
account_type: 'checking' | 'savings' | null;
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* ABA routing number (9 digits).
|
|
2205
|
+
*/
|
|
2206
|
+
routing_number: string;
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Discriminator for ABA wire financial address.
|
|
2210
|
+
*/
|
|
2211
|
+
type: 'aba';
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
export interface IbanFinancialAddress {
|
|
2215
|
+
/**
|
|
2216
|
+
* Name of the account holder.
|
|
2217
|
+
*/
|
|
2218
|
+
account_holder_name: string;
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
2222
|
+
*/
|
|
2223
|
+
account_type: 'checking' | 'savings' | null;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Bank Identifier Code, or null if not provided.
|
|
2227
|
+
*/
|
|
2228
|
+
bic: string | null;
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* International Bank Account Number.
|
|
2232
|
+
*/
|
|
2233
|
+
iban: string;
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* Discriminator for IBAN financial address.
|
|
2237
|
+
*/
|
|
2238
|
+
type: 'iban';
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
export interface SortCodeFinancialAddress {
|
|
2242
|
+
/**
|
|
2243
|
+
* Name of the account holder.
|
|
2244
|
+
*/
|
|
2245
|
+
account_holder_name: string;
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* UK account number (8 digits).
|
|
2249
|
+
*/
|
|
2250
|
+
account_number: string;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* UK sort code (6 digits).
|
|
2254
|
+
*/
|
|
2255
|
+
sort_code: string;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Discriminator for UK sort code financial address.
|
|
2259
|
+
*/
|
|
2260
|
+
type: 'sort_code';
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
export interface BicFinancialAddress {
|
|
2264
|
+
/**
|
|
2265
|
+
* Name of the account holder.
|
|
2266
|
+
*/
|
|
2267
|
+
account_holder_name: string;
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* Local-format bank account number.
|
|
2271
|
+
*/
|
|
2272
|
+
account_number: string;
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Whether the account is a checking or a savings account, or null if not provided.
|
|
2276
|
+
*/
|
|
2277
|
+
account_type: 'checking' | 'savings' | null;
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
2281
|
+
*/
|
|
2282
|
+
bic: string;
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
2286
|
+
* the BSB in Australia), or null.
|
|
2287
|
+
*/
|
|
2288
|
+
local_bank_code: string | null;
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Discriminator for BIC + local account financial address.
|
|
2292
|
+
*/
|
|
2293
|
+
type: 'bic';
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
export interface CryptoWalletFinancialAddress {
|
|
2297
|
+
/**
|
|
2298
|
+
* Wallet address on the specified blockchain.
|
|
2299
|
+
*/
|
|
2300
|
+
address: string;
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Blockchain network for the crypto wallet.
|
|
2304
|
+
*/
|
|
2305
|
+
blockchain:
|
|
2306
|
+
| 'bitcoin'
|
|
2307
|
+
| 'ethereum'
|
|
2308
|
+
| 'solana'
|
|
2309
|
+
| 'polygon'
|
|
2310
|
+
| 'bitcoin_testnet4'
|
|
2311
|
+
| 'ethereum_sepolia'
|
|
2312
|
+
| 'solana_devnet'
|
|
2313
|
+
| 'polygon_amoy';
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Discriminator for crypto wallet financial address.
|
|
2317
|
+
*/
|
|
2318
|
+
type: 'crypto_wallet';
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Physical address of the counterparty, or null if not recorded.
|
|
2323
|
+
*/
|
|
2324
|
+
export interface PhysicalAddress {
|
|
2325
|
+
/**
|
|
2326
|
+
* City or locality.
|
|
2327
|
+
*/
|
|
2328
|
+
city: string;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2332
|
+
*/
|
|
2333
|
+
country_code:
|
|
2334
|
+
| 'AF'
|
|
2335
|
+
| 'AL'
|
|
2336
|
+
| 'DZ'
|
|
2337
|
+
| 'AS'
|
|
2338
|
+
| 'AD'
|
|
2339
|
+
| 'AO'
|
|
2340
|
+
| 'AI'
|
|
2341
|
+
| 'AQ'
|
|
2342
|
+
| 'AG'
|
|
2343
|
+
| 'AR'
|
|
2344
|
+
| 'AM'
|
|
2345
|
+
| 'AW'
|
|
2346
|
+
| 'AU'
|
|
2347
|
+
| 'AT'
|
|
2348
|
+
| 'AZ'
|
|
2349
|
+
| 'BS'
|
|
2350
|
+
| 'BH'
|
|
2351
|
+
| 'BD'
|
|
2352
|
+
| 'BB'
|
|
2353
|
+
| 'BY'
|
|
2354
|
+
| 'BE'
|
|
2355
|
+
| 'BZ'
|
|
2356
|
+
| 'BJ'
|
|
2357
|
+
| 'BM'
|
|
2358
|
+
| 'BT'
|
|
2359
|
+
| 'BO'
|
|
2360
|
+
| 'BA'
|
|
2361
|
+
| 'BW'
|
|
2362
|
+
| 'BV'
|
|
2363
|
+
| 'BR'
|
|
2364
|
+
| 'IO'
|
|
2365
|
+
| 'BN'
|
|
2366
|
+
| 'BG'
|
|
2367
|
+
| 'BF'
|
|
2368
|
+
| 'BI'
|
|
2369
|
+
| 'KH'
|
|
2370
|
+
| 'CM'
|
|
2371
|
+
| 'CA'
|
|
2372
|
+
| 'CV'
|
|
2373
|
+
| 'KY'
|
|
2374
|
+
| 'CF'
|
|
2375
|
+
| 'TD'
|
|
2376
|
+
| 'CL'
|
|
2377
|
+
| 'CN'
|
|
2378
|
+
| 'CX'
|
|
2379
|
+
| 'CC'
|
|
2380
|
+
| 'CO'
|
|
2381
|
+
| 'KM'
|
|
2382
|
+
| 'CG'
|
|
2383
|
+
| 'CD'
|
|
2384
|
+
| 'CK'
|
|
2385
|
+
| 'CR'
|
|
2386
|
+
| 'CI'
|
|
2387
|
+
| 'HR'
|
|
2388
|
+
| 'CU'
|
|
2389
|
+
| 'CY'
|
|
2390
|
+
| 'CZ'
|
|
2391
|
+
| 'DK'
|
|
2392
|
+
| 'DJ'
|
|
2393
|
+
| 'DM'
|
|
2394
|
+
| 'DO'
|
|
2395
|
+
| 'EC'
|
|
2396
|
+
| 'EG'
|
|
2397
|
+
| 'SV'
|
|
2398
|
+
| 'GQ'
|
|
2399
|
+
| 'ER'
|
|
2400
|
+
| 'EE'
|
|
2401
|
+
| 'ET'
|
|
2402
|
+
| 'FK'
|
|
2403
|
+
| 'FO'
|
|
2404
|
+
| 'FJ'
|
|
2405
|
+
| 'FI'
|
|
2406
|
+
| 'FR'
|
|
2407
|
+
| 'GF'
|
|
2408
|
+
| 'PF'
|
|
2409
|
+
| 'TF'
|
|
2410
|
+
| 'GA'
|
|
2411
|
+
| 'GM'
|
|
2412
|
+
| 'GE'
|
|
2413
|
+
| 'DE'
|
|
2414
|
+
| 'GH'
|
|
2415
|
+
| 'GI'
|
|
2416
|
+
| 'GR'
|
|
2417
|
+
| 'GL'
|
|
2418
|
+
| 'GD'
|
|
2419
|
+
| 'GP'
|
|
2420
|
+
| 'GU'
|
|
2421
|
+
| 'GT'
|
|
2422
|
+
| 'GN'
|
|
2423
|
+
| 'GW'
|
|
2424
|
+
| 'GY'
|
|
2425
|
+
| 'HT'
|
|
2426
|
+
| 'HM'
|
|
2427
|
+
| 'VA'
|
|
2428
|
+
| 'HN'
|
|
2429
|
+
| 'HK'
|
|
2430
|
+
| 'HU'
|
|
2431
|
+
| 'IS'
|
|
2432
|
+
| 'IN'
|
|
2433
|
+
| 'ID'
|
|
2434
|
+
| 'IR'
|
|
2435
|
+
| 'IQ'
|
|
2436
|
+
| 'IE'
|
|
2437
|
+
| 'IL'
|
|
2438
|
+
| 'IT'
|
|
2439
|
+
| 'JM'
|
|
2440
|
+
| 'JP'
|
|
2441
|
+
| 'JO'
|
|
2442
|
+
| 'KZ'
|
|
2443
|
+
| 'KE'
|
|
2444
|
+
| 'KI'
|
|
2445
|
+
| 'KP'
|
|
2446
|
+
| 'KR'
|
|
2447
|
+
| 'KW'
|
|
2448
|
+
| 'KG'
|
|
2449
|
+
| 'LA'
|
|
2450
|
+
| 'LV'
|
|
2451
|
+
| 'LB'
|
|
2452
|
+
| 'LS'
|
|
2453
|
+
| 'LR'
|
|
2454
|
+
| 'LY'
|
|
2455
|
+
| 'LI'
|
|
2456
|
+
| 'LT'
|
|
2457
|
+
| 'LU'
|
|
2458
|
+
| 'MO'
|
|
2459
|
+
| 'MG'
|
|
2460
|
+
| 'MW'
|
|
2461
|
+
| 'MY'
|
|
2462
|
+
| 'MV'
|
|
2463
|
+
| 'ML'
|
|
2464
|
+
| 'MT'
|
|
2465
|
+
| 'MH'
|
|
2466
|
+
| 'MQ'
|
|
2467
|
+
| 'MR'
|
|
2468
|
+
| 'MU'
|
|
2469
|
+
| 'YT'
|
|
2470
|
+
| 'MX'
|
|
2471
|
+
| 'FM'
|
|
2472
|
+
| 'MD'
|
|
2473
|
+
| 'MC'
|
|
2474
|
+
| 'MN'
|
|
2475
|
+
| 'MS'
|
|
2476
|
+
| 'MA'
|
|
2477
|
+
| 'MZ'
|
|
2478
|
+
| 'MM'
|
|
2479
|
+
| 'NA'
|
|
2480
|
+
| 'NR'
|
|
2481
|
+
| 'NP'
|
|
2482
|
+
| 'NL'
|
|
2483
|
+
| 'NC'
|
|
2484
|
+
| 'NZ'
|
|
2485
|
+
| 'NI'
|
|
2486
|
+
| 'NE'
|
|
2487
|
+
| 'NG'
|
|
2488
|
+
| 'NU'
|
|
2489
|
+
| 'NF'
|
|
2490
|
+
| 'MP'
|
|
2491
|
+
| 'MK'
|
|
2492
|
+
| 'NO'
|
|
2493
|
+
| 'OM'
|
|
2494
|
+
| 'PK'
|
|
2495
|
+
| 'PW'
|
|
2496
|
+
| 'PS'
|
|
2497
|
+
| 'PA'
|
|
2498
|
+
| 'PG'
|
|
2499
|
+
| 'PY'
|
|
2500
|
+
| 'PE'
|
|
2501
|
+
| 'PH'
|
|
2502
|
+
| 'PN'
|
|
2503
|
+
| 'PL'
|
|
2504
|
+
| 'PT'
|
|
2505
|
+
| 'PR'
|
|
2506
|
+
| 'QA'
|
|
2507
|
+
| 'RE'
|
|
2508
|
+
| 'RO'
|
|
2509
|
+
| 'RU'
|
|
2510
|
+
| 'RW'
|
|
2511
|
+
| 'SH'
|
|
2512
|
+
| 'KN'
|
|
2513
|
+
| 'LC'
|
|
2514
|
+
| 'PM'
|
|
2515
|
+
| 'VC'
|
|
2516
|
+
| 'WS'
|
|
2517
|
+
| 'SM'
|
|
2518
|
+
| 'ST'
|
|
2519
|
+
| 'SA'
|
|
2520
|
+
| 'SN'
|
|
2521
|
+
| 'SC'
|
|
2522
|
+
| 'SL'
|
|
2523
|
+
| 'SG'
|
|
2524
|
+
| 'SK'
|
|
2525
|
+
| 'SI'
|
|
2526
|
+
| 'SB'
|
|
2527
|
+
| 'SO'
|
|
2528
|
+
| 'ZA'
|
|
2529
|
+
| 'GS'
|
|
2530
|
+
| 'ES'
|
|
2531
|
+
| 'LK'
|
|
2532
|
+
| 'SD'
|
|
2533
|
+
| 'SR'
|
|
2534
|
+
| 'SJ'
|
|
2535
|
+
| 'SZ'
|
|
2536
|
+
| 'SE'
|
|
2537
|
+
| 'CH'
|
|
2538
|
+
| 'SY'
|
|
2539
|
+
| 'TW'
|
|
2540
|
+
| 'TJ'
|
|
2541
|
+
| 'TZ'
|
|
2542
|
+
| 'TH'
|
|
2543
|
+
| 'TL'
|
|
2544
|
+
| 'TG'
|
|
2545
|
+
| 'TK'
|
|
2546
|
+
| 'TO'
|
|
2547
|
+
| 'TT'
|
|
2548
|
+
| 'TN'
|
|
2549
|
+
| 'TR'
|
|
2550
|
+
| 'TM'
|
|
2551
|
+
| 'TC'
|
|
2552
|
+
| 'TV'
|
|
2553
|
+
| 'UG'
|
|
2554
|
+
| 'UA'
|
|
2555
|
+
| 'AE'
|
|
2556
|
+
| 'GB'
|
|
2557
|
+
| 'US'
|
|
2558
|
+
| 'UM'
|
|
2559
|
+
| 'UY'
|
|
2560
|
+
| 'UZ'
|
|
2561
|
+
| 'VU'
|
|
2562
|
+
| 'VE'
|
|
2563
|
+
| 'VN'
|
|
2564
|
+
| 'VG'
|
|
2565
|
+
| 'VI'
|
|
2566
|
+
| 'WF'
|
|
2567
|
+
| 'EH'
|
|
2568
|
+
| 'YE'
|
|
2569
|
+
| 'ZM'
|
|
2570
|
+
| 'ZW'
|
|
2571
|
+
| 'AX'
|
|
2572
|
+
| 'BQ'
|
|
2573
|
+
| 'CW'
|
|
2574
|
+
| 'GG'
|
|
2575
|
+
| 'IM'
|
|
2576
|
+
| 'JE'
|
|
2577
|
+
| 'ME'
|
|
2578
|
+
| 'BL'
|
|
2579
|
+
| 'MF'
|
|
2580
|
+
| 'RS'
|
|
2581
|
+
| 'SX'
|
|
2582
|
+
| 'SS'
|
|
2583
|
+
| 'XK';
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Primary street address, or null if not recorded.
|
|
2587
|
+
*/
|
|
2588
|
+
line_1: string | null;
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* Secondary street address, or null if not recorded.
|
|
2592
|
+
*/
|
|
2593
|
+
line_2: string | null;
|
|
2594
|
+
|
|
2595
|
+
/**
|
|
2596
|
+
* Postal or ZIP code, or null if not recorded.
|
|
2597
|
+
*/
|
|
2598
|
+
postal_code: string | null;
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* State, province, or region, or null if not recorded.
|
|
2602
|
+
*/
|
|
2603
|
+
state: string | null;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2089
2607
|
export interface CounterpartyCreateParams {
|
|
2090
2608
|
/**
|
|
2091
2609
|
* Financial address of the counterparty.
|
|
@@ -2109,9 +2627,9 @@ export interface CounterpartyCreateParams {
|
|
|
2109
2627
|
email?: string;
|
|
2110
2628
|
|
|
2111
2629
|
/**
|
|
2112
|
-
*
|
|
2630
|
+
* Classification of the counterparty. Defaults to business.
|
|
2113
2631
|
*/
|
|
2114
|
-
entity_type?: 'business' | 'individual';
|
|
2632
|
+
entity_type?: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
2115
2633
|
|
|
2116
2634
|
/**
|
|
2117
2635
|
* Whether the counterparty is self-owned. `false` if the counterparty is not owned
|
|
@@ -2595,7 +3113,7 @@ export interface CounterpartyUpdateParams {
|
|
|
2595
3113
|
/**
|
|
2596
3114
|
* New entity type. Omit to keep the current entity type.
|
|
2597
3115
|
*/
|
|
2598
|
-
entity_type?: 'business' | 'individual';
|
|
3116
|
+
entity_type?: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
|
|
2599
3117
|
|
|
2600
3118
|
/**
|
|
2601
3119
|
* New ownership status. Omit to keep the current ownership status.
|
|
@@ -2910,7 +3428,12 @@ export namespace CounterpartyUpdateParams {
|
|
|
2910
3428
|
}
|
|
2911
3429
|
}
|
|
2912
3430
|
|
|
2913
|
-
export interface CounterpartyListParams extends CursorPageParams {
|
|
3431
|
+
export interface CounterpartyListParams extends CursorPageParams {
|
|
3432
|
+
/**
|
|
3433
|
+
* Filter by counterparty status. All statuses are included when omitted.
|
|
3434
|
+
*/
|
|
3435
|
+
status?: 'pending' | 'active' | 'rejected';
|
|
3436
|
+
}
|
|
2914
3437
|
|
|
2915
3438
|
export declare namespace Counterparties {
|
|
2916
3439
|
export {
|
|
@@ -2918,6 +3441,7 @@ export declare namespace Counterparties {
|
|
|
2918
3441
|
type CounterpartyRetrieveResponse as CounterpartyRetrieveResponse,
|
|
2919
3442
|
type CounterpartyUpdateResponse as CounterpartyUpdateResponse,
|
|
2920
3443
|
type CounterpartyListResponse as CounterpartyListResponse,
|
|
3444
|
+
type CounterpartyActivateResponse as CounterpartyActivateResponse,
|
|
2921
3445
|
type CounterpartyListResponsesCursorPage as CounterpartyListResponsesCursorPage,
|
|
2922
3446
|
type CounterpartyCreateParams as CounterpartyCreateParams,
|
|
2923
3447
|
type CounterpartyUpdateParams as CounterpartyUpdateParams,
|
package/src/resources/events.ts
CHANGED
|
@@ -77,6 +77,7 @@ export interface EventRetrieveResponse {
|
|
|
77
77
|
| 'counterparty.blocked'
|
|
78
78
|
| 'counterparty.unblocked'
|
|
79
79
|
| 'counterparty.updated'
|
|
80
|
+
| 'payout_tracking_event.created'
|
|
80
81
|
| 'ping.test';
|
|
81
82
|
|
|
82
83
|
/**
|
|
@@ -134,6 +135,7 @@ export interface EventListResponse {
|
|
|
134
135
|
| 'counterparty.blocked'
|
|
135
136
|
| 'counterparty.unblocked'
|
|
136
137
|
| 'counterparty.updated'
|
|
138
|
+
| 'payout_tracking_event.created'
|
|
137
139
|
| 'ping.test';
|
|
138
140
|
|
|
139
141
|
/**
|
|
@@ -171,6 +173,7 @@ export interface EventListParams extends CursorPageParams {
|
|
|
171
173
|
| 'counterparty.blocked'
|
|
172
174
|
| 'counterparty.unblocked'
|
|
173
175
|
| 'counterparty.updated'
|
|
176
|
+
| 'payout_tracking_event.created'
|
|
174
177
|
| 'ping.test';
|
|
175
178
|
}
|
|
176
179
|
|
package/src/resources/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export {
|
|
|
52
52
|
type CounterpartyRetrieveResponse,
|
|
53
53
|
type CounterpartyUpdateResponse,
|
|
54
54
|
type CounterpartyListResponse,
|
|
55
|
+
type CounterpartyActivateResponse,
|
|
55
56
|
type CounterpartyCreateParams,
|
|
56
57
|
type CounterpartyUpdateParams,
|
|
57
58
|
type CounterpartyListParams,
|
|
@@ -71,6 +72,13 @@ export {
|
|
|
71
72
|
type EventListParams,
|
|
72
73
|
type EventListResponsesCursorPage,
|
|
73
74
|
} from './events';
|
|
75
|
+
export {
|
|
76
|
+
PayoutTrackingEvents,
|
|
77
|
+
type PayoutTrackingEventRetrieveResponse,
|
|
78
|
+
type PayoutTrackingEventListResponse,
|
|
79
|
+
type PayoutTrackingEventListParams,
|
|
80
|
+
type PayoutTrackingEventListResponsesCursorPage,
|
|
81
|
+
} from './payout-tracking-events';
|
|
74
82
|
export {
|
|
75
83
|
Payouts,
|
|
76
84
|
type PayoutCreateResponse,
|
|
@@ -144,6 +152,7 @@ export {
|
|
|
144
152
|
type CounterpartyBlockedWebhookEvent,
|
|
145
153
|
type CounterpartyUnblockedWebhookEvent,
|
|
146
154
|
type CounterpartyUpdatedWebhookEvent,
|
|
155
|
+
type PayoutTrackingEventCreatedWebhookEvent,
|
|
147
156
|
type PingTestWebhookEvent,
|
|
148
157
|
type UnwrapWebhookEvent,
|
|
149
158
|
} from './webhooks';
|