@getivy/node-sdk 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +26 -0
- package/README.md +1 -1
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkoutsession.d.ts +7 -7
- package/resources/data/accounts.d.ts +104 -0
- package/resources/data/accounts.d.ts.map +1 -0
- package/resources/data/accounts.js +15 -0
- package/resources/data/accounts.js.map +1 -0
- package/resources/data/accounts.mjs +11 -0
- package/resources/data/accounts.mjs.map +1 -0
- package/resources/data/balances.d.ts +45 -0
- package/resources/data/balances.d.ts.map +1 -0
- package/resources/data/balances.js +15 -0
- package/resources/data/balances.js.map +1 -0
- package/resources/data/balances.mjs +11 -0
- package/resources/data/balances.mjs.map +1 -0
- package/resources/data/consent.d.ts +80 -0
- package/resources/data/consent.d.ts.map +1 -0
- package/resources/data/consent.js +21 -0
- package/resources/data/consent.js.map +1 -0
- package/resources/data/consent.mjs +17 -0
- package/resources/data/consent.mjs.map +1 -0
- package/resources/data/data.d.ts +26 -0
- package/resources/data/data.d.ts.map +1 -0
- package/resources/data/data.js +55 -0
- package/resources/data/data.js.map +1 -0
- package/resources/data/data.mjs +28 -0
- package/resources/data/data.mjs.map +1 -0
- package/resources/data/index.d.ts +7 -0
- package/resources/data/index.d.ts.map +1 -0
- package/resources/data/index.js +17 -0
- package/resources/data/index.js.map +1 -0
- package/resources/data/index.mjs +8 -0
- package/resources/data/index.mjs.map +1 -0
- package/resources/data/session.d.ts +233 -0
- package/resources/data/session.d.ts.map +1 -0
- package/resources/data/session.js +21 -0
- package/resources/data/session.js.map +1 -0
- package/resources/data/session.mjs +17 -0
- package/resources/data/session.mjs.map +1 -0
- package/resources/data/transactions.d.ts +54 -0
- package/resources/data/transactions.d.ts.map +1 -0
- package/resources/data/transactions.js +16 -0
- package/resources/data/transactions.js.map +1 -0
- package/resources/data/transactions.mjs +12 -0
- package/resources/data/transactions.mjs.map +1 -0
- package/resources/data.d.ts +2 -0
- package/resources/data.d.ts.map +1 -0
- package/resources/data.js +19 -0
- package/resources/data.js.map +1 -0
- package/resources/data.mjs +3 -0
- package/resources/data.mjs.map +1 -0
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +5 -0
- package/src/resources/checkoutsession.ts +7 -7
- package/src/resources/data/accounts.ts +134 -0
- package/src/resources/data/balances.ts +57 -0
- package/src/resources/data/consent.ts +110 -0
- package/src/resources/data/data.ts +75 -0
- package/src/resources/data/index.ts +20 -0
- package/src/resources/data/session.ts +1298 -0
- package/src/resources/data/transactions.ts +71 -0
- package/src/resources/data.ts +3 -0
- package/src/resources/index.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as AccountsAPI from "./accounts.js";
|
|
3
|
+
import { AccountListParams, AccountListResponse, Accounts } from "./accounts.js";
|
|
4
|
+
import * as BalancesAPI from "./balances.js";
|
|
5
|
+
import { BalanceListParams, BalanceListResponse, Balances } from "./balances.js";
|
|
6
|
+
import * as ConsentAPI from "./consent.js";
|
|
7
|
+
import { Consent, ConsentRetrieveParams, ConsentRetrieveResponse, ConsentRevokeParams, ConsentRevokeResponse } from "./consent.js";
|
|
8
|
+
import * as SessionAPI from "./session.js";
|
|
9
|
+
import { Session, SessionCreateParams, SessionCreateResponse, SessionRetrieveParams, SessionRetrieveResponse } from "./session.js";
|
|
10
|
+
import * as TransactionsAPI from "./transactions.js";
|
|
11
|
+
import { TransactionListParams, TransactionListResponse, Transactions } from "./transactions.js";
|
|
12
|
+
export declare class Data extends APIResource {
|
|
13
|
+
session: SessionAPI.Session;
|
|
14
|
+
consent: ConsentAPI.Consent;
|
|
15
|
+
accounts: AccountsAPI.Accounts;
|
|
16
|
+
transactions: TransactionsAPI.Transactions;
|
|
17
|
+
balances: BalancesAPI.Balances;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace Data {
|
|
20
|
+
export { Session as Session, type SessionCreateResponse as SessionCreateResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, };
|
|
21
|
+
export { Consent as Consent, type ConsentRetrieveResponse as ConsentRetrieveResponse, type ConsentRevokeResponse as ConsentRevokeResponse, type ConsentRetrieveParams as ConsentRetrieveParams, type ConsentRevokeParams as ConsentRevokeParams, };
|
|
22
|
+
export { Accounts as Accounts, type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams, };
|
|
23
|
+
export { Transactions as Transactions, type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
|
|
24
|
+
export { Balances as Balances, type BalanceListResponse as BalanceListResponse, type BalanceListParams as BalanceListParams, };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/resources/data/data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,KAAK,UAAU,M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,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Data = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const AccountsAPI = __importStar(require("./accounts.js"));
|
|
30
|
+
const accounts_1 = require("./accounts.js");
|
|
31
|
+
const BalancesAPI = __importStar(require("./balances.js"));
|
|
32
|
+
const balances_1 = require("./balances.js");
|
|
33
|
+
const ConsentAPI = __importStar(require("./consent.js"));
|
|
34
|
+
const consent_1 = require("./consent.js");
|
|
35
|
+
const SessionAPI = __importStar(require("./session.js"));
|
|
36
|
+
const session_1 = require("./session.js");
|
|
37
|
+
const TransactionsAPI = __importStar(require("./transactions.js"));
|
|
38
|
+
const transactions_1 = require("./transactions.js");
|
|
39
|
+
class Data extends resource_1.APIResource {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
this.session = new SessionAPI.Session(this._client);
|
|
43
|
+
this.consent = new ConsentAPI.Consent(this._client);
|
|
44
|
+
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
45
|
+
this.transactions = new TransactionsAPI.Transactions(this._client);
|
|
46
|
+
this.balances = new BalancesAPI.Balances(this._client);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Data = Data;
|
|
50
|
+
Data.Session = session_1.Session;
|
|
51
|
+
Data.Consent = consent_1.Consent;
|
|
52
|
+
Data.Accounts = accounts_1.Accounts;
|
|
53
|
+
Data.Transactions = transactions_1.Transactions;
|
|
54
|
+
Data.Balances = balances_1.Balances;
|
|
55
|
+
//# sourceMappingURL=data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/resources/data/data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,2DAA0C;AAC1C,4CAA8E;AAC9E,2DAA0C;AAC1C,4CAA8E;AAC9E,yDAAwC;AACxC,0CAMmB;AACnB,yDAAwC;AACxC,0CAMmB;AACnB,mEAAkD;AAClD,oDAA8F;AAE9F,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAND,oBAMC;AAED,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC;AACvB,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC;AACvB,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,YAAY,GAAG,2BAAY,CAAC;AACjC,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as AccountsAPI from "./accounts.mjs";
|
|
4
|
+
import { Accounts } from "./accounts.mjs";
|
|
5
|
+
import * as BalancesAPI from "./balances.mjs";
|
|
6
|
+
import { Balances } from "./balances.mjs";
|
|
7
|
+
import * as ConsentAPI from "./consent.mjs";
|
|
8
|
+
import { Consent, } from "./consent.mjs";
|
|
9
|
+
import * as SessionAPI from "./session.mjs";
|
|
10
|
+
import { Session, } from "./session.mjs";
|
|
11
|
+
import * as TransactionsAPI from "./transactions.mjs";
|
|
12
|
+
import { Transactions } from "./transactions.mjs";
|
|
13
|
+
export class Data extends APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.session = new SessionAPI.Session(this._client);
|
|
17
|
+
this.consent = new ConsentAPI.Consent(this._client);
|
|
18
|
+
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
19
|
+
this.transactions = new TransactionsAPI.Transactions(this._client);
|
|
20
|
+
this.balances = new BalancesAPI.Balances(this._client);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
Data.Session = Session;
|
|
24
|
+
Data.Consent = Consent;
|
|
25
|
+
Data.Accounts = Accounts;
|
|
26
|
+
Data.Transactions = Transactions;
|
|
27
|
+
Data.Balances = Balances;
|
|
28
|
+
//# sourceMappingURL=data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.mjs","sourceRoot":"","sources":["../../src/resources/data/data.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAA0C,QAAQ,EAAE;OACpD,KAAK,WAAW;OAChB,EAA0C,QAAQ,EAAE;OACpD,KAAK,UAAU;OACf,EACL,OAAO,GAKR;OACM,KAAK,UAAU;OACf,EACL,OAAO,GAKR;OACM,KAAK,eAAe;OACpB,EAAkD,YAAY,EAAE;AAEvE,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;AACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Accounts, type AccountListResponse, type AccountListParams } from "./accounts.js";
|
|
2
|
+
export { Balances, type BalanceListResponse, type BalanceListParams } from "./balances.js";
|
|
3
|
+
export { Consent, type ConsentRetrieveResponse, type ConsentRevokeResponse, type ConsentRetrieveParams, type ConsentRevokeParams, } from "./consent.js";
|
|
4
|
+
export { Data } from "./data.js";
|
|
5
|
+
export { Session, type SessionCreateResponse, type SessionRetrieveResponse, type SessionCreateParams, type SessionRetrieveParams, } from "./session.js";
|
|
6
|
+
export { Transactions, type TransactionListResponse, type TransactionListParams } from "./transactions.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/data/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Transactions = exports.Session = exports.Data = exports.Consent = exports.Balances = exports.Accounts = void 0;
|
|
5
|
+
var accounts_1 = require("./accounts.js");
|
|
6
|
+
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
|
|
7
|
+
var balances_1 = require("./balances.js");
|
|
8
|
+
Object.defineProperty(exports, "Balances", { enumerable: true, get: function () { return balances_1.Balances; } });
|
|
9
|
+
var consent_1 = require("./consent.js");
|
|
10
|
+
Object.defineProperty(exports, "Consent", { enumerable: true, get: function () { return consent_1.Consent; } });
|
|
11
|
+
var data_1 = require("./data.js");
|
|
12
|
+
Object.defineProperty(exports, "Data", { enumerable: true, get: function () { return data_1.Data; } });
|
|
13
|
+
var session_1 = require("./session.js");
|
|
14
|
+
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_1.Session; } });
|
|
15
|
+
var transactions_1 = require("./transactions.js");
|
|
16
|
+
Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return transactions_1.Transactions; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/data/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,kDAAwG;AAA/F,4GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Accounts } from "./accounts.mjs";
|
|
3
|
+
export { Balances } from "./balances.mjs";
|
|
4
|
+
export { Consent, } from "./consent.mjs";
|
|
5
|
+
export { Data } from "./data.mjs";
|
|
6
|
+
export { Session, } from "./session.mjs";
|
|
7
|
+
export { Transactions } from "./transactions.mjs";
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/data/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAAoD;OAC9D,EAAE,QAAQ,EAAoD;OAC9D,EACL,OAAO,GAKR;OACM,EAAE,IAAI,EAAE;OACR,EACL,OAAO,GAKR;OACM,EAAE,YAAY,EAA4D"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class Session extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a data session for the merchant corresponding to the API key.
|
|
6
|
+
*/
|
|
7
|
+
create(body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SessionCreateResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the details of a data session by its ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(body: SessionRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<SessionRetrieveResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface SessionCreateResponse {
|
|
14
|
+
/**
|
|
15
|
+
* The id of the data session.
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The markets where the user of the Data Session can select banks from.
|
|
20
|
+
*/
|
|
21
|
+
availableMarkets: Array<'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK'>;
|
|
22
|
+
/**
|
|
23
|
+
* The Epoch time in seconds at which the Session was created.
|
|
24
|
+
*/
|
|
25
|
+
createdAt: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether customers can choose another bank than the pre-selected one.
|
|
28
|
+
*/
|
|
29
|
+
disableBankSelection: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The display ID of the data session.
|
|
32
|
+
*/
|
|
33
|
+
displayId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The URL where users will be redirected after an unsuccessful session.
|
|
36
|
+
*/
|
|
37
|
+
errorCallbackUrl: string;
|
|
38
|
+
/**
|
|
39
|
+
* The Epoch time in seconds at which the Session will expire.
|
|
40
|
+
*/
|
|
41
|
+
expiresAt: number;
|
|
42
|
+
/**
|
|
43
|
+
* The id of the merchant.
|
|
44
|
+
*/
|
|
45
|
+
merchantId: string;
|
|
46
|
+
/**
|
|
47
|
+
* The redirect URL of the data session.
|
|
48
|
+
*/
|
|
49
|
+
redirectUrl: string;
|
|
50
|
+
/**
|
|
51
|
+
* An internal reference id for the data session.
|
|
52
|
+
*/
|
|
53
|
+
referenceId: string;
|
|
54
|
+
/**
|
|
55
|
+
* The status of the data session.
|
|
56
|
+
*/
|
|
57
|
+
status: 'open' | 'closed' | 'expired';
|
|
58
|
+
/**
|
|
59
|
+
* The URL where users will be redirected after a successful session.
|
|
60
|
+
*/
|
|
61
|
+
successCallbackUrl: string;
|
|
62
|
+
/**
|
|
63
|
+
* The Epoch time in seconds at which the Session was updated.
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: number;
|
|
66
|
+
/**
|
|
67
|
+
* The locale of the data session.
|
|
68
|
+
*/
|
|
69
|
+
locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
|
|
70
|
+
/**
|
|
71
|
+
* ISO 3166-1 alpha-2 country code of the market.
|
|
72
|
+
*/
|
|
73
|
+
market?: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
74
|
+
/**
|
|
75
|
+
* Any data stored with this data session.
|
|
76
|
+
*/
|
|
77
|
+
metadata?: unknown;
|
|
78
|
+
prefill?: SessionCreateResponse.Prefill;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace SessionCreateResponse {
|
|
81
|
+
interface Prefill {
|
|
82
|
+
/**
|
|
83
|
+
* The preselected bank ID.
|
|
84
|
+
*/
|
|
85
|
+
bankId?: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export interface SessionRetrieveResponse {
|
|
89
|
+
/**
|
|
90
|
+
* The id of the data session.
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* The Epoch time in seconds at which the Session was created.
|
|
95
|
+
*/
|
|
96
|
+
createdAt: number;
|
|
97
|
+
/**
|
|
98
|
+
* Whether customers can choose another bank than the pre-selected one.
|
|
99
|
+
*/
|
|
100
|
+
disableBankSelection: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* The display ID of the data session.
|
|
103
|
+
*/
|
|
104
|
+
displayId: string;
|
|
105
|
+
/**
|
|
106
|
+
* The URL where users will be redirected after an unsuccessful session.
|
|
107
|
+
*/
|
|
108
|
+
errorCallbackUrl: string;
|
|
109
|
+
/**
|
|
110
|
+
* The Epoch time in seconds at which the Session will expire.
|
|
111
|
+
*/
|
|
112
|
+
expiresAt: number;
|
|
113
|
+
/**
|
|
114
|
+
* The id of the merchant.
|
|
115
|
+
*/
|
|
116
|
+
merchantId: string;
|
|
117
|
+
/**
|
|
118
|
+
* An internal reference id for the data session.
|
|
119
|
+
*/
|
|
120
|
+
referenceId: string;
|
|
121
|
+
/**
|
|
122
|
+
* The status of the data session.
|
|
123
|
+
*/
|
|
124
|
+
status: 'open' | 'closed' | 'expired';
|
|
125
|
+
/**
|
|
126
|
+
* The URL where users will be redirected after a successful session.
|
|
127
|
+
*/
|
|
128
|
+
successCallbackUrl: string;
|
|
129
|
+
/**
|
|
130
|
+
* The Epoch time in seconds at which the Session was updated.
|
|
131
|
+
*/
|
|
132
|
+
updatedAt: number;
|
|
133
|
+
/**
|
|
134
|
+
* The locale of the data session.
|
|
135
|
+
*/
|
|
136
|
+
locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
|
|
137
|
+
/**
|
|
138
|
+
* ISO 3166-1 alpha-2 country code of the market.
|
|
139
|
+
*/
|
|
140
|
+
market?: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
141
|
+
/**
|
|
142
|
+
* Any data stored with this data session.
|
|
143
|
+
*/
|
|
144
|
+
metadata?: unknown;
|
|
145
|
+
prefill?: SessionRetrieveResponse.Prefill;
|
|
146
|
+
}
|
|
147
|
+
export declare namespace SessionRetrieveResponse {
|
|
148
|
+
interface Prefill {
|
|
149
|
+
/**
|
|
150
|
+
* The preselected bank ID.
|
|
151
|
+
*/
|
|
152
|
+
bankId?: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export interface SessionCreateParams {
|
|
156
|
+
/**
|
|
157
|
+
* An internal reference id which will be stored with the data session. Needs to be
|
|
158
|
+
* unique per data session. Maximum length is 200 characters.
|
|
159
|
+
*/
|
|
160
|
+
referenceId: string;
|
|
161
|
+
/**
|
|
162
|
+
* Required when setting expiresAt. The Epoch time in seconds at which the Session
|
|
163
|
+
* was created.
|
|
164
|
+
*/
|
|
165
|
+
createdAt?: number;
|
|
166
|
+
/**
|
|
167
|
+
* False by default. If set to true, customers cannot choose another bank than the
|
|
168
|
+
* pre-selected one.
|
|
169
|
+
*/
|
|
170
|
+
disableBankSelection?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* The customer facing id. This id is displayed to the user during the data session
|
|
173
|
+
* and in the merchant dashboard. It does not need to be unique and should be a
|
|
174
|
+
* customer-friendly id.
|
|
175
|
+
*/
|
|
176
|
+
displayId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Required if not set in the dashboard. Users will be redirected here after a
|
|
179
|
+
* unsuccessful session.
|
|
180
|
+
*/
|
|
181
|
+
errorCallbackUrl?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The Epoch time in seconds at which the Session should expire. It can be anywhere
|
|
184
|
+
* from 30 minutes to 24 hours after Session creation. By default, this value is 1
|
|
185
|
+
* hour from creation. When setting this field, you also need to set `created`.
|
|
186
|
+
*/
|
|
187
|
+
expiresAt?: number;
|
|
188
|
+
/**
|
|
189
|
+
* The locale of the data session. If not provided, the default locale will be
|
|
190
|
+
* used.
|
|
191
|
+
*/
|
|
192
|
+
locale?: 'de' | 'nl' | 'en' | 'fr' | 'es' | 'it' | 'pt' | 'sv' | 'pl' | 'sk';
|
|
193
|
+
/**
|
|
194
|
+
* ISO 3166-1 alpha-2 country code of the market. If set, the market's default
|
|
195
|
+
* banks will be displayed during the Data Session.
|
|
196
|
+
*/
|
|
197
|
+
market?: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
198
|
+
/**
|
|
199
|
+
* Any data which will be stored and returned for this data session. See
|
|
200
|
+
* [here](https://docs.getivy.de/reference/metadata) for more info.
|
|
201
|
+
*/
|
|
202
|
+
metadata?: Record<string, unknown>;
|
|
203
|
+
prefill?: SessionCreateParams.Prefill;
|
|
204
|
+
/**
|
|
205
|
+
* Required if not set in the dashboard. Users will be redirected here after a
|
|
206
|
+
* successful session.
|
|
207
|
+
*/
|
|
208
|
+
successCallbackUrl?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The theme variant which will be used in the data session. If not provided, the
|
|
211
|
+
* default light theme will be used.
|
|
212
|
+
*/
|
|
213
|
+
themeVariant?: 'light' | 'dark';
|
|
214
|
+
}
|
|
215
|
+
export declare namespace SessionCreateParams {
|
|
216
|
+
interface Prefill {
|
|
217
|
+
/**
|
|
218
|
+
* The preselected bank. Provide a valid bankId from the bank endpoints. If given,
|
|
219
|
+
* the user will skip the bank selection.
|
|
220
|
+
*/
|
|
221
|
+
bankId?: string;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export interface SessionRetrieveParams {
|
|
225
|
+
/**
|
|
226
|
+
* The id of the data session.
|
|
227
|
+
*/
|
|
228
|
+
id: string;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace Session {
|
|
231
|
+
export { type SessionCreateResponse as SessionCreateResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, };
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/resources/data/session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIxG;;OAEG;IACH,QAAQ,CACN,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,gBAAgB,EAAE,KAAK,CACnB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GAC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IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC;IAEtC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Session = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Session extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a data session for the merchant corresponding to the API key.
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/api/service/data/session/create', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the details of a data session by its ID.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(body, options) {
|
|
17
|
+
return this._client.post('/api/service/data/session/details', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Session = Session;
|
|
21
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/resources/data/session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AAjBD,0BAiBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class Session extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a data session for the merchant corresponding to the API key.
|
|
6
|
+
*/
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/api/service/data/session/create', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the details of a data session by its ID.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(body, options) {
|
|
14
|
+
return this._client.post('/api/service/data/session/details', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=session.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.mjs","sourceRoot":"","sources":["../../src/resources/data/session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class Transactions extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the list of transactions for a given data session. Returns
|
|
6
|
+
* transactions from the last 3 months.
|
|
7
|
+
*/
|
|
8
|
+
list(body: TransactionListParams, options?: Core.RequestOptions): Core.APIPromise<TransactionListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface TransactionListResponse {
|
|
11
|
+
transactions: Array<TransactionListResponse.Transaction>;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace TransactionListResponse {
|
|
14
|
+
interface Transaction {
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the transaction.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the account the transaction belongs to.
|
|
21
|
+
*/
|
|
22
|
+
accountId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The amount of the transaction.
|
|
25
|
+
*/
|
|
26
|
+
amount: string;
|
|
27
|
+
/**
|
|
28
|
+
* The currency of the transaction.
|
|
29
|
+
*/
|
|
30
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'USD' | 'CHF' | 'SEK' | 'DKK' | 'NOK' | 'HUF' | 'CZK' | 'BGN';
|
|
31
|
+
/**
|
|
32
|
+
* The date and time when the transaction occurred.
|
|
33
|
+
*/
|
|
34
|
+
timestamp: string;
|
|
35
|
+
/**
|
|
36
|
+
* The type of transaction (debit or credit).
|
|
37
|
+
*/
|
|
38
|
+
type: 'debit' | 'credit';
|
|
39
|
+
/**
|
|
40
|
+
* The description of the transaction.
|
|
41
|
+
*/
|
|
42
|
+
description?: string;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export interface TransactionListParams {
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the data session to retrieve transactions for.
|
|
48
|
+
*/
|
|
49
|
+
sessionId: string;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace Transactions {
|
|
52
|
+
export { type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=transactions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG3G;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAC1D;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAEhG;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;QAEzB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Transactions = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Transactions extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the list of transactions for a given data session. Returns
|
|
9
|
+
* transactions from the last 3 months.
|
|
10
|
+
*/
|
|
11
|
+
list(body, options) {
|
|
12
|
+
return this._client.post('/api/service/data/transactions/list', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Transactions = Transactions;
|
|
16
|
+
//# sourceMappingURL=transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAA2B,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AARD,oCAQC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class Transactions extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the list of transactions for a given data session. Returns
|
|
6
|
+
* transactions from the last 3 months.
|
|
7
|
+
*/
|
|
8
|
+
list(body, options) {
|
|
9
|
+
return this._client.post('/api/service/data/transactions/list', { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=transactions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAA2B,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/resources/data.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC"}
|