@augustusbank/typescript-sdk 0.22.2 → 0.24.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 +20 -0
- package/package.json +1 -1
- package/resources/account-holders.d.mts +40 -0
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +40 -0
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/accounts.d.mts +58 -3
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +58 -3
- package/resources/accounts.d.ts.map +1 -1
- package/resources/conversions.d.mts +12 -4
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +12 -4
- package/resources/conversions.d.ts.map +1 -1
- package/resources/counterparties.d.mts +88 -0
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +88 -0
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +40 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +40 -0
- package/resources/counterparties.mjs.map +1 -1
- package/resources/payouts.d.mts +12 -4
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +12 -4
- package/resources/payouts.d.ts.map +1 -1
- package/resources/returns.d.mts +32 -0
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +32 -0
- package/resources/returns.d.ts.map +1 -1
- package/resources/simulations/counterparties.d.mts +32 -0
- package/resources/simulations/counterparties.d.mts.map +1 -0
- package/resources/simulations/counterparties.d.ts +32 -0
- package/resources/simulations/counterparties.d.ts.map +1 -0
- package/resources/simulations/counterparties.js +25 -0
- package/resources/simulations/counterparties.js.map +1 -0
- package/resources/simulations/counterparties.mjs +21 -0
- package/resources/simulations/counterparties.mjs.map +1 -0
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts +48 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +48 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +80 -8
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -8
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/account-holders.ts +35 -0
- package/src/resources/accounts.ts +51 -3
- package/src/resources/conversions.ts +12 -4
- package/src/resources/counterparties.ts +82 -0
- package/src/resources/payouts.ts +12 -4
- package/src/resources/returns.ts +28 -0
- package/src/resources/simulations/counterparties.ts +40 -0
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/simulations.ts +6 -0
- package/src/resources/webhook-subscriptions.ts +42 -0
- package/src/resources/webhooks.ts +73 -8
- 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
|
@@ -78,7 +78,9 @@ export interface ConversionCreateResponse {
|
|
|
78
78
|
created_at: string;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
82
|
+
* information, such as correlating this resource with an object in your own
|
|
83
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
82
84
|
*/
|
|
83
85
|
metadata: { [key: string]: string };
|
|
84
86
|
|
|
@@ -135,7 +137,9 @@ export interface ConversionRetrieveResponse {
|
|
|
135
137
|
created_at: string;
|
|
136
138
|
|
|
137
139
|
/**
|
|
138
|
-
*
|
|
140
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
141
|
+
* information, such as correlating this resource with an object in your own
|
|
142
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
139
143
|
*/
|
|
140
144
|
metadata: { [key: string]: string };
|
|
141
145
|
|
|
@@ -192,7 +196,9 @@ export interface ConversionListResponse {
|
|
|
192
196
|
created_at: string;
|
|
193
197
|
|
|
194
198
|
/**
|
|
195
|
-
*
|
|
199
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
200
|
+
* information, such as correlating this resource with an object in your own
|
|
201
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
196
202
|
*/
|
|
197
203
|
metadata: { [key: string]: string };
|
|
198
204
|
|
|
@@ -249,7 +255,9 @@ export interface ConversionCreateParams {
|
|
|
249
255
|
target_account_id: string;
|
|
250
256
|
|
|
251
257
|
/**
|
|
252
|
-
*
|
|
258
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
259
|
+
* information, such as correlating this resource with an object in your own
|
|
260
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
253
261
|
*/
|
|
254
262
|
metadata?: { [key: string]: string } | null;
|
|
255
263
|
}
|
|
@@ -9,6 +9,17 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class Counterparties extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a counterparty owned by the merchant.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const counterparty = await client.counterparties.create({
|
|
16
|
+
* financial_address: {
|
|
17
|
+
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
18
|
+
* iban: 'DE89370400440532013000',
|
|
19
|
+
* type: 'iban',
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
12
23
|
*/
|
|
13
24
|
create(body: CounterpartyCreateParams, options?: RequestOptions): APIPromise<CounterpartyCreateResponse> {
|
|
14
25
|
return this._client.post('/v1/counterparties', { body, ...options });
|
|
@@ -16,6 +27,13 @@ export class Counterparties extends APIResource {
|
|
|
16
27
|
|
|
17
28
|
/**
|
|
18
29
|
* Retrieves a counterparty owned by the merchant.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const counterparty = await client.counterparties.retrieve(
|
|
34
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
19
37
|
*/
|
|
20
38
|
retrieve(id: string, options?: RequestOptions): APIPromise<CounterpartyRetrieveResponse> {
|
|
21
39
|
return this._client.get(path`/v1/counterparties/${id}`, options);
|
|
@@ -23,6 +41,13 @@ export class Counterparties extends APIResource {
|
|
|
23
41
|
|
|
24
42
|
/**
|
|
25
43
|
* Updates the mutable details of a counterparty owned by the merchant.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const counterparty = await client.counterparties.update(
|
|
48
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
26
51
|
*/
|
|
27
52
|
update(
|
|
28
53
|
id: string,
|
|
@@ -34,6 +59,14 @@ export class Counterparties extends APIResource {
|
|
|
34
59
|
|
|
35
60
|
/**
|
|
36
61
|
* Lists counterparties owned by the merchant with cursor-based pagination.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* // Automatically fetches more pages as needed.
|
|
66
|
+
* for await (const counterpartyListResponse of client.counterparties.list()) {
|
|
67
|
+
* // ...
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
37
70
|
*/
|
|
38
71
|
list(
|
|
39
72
|
query: CounterpartyListParams | null | undefined = {},
|
|
@@ -48,6 +81,13 @@ export class Counterparties extends APIResource {
|
|
|
48
81
|
/**
|
|
49
82
|
* Blocks payments to and from a counterparty owned by the merchant. Blocking an
|
|
50
83
|
* already-blocked counterparty succeeds without changing the existing block.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const response = await client.counterparties.block(
|
|
88
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
51
91
|
*/
|
|
52
92
|
block(id: string, options?: RequestOptions): APIPromise<CounterpartyBlockResponse> {
|
|
53
93
|
return this._client.post(path`/v1/counterparties/${id}/block`, options);
|
|
@@ -93,6 +133,13 @@ export interface CounterpartyCreateResponse {
|
|
|
93
133
|
*/
|
|
94
134
|
is_self_owned: boolean;
|
|
95
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
138
|
+
* information, such as correlating this resource with an object in your own
|
|
139
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
140
|
+
*/
|
|
141
|
+
metadata: { [key: string]: string };
|
|
142
|
+
|
|
96
143
|
/**
|
|
97
144
|
* Name of the counterparty, or null if not recorded.
|
|
98
145
|
*/
|
|
@@ -552,6 +599,13 @@ export interface CounterpartyRetrieveResponse {
|
|
|
552
599
|
*/
|
|
553
600
|
is_self_owned: boolean;
|
|
554
601
|
|
|
602
|
+
/**
|
|
603
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
604
|
+
* information, such as correlating this resource with an object in your own
|
|
605
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
606
|
+
*/
|
|
607
|
+
metadata: { [key: string]: string };
|
|
608
|
+
|
|
555
609
|
/**
|
|
556
610
|
* Name of the counterparty, or null if not recorded.
|
|
557
611
|
*/
|
|
@@ -1011,6 +1065,13 @@ export interface CounterpartyUpdateResponse {
|
|
|
1011
1065
|
*/
|
|
1012
1066
|
is_self_owned: boolean;
|
|
1013
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1070
|
+
* information, such as correlating this resource with an object in your own
|
|
1071
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1072
|
+
*/
|
|
1073
|
+
metadata: { [key: string]: string };
|
|
1074
|
+
|
|
1014
1075
|
/**
|
|
1015
1076
|
* Name of the counterparty, or null if not recorded.
|
|
1016
1077
|
*/
|
|
@@ -1470,6 +1531,13 @@ export interface CounterpartyListResponse {
|
|
|
1470
1531
|
*/
|
|
1471
1532
|
is_self_owned: boolean;
|
|
1472
1533
|
|
|
1534
|
+
/**
|
|
1535
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1536
|
+
* information, such as correlating this resource with an object in your own
|
|
1537
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1538
|
+
*/
|
|
1539
|
+
metadata: { [key: string]: string };
|
|
1540
|
+
|
|
1473
1541
|
/**
|
|
1474
1542
|
* Name of the counterparty, or null if not recorded.
|
|
1475
1543
|
*/
|
|
@@ -1929,6 +1997,13 @@ export interface CounterpartyBlockResponse {
|
|
|
1929
1997
|
*/
|
|
1930
1998
|
is_self_owned: boolean;
|
|
1931
1999
|
|
|
2000
|
+
/**
|
|
2001
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
2002
|
+
* information, such as correlating this resource with an object in your own
|
|
2003
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
2004
|
+
*/
|
|
2005
|
+
metadata: { [key: string]: string };
|
|
2006
|
+
|
|
1932
2007
|
/**
|
|
1933
2008
|
* Name of the counterparty, or null if not recorded.
|
|
1934
2009
|
*/
|
|
@@ -2378,6 +2453,13 @@ export interface CounterpartyCreateParams {
|
|
|
2378
2453
|
*/
|
|
2379
2454
|
is_self_owned?: boolean;
|
|
2380
2455
|
|
|
2456
|
+
/**
|
|
2457
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
2458
|
+
* information, such as correlating this resource with an object in your own
|
|
2459
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
2460
|
+
*/
|
|
2461
|
+
metadata?: { [key: string]: string } | null;
|
|
2462
|
+
|
|
2381
2463
|
/**
|
|
2382
2464
|
* Name of the counterparty.
|
|
2383
2465
|
*/
|
package/src/resources/payouts.ts
CHANGED
|
@@ -96,7 +96,9 @@ export interface PayoutCreateResponse {
|
|
|
96
96
|
initiated_at: string;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
100
|
+
* information, such as correlating this resource with an object in your own
|
|
101
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
100
102
|
*/
|
|
101
103
|
metadata: { [key: string]: string };
|
|
102
104
|
|
|
@@ -230,7 +232,9 @@ export interface PayoutRetrieveResponse {
|
|
|
230
232
|
initiated_at: string;
|
|
231
233
|
|
|
232
234
|
/**
|
|
233
|
-
*
|
|
235
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
236
|
+
* information, such as correlating this resource with an object in your own
|
|
237
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
234
238
|
*/
|
|
235
239
|
metadata: { [key: string]: string };
|
|
236
240
|
|
|
@@ -364,7 +368,9 @@ export interface PayoutListResponse {
|
|
|
364
368
|
initiated_at: string;
|
|
365
369
|
|
|
366
370
|
/**
|
|
367
|
-
*
|
|
371
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
372
|
+
* information, such as correlating this resource with an object in your own
|
|
373
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
368
374
|
*/
|
|
369
375
|
metadata: { [key: string]: string };
|
|
370
376
|
|
|
@@ -483,7 +489,9 @@ export interface PayoutCreateParams {
|
|
|
483
489
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
484
490
|
|
|
485
491
|
/**
|
|
486
|
-
*
|
|
492
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
493
|
+
* information, such as correlating this resource with an object in your own
|
|
494
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
487
495
|
*/
|
|
488
496
|
metadata?: { [key: string]: string } | null;
|
|
489
497
|
|
package/src/resources/returns.ts
CHANGED
|
@@ -87,6 +87,13 @@ export interface ReturnCreateResponse {
|
|
|
87
87
|
*/
|
|
88
88
|
initiated_at: string;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
92
|
+
* information, such as correlating this resource with an object in your own
|
|
93
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
94
|
+
*/
|
|
95
|
+
metadata: { [key: string]: string };
|
|
96
|
+
|
|
90
97
|
/**
|
|
91
98
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
92
99
|
*/
|
|
@@ -199,6 +206,13 @@ export interface ReturnRetrieveResponse {
|
|
|
199
206
|
*/
|
|
200
207
|
initiated_at: string;
|
|
201
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
211
|
+
* information, such as correlating this resource with an object in your own
|
|
212
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
213
|
+
*/
|
|
214
|
+
metadata: { [key: string]: string };
|
|
215
|
+
|
|
202
216
|
/**
|
|
203
217
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
204
218
|
*/
|
|
@@ -311,6 +325,13 @@ export interface ReturnListResponse {
|
|
|
311
325
|
*/
|
|
312
326
|
initiated_at: string;
|
|
313
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
330
|
+
* information, such as correlating this resource with an object in your own
|
|
331
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
332
|
+
*/
|
|
333
|
+
metadata: { [key: string]: string };
|
|
334
|
+
|
|
314
335
|
/**
|
|
315
336
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
316
337
|
*/
|
|
@@ -397,6 +418,13 @@ export interface ReturnCreateParams {
|
|
|
397
418
|
* Deposit to return funds from.
|
|
398
419
|
*/
|
|
399
420
|
deposit_id: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
424
|
+
* information, such as correlating this resource with an object in your own
|
|
425
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
426
|
+
*/
|
|
427
|
+
metadata?: { [key: string]: string } | null;
|
|
400
428
|
}
|
|
401
429
|
|
|
402
430
|
export interface ReturnListParams extends CursorPageParams {
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Counterparties extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Submits a rejected provider decision for an existing counterparty with a pending
|
|
11
|
+
* verification attempt. This endpoint is unavailable in live production.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response =
|
|
16
|
+
* await client.simulations.counterparties.reject(
|
|
17
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
reject(id: string, options?: RequestOptions): APIPromise<CounterpartyRejectResponse> {
|
|
22
|
+
return this._client.post(path`/v1/simulations/counterparties/${id}/reject`, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CounterpartyRejectResponse {
|
|
27
|
+
/**
|
|
28
|
+
* Counterparty whose verification is being simulated.
|
|
29
|
+
*/
|
|
30
|
+
counterparty_id: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Resource type discriminator.
|
|
34
|
+
*/
|
|
35
|
+
type: 'counterparty_simulation';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare namespace Counterparties {
|
|
39
|
+
export { type CounterpartyRejectResponse as CounterpartyRejectResponse };
|
|
40
|
+
}
|
|
@@ -23,6 +23,7 @@ export {
|
|
|
23
23
|
type AccountDrainParams,
|
|
24
24
|
} from './accounts';
|
|
25
25
|
export { Conversions, type ConversionCompleteResponse, type ConversionFailResponse } from './conversions';
|
|
26
|
+
export { Counterparties, type CounterpartyRejectResponse } from './counterparties';
|
|
26
27
|
export { Deposits, type DepositCreateResponse, type DepositCreateParams } from './deposits';
|
|
27
28
|
export {
|
|
28
29
|
Payouts,
|
|
@@ -27,6 +27,8 @@ import {
|
|
|
27
27
|
} from './accounts';
|
|
28
28
|
import * as ConversionsAPI from './conversions';
|
|
29
29
|
import { ConversionCompleteResponse, ConversionFailResponse, Conversions } from './conversions';
|
|
30
|
+
import * as CounterpartiesAPI from './counterparties';
|
|
31
|
+
import { Counterparties, CounterpartyRejectResponse } from './counterparties';
|
|
30
32
|
import * as DepositsAPI from './deposits';
|
|
31
33
|
import { DepositCreateParams, DepositCreateResponse, Deposits } from './deposits';
|
|
32
34
|
import * as PayoutsAPI from './payouts';
|
|
@@ -51,6 +53,7 @@ import {
|
|
|
51
53
|
export class Simulations extends APIResource {
|
|
52
54
|
deposits: DepositsAPI.Deposits = new DepositsAPI.Deposits(this._client);
|
|
53
55
|
conversions: ConversionsAPI.Conversions = new ConversionsAPI.Conversions(this._client);
|
|
56
|
+
counterparties: CounterpartiesAPI.Counterparties = new CounterpartiesAPI.Counterparties(this._client);
|
|
54
57
|
payouts: PayoutsAPI.Payouts = new PayoutsAPI.Payouts(this._client);
|
|
55
58
|
returns: ReturnsAPI.Returns = new ReturnsAPI.Returns(this._client);
|
|
56
59
|
accountPrograms: AccountProgramsAPI.AccountPrograms = new AccountProgramsAPI.AccountPrograms(this._client);
|
|
@@ -59,6 +62,7 @@ export class Simulations extends APIResource {
|
|
|
59
62
|
|
|
60
63
|
Simulations.Deposits = Deposits;
|
|
61
64
|
Simulations.Conversions = Conversions;
|
|
65
|
+
Simulations.Counterparties = Counterparties;
|
|
62
66
|
Simulations.Payouts = Payouts;
|
|
63
67
|
Simulations.Returns = Returns;
|
|
64
68
|
Simulations.AccountPrograms = AccountPrograms;
|
|
@@ -77,6 +81,8 @@ export declare namespace Simulations {
|
|
|
77
81
|
type ConversionFailResponse as ConversionFailResponse,
|
|
78
82
|
};
|
|
79
83
|
|
|
84
|
+
export { Counterparties as Counterparties, type CounterpartyRejectResponse as CounterpartyRejectResponse };
|
|
85
|
+
|
|
80
86
|
export {
|
|
81
87
|
Payouts as Payouts,
|
|
82
88
|
type PayoutRejectResponse as PayoutRejectResponse,
|
|
@@ -151,6 +151,13 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
151
151
|
| 'account_holder.closed'
|
|
152
152
|
>;
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
156
|
+
* information, such as correlating this resource with an object in your own
|
|
157
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
158
|
+
*/
|
|
159
|
+
metadata: { [key: string]: string };
|
|
160
|
+
|
|
154
161
|
/**
|
|
155
162
|
* Resource type discriminator.
|
|
156
163
|
*/
|
|
@@ -200,6 +207,13 @@ export interface WebhookSubscriptionRetrieveResponse {
|
|
|
200
207
|
| 'account_holder.closed'
|
|
201
208
|
>;
|
|
202
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
212
|
+
* information, such as correlating this resource with an object in your own
|
|
213
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
214
|
+
*/
|
|
215
|
+
metadata: { [key: string]: string };
|
|
216
|
+
|
|
203
217
|
/**
|
|
204
218
|
* Resource type discriminator.
|
|
205
219
|
*/
|
|
@@ -249,6 +263,13 @@ export interface WebhookSubscriptionUpdateResponse {
|
|
|
249
263
|
| 'account_holder.closed'
|
|
250
264
|
>;
|
|
251
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
268
|
+
* information, such as correlating this resource with an object in your own
|
|
269
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
270
|
+
*/
|
|
271
|
+
metadata: { [key: string]: string };
|
|
272
|
+
|
|
252
273
|
/**
|
|
253
274
|
* Resource type discriminator.
|
|
254
275
|
*/
|
|
@@ -298,6 +319,13 @@ export interface WebhookSubscriptionListResponse {
|
|
|
298
319
|
| 'account_holder.closed'
|
|
299
320
|
>;
|
|
300
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
324
|
+
* information, such as correlating this resource with an object in your own
|
|
325
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
326
|
+
*/
|
|
327
|
+
metadata: { [key: string]: string };
|
|
328
|
+
|
|
301
329
|
/**
|
|
302
330
|
* Resource type discriminator.
|
|
303
331
|
*/
|
|
@@ -347,6 +375,13 @@ export interface WebhookSubscriptionDeleteResponse {
|
|
|
347
375
|
| 'account_holder.closed'
|
|
348
376
|
>;
|
|
349
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
380
|
+
* information, such as correlating this resource with an object in your own
|
|
381
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
382
|
+
*/
|
|
383
|
+
metadata: { [key: string]: string };
|
|
384
|
+
|
|
350
385
|
/**
|
|
351
386
|
* Resource type discriminator.
|
|
352
387
|
*/
|
|
@@ -442,6 +477,13 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
442
477
|
* The HTTPS URL where webhook events will be delivered.
|
|
443
478
|
*/
|
|
444
479
|
url: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
483
|
+
* information, such as correlating this resource with an object in your own
|
|
484
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
485
|
+
*/
|
|
486
|
+
metadata?: { [key: string]: string } | null;
|
|
445
487
|
}
|
|
446
488
|
|
|
447
489
|
export interface WebhookSubscriptionUpdateParams {
|
|
@@ -86,7 +86,9 @@ export namespace PayoutInitiatedWebhookEvent {
|
|
|
86
86
|
initiated_at: string;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
90
|
+
* information, such as correlating this resource with an object in your own
|
|
91
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
90
92
|
*/
|
|
91
93
|
metadata: { [key: string]: string };
|
|
92
94
|
|
|
@@ -252,7 +254,9 @@ export namespace PayoutSubmittedWebhookEvent {
|
|
|
252
254
|
initiated_at: string;
|
|
253
255
|
|
|
254
256
|
/**
|
|
255
|
-
*
|
|
257
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
258
|
+
* information, such as correlating this resource with an object in your own
|
|
259
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
256
260
|
*/
|
|
257
261
|
metadata: { [key: string]: string };
|
|
258
262
|
|
|
@@ -418,7 +422,9 @@ export namespace PayoutSentWebhookEvent {
|
|
|
418
422
|
initiated_at: string;
|
|
419
423
|
|
|
420
424
|
/**
|
|
421
|
-
*
|
|
425
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
426
|
+
* information, such as correlating this resource with an object in your own
|
|
427
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
422
428
|
*/
|
|
423
429
|
metadata: { [key: string]: string };
|
|
424
430
|
|
|
@@ -584,7 +590,9 @@ export namespace PayoutFailedWebhookEvent {
|
|
|
584
590
|
initiated_at: string;
|
|
585
591
|
|
|
586
592
|
/**
|
|
587
|
-
*
|
|
593
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
594
|
+
* information, such as correlating this resource with an object in your own
|
|
595
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
588
596
|
*/
|
|
589
597
|
metadata: { [key: string]: string };
|
|
590
598
|
|
|
@@ -750,7 +758,9 @@ export namespace PayoutReturnedWebhookEvent {
|
|
|
750
758
|
initiated_at: string;
|
|
751
759
|
|
|
752
760
|
/**
|
|
753
|
-
*
|
|
761
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
762
|
+
* information, such as correlating this resource with an object in your own
|
|
763
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
754
764
|
*/
|
|
755
765
|
metadata: { [key: string]: string };
|
|
756
766
|
|
|
@@ -910,6 +920,13 @@ export namespace ReturnInitiatedWebhookEvent {
|
|
|
910
920
|
*/
|
|
911
921
|
initiated_at: string;
|
|
912
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
925
|
+
* information, such as correlating this resource with an object in your own
|
|
926
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
927
|
+
*/
|
|
928
|
+
metadata: { [key: string]: string };
|
|
929
|
+
|
|
913
930
|
/**
|
|
914
931
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
915
932
|
*/
|
|
@@ -1054,6 +1071,13 @@ export namespace ReturnSubmittedWebhookEvent {
|
|
|
1054
1071
|
*/
|
|
1055
1072
|
initiated_at: string;
|
|
1056
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1076
|
+
* information, such as correlating this resource with an object in your own
|
|
1077
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1078
|
+
*/
|
|
1079
|
+
metadata: { [key: string]: string };
|
|
1080
|
+
|
|
1057
1081
|
/**
|
|
1058
1082
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
1059
1083
|
*/
|
|
@@ -1198,6 +1222,13 @@ export namespace ReturnSentWebhookEvent {
|
|
|
1198
1222
|
*/
|
|
1199
1223
|
initiated_at: string;
|
|
1200
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1227
|
+
* information, such as correlating this resource with an object in your own
|
|
1228
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1229
|
+
*/
|
|
1230
|
+
metadata: { [key: string]: string };
|
|
1231
|
+
|
|
1201
1232
|
/**
|
|
1202
1233
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
1203
1234
|
*/
|
|
@@ -1342,6 +1373,13 @@ export namespace ReturnFailedWebhookEvent {
|
|
|
1342
1373
|
*/
|
|
1343
1374
|
initiated_at: string;
|
|
1344
1375
|
|
|
1376
|
+
/**
|
|
1377
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1378
|
+
* information, such as correlating this resource with an object in your own
|
|
1379
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1380
|
+
*/
|
|
1381
|
+
metadata: { [key: string]: string };
|
|
1382
|
+
|
|
1345
1383
|
/**
|
|
1346
1384
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
1347
1385
|
*/
|
|
@@ -1486,6 +1524,13 @@ export namespace ReturnReturnedWebhookEvent {
|
|
|
1486
1524
|
*/
|
|
1487
1525
|
initiated_at: string;
|
|
1488
1526
|
|
|
1527
|
+
/**
|
|
1528
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1529
|
+
* information, such as correlating this resource with an object in your own
|
|
1530
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1531
|
+
*/
|
|
1532
|
+
metadata: { [key: string]: string };
|
|
1533
|
+
|
|
1489
1534
|
/**
|
|
1490
1535
|
* Payment scheme or blockchain used for the return, or null when unknown.
|
|
1491
1536
|
*/
|
|
@@ -1735,7 +1780,9 @@ export namespace ConversionCreatedWebhookEvent {
|
|
|
1735
1780
|
created_at: string;
|
|
1736
1781
|
|
|
1737
1782
|
/**
|
|
1738
|
-
*
|
|
1783
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1784
|
+
* information, such as correlating this resource with an object in your own
|
|
1785
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1739
1786
|
*/
|
|
1740
1787
|
metadata: { [key: string]: string };
|
|
1741
1788
|
|
|
@@ -1824,7 +1871,9 @@ export namespace ConversionCompletedWebhookEvent {
|
|
|
1824
1871
|
created_at: string;
|
|
1825
1872
|
|
|
1826
1873
|
/**
|
|
1827
|
-
*
|
|
1874
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1875
|
+
* information, such as correlating this resource with an object in your own
|
|
1876
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1828
1877
|
*/
|
|
1829
1878
|
metadata: { [key: string]: string };
|
|
1830
1879
|
|
|
@@ -1913,7 +1962,9 @@ export namespace ConversionFailedWebhookEvent {
|
|
|
1913
1962
|
created_at: string;
|
|
1914
1963
|
|
|
1915
1964
|
/**
|
|
1916
|
-
*
|
|
1965
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
1966
|
+
* information, such as correlating this resource with an object in your own
|
|
1967
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
1917
1968
|
*/
|
|
1918
1969
|
metadata: { [key: string]: string };
|
|
1919
1970
|
|
|
@@ -2012,6 +2063,13 @@ export namespace AccountHolderActiveWebhookEvent {
|
|
|
2012
2063
|
*/
|
|
2013
2064
|
holder_type: 'natural_person' | 'business';
|
|
2014
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
2068
|
+
* information, such as correlating this resource with an object in your own
|
|
2069
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
2070
|
+
*/
|
|
2071
|
+
metadata: { [key: string]: string };
|
|
2072
|
+
|
|
2015
2073
|
/**
|
|
2016
2074
|
* Current account holder status.
|
|
2017
2075
|
*/
|
|
@@ -5945,6 +6003,13 @@ export namespace AccountHolderClosedWebhookEvent {
|
|
|
5945
6003
|
*/
|
|
5946
6004
|
holder_type: 'natural_person' | 'business';
|
|
5947
6005
|
|
|
6006
|
+
/**
|
|
6007
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
6008
|
+
* information, such as correlating this resource with an object in your own
|
|
6009
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
6010
|
+
*/
|
|
6011
|
+
metadata: { [key: string]: string };
|
|
6012
|
+
|
|
5948
6013
|
/**
|
|
5949
6014
|
* Current account holder status.
|
|
5950
6015
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.24.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.24.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.24.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.24.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|