@getivy/node-sdk 0.1.0-alpha.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +359 -0
- package/README.md +16 -26
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +25 -15
- package/core.js.map +1 -1
- package/core.mjs +26 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +30 -18
- package/index.d.ts +30 -18
- package/index.d.ts.map +1 -1
- package/index.js +21 -8
- package/index.js.map +1 -1
- package/index.mjs +21 -8
- package/index.mjs.map +1 -1
- package/package.json +11 -33
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/balance.d.ts +8 -5
- package/resources/balance.d.ts.map +1 -1
- package/resources/banks.d.ts +82 -67
- package/resources/banks.d.ts.map +1 -1
- package/resources/beneficiary-payouts.d.ts +61 -0
- package/resources/beneficiary-payouts.d.ts.map +1 -0
- package/resources/beneficiary-payouts.js +16 -0
- package/resources/beneficiary-payouts.js.map +1 -0
- package/resources/beneficiary-payouts.mjs +12 -0
- package/resources/beneficiary-payouts.mjs.map +1 -0
- package/resources/capabilities.d.ts +1 -10
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/charges.d.ts +28 -19
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +275 -1360
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +140 -10
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +9 -2
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +9 -2
- package/resources/customers.mjs.map +1 -1
- package/resources/deposits.d.ts +165 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +15 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +11 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/fx.d.ts +90 -0
- package/resources/fx.d.ts.map +1 -0
- package/resources/fx.js +22 -0
- package/resources/fx.js.map +1 -0
- package/resources/fx.mjs +18 -0
- package/resources/fx.mjs.map +1 -0
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mandates.d.ts +55 -17
- package/resources/mandates.d.ts.map +1 -1
- package/resources/orders.d.ts +718 -739
- package/resources/orders.d.ts.map +1 -1
- package/resources/orders.js +13 -3
- package/resources/orders.js.map +1 -1
- package/resources/orders.mjs +13 -3
- package/resources/orders.mjs.map +1 -1
- package/resources/payouts.d.ts +219 -103
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +3 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +3 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.ts +53 -97
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +8 -12
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +8 -12
- package/resources/refunds.mjs.map +1 -1
- package/resources/returns.d.ts +104 -0
- package/resources/returns.d.ts.map +1 -0
- package/resources/returns.js +21 -0
- package/resources/returns.js.map +1 -0
- package/resources/returns.mjs +17 -0
- package/resources/returns.mjs.map +1 -0
- package/resources/subaccounts.d.ts +15 -5
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/transactions.d.ts +174 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +15 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +11 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +44 -16
- package/src/index.ts +100 -63
- package/src/resource.ts +1 -1
- package/src/resources/balance.ts +8 -5
- package/src/resources/banks.ts +130 -67
- package/src/resources/beneficiary-payouts.ts +78 -0
- package/src/resources/capabilities.ts +1 -10
- package/src/resources/charges.ts +30 -21
- package/src/resources/checkoutsession.ts +1224 -3096
- package/src/resources/customers.ts +164 -9
- package/src/resources/deposits.ts +231 -0
- package/src/resources/fx.ts +119 -0
- package/src/resources/index.ts +31 -28
- package/src/resources/mandates.ts +79 -17
- package/src/resources/orders.ts +1448 -1072
- package/src/resources/payouts.ts +273 -103
- package/src/resources/refunds.ts +70 -111
- package/src/resources/returns.ts +140 -0
- package/src/resources/subaccounts.ts +26 -4
- package/src/resources/transactions.ts +234 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/reports.d.ts +0 -120
- package/resources/reports.d.ts.map +0 -1
- package/resources/reports.js +0 -31
- package/resources/reports.js.map +0 -1
- package/resources/reports.mjs +0 -27
- package/resources/reports.mjs.map +0 -1
- package/resources/webhooksubscription.d.ts +0 -155
- package/resources/webhooksubscription.d.ts.map +0 -1
- package/resources/webhooksubscription.js +0 -42
- package/resources/webhooksubscription.js.map +0 -1
- package/resources/webhooksubscription.mjs +0 -38
- package/resources/webhooksubscription.mjs.map +0 -1
- package/src/resources/reports.ts +0 -172
- package/src/resources/webhooksubscription.ts +0 -353
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Deposits extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves a deposit by its ID.
|
|
6
|
+
*/
|
|
7
|
+
retrieve(body: DepositRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<DepositRetrieveResponse>;
|
|
8
|
+
}
|
|
9
|
+
export interface DepositRetrieveResponse {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the deposit
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The amount of the deposit
|
|
16
|
+
*/
|
|
17
|
+
amount: number;
|
|
18
|
+
/**
|
|
19
|
+
* The currency of the deposit
|
|
20
|
+
*/
|
|
21
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
22
|
+
/**
|
|
23
|
+
* The payee account identifier
|
|
24
|
+
*/
|
|
25
|
+
payee: DepositRetrieveResponse.Payee;
|
|
26
|
+
/**
|
|
27
|
+
* The payer account identifier
|
|
28
|
+
*/
|
|
29
|
+
payer: DepositRetrieveResponse.Payer;
|
|
30
|
+
/**
|
|
31
|
+
* The date and time the deposit was received
|
|
32
|
+
*/
|
|
33
|
+
receivedAt: string;
|
|
34
|
+
returns: Array<DepositRetrieveResponse.Return>;
|
|
35
|
+
/**
|
|
36
|
+
* The status of the deposit
|
|
37
|
+
*/
|
|
38
|
+
status: 'received';
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the transaction that initiated the deposit
|
|
41
|
+
*/
|
|
42
|
+
transactionId: string;
|
|
43
|
+
/**
|
|
44
|
+
* The reference that appears on the bank statement
|
|
45
|
+
*/
|
|
46
|
+
bankStatementReference?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The payment rail used for the deposit
|
|
49
|
+
*/
|
|
50
|
+
rail?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace DepositRetrieveResponse {
|
|
53
|
+
/**
|
|
54
|
+
* The payee account identifier
|
|
55
|
+
*/
|
|
56
|
+
interface Payee {
|
|
57
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
58
|
+
bankCode?: Payee.BankCode;
|
|
59
|
+
bban?: Payee.Bban;
|
|
60
|
+
iban?: Payee.Iban;
|
|
61
|
+
sortCode?: Payee.SortCode;
|
|
62
|
+
}
|
|
63
|
+
namespace Payee {
|
|
64
|
+
interface BankCode {
|
|
65
|
+
accountHolderName: string;
|
|
66
|
+
accountNumber: string;
|
|
67
|
+
code: string;
|
|
68
|
+
}
|
|
69
|
+
interface Bban {
|
|
70
|
+
accountHolderName: string;
|
|
71
|
+
bban: string;
|
|
72
|
+
bic?: string;
|
|
73
|
+
}
|
|
74
|
+
interface Iban {
|
|
75
|
+
accountHolderName: string;
|
|
76
|
+
iban: string;
|
|
77
|
+
bic?: string;
|
|
78
|
+
}
|
|
79
|
+
interface SortCode {
|
|
80
|
+
accountHolderName: string;
|
|
81
|
+
accountNumber: string;
|
|
82
|
+
sortCode: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The payer account identifier
|
|
87
|
+
*/
|
|
88
|
+
interface Payer {
|
|
89
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
90
|
+
bankCode?: Payer.BankCode;
|
|
91
|
+
bban?: Payer.Bban;
|
|
92
|
+
iban?: Payer.Iban;
|
|
93
|
+
sortCode?: Payer.SortCode;
|
|
94
|
+
}
|
|
95
|
+
namespace Payer {
|
|
96
|
+
interface BankCode {
|
|
97
|
+
accountHolderName: string;
|
|
98
|
+
accountNumber: string;
|
|
99
|
+
code: string;
|
|
100
|
+
}
|
|
101
|
+
interface Bban {
|
|
102
|
+
accountHolderName: string;
|
|
103
|
+
bban: string;
|
|
104
|
+
bic?: string;
|
|
105
|
+
}
|
|
106
|
+
interface Iban {
|
|
107
|
+
accountHolderName: string;
|
|
108
|
+
iban: string;
|
|
109
|
+
bic?: string;
|
|
110
|
+
}
|
|
111
|
+
interface SortCode {
|
|
112
|
+
accountHolderName: string;
|
|
113
|
+
accountNumber: string;
|
|
114
|
+
sortCode: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
interface Return {
|
|
118
|
+
/**
|
|
119
|
+
* The ID of the return
|
|
120
|
+
*/
|
|
121
|
+
id: string;
|
|
122
|
+
/**
|
|
123
|
+
* The amount of the return
|
|
124
|
+
*/
|
|
125
|
+
amount: number;
|
|
126
|
+
/**
|
|
127
|
+
* The date and time the return was created
|
|
128
|
+
*/
|
|
129
|
+
createdAt: string;
|
|
130
|
+
/**
|
|
131
|
+
* The currency of the return
|
|
132
|
+
*/
|
|
133
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the associated deposit
|
|
136
|
+
*/
|
|
137
|
+
depositId: string;
|
|
138
|
+
/**
|
|
139
|
+
* The status of the return
|
|
140
|
+
*/
|
|
141
|
+
status: 'initiated' | 'succeeded' | 'failed' | 'returned';
|
|
142
|
+
/**
|
|
143
|
+
* The date and time the return failed if applicable
|
|
144
|
+
*/
|
|
145
|
+
failedAt?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The date and time the return succeeded if applicable
|
|
148
|
+
*/
|
|
149
|
+
succeededAt?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The ID of the resulting return transaction
|
|
152
|
+
*/
|
|
153
|
+
transactionId?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export interface DepositRetrieveParams {
|
|
157
|
+
/**
|
|
158
|
+
* The ID of the deposit
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
}
|
|
162
|
+
export declare namespace Deposits {
|
|
163
|
+
export { type DepositRetrieveResponse as DepositRetrieveResponse, type DepositRetrieveParams as DepositRetrieveParams, };
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=deposits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CA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AEtB,QAAQ,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAEhD;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,EAAE,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;QAE1D;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.Deposits = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Deposits extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a deposit by its ID.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(body, options) {
|
|
11
|
+
return this._client.post('/api/service/deposit/retrieve', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Deposits = Deposits;
|
|
15
|
+
//# sourceMappingURL=deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.js","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAVD,4BAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Deposits extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves a deposit by its ID.
|
|
6
|
+
*/
|
|
7
|
+
retrieve(body, options) {
|
|
8
|
+
return this._client.post('/api/service/deposit/retrieve', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=deposits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.mjs","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Fx extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the details of a past fx transfer using the fxId.
|
|
6
|
+
*/
|
|
7
|
+
retrieve(body: FxRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<FxRetrieveResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the current exchange rate for a given currency pair. The rate is not
|
|
10
|
+
* guaranteed for any following transactions.
|
|
11
|
+
*/
|
|
12
|
+
retrieveRate(body: FxRetrieveRateParams, options?: Core.RequestOptions): Core.APIPromise<FxRetrieveRateResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface FxRetrieveResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The fxId attached to the transfer.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The exchange rate for the given currency pair.
|
|
21
|
+
*/
|
|
22
|
+
rate: string;
|
|
23
|
+
/**
|
|
24
|
+
* The source currency code
|
|
25
|
+
*/
|
|
26
|
+
sourceCurrency: 'EUR' | 'GBP';
|
|
27
|
+
/**
|
|
28
|
+
* The status of the FX transaction.
|
|
29
|
+
*/
|
|
30
|
+
status: 'success' | 'processing' | 'failed';
|
|
31
|
+
/**
|
|
32
|
+
* The target currency code
|
|
33
|
+
*/
|
|
34
|
+
targetCurrency: 'USDC';
|
|
35
|
+
/**
|
|
36
|
+
* Additional metadata.
|
|
37
|
+
*/
|
|
38
|
+
metadata?: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* The amount of source currency to convert.
|
|
43
|
+
*/
|
|
44
|
+
sourceAmount?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The amount of the target currency for the given source amount.
|
|
47
|
+
*/
|
|
48
|
+
targetAmount?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface FxRetrieveRateResponse {
|
|
51
|
+
/**
|
|
52
|
+
* The current exchange rate for the given currency pair.
|
|
53
|
+
*/
|
|
54
|
+
rate: string;
|
|
55
|
+
/**
|
|
56
|
+
* The amount of source currency to convert. Only returned if the source amount is
|
|
57
|
+
* provided.
|
|
58
|
+
*/
|
|
59
|
+
sourceAmount?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The amount of the target currency for the given source amount. Only returned if
|
|
62
|
+
* the source amount is provided.
|
|
63
|
+
*/
|
|
64
|
+
targetAmount?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface FxRetrieveParams {
|
|
67
|
+
/**
|
|
68
|
+
* The fxId attached to the transfer.
|
|
69
|
+
*/
|
|
70
|
+
fxId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface FxRetrieveRateParams {
|
|
73
|
+
/**
|
|
74
|
+
* The source currency code.
|
|
75
|
+
*/
|
|
76
|
+
sourceCurrency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
77
|
+
/**
|
|
78
|
+
* The target currency code.
|
|
79
|
+
*/
|
|
80
|
+
targetCurrency: 'EUR' | 'GBP' | 'PLN' | 'USDC' | 'SEK' | 'DKK';
|
|
81
|
+
/**
|
|
82
|
+
* The amount of source currency to convert. If not provided, only the rate will be
|
|
83
|
+
* returned. Decimal places should be separated by a dot.
|
|
84
|
+
*/
|
|
85
|
+
sourceAmount?: string;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace Fx {
|
|
88
|
+
export { type FxRetrieveResponse as FxRetrieveResponse, type FxRetrieveRateResponse as FxRetrieveRateResponse, type FxRetrieveParams as FxRetrieveParams, type FxRetrieveRateParams as FxRetrieveRateParams, };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=fx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fx.d.ts","sourceRoot":"","sources":["../src/resources/fx.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAA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AAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/fx.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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.Fx = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Fx extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve the details of a past fx transfer using the fxId.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(body, options) {
|
|
11
|
+
return this._client.post('/api/service/fx/retrieve', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve the current exchange rate for a given currency pair. The rate is not
|
|
15
|
+
* guaranteed for any following transactions.
|
|
16
|
+
*/
|
|
17
|
+
retrieveRate(body, options) {
|
|
18
|
+
return this._client.post('/api/service/fx/retrieve-rate', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Fx = Fx;
|
|
22
|
+
//# sourceMappingURL=fx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fx.js","sourceRoot":"","sources":["../src/resources/fx.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,EAAG,SAAQ,sBAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,IAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,YAAY,CACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAlBD,gBAkBC"}
|
package/resources/fx.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Fx extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve the details of a past fx transfer using the fxId.
|
|
6
|
+
*/
|
|
7
|
+
retrieve(body, options) {
|
|
8
|
+
return this._client.post('/api/service/fx/retrieve', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the current exchange rate for a given currency pair. The rate is not
|
|
12
|
+
* guaranteed for any following transactions.
|
|
13
|
+
*/
|
|
14
|
+
retrieveRate(body, options) {
|
|
15
|
+
return this._client.post('/api/service/fx/retrieve-rate', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=fx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fx.mjs","sourceRoot":"","sources":["../src/resources/fx.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,IAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,YAAY,CACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
export { Balance, type BalanceRetrieveResponse, type BalanceRetrieveParams } from "./balance.js";
|
|
2
2
|
export { Banks, type BankRetrieveResponse, type BankListResponse, type BankSearchResponse, type BankRetrieveParams, type BankListParams, type BankSearchParams, } from "./banks.js";
|
|
3
|
+
export { BeneficiaryPayouts, type BeneficiaryPayoutCreateResponse } from "./beneficiary-payouts.js";
|
|
3
4
|
export { Capabilities, type CapabilityRetrieveResponse, type CapabilityRetrieveParams } from "./capabilities.js";
|
|
4
5
|
export { Charges, type Charge, type ChargeCreateParams } from "./charges.js";
|
|
5
6
|
export { Checkoutsession, type CheckoutsessionCreateResponse, type CheckoutsessionRetrieveResponse, type CheckoutsessionExpireResponse, type CheckoutsessionCreateParams, type CheckoutsessionRetrieveParams, type CheckoutsessionExpireParams, } from "./checkoutsession.js";
|
|
6
|
-
export { Customers, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerCreateParams, type CustomerRetrieveParams, } from "./customers.js";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
7
|
+
export { Customers, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerSearchResponse, type CustomerCreateParams, type CustomerRetrieveParams, type CustomerSearchParams, } from "./customers.js";
|
|
8
|
+
export { Deposits, type DepositRetrieveResponse, type DepositRetrieveParams } from "./deposits.js";
|
|
9
|
+
export { Fx, type FxRetrieveResponse, type FxRetrieveRateResponse, type FxRetrieveParams, type FxRetrieveRateParams, } from "./fx.js";
|
|
10
|
+
export { Mandates, type Mandate, type MandateLookupResponse, type MandateRevokeResponse, type MandateRetrieveParams, type MandateLookupParams, type MandateRevokeParams, } from "./mandates.js";
|
|
11
|
+
export { Orders, type OrderCreateResponse, type OrderRetrieveResponse, type OrderExpireResponse, type OrderCreateParams, type OrderRetrieveParams, type OrderExpireParams, } from "./orders.js";
|
|
12
|
+
export { Payouts, type Payout, type PayoutRetrieveResponse, type PayoutListResponse, type PayoutCreateParams, type PayoutRetrieveParams, type PayoutListParams, } from "./payouts.js";
|
|
13
|
+
export { Refunds, type Refund, type RefundCreateResponse, type RefundRetrieveResponse, type RefundCreateParams, type RefundRetrieveParams, } from "./refunds.js";
|
|
14
|
+
export { Returns, type ReturnCreateResponse, type ReturnRetrieveResponse, type ReturnCreateParams, type ReturnRetrieveParams, } from "./returns.js";
|
|
15
|
+
export { Subaccounts, type Subaccount, type SubaccountCreateResponse, type SubaccountCreateParams, type SubaccountRetrieveParams, } from "./subaccounts.js";
|
|
16
|
+
export { Transactions, type TransactionListResponse, type TransactionListParams } from "./transactions.js";
|
|
14
17
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC9F,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC9G,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,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B,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,MAAM,MAAM,CAAC;AACd,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Transactions = exports.Subaccounts = exports.Returns = exports.Refunds = exports.Payouts = exports.Orders = exports.Mandates = exports.Fx = exports.Deposits = exports.Customers = exports.Checkoutsession = exports.Charges = exports.Capabilities = exports.BeneficiaryPayouts = exports.Banks = exports.Balance = void 0;
|
|
5
5
|
var balance_1 = require("./balance.js");
|
|
6
6
|
Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_1.Balance; } });
|
|
7
7
|
var banks_1 = require("./banks.js");
|
|
8
8
|
Object.defineProperty(exports, "Banks", { enumerable: true, get: function () { return banks_1.Banks; } });
|
|
9
|
+
var beneficiary_payouts_1 = require("./beneficiary-payouts.js");
|
|
10
|
+
Object.defineProperty(exports, "BeneficiaryPayouts", { enumerable: true, get: function () { return beneficiary_payouts_1.BeneficiaryPayouts; } });
|
|
9
11
|
var capabilities_1 = require("./capabilities.js");
|
|
10
12
|
Object.defineProperty(exports, "Capabilities", { enumerable: true, get: function () { return capabilities_1.Capabilities; } });
|
|
11
13
|
var charges_1 = require("./charges.js");
|
|
@@ -14,6 +16,10 @@ var checkoutsession_1 = require("./checkoutsession.js");
|
|
|
14
16
|
Object.defineProperty(exports, "Checkoutsession", { enumerable: true, get: function () { return checkoutsession_1.Checkoutsession; } });
|
|
15
17
|
var customers_1 = require("./customers.js");
|
|
16
18
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
19
|
+
var deposits_1 = require("./deposits.js");
|
|
20
|
+
Object.defineProperty(exports, "Deposits", { enumerable: true, get: function () { return deposits_1.Deposits; } });
|
|
21
|
+
var fx_1 = require("./fx.js");
|
|
22
|
+
Object.defineProperty(exports, "Fx", { enumerable: true, get: function () { return fx_1.Fx; } });
|
|
17
23
|
var mandates_1 = require("./mandates.js");
|
|
18
24
|
Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return mandates_1.Mandates; } });
|
|
19
25
|
var orders_1 = require("./orders.js");
|
|
@@ -22,10 +28,10 @@ var payouts_1 = require("./payouts.js");
|
|
|
22
28
|
Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return payouts_1.Payouts; } });
|
|
23
29
|
var refunds_1 = require("./refunds.js");
|
|
24
30
|
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return refunds_1.Refunds; } });
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "
|
|
31
|
+
var returns_1 = require("./returns.js");
|
|
32
|
+
Object.defineProperty(exports, "Returns", { enumerable: true, get: function () { return returns_1.Returns; } });
|
|
27
33
|
var subaccounts_1 = require("./subaccounts.js");
|
|
28
34
|
Object.defineProperty(exports, "Subaccounts", { enumerable: true, get: function () { return subaccounts_1.Subaccounts; } });
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "
|
|
35
|
+
var transactions_1 = require("./transactions.js");
|
|
36
|
+
Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return transactions_1.Transactions; } });
|
|
31
37
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA8F;AAArF,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,wCAA0E;AAAjE,kGAAA,OAAO,OAAA;AAChB,wDAQ2B;AAPzB,kHAAA,eAAe,OAAA;AAQjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA8F;AAArF,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,gEAAiG;AAAxF,yHAAA,kBAAkB,OAAA;AAC3B,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,wCAA0E;AAAjE,kGAAA,OAAO,OAAA;AAChB,wDAQ2B;AAPzB,kHAAA,eAAe,OAAA;AAQjB,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,0CAAgG;AAAvF,oGAAA,QAAQ,OAAA;AACjB,8BAMc;AALZ,wFAAA,EAAE,OAAA;AAMJ,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,kDAAwG;AAA/F,4GAAA,YAAY,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Balance } from "./balance.mjs";
|
|
3
3
|
export { Banks, } from "./banks.mjs";
|
|
4
|
+
export { BeneficiaryPayouts } from "./beneficiary-payouts.mjs";
|
|
4
5
|
export { Capabilities } from "./capabilities.mjs";
|
|
5
6
|
export { Charges } from "./charges.mjs";
|
|
6
7
|
export { Checkoutsession, } from "./checkoutsession.mjs";
|
|
7
8
|
export { Customers, } from "./customers.mjs";
|
|
9
|
+
export { Deposits } from "./deposits.mjs";
|
|
10
|
+
export { Fx, } from "./fx.mjs";
|
|
8
11
|
export { Mandates, } from "./mandates.mjs";
|
|
9
12
|
export { Orders, } from "./orders.mjs";
|
|
10
13
|
export { Payouts, } from "./payouts.mjs";
|
|
11
14
|
export { Refunds, } from "./refunds.mjs";
|
|
12
|
-
export {
|
|
15
|
+
export { Returns, } from "./returns.mjs";
|
|
13
16
|
export { Subaccounts, } from "./subaccounts.mjs";
|
|
14
|
-
export {
|
|
17
|
+
export { Transactions } from "./transactions.mjs";
|
|
15
18
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,YAAY,EAAkE;OAChF,EAAE,OAAO,EAAwC;OACjD,EACL,eAAe,GAOhB;OACM,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,kBAAkB,EAAwC;OAC5D,EAAE,YAAY,EAAkE;OAChF,EAAE,OAAO,EAAwC;OACjD,EACL,eAAe,GAOhB;OACM,EACL,SAAS,GAOV;OACM,EAAE,QAAQ,EAA4D;OACtE,EACL,EAAE,GAKH;OACM,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GAOP;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAKZ;OACM,EAAE,YAAY,EAA4D"}
|
package/resources/mandates.d.ts
CHANGED
|
@@ -4,31 +4,28 @@ export declare class Mandates extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves a direct debit mandate with mandate id.
|
|
6
6
|
*/
|
|
7
|
-
retrieve(body: MandateRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
7
|
+
retrieve(body: MandateRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Mandate>;
|
|
8
8
|
/**
|
|
9
9
|
* Returns a Direct Debit Mandate when a valid mandate referenceId is given.
|
|
10
10
|
*/
|
|
11
|
-
lookup(body: MandateLookupParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
11
|
+
lookup(body: MandateLookupParams, options?: Core.RequestOptions): Core.APIPromise<MandateLookupResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* Revokes a Direct Debit Mandate with a valid mandate id.
|
|
14
14
|
*/
|
|
15
15
|
revoke(body: MandateRevokeParams, options?: Core.RequestOptions): Core.APIPromise<MandateRevokeResponse>;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface Mandate {
|
|
18
18
|
id: string;
|
|
19
|
-
creditor:
|
|
20
|
-
debtor:
|
|
19
|
+
creditor: Mandate.Creditor;
|
|
20
|
+
debtor: Mandate.Debtor;
|
|
21
21
|
reference: string;
|
|
22
22
|
referenceId: string;
|
|
23
|
-
signature:
|
|
23
|
+
signature: Mandate.Signature;
|
|
24
24
|
status: 'pending' | 'active' | 'inactive';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* Required if status is inactive
|
|
28
|
-
*/
|
|
29
|
-
revokedAt?: string;
|
|
25
|
+
revokedAt?: unknown;
|
|
26
|
+
userNotificationEmail?: string;
|
|
30
27
|
}
|
|
31
|
-
export declare namespace
|
|
28
|
+
export declare namespace Mandate {
|
|
32
29
|
interface Creditor {
|
|
33
30
|
id: string;
|
|
34
31
|
address: Creditor.Address;
|
|
@@ -47,9 +44,6 @@ export declare namespace MandateResponse {
|
|
|
47
44
|
}
|
|
48
45
|
namespace Debtor {
|
|
49
46
|
interface Account {
|
|
50
|
-
/**
|
|
51
|
-
* The name of the account holder.
|
|
52
|
-
*/
|
|
53
47
|
accountHolderName: string;
|
|
54
48
|
iban: string;
|
|
55
49
|
bic?: string;
|
|
@@ -58,10 +52,54 @@ export declare namespace MandateResponse {
|
|
|
58
52
|
interface Signature {
|
|
59
53
|
token: string;
|
|
60
54
|
ip: string;
|
|
61
|
-
signedAt:
|
|
55
|
+
signedAt: unknown;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export interface MandateLookupResponse {
|
|
59
|
+
id: string;
|
|
60
|
+
creditor: MandateLookupResponse.Creditor;
|
|
61
|
+
debtor: MandateLookupResponse.Debtor;
|
|
62
|
+
reference: string;
|
|
63
|
+
referenceId: string;
|
|
64
|
+
signature: MandateLookupResponse.Signature;
|
|
65
|
+
status: 'pending' | 'active' | 'inactive';
|
|
66
|
+
revokedAt?: unknown;
|
|
67
|
+
userNotificationEmail?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace MandateLookupResponse {
|
|
70
|
+
interface Creditor {
|
|
71
|
+
id: string;
|
|
72
|
+
address: Creditor.Address;
|
|
73
|
+
name: string;
|
|
74
|
+
}
|
|
75
|
+
namespace Creditor {
|
|
76
|
+
interface Address {
|
|
77
|
+
city: string;
|
|
78
|
+
country: string;
|
|
79
|
+
postalCode: string;
|
|
80
|
+
street: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
interface Debtor {
|
|
84
|
+
account: Debtor.Account;
|
|
85
|
+
}
|
|
86
|
+
namespace Debtor {
|
|
87
|
+
interface Account {
|
|
88
|
+
accountHolderName: string;
|
|
89
|
+
iban: string;
|
|
90
|
+
bic?: string;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
interface Signature {
|
|
94
|
+
token: string;
|
|
95
|
+
ip: string;
|
|
96
|
+
signedAt: unknown;
|
|
62
97
|
}
|
|
63
98
|
}
|
|
64
99
|
export interface MandateRevokeResponse {
|
|
100
|
+
/**
|
|
101
|
+
* Indicates whether the mandate was successfully revoked
|
|
102
|
+
*/
|
|
65
103
|
success: boolean;
|
|
66
104
|
}
|
|
67
105
|
export interface MandateRetrieveParams {
|
|
@@ -86,6 +124,6 @@ export interface MandateRevokeParams {
|
|
|
86
124
|
id: string;
|
|
87
125
|
}
|
|
88
126
|
export declare namespace Mandates {
|
|
89
|
-
export { type
|
|
127
|
+
export { type Mandate as Mandate, type MandateLookupResponse as MandateLookupResponse, type MandateRevokeResponse as MandateRevokeResponse, type MandateRetrieveParams as MandateRetrieveParams, type MandateLookupParams as MandateLookupParams, type MandateRevokeParams as MandateRevokeParams, };
|
|
90
128
|
}
|
|
91
129
|
//# sourceMappingURL=mandates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mandates.d.ts","sourceRoot":"","sources":["../src/resources/mandates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"mandates.d.ts","sourceRoot":"","sources":["../src/resources/mandates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IAI9F;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIxG;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAGzG;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;IAE3B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,OAAO,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