@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
|
@@ -8,24 +8,83 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
8
8
|
class AccountHolders extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new account holder and starts asynchronous processing.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const accountHolder = await client.accountHolders.create({
|
|
15
|
+
* account_program_id:
|
|
16
|
+
* '550e8400-e29b-41d4-a716-446655440002',
|
|
17
|
+
* beneficiary_data: {
|
|
18
|
+
* country_of_citizenship: 'US',
|
|
19
|
+
* date_of_birth: '1990-01-15',
|
|
20
|
+
* identification: { type: 'ssn', value: '123-45-6789' },
|
|
21
|
+
* legal_name: 'Jordan Rivera',
|
|
22
|
+
* residential_address: {
|
|
23
|
+
* city: 'San Francisco',
|
|
24
|
+
* country_code: 'US',
|
|
25
|
+
* line_1: '548 Market St',
|
|
26
|
+
* postal_code: '94103',
|
|
27
|
+
* state: 'CA',
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* holder_type: 'natural_person',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
11
33
|
*/
|
|
12
34
|
create(body, options) {
|
|
13
35
|
return this._client.post('/v1/account_holders', { body, ...options });
|
|
14
36
|
}
|
|
15
37
|
/**
|
|
16
38
|
* Retrieves an account holder by ID.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const accountHolder = await client.accountHolders.retrieve(
|
|
43
|
+
* '68e0a1b2c3d4e5f60718293a',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
17
46
|
*/
|
|
18
47
|
retrieve(id, options) {
|
|
19
48
|
return this._client.get((0, path_1.path) `/v1/account_holders/${id}`, options);
|
|
20
49
|
}
|
|
21
50
|
/**
|
|
22
51
|
* Replaces the beneficiary details of an existing account holder.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const accountHolder = await client.accountHolders.update(
|
|
56
|
+
* '68e0a1b2c3d4e5f60718293a',
|
|
57
|
+
* {
|
|
58
|
+
* beneficiary_data: {
|
|
59
|
+
* country_of_citizenship: 'US',
|
|
60
|
+
* date_of_birth: '1990-01-15',
|
|
61
|
+
* identification: { type: 'ssn', value: '123-45-6789' },
|
|
62
|
+
* legal_name: 'Jordan Rivera',
|
|
63
|
+
* residential_address: {
|
|
64
|
+
* city: 'San Francisco',
|
|
65
|
+
* country_code: 'US',
|
|
66
|
+
* line_1: '548 Market St',
|
|
67
|
+
* postal_code: '94103',
|
|
68
|
+
* state: 'CA',
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
23
74
|
*/
|
|
24
75
|
update(id, body, options) {
|
|
25
76
|
return this._client.post((0, path_1.path) `/v1/account_holders/${id}`, { body, ...options });
|
|
26
77
|
}
|
|
27
78
|
/**
|
|
28
79
|
* Lists account holders for the merchant with cursor-based pagination.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* // Automatically fetches more pages as needed.
|
|
84
|
+
* for await (const accountHolderListResponse of client.accountHolders.list()) {
|
|
85
|
+
* // ...
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
29
88
|
*/
|
|
30
89
|
list(query = {}, options) {
|
|
31
90
|
return this._client.getAPIList('/v1/account_holders', (pagination_1.CursorPage), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-holders.js","sourceRoot":"","sources":["../src/resources/account-holders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"account-holders.js","sourceRoot":"","sources":["../src/resources/account-holders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CACJ,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,uBAAqC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAjGD,wCAiGC"}
|
|
@@ -5,24 +5,83 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
5
5
|
export class AccountHolders extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new account holder and starts asynchronous processing.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const accountHolder = await client.accountHolders.create({
|
|
12
|
+
* account_program_id:
|
|
13
|
+
* '550e8400-e29b-41d4-a716-446655440002',
|
|
14
|
+
* beneficiary_data: {
|
|
15
|
+
* country_of_citizenship: 'US',
|
|
16
|
+
* date_of_birth: '1990-01-15',
|
|
17
|
+
* identification: { type: 'ssn', value: '123-45-6789' },
|
|
18
|
+
* legal_name: 'Jordan Rivera',
|
|
19
|
+
* residential_address: {
|
|
20
|
+
* city: 'San Francisco',
|
|
21
|
+
* country_code: 'US',
|
|
22
|
+
* line_1: '548 Market St',
|
|
23
|
+
* postal_code: '94103',
|
|
24
|
+
* state: 'CA',
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* holder_type: 'natural_person',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
8
30
|
*/
|
|
9
31
|
create(body, options) {
|
|
10
32
|
return this._client.post('/v1/account_holders', { body, ...options });
|
|
11
33
|
}
|
|
12
34
|
/**
|
|
13
35
|
* Retrieves an account holder by ID.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const accountHolder = await client.accountHolders.retrieve(
|
|
40
|
+
* '68e0a1b2c3d4e5f60718293a',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
14
43
|
*/
|
|
15
44
|
retrieve(id, options) {
|
|
16
45
|
return this._client.get(path `/v1/account_holders/${id}`, options);
|
|
17
46
|
}
|
|
18
47
|
/**
|
|
19
48
|
* Replaces the beneficiary details of an existing account holder.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const accountHolder = await client.accountHolders.update(
|
|
53
|
+
* '68e0a1b2c3d4e5f60718293a',
|
|
54
|
+
* {
|
|
55
|
+
* beneficiary_data: {
|
|
56
|
+
* country_of_citizenship: 'US',
|
|
57
|
+
* date_of_birth: '1990-01-15',
|
|
58
|
+
* identification: { type: 'ssn', value: '123-45-6789' },
|
|
59
|
+
* legal_name: 'Jordan Rivera',
|
|
60
|
+
* residential_address: {
|
|
61
|
+
* city: 'San Francisco',
|
|
62
|
+
* country_code: 'US',
|
|
63
|
+
* line_1: '548 Market St',
|
|
64
|
+
* postal_code: '94103',
|
|
65
|
+
* state: 'CA',
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
20
71
|
*/
|
|
21
72
|
update(id, body, options) {
|
|
22
73
|
return this._client.post(path `/v1/account_holders/${id}`, { body, ...options });
|
|
23
74
|
}
|
|
24
75
|
/**
|
|
25
76
|
* Lists account holders for the merchant with cursor-based pagination.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* // Automatically fetches more pages as needed.
|
|
81
|
+
* for await (const accountHolderListResponse of client.accountHolders.list()) {
|
|
82
|
+
* // ...
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
26
85
|
*/
|
|
27
86
|
list(query = {}, options) {
|
|
28
87
|
return this._client.getAPIList('/v1/account_holders', (CursorPage), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-holders.mjs","sourceRoot":"","sources":["../src/resources/account-holders.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,UAAU,EAAsC,+BAA2B;AAEpF,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"account-holders.mjs","sourceRoot":"","sources":["../src/resources/account-holders.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,UAAU,EAAsC,+BAA2B;AAEpF,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CACJ,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,UAAqC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -15,7 +15,7 @@ export declare class AccountPrograms extends APIResource {
|
|
|
15
15
|
* Returns the aggregated available balance for all virtual accounts under the
|
|
16
16
|
* account program.
|
|
17
17
|
*/
|
|
18
|
-
retrieveBalance(id: string, options?: RequestOptions): APIPromise<AccountProgramRetrieveBalanceResponse>;
|
|
18
|
+
retrieveBalance(id: string, query?: AccountProgramRetrieveBalanceParams | null | undefined, options?: RequestOptions): APIPromise<AccountProgramRetrieveBalanceResponse>;
|
|
19
19
|
}
|
|
20
20
|
export type AccountProgramListResponsesCursorPage = CursorPage<AccountProgramListResponse>;
|
|
21
21
|
export interface AccountProgramRetrieveResponse {
|
|
@@ -23,11 +23,6 @@ export interface AccountProgramRetrieveResponse {
|
|
|
23
23
|
* Unique identifier of the account program.
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Which for-benefit-of (FBO) program model applies: `fbo_program` (merchant
|
|
28
|
-
* program) or `fbo_sponsored` (sponsored program).
|
|
29
|
-
*/
|
|
30
|
-
account_program_type: 'fbo_program' | 'fbo_sponsored';
|
|
31
26
|
/**
|
|
32
27
|
* ISO 8601 UTC timestamp when the account program was created.
|
|
33
28
|
*/
|
|
@@ -55,11 +50,6 @@ export interface AccountProgramListResponse {
|
|
|
55
50
|
* Unique identifier of the account program.
|
|
56
51
|
*/
|
|
57
52
|
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Which for-benefit-of (FBO) program model applies: `fbo_program` (merchant
|
|
60
|
-
* program) or `fbo_sponsored` (sponsored program).
|
|
61
|
-
*/
|
|
62
|
-
account_program_type: 'fbo_program' | 'fbo_sponsored';
|
|
63
53
|
/**
|
|
64
54
|
* ISO 8601 UTC timestamp when the account program was created.
|
|
65
55
|
*/
|
|
@@ -87,16 +77,13 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
87
77
|
* Unique identifier of the account program.
|
|
88
78
|
*/
|
|
89
79
|
id: string;
|
|
90
|
-
|
|
91
|
-
* Total available balance as a string decimal (e.g. "100.50").
|
|
92
|
-
*/
|
|
93
|
-
amount: string;
|
|
80
|
+
amount: AccountProgramRetrieveBalanceResponse.Amount;
|
|
94
81
|
/**
|
|
95
82
|
* ISO 8601 UTC timestamp when this balance snapshot was produced.
|
|
96
83
|
*/
|
|
97
84
|
as_of: string;
|
|
98
85
|
/**
|
|
99
|
-
* ISO 4217 currency code
|
|
86
|
+
* ISO 4217 currency code.
|
|
100
87
|
*/
|
|
101
88
|
currency: 'EUR' | 'GBP' | 'USD';
|
|
102
89
|
/**
|
|
@@ -104,9 +91,27 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
104
91
|
*/
|
|
105
92
|
type: 'account_program_balance';
|
|
106
93
|
}
|
|
94
|
+
export declare namespace AccountProgramRetrieveBalanceResponse {
|
|
95
|
+
interface Amount {
|
|
96
|
+
/**
|
|
97
|
+
* Available balance as a string decimal (e.g. "100.50").
|
|
98
|
+
*/
|
|
99
|
+
available: string;
|
|
100
|
+
/**
|
|
101
|
+
* Pending balance as a string decimal (e.g. "7.50").
|
|
102
|
+
*/
|
|
103
|
+
pending: string;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
107
106
|
export interface AccountProgramListParams extends CursorPageParams {
|
|
108
107
|
}
|
|
108
|
+
export interface AccountProgramRetrieveBalanceParams {
|
|
109
|
+
/**
|
|
110
|
+
* ISO 8601 UTC timestamp to retrieve balance at.
|
|
111
|
+
*/
|
|
112
|
+
as_of?: string;
|
|
113
|
+
}
|
|
109
114
|
export declare namespace AccountPrograms {
|
|
110
|
-
export { type AccountProgramRetrieveResponse as AccountProgramRetrieveResponse, type AccountProgramListResponse as AccountProgramListResponse, type AccountProgramRetrieveBalanceResponse as AccountProgramRetrieveBalanceResponse, type AccountProgramListResponsesCursorPage as AccountProgramListResponsesCursorPage, type AccountProgramListParams as AccountProgramListParams, };
|
|
115
|
+
export { type AccountProgramRetrieveResponse as AccountProgramRetrieveResponse, type AccountProgramListResponse as AccountProgramListResponse, type AccountProgramRetrieveBalanceResponse as AccountProgramRetrieveBalanceResponse, type AccountProgramListResponsesCursorPage as AccountProgramListResponsesCursorPage, type AccountProgramListParams as AccountProgramListParams, type AccountProgramRetrieveBalanceParams as AccountProgramRetrieveBalanceParams, };
|
|
111
116
|
}
|
|
112
117
|
//# sourceMappingURL=account-programs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.d.mts","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,0BAA0B,CAAC;IAOjF;;;OAGG;IACH,eAAe,
|
|
1
|
+
{"version":3,"file":"account-programs.d.mts","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,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M,WAAW,qCAAqC;IACpD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,qCAAqC,CAAC,MAAM,CAAC;IAErD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,yBAAiB,qCAAqC,CAAC;IACrD,UAAiB,MAAM;QACrB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -15,7 +15,7 @@ export declare class AccountPrograms extends APIResource {
|
|
|
15
15
|
* Returns the aggregated available balance for all virtual accounts under the
|
|
16
16
|
* account program.
|
|
17
17
|
*/
|
|
18
|
-
retrieveBalance(id: string, options?: RequestOptions): APIPromise<AccountProgramRetrieveBalanceResponse>;
|
|
18
|
+
retrieveBalance(id: string, query?: AccountProgramRetrieveBalanceParams | null | undefined, options?: RequestOptions): APIPromise<AccountProgramRetrieveBalanceResponse>;
|
|
19
19
|
}
|
|
20
20
|
export type AccountProgramListResponsesCursorPage = CursorPage<AccountProgramListResponse>;
|
|
21
21
|
export interface AccountProgramRetrieveResponse {
|
|
@@ -23,11 +23,6 @@ export interface AccountProgramRetrieveResponse {
|
|
|
23
23
|
* Unique identifier of the account program.
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Which for-benefit-of (FBO) program model applies: `fbo_program` (merchant
|
|
28
|
-
* program) or `fbo_sponsored` (sponsored program).
|
|
29
|
-
*/
|
|
30
|
-
account_program_type: 'fbo_program' | 'fbo_sponsored';
|
|
31
26
|
/**
|
|
32
27
|
* ISO 8601 UTC timestamp when the account program was created.
|
|
33
28
|
*/
|
|
@@ -55,11 +50,6 @@ export interface AccountProgramListResponse {
|
|
|
55
50
|
* Unique identifier of the account program.
|
|
56
51
|
*/
|
|
57
52
|
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Which for-benefit-of (FBO) program model applies: `fbo_program` (merchant
|
|
60
|
-
* program) or `fbo_sponsored` (sponsored program).
|
|
61
|
-
*/
|
|
62
|
-
account_program_type: 'fbo_program' | 'fbo_sponsored';
|
|
63
53
|
/**
|
|
64
54
|
* ISO 8601 UTC timestamp when the account program was created.
|
|
65
55
|
*/
|
|
@@ -87,16 +77,13 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
87
77
|
* Unique identifier of the account program.
|
|
88
78
|
*/
|
|
89
79
|
id: string;
|
|
90
|
-
|
|
91
|
-
* Total available balance as a string decimal (e.g. "100.50").
|
|
92
|
-
*/
|
|
93
|
-
amount: string;
|
|
80
|
+
amount: AccountProgramRetrieveBalanceResponse.Amount;
|
|
94
81
|
/**
|
|
95
82
|
* ISO 8601 UTC timestamp when this balance snapshot was produced.
|
|
96
83
|
*/
|
|
97
84
|
as_of: string;
|
|
98
85
|
/**
|
|
99
|
-
* ISO 4217 currency code
|
|
86
|
+
* ISO 4217 currency code.
|
|
100
87
|
*/
|
|
101
88
|
currency: 'EUR' | 'GBP' | 'USD';
|
|
102
89
|
/**
|
|
@@ -104,9 +91,27 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
104
91
|
*/
|
|
105
92
|
type: 'account_program_balance';
|
|
106
93
|
}
|
|
94
|
+
export declare namespace AccountProgramRetrieveBalanceResponse {
|
|
95
|
+
interface Amount {
|
|
96
|
+
/**
|
|
97
|
+
* Available balance as a string decimal (e.g. "100.50").
|
|
98
|
+
*/
|
|
99
|
+
available: string;
|
|
100
|
+
/**
|
|
101
|
+
* Pending balance as a string decimal (e.g. "7.50").
|
|
102
|
+
*/
|
|
103
|
+
pending: string;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
107
106
|
export interface AccountProgramListParams extends CursorPageParams {
|
|
108
107
|
}
|
|
108
|
+
export interface AccountProgramRetrieveBalanceParams {
|
|
109
|
+
/**
|
|
110
|
+
* ISO 8601 UTC timestamp to retrieve balance at.
|
|
111
|
+
*/
|
|
112
|
+
as_of?: string;
|
|
113
|
+
}
|
|
109
114
|
export declare namespace AccountPrograms {
|
|
110
|
-
export { type AccountProgramRetrieveResponse as AccountProgramRetrieveResponse, type AccountProgramListResponse as AccountProgramListResponse, type AccountProgramRetrieveBalanceResponse as AccountProgramRetrieveBalanceResponse, type AccountProgramListResponsesCursorPage as AccountProgramListResponsesCursorPage, type AccountProgramListParams as AccountProgramListParams, };
|
|
115
|
+
export { type AccountProgramRetrieveResponse as AccountProgramRetrieveResponse, type AccountProgramListResponse as AccountProgramListResponse, type AccountProgramRetrieveBalanceResponse as AccountProgramRetrieveBalanceResponse, type AccountProgramListResponsesCursorPage as AccountProgramListResponsesCursorPage, type AccountProgramListParams as AccountProgramListParams, type AccountProgramRetrieveBalanceParams as AccountProgramRetrieveBalanceParams, };
|
|
111
116
|
}
|
|
112
117
|
//# sourceMappingURL=account-programs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.d.ts","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAA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,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -25,8 +25,8 @@ class AccountPrograms extends resource_1.APIResource {
|
|
|
25
25
|
* Returns the aggregated available balance for all virtual accounts under the
|
|
26
26
|
* account program.
|
|
27
27
|
*/
|
|
28
|
-
retrieveBalance(id, options) {
|
|
29
|
-
return this._client.get((0, path_1.path) `/v1/account_programs/${id}/balance`, options);
|
|
28
|
+
retrieveBalance(id, query = {}, options) {
|
|
29
|
+
return this._client.get((0, path_1.path) `/v1/account_programs/${id}/balance`, { query, ...options });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
exports.AccountPrograms = AccountPrograms;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.js","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,eAAe,
|
|
1
|
+
{"version":3,"file":"account-programs.js","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,eAAe,CACb,EAAU,EACV,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAhCD,0CAgCC"}
|
|
@@ -22,8 +22,8 @@ export class AccountPrograms extends APIResource {
|
|
|
22
22
|
* Returns the aggregated available balance for all virtual accounts under the
|
|
23
23
|
* account program.
|
|
24
24
|
*/
|
|
25
|
-
retrieveBalance(id, options) {
|
|
26
|
-
return this._client.get(path `/v1/account_programs/${id}/balance`, options);
|
|
25
|
+
retrieveBalance(id, query = {}, options) {
|
|
26
|
+
return this._client.get(path `/v1/account_programs/${id}/balance`, { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=account-programs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.mjs","sourceRoot":"","sources":["../src/resources/account-programs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAA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