@augustusbank/typescript-sdk 0.22.0 → 0.22.2
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 +31 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-programs.d.mts +21 -16
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +21 -16
- 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 +21 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +21 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +2 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +2 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/counterparties.d.mts +16 -16
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +16 -16
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/deposits.d.mts +10 -0
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +10 -0
- 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 +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +22 -406
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +22 -406
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +2 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +2 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/index.d.mts +1 -1
- package/resources/quotes/index.d.mts.map +1 -1
- package/resources/quotes/index.d.ts +1 -1
- package/resources/quotes/index.d.ts.map +1 -1
- package/resources/quotes/index.js.map +1 -1
- package/resources/quotes/index.mjs.map +1 -1
- package/resources/quotes/quotes.d.mts +0 -57
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +0 -57
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js +0 -7
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs +0 -7
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/simulations/account-programs.d.mts +11 -72
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +11 -72
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +1 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +1 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +16 -72
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +16 -72
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +3 -3
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +3 -3
- package/resources/simulations/accounts.mjs.map +1 -1
- 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 +14 -30
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +14 -30
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/index.d.mts +3 -1
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +3 -1
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +5 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +2 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/payouts.d.mts +33 -17
- package/resources/simulations/payouts.d.mts.map +1 -1
- package/resources/simulations/payouts.d.ts +33 -17
- package/resources/simulations/payouts.d.ts.map +1 -1
- package/resources/simulations/payouts.js +16 -0
- package/resources/simulations/payouts.js.map +1 -1
- package/resources/simulations/payouts.mjs +16 -0
- package/resources/simulations/payouts.mjs.map +1 -1
- package/resources/simulations/returns.d.mts +92 -0
- package/resources/simulations/returns.d.mts.map +1 -0
- package/resources/simulations/returns.d.ts +92 -0
- package/resources/simulations/returns.d.ts.map +1 -0
- package/resources/simulations/returns.js +55 -0
- package/resources/simulations/returns.js.map +1 -0
- package/resources/simulations/returns.mjs +51 -0
- package/resources/simulations/returns.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +10 -2
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +10 -2
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +8 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +9 -1
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +60 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +60 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +9 -9
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +9 -9
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +1 -1
- package/resources/webhook-subscriptions.mjs +1 -1
- package/resources/webhooks.d.mts +245 -30
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +245 -30
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +18 -10
- package/src/resources/account-programs.ts +29 -18
- package/src/resources/accounts.ts +29 -6
- package/src/resources/counterparties.ts +16 -16
- package/src/resources/deposits.ts +12 -0
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +9 -5
- package/src/resources/payouts.ts +36 -1993
- package/src/resources/quotes/index.ts +1 -1
- package/src/resources/quotes/quotes.ts +0 -84
- package/src/resources/simulations/account-programs.ts +12 -87
- package/src/resources/simulations/accounts.ts +18 -87
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +27 -35
- package/src/resources/simulations/index.ts +11 -0
- package/src/resources/simulations/payouts.ts +43 -18
- package/src/resources/simulations/returns.ts +123 -0
- package/src/resources/simulations/simulations.ts +40 -1
- package/src/resources/transactions.ts +70 -0
- package/src/resources/webhook-subscriptions.ts +49 -33
- package/src/resources/webhooks.ts +360 -36
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,wBAAqB;AAC1G,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,wBAAqB;AAC1G,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA0G;AAAjG,wGAAA,UAAU,OAAA;AACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA0G;AAAjG,wGAAA,UAAU,OAAA;AACnB,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAkE,yBAAqB;AAC1G,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/quotes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAkE,yBAAqB;AAC1G,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -1,67 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as IndicativeAPI from "./indicative.mjs";
|
|
3
3
|
import { Indicative, IndicativeRetrieveParams, IndicativeRetrieveResponse } from "./indicative.mjs";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
4
|
export declare class Quotes extends APIResource {
|
|
7
5
|
indicative: IndicativeAPI.Indicative;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a persisted quote by ID.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<QuoteRetrieveResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface QuoteRetrieveResponse {
|
|
14
|
-
/**
|
|
15
|
-
* Unique identifier of the quote.
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
/**
|
|
19
|
-
* ISO 8601 UTC timestamp when the quote was created.
|
|
20
|
-
*/
|
|
21
|
-
created_at: string;
|
|
22
|
-
/**
|
|
23
|
-
* Exchange rate applied.
|
|
24
|
-
*/
|
|
25
|
-
exchange_rate: string;
|
|
26
|
-
/**
|
|
27
|
-
* ISO 8601 UTC timestamp when the quote expires.
|
|
28
|
-
*/
|
|
29
|
-
expires_at: string;
|
|
30
|
-
/**
|
|
31
|
-
* Current funding status of the quote.
|
|
32
|
-
*/
|
|
33
|
-
funding_status: 'pending' | 'sent' | 'completed' | 'failed' | 'on_hold';
|
|
34
|
-
/**
|
|
35
|
-
* Amount as a string decimal (e.g. "100.50").
|
|
36
|
-
*/
|
|
37
|
-
source_amount: string;
|
|
38
|
-
/**
|
|
39
|
-
* Currency code (ISO 4217 or crypto).
|
|
40
|
-
*/
|
|
41
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
42
|
-
/**
|
|
43
|
-
* Current status of the quote.
|
|
44
|
-
*/
|
|
45
|
-
status: 'pending' | 'quote_accepted' | 'order_pending' | 'order_failed' | 'order_completed' | 'withdrawal_pending' | 'withdrawal_failed' | 'withdrawal_completed' | 'completed' | 'failed';
|
|
46
|
-
/**
|
|
47
|
-
* Amount as a string decimal (e.g. "100.50").
|
|
48
|
-
*/
|
|
49
|
-
target_amount: string;
|
|
50
|
-
/**
|
|
51
|
-
* Currency code (ISO 4217 or crypto).
|
|
52
|
-
*/
|
|
53
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
54
|
-
/**
|
|
55
|
-
* Resource type discriminator.
|
|
56
|
-
*/
|
|
57
|
-
type: 'quote';
|
|
58
|
-
/**
|
|
59
|
-
* ISO 8601 UTC timestamp when the quote was last updated.
|
|
60
|
-
*/
|
|
61
|
-
updated_at: string;
|
|
62
6
|
}
|
|
63
7
|
export declare namespace Quotes {
|
|
64
|
-
export { type QuoteRetrieveResponse as QuoteRetrieveResponse };
|
|
65
8
|
export { Indicative as Indicative, type IndicativeRetrieveResponse as IndicativeRetrieveResponse, type IndicativeRetrieveParams as IndicativeRetrieveParams, };
|
|
66
9
|
}
|
|
67
10
|
//# sourceMappingURL=quotes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.mts","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"quotes.d.mts","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,yBAAqB;AAEhG,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,67 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as IndicativeAPI from "./indicative.js";
|
|
3
3
|
import { Indicative, IndicativeRetrieveParams, IndicativeRetrieveResponse } from "./indicative.js";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
4
|
export declare class Quotes extends APIResource {
|
|
7
5
|
indicative: IndicativeAPI.Indicative;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a persisted quote by ID.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<QuoteRetrieveResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface QuoteRetrieveResponse {
|
|
14
|
-
/**
|
|
15
|
-
* Unique identifier of the quote.
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
/**
|
|
19
|
-
* ISO 8601 UTC timestamp when the quote was created.
|
|
20
|
-
*/
|
|
21
|
-
created_at: string;
|
|
22
|
-
/**
|
|
23
|
-
* Exchange rate applied.
|
|
24
|
-
*/
|
|
25
|
-
exchange_rate: string;
|
|
26
|
-
/**
|
|
27
|
-
* ISO 8601 UTC timestamp when the quote expires.
|
|
28
|
-
*/
|
|
29
|
-
expires_at: string;
|
|
30
|
-
/**
|
|
31
|
-
* Current funding status of the quote.
|
|
32
|
-
*/
|
|
33
|
-
funding_status: 'pending' | 'sent' | 'completed' | 'failed' | 'on_hold';
|
|
34
|
-
/**
|
|
35
|
-
* Amount as a string decimal (e.g. "100.50").
|
|
36
|
-
*/
|
|
37
|
-
source_amount: string;
|
|
38
|
-
/**
|
|
39
|
-
* Currency code (ISO 4217 or crypto).
|
|
40
|
-
*/
|
|
41
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
42
|
-
/**
|
|
43
|
-
* Current status of the quote.
|
|
44
|
-
*/
|
|
45
|
-
status: 'pending' | 'quote_accepted' | 'order_pending' | 'order_failed' | 'order_completed' | 'withdrawal_pending' | 'withdrawal_failed' | 'withdrawal_completed' | 'completed' | 'failed';
|
|
46
|
-
/**
|
|
47
|
-
* Amount as a string decimal (e.g. "100.50").
|
|
48
|
-
*/
|
|
49
|
-
target_amount: string;
|
|
50
|
-
/**
|
|
51
|
-
* Currency code (ISO 4217 or crypto).
|
|
52
|
-
*/
|
|
53
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
54
|
-
/**
|
|
55
|
-
* Resource type discriminator.
|
|
56
|
-
*/
|
|
57
|
-
type: 'quote';
|
|
58
|
-
/**
|
|
59
|
-
* ISO 8601 UTC timestamp when the quote was last updated.
|
|
60
|
-
*/
|
|
61
|
-
updated_at: string;
|
|
62
6
|
}
|
|
63
7
|
export declare namespace Quotes {
|
|
64
|
-
export { type QuoteRetrieveResponse as QuoteRetrieveResponse };
|
|
65
8
|
export { Indicative as Indicative, type IndicativeRetrieveResponse as IndicativeRetrieveResponse, type IndicativeRetrieveParams as IndicativeRetrieveParams, };
|
|
66
9
|
}
|
|
67
10
|
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,wBAAqB;
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,wBAAqB;AAEhG,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -6,18 +6,11 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const IndicativeAPI = tslib_1.__importStar(require("./indicative.js"));
|
|
8
8
|
const indicative_1 = require("./indicative.js");
|
|
9
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
10
9
|
class Quotes extends resource_1.APIResource {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
13
12
|
this.indicative = new IndicativeAPI.Indicative(this._client);
|
|
14
13
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Retrieves a persisted quote by ID.
|
|
17
|
-
*/
|
|
18
|
-
retrieve(id, options) {
|
|
19
|
-
return this._client.get((0, path_1.path) `/v1/quotes/${id}`, options);
|
|
20
|
-
}
|
|
21
14
|
}
|
|
22
15
|
exports.Quotes = Quotes;
|
|
23
16
|
Quotes.Indicative = indicative_1.Indicative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAAgG;
|
|
1
|
+
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAAgG;AAEhG,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -2,18 +2,11 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as IndicativeAPI from "./indicative.mjs";
|
|
4
4
|
import { Indicative } from "./indicative.mjs";
|
|
5
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
6
5
|
export class Quotes extends APIResource {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
9
8
|
this.indicative = new IndicativeAPI.Indicative(this._client);
|
|
10
9
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves a persisted quote by ID.
|
|
13
|
-
*/
|
|
14
|
-
retrieve(id, options) {
|
|
15
|
-
return this._client.get(path `/v1/quotes/${id}`, options);
|
|
16
|
-
}
|
|
17
10
|
}
|
|
18
11
|
Quotes.Indicative = Indicative;
|
|
19
12
|
//# sourceMappingURL=quotes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.mjs","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAwD,yBAAqB;
|
|
1
|
+
{"version":3,"file":"quotes.mjs","sourceRoot":"","sources":["../../src/resources/quotes/quotes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAwD,yBAAqB;AAEhG,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare class AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: '
|
|
14
|
+
* type: 'fbo_program',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
@@ -45,7 +45,6 @@ export declare class AccountPrograms extends APIResource {
|
|
|
45
45
|
* {
|
|
46
46
|
* destination: {
|
|
47
47
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
48
|
-
* bic: 'COBADEFFXXX',
|
|
49
48
|
* iban: 'DE89370400440532013000',
|
|
50
49
|
* type: 'iban',
|
|
51
50
|
* },
|
|
@@ -86,19 +85,6 @@ export interface AccountProgramCreateResponse {
|
|
|
86
85
|
* Account program whose lifecycle is being simulated.
|
|
87
86
|
*/
|
|
88
87
|
account_program_id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
91
|
-
*/
|
|
92
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
93
|
-
/**
|
|
94
|
-
* Payouts created by a drain event. Feed each id to
|
|
95
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
96
|
-
*/
|
|
97
|
-
payout_ids: Array<string> | null;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the simulation submission was successful.
|
|
100
|
-
*/
|
|
101
|
-
success: boolean;
|
|
102
88
|
/**
|
|
103
89
|
* Resource type discriminator.
|
|
104
90
|
*/
|
|
@@ -109,19 +95,6 @@ export interface AccountProgramCloseResponse {
|
|
|
109
95
|
* Account program whose lifecycle is being simulated.
|
|
110
96
|
*/
|
|
111
97
|
account_program_id: string;
|
|
112
|
-
/**
|
|
113
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
114
|
-
*/
|
|
115
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
116
|
-
/**
|
|
117
|
-
* Payouts created by a drain event. Feed each id to
|
|
118
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
119
|
-
*/
|
|
120
|
-
payout_ids: Array<string> | null;
|
|
121
|
-
/**
|
|
122
|
-
* Whether the simulation submission was successful.
|
|
123
|
-
*/
|
|
124
|
-
success: boolean;
|
|
125
98
|
/**
|
|
126
99
|
* Resource type discriminator.
|
|
127
100
|
*/
|
|
@@ -133,18 +106,10 @@ export interface AccountProgramDrainResponse {
|
|
|
133
106
|
*/
|
|
134
107
|
account_program_id: string;
|
|
135
108
|
/**
|
|
136
|
-
*
|
|
137
|
-
|
|
138
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
139
|
-
/**
|
|
140
|
-
* Payouts created by a drain event. Feed each id to
|
|
141
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
142
|
-
*/
|
|
143
|
-
payout_ids: Array<string> | null;
|
|
144
|
-
/**
|
|
145
|
-
* Whether the simulation submission was successful.
|
|
109
|
+
* Payouts created by the drain. Feed each id to
|
|
110
|
+
* `POST /v1/simulations/payouts/{id}/send` to settle.
|
|
146
111
|
*/
|
|
147
|
-
|
|
112
|
+
payout_ids: Array<string>;
|
|
148
113
|
/**
|
|
149
114
|
* Resource type discriminator.
|
|
150
115
|
*/
|
|
@@ -155,19 +120,6 @@ export interface AccountProgramFreezeResponse {
|
|
|
155
120
|
* Account program whose lifecycle is being simulated.
|
|
156
121
|
*/
|
|
157
122
|
account_program_id: string;
|
|
158
|
-
/**
|
|
159
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
160
|
-
*/
|
|
161
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
162
|
-
/**
|
|
163
|
-
* Payouts created by a drain event. Feed each id to
|
|
164
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
165
|
-
*/
|
|
166
|
-
payout_ids: Array<string> | null;
|
|
167
|
-
/**
|
|
168
|
-
* Whether the simulation submission was successful.
|
|
169
|
-
*/
|
|
170
|
-
success: boolean;
|
|
171
123
|
/**
|
|
172
124
|
* Resource type discriminator.
|
|
173
125
|
*/
|
|
@@ -178,19 +130,6 @@ export interface AccountProgramUnfreezeResponse {
|
|
|
178
130
|
* Account program whose lifecycle is being simulated.
|
|
179
131
|
*/
|
|
180
132
|
account_program_id: string;
|
|
181
|
-
/**
|
|
182
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
183
|
-
*/
|
|
184
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
185
|
-
/**
|
|
186
|
-
* Payouts created by a drain event. Feed each id to
|
|
187
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
188
|
-
*/
|
|
189
|
-
payout_ids: Array<string> | null;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the simulation submission was successful.
|
|
192
|
-
*/
|
|
193
|
-
success: boolean;
|
|
194
133
|
/**
|
|
195
134
|
* Resource type discriminator.
|
|
196
135
|
*/
|
|
@@ -204,7 +143,7 @@ export interface AccountProgramCreateParams {
|
|
|
204
143
|
/**
|
|
205
144
|
* Account program type.
|
|
206
145
|
*/
|
|
207
|
-
type: '
|
|
146
|
+
type: 'fbo_program' | 'fbo_sponsored';
|
|
208
147
|
}
|
|
209
148
|
export interface AccountProgramCloseParams {
|
|
210
149
|
/**
|
|
@@ -217,18 +156,14 @@ export interface AccountProgramDrainParams {
|
|
|
217
156
|
* Fiat financial address to which the residual balance of every frozen account
|
|
218
157
|
* under the program is drained.
|
|
219
158
|
*/
|
|
220
|
-
destination: AccountProgramDrainParams.
|
|
159
|
+
destination: AccountProgramDrainParams.IbanFinancialAddressRequest | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
|
|
221
160
|
}
|
|
222
161
|
export declare namespace AccountProgramDrainParams {
|
|
223
|
-
interface
|
|
162
|
+
interface IbanFinancialAddressRequest {
|
|
224
163
|
/**
|
|
225
164
|
* Name of the account holder.
|
|
226
165
|
*/
|
|
227
166
|
account_holder_name: string;
|
|
228
|
-
/**
|
|
229
|
-
* Bank Identifier Code, or null if not provided.
|
|
230
|
-
*/
|
|
231
|
-
bic: string | null;
|
|
232
167
|
/**
|
|
233
168
|
* International Bank Account Number.
|
|
234
169
|
*/
|
|
@@ -237,6 +172,10 @@ export declare namespace AccountProgramDrainParams {
|
|
|
237
172
|
* Discriminator for IBAN financial address.
|
|
238
173
|
*/
|
|
239
174
|
type: 'iban';
|
|
175
|
+
/**
|
|
176
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
177
|
+
*/
|
|
178
|
+
bic?: string | null;
|
|
240
179
|
}
|
|
241
180
|
interface SortCodeFinancialAddress {
|
|
242
181
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C
|
|
1
|
+
{"version":3,"file":"account-programs.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IA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K,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -11,7 +11,7 @@ export declare class AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: '
|
|
14
|
+
* type: 'fbo_program',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
@@ -45,7 +45,6 @@ export declare class AccountPrograms extends APIResource {
|
|
|
45
45
|
* {
|
|
46
46
|
* destination: {
|
|
47
47
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
48
|
-
* bic: 'COBADEFFXXX',
|
|
49
48
|
* iban: 'DE89370400440532013000',
|
|
50
49
|
* type: 'iban',
|
|
51
50
|
* },
|
|
@@ -86,19 +85,6 @@ export interface AccountProgramCreateResponse {
|
|
|
86
85
|
* Account program whose lifecycle is being simulated.
|
|
87
86
|
*/
|
|
88
87
|
account_program_id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
91
|
-
*/
|
|
92
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
93
|
-
/**
|
|
94
|
-
* Payouts created by a drain event. Feed each id to
|
|
95
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
96
|
-
*/
|
|
97
|
-
payout_ids: Array<string> | null;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the simulation submission was successful.
|
|
100
|
-
*/
|
|
101
|
-
success: boolean;
|
|
102
88
|
/**
|
|
103
89
|
* Resource type discriminator.
|
|
104
90
|
*/
|
|
@@ -109,19 +95,6 @@ export interface AccountProgramCloseResponse {
|
|
|
109
95
|
* Account program whose lifecycle is being simulated.
|
|
110
96
|
*/
|
|
111
97
|
account_program_id: string;
|
|
112
|
-
/**
|
|
113
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
114
|
-
*/
|
|
115
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
116
|
-
/**
|
|
117
|
-
* Payouts created by a drain event. Feed each id to
|
|
118
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
119
|
-
*/
|
|
120
|
-
payout_ids: Array<string> | null;
|
|
121
|
-
/**
|
|
122
|
-
* Whether the simulation submission was successful.
|
|
123
|
-
*/
|
|
124
|
-
success: boolean;
|
|
125
98
|
/**
|
|
126
99
|
* Resource type discriminator.
|
|
127
100
|
*/
|
|
@@ -133,18 +106,10 @@ export interface AccountProgramDrainResponse {
|
|
|
133
106
|
*/
|
|
134
107
|
account_program_id: string;
|
|
135
108
|
/**
|
|
136
|
-
*
|
|
137
|
-
|
|
138
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
139
|
-
/**
|
|
140
|
-
* Payouts created by a drain event. Feed each id to
|
|
141
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
142
|
-
*/
|
|
143
|
-
payout_ids: Array<string> | null;
|
|
144
|
-
/**
|
|
145
|
-
* Whether the simulation submission was successful.
|
|
109
|
+
* Payouts created by the drain. Feed each id to
|
|
110
|
+
* `POST /v1/simulations/payouts/{id}/send` to settle.
|
|
146
111
|
*/
|
|
147
|
-
|
|
112
|
+
payout_ids: Array<string>;
|
|
148
113
|
/**
|
|
149
114
|
* Resource type discriminator.
|
|
150
115
|
*/
|
|
@@ -155,19 +120,6 @@ export interface AccountProgramFreezeResponse {
|
|
|
155
120
|
* Account program whose lifecycle is being simulated.
|
|
156
121
|
*/
|
|
157
122
|
account_program_id: string;
|
|
158
|
-
/**
|
|
159
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
160
|
-
*/
|
|
161
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
162
|
-
/**
|
|
163
|
-
* Payouts created by a drain event. Feed each id to
|
|
164
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
165
|
-
*/
|
|
166
|
-
payout_ids: Array<string> | null;
|
|
167
|
-
/**
|
|
168
|
-
* Whether the simulation submission was successful.
|
|
169
|
-
*/
|
|
170
|
-
success: boolean;
|
|
171
123
|
/**
|
|
172
124
|
* Resource type discriminator.
|
|
173
125
|
*/
|
|
@@ -178,19 +130,6 @@ export interface AccountProgramUnfreezeResponse {
|
|
|
178
130
|
* Account program whose lifecycle is being simulated.
|
|
179
131
|
*/
|
|
180
132
|
account_program_id: string;
|
|
181
|
-
/**
|
|
182
|
-
* Account program lifecycle event submitted to the sandbox.
|
|
183
|
-
*/
|
|
184
|
-
event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
|
|
185
|
-
/**
|
|
186
|
-
* Payouts created by a drain event. Feed each id to
|
|
187
|
-
* `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
|
|
188
|
-
*/
|
|
189
|
-
payout_ids: Array<string> | null;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the simulation submission was successful.
|
|
192
|
-
*/
|
|
193
|
-
success: boolean;
|
|
194
133
|
/**
|
|
195
134
|
* Resource type discriminator.
|
|
196
135
|
*/
|
|
@@ -204,7 +143,7 @@ export interface AccountProgramCreateParams {
|
|
|
204
143
|
/**
|
|
205
144
|
* Account program type.
|
|
206
145
|
*/
|
|
207
|
-
type: '
|
|
146
|
+
type: 'fbo_program' | 'fbo_sponsored';
|
|
208
147
|
}
|
|
209
148
|
export interface AccountProgramCloseParams {
|
|
210
149
|
/**
|
|
@@ -217,18 +156,14 @@ export interface AccountProgramDrainParams {
|
|
|
217
156
|
* Fiat financial address to which the residual balance of every frozen account
|
|
218
157
|
* under the program is drained.
|
|
219
158
|
*/
|
|
220
|
-
destination: AccountProgramDrainParams.
|
|
159
|
+
destination: AccountProgramDrainParams.IbanFinancialAddressRequest | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
|
|
221
160
|
}
|
|
222
161
|
export declare namespace AccountProgramDrainParams {
|
|
223
|
-
interface
|
|
162
|
+
interface IbanFinancialAddressRequest {
|
|
224
163
|
/**
|
|
225
164
|
* Name of the account holder.
|
|
226
165
|
*/
|
|
227
166
|
account_holder_name: string;
|
|
228
|
-
/**
|
|
229
|
-
* Bank Identifier Code, or null if not provided.
|
|
230
|
-
*/
|
|
231
|
-
bic: string | null;
|
|
232
167
|
/**
|
|
233
168
|
* International Bank Account Number.
|
|
234
169
|
*/
|
|
@@ -237,6 +172,10 @@ export declare namespace AccountProgramDrainParams {
|
|
|
237
172
|
* Discriminator for IBAN financial address.
|
|
238
173
|
*/
|
|
239
174
|
type: 'iban';
|
|
175
|
+
/**
|
|
176
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
177
|
+
*/
|
|
178
|
+
bic?: string | null;
|
|
240
179
|
}
|
|
241
180
|
interface SortCodeFinancialAddress {
|
|
242
181
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C
|
|
1
|
+
{"version":3,"file":"account-programs.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names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ACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -14,7 +14,7 @@ class AccountPrograms extends resource_1.APIResource {
|
|
|
14
14
|
* const accountProgram =
|
|
15
15
|
* await client.simulations.accountPrograms.create({
|
|
16
16
|
* label: 'x',
|
|
17
|
-
* type: '
|
|
17
|
+
* type: 'fbo_program',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
@@ -52,7 +52,6 @@ class AccountPrograms extends resource_1.APIResource {
|
|
|
52
52
|
* {
|
|
53
53
|
* destination: {
|
|
54
54
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
55
|
-
* bic: 'COBADEFFXXX',
|
|
56
55
|
* iban: 'DE89370400440532013000',
|
|
57
56
|
* type: 'iban',
|
|
58
57
|
* },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.js","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"account-programs.js","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AAvGD,0CAuGC"}
|
|
@@ -11,7 +11,7 @@ export class AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: '
|
|
14
|
+
* type: 'fbo_program',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
@@ -49,7 +49,6 @@ export class AccountPrograms extends APIResource {
|
|
|
49
49
|
* {
|
|
50
50
|
* destination: {
|
|
51
51
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
52
|
-
* bic: 'COBADEFFXXX',
|
|
53
52
|
* iban: 'DE89370400440532013000',
|
|
54
53
|
* type: 'iban',
|
|
55
54
|
* },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-programs.mjs","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"account-programs.mjs","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|