@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.1-beta.32
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/.openapi-generator/FILES +5 -15
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +34 -38
- package/api/bank-transaction-api.ts +73 -77
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/payment-methods-api.ts +52 -70
- package/api/payment-reminders-api.ts +63 -49
- package/api/payment-setup-api.ts +16 -8
- package/api/payments-api.ts +52 -70
- package/api/refunds-api.ts +76 -88
- package/api/tenant-bank-account-api.ts +79 -63
- package/api/webhooks-api.ts +16 -12
- package/api.ts +2 -2
- package/base.ts +15 -7
- package/dist/api/bank-accounts-api.d.ts +37 -39
- package/dist/api/bank-accounts-api.js +18 -18
- package/dist/api/bank-transaction-api.d.ts +77 -79
- package/dist/api/bank-transaction-api.js +45 -45
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/payment-methods-api.d.ts +49 -58
- package/dist/api/payment-methods-api.js +32 -42
- package/dist/api/payment-reminders-api.d.ts +55 -46
- package/dist/api/payment-reminders-api.js +40 -34
- package/dist/api/payment-setup-api.d.ts +16 -8
- package/dist/api/payment-setup-api.js +16 -8
- package/dist/api/payments-api.d.ts +49 -58
- package/dist/api/payments-api.js +32 -42
- package/dist/api/refunds-api.d.ts +76 -76
- package/dist/api/refunds-api.js +51 -49
- package/dist/api/tenant-bank-account-api.d.ts +71 -61
- package/dist/api/tenant-bank-account-api.js +51 -45
- package/dist/api/webhooks-api.d.ts +16 -12
- package/dist/api/webhooks-api.js +14 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
- package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/index.d.ts +4 -14
- package/dist/models/index.js +4 -14
- package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
- package/models/create-tenant-bank-account-response-class.ts +4 -4
- package/models/get-tenant-bank-account-response-class.ts +4 -4
- package/models/index.ts +4 -14
- package/models/list-tenant-bank-account-response-class.ts +5 -5
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -73
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class.d.ts +0 -105
- package/dist/models/refund-class.js +0 -29
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -79
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class.ts +0 -115
- package/models/transaction-class.ts +0 -60
- package/models/update-bank-account-response-class.ts +0 -31
- /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
- /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
- /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
- /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
|
@@ -18,9 +18,10 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
* @param {string}
|
|
21
|
+
* This will processes the webhook from external payment service provider.
|
|
22
|
+
* @summary Handle the webhook from PSP
|
|
23
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
24
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
24
25
|
* @param {*} [options] Override http request option.
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
@@ -32,9 +33,10 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
32
33
|
*/
|
|
33
34
|
export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
37
|
-
* @param {string}
|
|
36
|
+
* This will processes the webhook from external payment service provider.
|
|
37
|
+
* @summary Handle the webhook from PSP
|
|
38
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
39
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
38
40
|
* @param {*} [options] Override http request option.
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
@@ -46,9 +48,10 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
46
48
|
*/
|
|
47
49
|
export declare const WebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
48
50
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @
|
|
51
|
-
* @param {string}
|
|
51
|
+
* This will processes the webhook from external payment service provider.
|
|
52
|
+
* @summary Handle the webhook from PSP
|
|
53
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
54
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
52
55
|
* @param {*} [options] Override http request option.
|
|
53
56
|
* @throws {RequiredError}
|
|
54
57
|
*/
|
|
@@ -61,13 +64,13 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
61
64
|
*/
|
|
62
65
|
export interface WebhooksApiPostWebhookRequest {
|
|
63
66
|
/**
|
|
64
|
-
*
|
|
67
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
65
68
|
* @type {string}
|
|
66
69
|
* @memberof WebhooksApiPostWebhook
|
|
67
70
|
*/
|
|
68
71
|
readonly pspType: string;
|
|
69
72
|
/**
|
|
70
|
-
*
|
|
73
|
+
* Unique slug identifier representing a tenant.
|
|
71
74
|
* @type {string}
|
|
72
75
|
* @memberof WebhooksApiPostWebhook
|
|
73
76
|
*/
|
|
@@ -81,7 +84,8 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
81
84
|
*/
|
|
82
85
|
export declare class WebhooksApi extends BaseAPI {
|
|
83
86
|
/**
|
|
84
|
-
*
|
|
87
|
+
* This will processes the webhook from external payment service provider.
|
|
88
|
+
* @summary Handle the webhook from PSP
|
|
85
89
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
86
90
|
* @param {*} [options] Override http request option.
|
|
87
91
|
* @throws {RequiredError}
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -93,9 +93,10 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @
|
|
98
|
-
* @param {string}
|
|
96
|
+
* This will processes the webhook from external payment service provider.
|
|
97
|
+
* @summary Handle the webhook from PSP
|
|
98
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
99
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
99
100
|
* @param {*} [options] Override http request option.
|
|
100
101
|
* @throws {RequiredError}
|
|
101
102
|
*/
|
|
@@ -140,9 +141,10 @@ var WebhooksApiFp = function (configuration) {
|
|
|
140
141
|
var localVarAxiosParamCreator = (0, exports.WebhooksApiAxiosParamCreator)(configuration);
|
|
141
142
|
return {
|
|
142
143
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @
|
|
145
|
-
* @param {string}
|
|
144
|
+
* This will processes the webhook from external payment service provider.
|
|
145
|
+
* @summary Handle the webhook from PSP
|
|
146
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
147
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
146
148
|
* @param {*} [options] Override http request option.
|
|
147
149
|
* @throws {RequiredError}
|
|
148
150
|
*/
|
|
@@ -170,9 +172,10 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
170
172
|
var localVarFp = (0, exports.WebhooksApiFp)(configuration);
|
|
171
173
|
return {
|
|
172
174
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @
|
|
175
|
-
* @param {string}
|
|
175
|
+
* This will processes the webhook from external payment service provider.
|
|
176
|
+
* @summary Handle the webhook from PSP
|
|
177
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
178
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
176
179
|
* @param {*} [options] Override http request option.
|
|
177
180
|
* @throws {RequiredError}
|
|
178
181
|
*/
|
|
@@ -194,7 +197,8 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
194
197
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
195
198
|
}
|
|
196
199
|
/**
|
|
197
|
-
*
|
|
200
|
+
* This will processes the webhook from external payment service provider.
|
|
201
|
+
* @summary Handle the webhook from PSP
|
|
198
202
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
199
203
|
* @param {*} [options] Override http request option.
|
|
200
204
|
* @throws {RequiredError}
|
package/dist/api.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/bank-accounts-api';
|
|
13
13
|
export * from './api/bank-transaction-api';
|
|
14
|
-
export * from './api/
|
|
14
|
+
export * from './api/health-check-api';
|
|
15
15
|
export * from './api/payment-methods-api';
|
|
16
16
|
export * from './api/payment-reminders-api';
|
|
17
17
|
export * from './api/payment-setup-api';
|
package/dist/api.js
CHANGED
|
@@ -29,7 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/bank-accounts-api"), exports);
|
|
31
31
|
__exportStar(require("./api/bank-transaction-api"), exports);
|
|
32
|
-
__exportStar(require("./api/
|
|
32
|
+
__exportStar(require("./api/health-check-api"), exports);
|
|
33
33
|
__exportStar(require("./api/payment-methods-api"), exports);
|
|
34
34
|
__exportStar(require("./api/payment-reminders-api"), exports);
|
|
35
35
|
__exportStar(require("./api/payment-setup-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -52,11 +52,13 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
+
private permissions;
|
|
55
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
57
|
selectEnvironment(env: Environment): void;
|
|
57
58
|
selectBasePath(path: string): void;
|
|
59
|
+
getPermissions(): Array<string>;
|
|
58
60
|
authorize(username: string, password: string): Promise<void>;
|
|
59
|
-
refreshTokenInternal(): Promise<
|
|
61
|
+
refreshTokenInternal(): Promise<LoginClass>;
|
|
60
62
|
private storeTokenData;
|
|
61
63
|
loadTokenData(): void;
|
|
62
64
|
cleanTokenData(): void;
|
package/dist/base.js
CHANGED
|
@@ -121,6 +121,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
121
121
|
if (axios === void 0) { axios = axios_1.default; }
|
|
122
122
|
this.basePath = basePath;
|
|
123
123
|
this.axios = axios;
|
|
124
|
+
this.permissions = [];
|
|
124
125
|
this.loadTokenData();
|
|
125
126
|
if (configuration) {
|
|
126
127
|
this.configuration = configuration;
|
|
@@ -143,11 +144,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
143
144
|
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
145
|
this.configuration.basePath = path;
|
|
145
146
|
};
|
|
147
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
148
|
+
return this.permissions;
|
|
149
|
+
};
|
|
146
150
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
147
151
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var options, response, accessToken;
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
152
|
+
var options, response, _a, accessToken, permissions;
|
|
153
|
+
return __generator(this, function (_b) {
|
|
154
|
+
switch (_b.label) {
|
|
151
155
|
case 0:
|
|
152
156
|
options = {
|
|
153
157
|
method: 'POST',
|
|
@@ -161,12 +165,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
165
|
};
|
|
162
166
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
163
167
|
case 1:
|
|
164
|
-
response =
|
|
165
|
-
|
|
168
|
+
response = _b.sent();
|
|
169
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
166
170
|
this.configuration.username = username;
|
|
167
171
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
168
172
|
this.tokenData.username = username;
|
|
169
173
|
this.tokenData.accessToken = accessToken;
|
|
174
|
+
this.permissions = permissions;
|
|
170
175
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
171
176
|
return [2 /*return*/];
|
|
172
177
|
}
|
|
@@ -175,13 +180,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
175
180
|
};
|
|
176
181
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
177
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
-
var username, options,
|
|
183
|
+
var username, options, response;
|
|
179
184
|
return __generator(this, function (_a) {
|
|
180
185
|
switch (_a.label) {
|
|
181
186
|
case 0:
|
|
182
187
|
username = this.configuration.username;
|
|
183
188
|
if (!username) {
|
|
184
|
-
|
|
189
|
+
throw new Error('Failed to refresh token.');
|
|
185
190
|
}
|
|
186
191
|
options = {
|
|
187
192
|
method: 'POST',
|
|
@@ -194,8 +199,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
194
199
|
};
|
|
195
200
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
196
201
|
case 1:
|
|
197
|
-
|
|
198
|
-
return [2 /*return*/,
|
|
202
|
+
response = _a.sent();
|
|
203
|
+
return [2 /*return*/, response.data];
|
|
199
204
|
}
|
|
200
205
|
});
|
|
201
206
|
});
|
|
@@ -221,22 +226,23 @@ var BaseAPI = /** @class */ (function () {
|
|
|
221
226
|
axios.interceptors.response.use(function (res) {
|
|
222
227
|
return res;
|
|
223
228
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
225
|
-
return __generator(this, function (
|
|
226
|
-
switch (
|
|
229
|
+
var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
|
|
230
|
+
return __generator(this, function (_c) {
|
|
231
|
+
switch (_c.label) {
|
|
227
232
|
case 0:
|
|
228
233
|
originalConfig = err.config;
|
|
229
234
|
if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
|
|
230
235
|
if (!((err.response.status === 401 || err.response.status === 403)
|
|
231
236
|
&& !originalConfig._retry)) return [3 /*break*/, 4];
|
|
232
237
|
originalConfig._retry = true;
|
|
233
|
-
|
|
238
|
+
_c.label = 1;
|
|
234
239
|
case 1:
|
|
235
|
-
|
|
240
|
+
_c.trys.push([1, 3, , 4]);
|
|
236
241
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
237
242
|
case 2:
|
|
238
|
-
|
|
243
|
+
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
239
244
|
accessToken = "Bearer ".concat(tokenString);
|
|
245
|
+
this.permissions = permissions;
|
|
240
246
|
delete originalConfig.headers['Authorization'];
|
|
241
247
|
originalConfig.headers['Authorization'] = accessToken;
|
|
242
248
|
this.configuration.accessToken = accessToken;
|
|
@@ -244,7 +250,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
244
250
|
this.storeTokenData(this.tokenData);
|
|
245
251
|
return [2 /*return*/, axios(originalConfig)];
|
|
246
252
|
case 3:
|
|
247
|
-
_error_1 =
|
|
253
|
+
_error_1 = _c.sent();
|
|
248
254
|
if (_error_1.response && _error_1.response.data) {
|
|
249
255
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
250
256
|
}
|
|
@@ -255,13 +261,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
255
261
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
256
262
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
257
263
|
_retry_count++;
|
|
258
|
-
|
|
264
|
+
_c.label = 6;
|
|
259
265
|
case 6:
|
|
260
|
-
|
|
266
|
+
_c.trys.push([6, 8, , 9]);
|
|
261
267
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
262
268
|
case 7:
|
|
263
|
-
|
|
269
|
+
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
264
270
|
accessToken = "Bearer ".concat(tokenString);
|
|
271
|
+
this.permissions = permissions;
|
|
265
272
|
_retry = true;
|
|
266
273
|
originalConfig.headers['Authorization'] = accessToken;
|
|
267
274
|
this.configuration.accessToken = accessToken;
|
|
@@ -269,7 +276,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
276
|
this.storeTokenData(this.tokenData);
|
|
270
277
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
271
278
|
case 8:
|
|
272
|
-
_error_2 =
|
|
279
|
+
_error_2 = _c.sent();
|
|
273
280
|
if (_error_2.response && _error_2.response.data) {
|
|
274
281
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
275
282
|
}
|
|
@@ -9,120 +9,106 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { TenantBankAccountResponseClass } from './tenant-bank-account-response-class';
|
|
13
|
-
import { TransactionClass } from './transaction-class';
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
16
14
|
* @export
|
|
17
|
-
* @interface
|
|
15
|
+
* @interface BankTransactionClassWithoutExpandProperties
|
|
18
16
|
*/
|
|
19
|
-
export interface
|
|
17
|
+
export interface BankTransactionClassWithoutExpandProperties {
|
|
20
18
|
/**
|
|
21
19
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
22
20
|
* @type {number}
|
|
23
|
-
* @memberof
|
|
21
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
24
22
|
*/
|
|
25
23
|
'id': number;
|
|
26
24
|
/**
|
|
27
25
|
* Unique identifier for the object.
|
|
28
26
|
* @type {string}
|
|
29
|
-
* @memberof
|
|
27
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
30
28
|
*/
|
|
31
29
|
'code': string;
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
31
|
+
* bank account
|
|
34
32
|
* @type {number}
|
|
35
|
-
* @memberof
|
|
33
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
36
34
|
*/
|
|
37
35
|
'bankAccountId': number;
|
|
38
36
|
/**
|
|
39
37
|
* Account number of the bank account
|
|
40
38
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
39
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
42
40
|
*/
|
|
43
41
|
'bankAccountNumber': string;
|
|
44
42
|
/**
|
|
45
43
|
* Reference number derived from the MT940 swift Insturctions
|
|
46
44
|
* @type {string}
|
|
47
|
-
* @memberof
|
|
45
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
48
46
|
*/
|
|
49
47
|
'swiftMessageReference'?: string;
|
|
50
48
|
/**
|
|
51
49
|
* Currency of the transaction.
|
|
52
50
|
* @type {string}
|
|
53
|
-
* @memberof
|
|
51
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
54
52
|
*/
|
|
55
53
|
'currency': string;
|
|
56
54
|
/**
|
|
57
55
|
* Amount of the transaction - can be negative or positive
|
|
58
56
|
* @type {string}
|
|
59
|
-
* @memberof
|
|
57
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
60
58
|
*/
|
|
61
59
|
'amount': string;
|
|
62
60
|
/**
|
|
63
61
|
* Date on which the transaction was executed. Also known as Value Date
|
|
64
62
|
* @type {string}
|
|
65
|
-
* @memberof
|
|
63
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
66
64
|
*/
|
|
67
65
|
'transactionDate': string;
|
|
68
66
|
/**
|
|
69
67
|
* Date on which the transaction entry was made in the system. Also known as Booking Date
|
|
70
68
|
* @type {string}
|
|
71
|
-
* @memberof
|
|
69
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
72
70
|
*/
|
|
73
71
|
'entryDate': string;
|
|
74
72
|
/**
|
|
75
73
|
* Optional reference number that can be given by the customer or bank to uniquely identify a transaction. If no transaction reference is provided the value is set to \'NONREF\'
|
|
76
74
|
* @type {string}
|
|
77
|
-
* @memberof
|
|
75
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
78
76
|
*/
|
|
79
77
|
'transactionReference': string;
|
|
80
78
|
/**
|
|
81
79
|
* Optional metadata that can be provided by the customer or bank to give more context to the transaction
|
|
82
80
|
* @type {object}
|
|
83
|
-
* @memberof
|
|
81
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
84
82
|
*/
|
|
85
83
|
'metadata'?: object;
|
|
86
84
|
/**
|
|
87
85
|
* The id of the PSP transaction that this bank transaction is linked to
|
|
88
86
|
* @type {number}
|
|
89
|
-
* @memberof
|
|
87
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
90
88
|
*/
|
|
91
|
-
'linkedTransactionId'
|
|
89
|
+
'linkedTransactionId'?: number;
|
|
92
90
|
/**
|
|
93
91
|
* The code of the invoice that this bank transaction is linked to
|
|
94
92
|
* @type {string}
|
|
95
|
-
* @memberof
|
|
93
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
96
94
|
*/
|
|
97
95
|
'linkedInvoiceCode'?: string;
|
|
98
96
|
/**
|
|
99
97
|
* The identifying invoice number that this bank transaction is linked to
|
|
100
98
|
* @type {string}
|
|
101
|
-
* @memberof
|
|
99
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
102
100
|
*/
|
|
103
101
|
'linkedInvoiceNumber'?: string;
|
|
104
102
|
/**
|
|
105
103
|
* Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
|
|
106
104
|
* @type {boolean}
|
|
107
|
-
* @memberof
|
|
105
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
108
106
|
*/
|
|
109
107
|
'isLinked': boolean;
|
|
110
|
-
/**
|
|
111
|
-
* The bank account object that this transaction is belongs to
|
|
112
|
-
* @type {TenantBankAccountResponseClass}
|
|
113
|
-
* @memberof BankTransactionResponseClass
|
|
114
|
-
*/
|
|
115
|
-
'bankAccount': TenantBankAccountResponseClass;
|
|
116
|
-
/**
|
|
117
|
-
* The linked transaction object
|
|
118
|
-
* @type {TransactionClass}
|
|
119
|
-
* @memberof BankTransactionResponseClass
|
|
120
|
-
*/
|
|
121
|
-
'linkedTransaction': TransactionClass;
|
|
122
108
|
/**
|
|
123
109
|
* Time at which the object was created.
|
|
124
110
|
* @type {string}
|
|
125
|
-
* @memberof
|
|
111
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
126
112
|
*/
|
|
127
113
|
'createdAt': string;
|
|
128
114
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,9 +17,9 @@ import { TenantBankAccountResponseClass } from './tenant-bank-account-response-c
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateTenantBankAccountResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* Tenant
|
|
21
|
-
* @type {
|
|
20
|
+
* Tenant bank account
|
|
21
|
+
* @type {TenantBankAccountClassWithoutExpandProperties}
|
|
22
22
|
* @memberof CreateTenantBankAccountResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'bankAccount':
|
|
24
|
+
'bankAccount': TenantBankAccountClassWithoutExpandProperties;
|
|
25
25
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { TenantBankAccountClass } from './tenant-bank-account-class';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,9 +17,9 @@ import { TenantBankAccountResponseClass } from './tenant-bank-account-response-c
|
|
|
17
17
|
*/
|
|
18
18
|
export interface GetTenantBankAccountResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* Tenant
|
|
21
|
-
* @type {
|
|
20
|
+
* Tenant bank account
|
|
21
|
+
* @type {TenantBankAccountClass}
|
|
22
22
|
* @memberof GetTenantBankAccountResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'bankAccount':
|
|
24
|
+
'bankAccount': TenantBankAccountClass;
|
|
25
25
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
|
-
export * from './bank-
|
|
2
|
-
export * from './bank-transaction-response-class';
|
|
1
|
+
export * from './bank-transaction-class-without-expand-properties';
|
|
3
2
|
export * from './create-bank-account-request-dto';
|
|
4
3
|
export * from './create-payment-reminder-request-dto';
|
|
5
4
|
export * from './create-payment-request-dto';
|
|
6
5
|
export * from './create-refund-request-dto';
|
|
7
|
-
export * from './create-refund-response-class';
|
|
8
6
|
export * from './create-tenant-bank-account-request-dto';
|
|
9
7
|
export * from './create-tenant-bank-account-response-class';
|
|
10
8
|
export * from './deactivate-payment-reminder-request-dto';
|
|
11
|
-
export * from './get-bank-account-response-class';
|
|
12
|
-
export * from './get-bank-transactions-response-class';
|
|
13
|
-
export * from './get-refund-response-class';
|
|
14
|
-
export * from './get-request-dto';
|
|
15
9
|
export * from './get-tenant-bank-account-response-class';
|
|
16
10
|
export * from './inline-response200';
|
|
17
11
|
export * from './inline-response503';
|
|
18
12
|
export * from './link-bank-transaction-request-dto-rest';
|
|
19
|
-
export * from './list-bank-transactions-response-class';
|
|
20
|
-
export * from './list-refunds-response-class';
|
|
21
13
|
export * from './list-tenant-bank-account-response-class';
|
|
22
|
-
export * from './primary-bank-account-response-class';
|
|
23
|
-
export * from './refund-class';
|
|
24
14
|
export * from './set-primary-bank-account-request-dto-rest';
|
|
25
|
-
export * from './tenant-bank-account-
|
|
26
|
-
export * from './
|
|
15
|
+
export * from './tenant-bank-account-class';
|
|
16
|
+
export * from './tenant-bank-account-class-without-expand-properties';
|
|
27
17
|
export * from './unlink-bank-transaction-request-dto-rest';
|
|
28
18
|
export * from './update-bank-account-request-dto';
|
|
29
19
|
export * from './update-bank-account-request-dto-rest';
|
|
30
|
-
export * from './update-bank-account-response-class';
|
|
20
|
+
export * from './update-tenant-bank-account-response-class';
|
|
31
21
|
export * from './update-tenant-bank-account-rest-request-dto';
|
|
32
22
|
export * from './validate-pspconfig-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -14,35 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./bank-
|
|
18
|
-
__exportStar(require("./bank-transaction-response-class"), exports);
|
|
17
|
+
__exportStar(require("./bank-transaction-class-without-expand-properties"), exports);
|
|
19
18
|
__exportStar(require("./create-bank-account-request-dto"), exports);
|
|
20
19
|
__exportStar(require("./create-payment-reminder-request-dto"), exports);
|
|
21
20
|
__exportStar(require("./create-payment-request-dto"), exports);
|
|
22
21
|
__exportStar(require("./create-refund-request-dto"), exports);
|
|
23
|
-
__exportStar(require("./create-refund-response-class"), exports);
|
|
24
22
|
__exportStar(require("./create-tenant-bank-account-request-dto"), exports);
|
|
25
23
|
__exportStar(require("./create-tenant-bank-account-response-class"), exports);
|
|
26
24
|
__exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
|
|
27
|
-
__exportStar(require("./get-bank-account-response-class"), exports);
|
|
28
|
-
__exportStar(require("./get-bank-transactions-response-class"), exports);
|
|
29
|
-
__exportStar(require("./get-refund-response-class"), exports);
|
|
30
|
-
__exportStar(require("./get-request-dto"), exports);
|
|
31
25
|
__exportStar(require("./get-tenant-bank-account-response-class"), exports);
|
|
32
26
|
__exportStar(require("./inline-response200"), exports);
|
|
33
27
|
__exportStar(require("./inline-response503"), exports);
|
|
34
28
|
__exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
|
|
35
|
-
__exportStar(require("./list-bank-transactions-response-class"), exports);
|
|
36
|
-
__exportStar(require("./list-refunds-response-class"), exports);
|
|
37
29
|
__exportStar(require("./list-tenant-bank-account-response-class"), exports);
|
|
38
|
-
__exportStar(require("./primary-bank-account-response-class"), exports);
|
|
39
|
-
__exportStar(require("./refund-class"), exports);
|
|
40
30
|
__exportStar(require("./set-primary-bank-account-request-dto-rest"), exports);
|
|
41
|
-
__exportStar(require("./tenant-bank-account-
|
|
42
|
-
__exportStar(require("./
|
|
31
|
+
__exportStar(require("./tenant-bank-account-class"), exports);
|
|
32
|
+
__exportStar(require("./tenant-bank-account-class-without-expand-properties"), exports);
|
|
43
33
|
__exportStar(require("./unlink-bank-transaction-request-dto-rest"), exports);
|
|
44
34
|
__exportStar(require("./update-bank-account-request-dto"), exports);
|
|
45
35
|
__exportStar(require("./update-bank-account-request-dto-rest"), exports);
|
|
46
|
-
__exportStar(require("./update-bank-account-response-class"), exports);
|
|
36
|
+
__exportStar(require("./update-tenant-bank-account-response-class"), exports);
|
|
47
37
|
__exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
|
|
48
38
|
__exportStar(require("./validate-pspconfig-request-dto"), exports);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { TenantBankAccountClass } from './tenant-bank-account-class';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,13 +17,13 @@ import { TenantBankAccountResponseClass } from './tenant-bank-account-response-c
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListTenantBankAccountResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* The list of
|
|
21
|
-
* @type {Array<
|
|
20
|
+
* The list of bank accounts.
|
|
21
|
+
* @type {Array<TenantBankAccountClass>}
|
|
22
22
|
* @memberof ListTenantBankAccountResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'items': Array<
|
|
24
|
+
'items': Array<TenantBankAccountClass>;
|
|
25
25
|
/**
|
|
26
|
-
* Next page token
|
|
26
|
+
* Next page token.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ListTenantBankAccountResponseClass
|
|
29
29
|
*/
|
|
@@ -12,55 +12,55 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface TenantBankAccountClassWithoutExpandProperties
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface TenantBankAccountClassWithoutExpandProperties {
|
|
18
18
|
/**
|
|
19
19
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
20
|
* @type {number}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
22
22
|
*/
|
|
23
23
|
'id': number;
|
|
24
24
|
/**
|
|
25
25
|
* Unique identifier for the object.
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
28
28
|
*/
|
|
29
29
|
'code': string;
|
|
30
30
|
/**
|
|
31
31
|
* IBAN number for the bank account
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
34
34
|
*/
|
|
35
35
|
'iban': string;
|
|
36
36
|
/**
|
|
37
37
|
* Name of the account given by the user - to quickly identify the account
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
40
40
|
*/
|
|
41
41
|
'accountName': string;
|
|
42
42
|
/**
|
|
43
43
|
* Name of the bank the account belongs to
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
46
46
|
*/
|
|
47
47
|
'bankName': string;
|
|
48
48
|
/**
|
|
49
49
|
* Number of the booking account this bank account belongs to
|
|
50
50
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
52
52
|
*/
|
|
53
53
|
'bookingAccount': string;
|
|
54
54
|
/**
|
|
55
55
|
* Time at which the object was created.
|
|
56
56
|
* @type {string}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
58
58
|
*/
|
|
59
59
|
'createdAt': string;
|
|
60
60
|
/**
|
|
61
61
|
* Time at which the object was updated.
|
|
62
62
|
* @type {string}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof TenantBankAccountClassWithoutExpandProperties
|
|
64
64
|
*/
|
|
65
65
|
'updatedAt': string;
|
|
66
66
|
}
|