@emilgroup/payment-sdk-node 1.21.1-beta.12 → 1.21.1-beta.121
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 +31 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +695 -0
- package/api/bank-transaction-api.ts +59 -48
- package/api/exceeding-credits-api.ts +353 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +180 -17
- package/api/policy-payment-methods-api.ts +357 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +6 -0
- package/base.ts +45 -3
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +48 -63
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +646 -0
- package/dist/api/bank-transaction-api.d.ts +39 -31
- package/dist/api/bank-transaction-api.js +54 -82
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +356 -0
- package/dist/api/health-check-api.js +5 -18
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +42 -45
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +42 -49
- package/dist/api/payment-setup-api.js +8 -25
- package/dist/api/payments-api.d.ts +104 -12
- package/dist/api/payments-api.js +143 -45
- package/dist/api/policy-payment-methods-api.d.ts +207 -0
- package/dist/api/policy-payment-methods-api.js +357 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +34 -43
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +40 -57
- package/dist/api/webhooks-api.js +5 -18
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +56 -27
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/bank-order-class.d.ts +122 -0
- package/dist/models/bank-order-xml-file-class.d.ts +72 -0
- package/dist/models/bank-order-xml-file-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +54 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
- package/dist/models/eis-sepa-debit-dto.js +15 -0
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +28 -1
- package/dist/models/index.js +28 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-policy-payment-methods-response-class.js +15 -0
- package/dist/models/mandate-dto.d.ts +43 -0
- package/dist/models/mandate-dto.js +15 -0
- package/dist/models/mandate-hash-data-dto.d.ts +42 -0
- package/dist/models/mandate-hash-data-dto.js +15 -0
- package/dist/models/mandate-reference-class.d.ts +90 -0
- package/dist/models/mandate-reference-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +86 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +62 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +128 -0
- package/models/bank-order-xml-file-class.ts +78 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +30 -2
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/eis-sepa-debit-dto.ts +61 -0
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +28 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/list-policy-payment-methods-response-class.ts +37 -0
- package/models/mandate-dto.ts +49 -0
- package/models/mandate-hash-data-dto.ts +48 -0
- package/models/mandate-reference-class.ts +96 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +92 -0
- package/models/refund-class.ts +7 -1
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +71 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +4 -4
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
package/dist/base.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export interface LoginClass {
|
|
|
26
26
|
accessToken: string;
|
|
27
27
|
permissions: string;
|
|
28
28
|
}
|
|
29
|
+
export interface SwitchWorkspaceRequest {
|
|
30
|
+
username: string;
|
|
31
|
+
targetWorkspace: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SwitchWorkspaceResponseClass {
|
|
34
|
+
accessToken: string;
|
|
35
|
+
permissions: string;
|
|
36
|
+
}
|
|
29
37
|
export declare enum Environment {
|
|
30
38
|
Production = "https://apiv2.emil.de",
|
|
31
39
|
Test = "https://apiv2-test.emil.de",
|
|
@@ -55,12 +63,13 @@ export declare class BaseAPI {
|
|
|
55
63
|
private username?;
|
|
56
64
|
private password?;
|
|
57
65
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
|
-
initialize(env?: Environment): Promise<void>;
|
|
66
|
+
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
59
67
|
private loadCredentials;
|
|
60
68
|
private readConfigFile;
|
|
61
69
|
private readEnvVariables;
|
|
62
70
|
selectEnvironment(env: Environment): void;
|
|
63
|
-
authorize(username: string, password: string): Promise<void>;
|
|
71
|
+
authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
|
|
72
|
+
switchWorkspace(targetWorkspace: string): Promise<void>;
|
|
64
73
|
refreshTokenInternal(): Promise<string>;
|
|
65
74
|
private extractRefreshToken;
|
|
66
75
|
getConfiguration(): Configuration;
|
package/dist/base.js
CHANGED
|
@@ -54,23 +54,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
54
54
|
}) : function(o, v) {
|
|
55
55
|
o["default"] = v;
|
|
56
56
|
});
|
|
57
|
-
var __importStar = (this && this.__importStar) ||
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return ownKeys(o);
|
|
65
|
-
};
|
|
66
|
-
return function (mod) {
|
|
67
|
-
if (mod && mod.__esModule) return mod;
|
|
68
|
-
var result = {};
|
|
69
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
70
|
-
__setModuleDefault(result, mod);
|
|
71
|
-
return result;
|
|
72
|
-
};
|
|
73
|
-
})();
|
|
57
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
58
|
+
if (mod && mod.__esModule) return mod;
|
|
59
|
+
var result = {};
|
|
60
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
61
|
+
__setModuleDefault(result, mod);
|
|
62
|
+
return result;
|
|
63
|
+
};
|
|
74
64
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
75
65
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
66
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -81,8 +71,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
81
71
|
});
|
|
82
72
|
};
|
|
83
73
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
84
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
85
|
-
return g
|
|
74
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
75
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
86
76
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
87
77
|
function step(op) {
|
|
88
78
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -111,8 +101,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
111
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
112
102
|
};
|
|
113
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
114
|
-
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
115
|
-
exports.resetRetry = resetRetry;
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
116
105
|
var configuration_1 = require("./configuration");
|
|
117
106
|
// Some imports not used depending on template conditions
|
|
118
107
|
// @ts-ignore
|
|
@@ -143,12 +132,13 @@ var Environment;
|
|
|
143
132
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
144
133
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
145
134
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
146
|
-
})(Environment
|
|
135
|
+
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
147
136
|
var _retry_count = 0;
|
|
148
137
|
var _retry = null;
|
|
149
138
|
function resetRetry() {
|
|
150
139
|
_retry_count = 0;
|
|
151
140
|
}
|
|
141
|
+
exports.resetRetry = resetRetry;
|
|
152
142
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
153
143
|
/**
|
|
154
144
|
*
|
|
@@ -172,9 +162,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
172
162
|
}
|
|
173
163
|
this.attachInterceptor(axios);
|
|
174
164
|
}
|
|
175
|
-
BaseAPI.prototype.initialize = function () {
|
|
176
|
-
|
|
177
|
-
|
|
165
|
+
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
166
|
+
if (env === void 0) { env = Environment.Production; }
|
|
167
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
168
|
return __generator(this, function (_a) {
|
|
179
169
|
switch (_a.label) {
|
|
180
170
|
case 0:
|
|
@@ -183,7 +173,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
183
173
|
case 1:
|
|
184
174
|
_a.sent();
|
|
185
175
|
if (!this.username) return [3 /*break*/, 3];
|
|
186
|
-
return [4 /*yield*/, this.authorize(this.username, this.password)];
|
|
176
|
+
return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)];
|
|
187
177
|
case 2:
|
|
188
178
|
_a.sent();
|
|
189
179
|
this.password = null; // to avoid keeping password loaded in memory.
|
|
@@ -253,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
253
243
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
254
244
|
this.configuration.basePath = env;
|
|
255
245
|
};
|
|
256
|
-
BaseAPI.prototype.authorize = function (username, password) {
|
|
246
|
+
BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
|
|
257
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
258
248
|
var options, response, accessToken, refreshToken;
|
|
259
249
|
return __generator(this, function (_a) {
|
|
@@ -277,6 +267,45 @@ var BaseAPI = /** @class */ (function () {
|
|
|
277
267
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
278
268
|
refreshToken = this.extractRefreshToken(response);
|
|
279
269
|
this.configuration.refreshToken = refreshToken;
|
|
270
|
+
if (!targetWorkspace) return [3 /*break*/, 3];
|
|
271
|
+
return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
|
|
272
|
+
case 2:
|
|
273
|
+
_a.sent();
|
|
274
|
+
_a.label = 3;
|
|
275
|
+
case 3: return [2 /*return*/];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+
var options, response, accessToken, refreshToken;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
switch (_a.label) {
|
|
285
|
+
case 0:
|
|
286
|
+
options = {
|
|
287
|
+
method: 'POST',
|
|
288
|
+
url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
|
|
289
|
+
headers: {
|
|
290
|
+
'Content-Type': 'application/json',
|
|
291
|
+
'Authorization': "Bearer ".concat(this.configuration.accessToken),
|
|
292
|
+
'Cookie': this.configuration.refreshToken,
|
|
293
|
+
},
|
|
294
|
+
data: {
|
|
295
|
+
username: this.configuration.username,
|
|
296
|
+
targetWorkspace: targetWorkspace,
|
|
297
|
+
},
|
|
298
|
+
withCredentials: true,
|
|
299
|
+
};
|
|
300
|
+
return [4 /*yield*/, axios_1.default.request(options)];
|
|
301
|
+
case 1:
|
|
302
|
+
response = _a.sent();
|
|
303
|
+
accessToken = response.data.accessToken;
|
|
304
|
+
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
305
|
+
refreshToken = this.extractRefreshToken(response);
|
|
306
|
+
if (refreshToken) {
|
|
307
|
+
this.configuration.refreshToken = refreshToken;
|
|
308
|
+
}
|
|
280
309
|
return [2 /*return*/];
|
|
281
310
|
}
|
|
282
311
|
});
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* Emil Payment Service
|
|
69
69
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
package/dist/common.js
CHANGED
|
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
37
|
-
return g
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BankOrderXmlFileClass } from './bank-order-xml-file-class';
|
|
13
|
+
import { FinancialAccountClass } from './financial-account-class';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BankOrderClass
|
|
18
|
+
*/
|
|
19
|
+
export interface BankOrderClass {
|
|
20
|
+
/**
|
|
21
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof BankOrderClass
|
|
24
|
+
*/
|
|
25
|
+
'id': number;
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the object.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BankOrderClass
|
|
30
|
+
*/
|
|
31
|
+
'code': string;
|
|
32
|
+
/**
|
|
33
|
+
* Bank order type.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BankOrderClass
|
|
36
|
+
*/
|
|
37
|
+
'type': string;
|
|
38
|
+
/**
|
|
39
|
+
* Amount associated with bank order.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof BankOrderClass
|
|
42
|
+
*/
|
|
43
|
+
'amount': number;
|
|
44
|
+
/**
|
|
45
|
+
* Status associated with bank order.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BankOrderClass
|
|
48
|
+
*/
|
|
49
|
+
'status': string;
|
|
50
|
+
/**
|
|
51
|
+
* Number associated with bank order.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof BankOrderClass
|
|
54
|
+
*/
|
|
55
|
+
'orderNumber': string;
|
|
56
|
+
/**
|
|
57
|
+
* Bank order description.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof BankOrderClass
|
|
60
|
+
*/
|
|
61
|
+
'description'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Financial account code associated with the bank order.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof BankOrderClass
|
|
66
|
+
*/
|
|
67
|
+
'financialAccountCode': string;
|
|
68
|
+
/**
|
|
69
|
+
* List of invoice IDs associated with bank order.
|
|
70
|
+
* @type {Array<number>}
|
|
71
|
+
* @memberof BankOrderClass
|
|
72
|
+
*/
|
|
73
|
+
'invoiceIds': Array<number>;
|
|
74
|
+
/**
|
|
75
|
+
* Day of execution of bank order.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof BankOrderClass
|
|
78
|
+
*/
|
|
79
|
+
'executionDate': string;
|
|
80
|
+
/**
|
|
81
|
+
* Latest due date.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof BankOrderClass
|
|
84
|
+
*/
|
|
85
|
+
'dueDate': string;
|
|
86
|
+
/**
|
|
87
|
+
* Time at which the object was created.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof BankOrderClass
|
|
90
|
+
*/
|
|
91
|
+
'createdAt': string;
|
|
92
|
+
/**
|
|
93
|
+
* Time at which the object was updated.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BankOrderClass
|
|
96
|
+
*/
|
|
97
|
+
'updatedAt': string;
|
|
98
|
+
/**
|
|
99
|
+
* Identifier of the user who created the record.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof BankOrderClass
|
|
102
|
+
*/
|
|
103
|
+
'createdBy': string;
|
|
104
|
+
/**
|
|
105
|
+
* Identifier of the user who last updated the record.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof BankOrderClass
|
|
108
|
+
*/
|
|
109
|
+
'updatedBy': string;
|
|
110
|
+
/**
|
|
111
|
+
* The financial account object that this bank order is belongs to
|
|
112
|
+
* @type {FinancialAccountClass}
|
|
113
|
+
* @memberof BankOrderClass
|
|
114
|
+
*/
|
|
115
|
+
'financialAccount'?: FinancialAccountClass;
|
|
116
|
+
/**
|
|
117
|
+
* The XML file associated with this bank order
|
|
118
|
+
* @type {BankOrderXmlFileClass}
|
|
119
|
+
* @memberof BankOrderClass
|
|
120
|
+
*/
|
|
121
|
+
'xmlFile'?: BankOrderXmlFileClass;
|
|
122
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BankOrderXmlFileClass
|
|
16
|
+
*/
|
|
17
|
+
export interface BankOrderXmlFileClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the bank order XML file
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BankOrderXmlFileClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* XML content of the bank order file
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BankOrderXmlFileClass
|
|
28
|
+
*/
|
|
29
|
+
'xmlContent': string;
|
|
30
|
+
/**
|
|
31
|
+
* Original filename of the XML file
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BankOrderXmlFileClass
|
|
34
|
+
*/
|
|
35
|
+
'fileName'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* MIME type of the file
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BankOrderXmlFileClass
|
|
40
|
+
*/
|
|
41
|
+
'mimeType'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Size of the file in bytes
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof BankOrderXmlFileClass
|
|
46
|
+
*/
|
|
47
|
+
'fileSize'?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Timestamp when the record was created
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BankOrderXmlFileClass
|
|
52
|
+
*/
|
|
53
|
+
'createdAt': string;
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp when the record was last updated
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BankOrderXmlFileClass
|
|
58
|
+
*/
|
|
59
|
+
'updatedAt': string;
|
|
60
|
+
/**
|
|
61
|
+
* User ID who created the record
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BankOrderXmlFileClass
|
|
64
|
+
*/
|
|
65
|
+
'createdBy': string;
|
|
66
|
+
/**
|
|
67
|
+
* User ID who last updated the record
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BankOrderXmlFileClass
|
|
70
|
+
*/
|
|
71
|
+
'updatedBy': string;
|
|
72
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BankOrderClass } from './bank-order-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
45
46
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
46
47
|
*/
|
|
47
48
|
'messageReference'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Label of the transaction
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
53
|
+
*/
|
|
54
|
+
'label'?: BankTransactionClassWithoutExpandPropertiesLabelEnum;
|
|
48
55
|
/**
|
|
49
56
|
* Currency of the transaction.
|
|
50
57
|
* @type {string}
|
|
@@ -81,30 +88,18 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
81
88
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
82
89
|
*/
|
|
83
90
|
'metadata'?: object;
|
|
84
|
-
/**
|
|
85
|
-
* The id of the PSP transaction that this bank transaction is linked to
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof BankTransactionClassWithoutExpandProperties
|
|
88
|
-
*/
|
|
89
|
-
'linkedTransactionId'?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The code of the invoice that this bank transaction is linked to
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof BankTransactionClassWithoutExpandProperties
|
|
94
|
-
*/
|
|
95
|
-
'linkedInvoiceCode'?: string;
|
|
96
|
-
/**
|
|
97
|
-
* The identifying invoice number that this bank transaction is linked to
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof BankTransactionClassWithoutExpandProperties
|
|
100
|
-
*/
|
|
101
|
-
'linkedInvoiceNumber'?: string;
|
|
102
91
|
/**
|
|
103
92
|
* Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
|
|
104
93
|
* @type {boolean}
|
|
105
94
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
106
95
|
*/
|
|
107
96
|
'isLinked': boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The linked bank order object
|
|
99
|
+
* @type {BankOrderClass}
|
|
100
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
101
|
+
*/
|
|
102
|
+
'linkedBankOrder'?: BankOrderClass;
|
|
108
103
|
/**
|
|
109
104
|
* The file format of the bank transaction
|
|
110
105
|
* @type {string}
|
|
@@ -130,3 +125,8 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
130
125
|
*/
|
|
131
126
|
'updatedBy': string;
|
|
132
127
|
}
|
|
128
|
+
export declare const BankTransactionClassWithoutExpandPropertiesLabelEnum: {
|
|
129
|
+
readonly Automated: "automated";
|
|
130
|
+
readonly Manual: "manual";
|
|
131
|
+
};
|
|
132
|
+
export type BankTransactionClassWithoutExpandPropertiesLabelEnum = typeof BankTransactionClassWithoutExpandPropertiesLabelEnum[keyof typeof BankTransactionClassWithoutExpandPropertiesLabelEnum];
|
|
@@ -13,3 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = void 0;
|
|
17
|
+
exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = {
|
|
18
|
+
Automated: 'automated',
|
|
19
|
+
Manual: 'manual'
|
|
20
|
+
};
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BankOrderClass } from './bank-order-class';
|
|
13
|
+
import { BankTransactionInvoiceClass } from './bank-transaction-invoice-class';
|
|
12
14
|
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
13
|
-
import { SharedTransactionClass } from './shared-transaction-class';
|
|
14
15
|
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
15
16
|
import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
|
|
16
17
|
/**
|
|
@@ -49,6 +50,12 @@ export interface BankTransactionClass {
|
|
|
49
50
|
* @memberof BankTransactionClass
|
|
50
51
|
*/
|
|
51
52
|
'messageReference'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Label of the transaction
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BankTransactionClass
|
|
57
|
+
*/
|
|
58
|
+
'label'?: BankTransactionClassLabelEnum;
|
|
52
59
|
/**
|
|
53
60
|
* Currency of the transaction.
|
|
54
61
|
* @type {string}
|
|
@@ -85,30 +92,18 @@ export interface BankTransactionClass {
|
|
|
85
92
|
* @memberof BankTransactionClass
|
|
86
93
|
*/
|
|
87
94
|
'metadata'?: object;
|
|
88
|
-
/**
|
|
89
|
-
* The id of the PSP transaction that this bank transaction is linked to
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof BankTransactionClass
|
|
92
|
-
*/
|
|
93
|
-
'linkedTransactionId'?: number;
|
|
94
|
-
/**
|
|
95
|
-
* The code of the invoice that this bank transaction is linked to
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof BankTransactionClass
|
|
98
|
-
*/
|
|
99
|
-
'linkedInvoiceCode'?: string;
|
|
100
|
-
/**
|
|
101
|
-
* The identifying invoice number that this bank transaction is linked to
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof BankTransactionClass
|
|
104
|
-
*/
|
|
105
|
-
'linkedInvoiceNumber'?: string;
|
|
106
95
|
/**
|
|
107
96
|
* Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
|
|
108
97
|
* @type {boolean}
|
|
109
98
|
* @memberof BankTransactionClass
|
|
110
99
|
*/
|
|
111
100
|
'isLinked': boolean;
|
|
101
|
+
/**
|
|
102
|
+
* The bank transaction invoices that this bank transaction is linked to
|
|
103
|
+
* @type {Array<BankTransactionInvoiceClass>}
|
|
104
|
+
* @memberof BankTransactionClass
|
|
105
|
+
*/
|
|
106
|
+
'bankTransactionInvoices'?: Array<BankTransactionInvoiceClass>;
|
|
112
107
|
/**
|
|
113
108
|
* The bank account object that this transaction is belongs to
|
|
114
109
|
* @type {TenantBankAccountClassWithoutExpandProperties}
|
|
@@ -116,11 +111,11 @@ export interface BankTransactionClass {
|
|
|
116
111
|
*/
|
|
117
112
|
'bankAccount'?: TenantBankAccountClassWithoutExpandProperties;
|
|
118
113
|
/**
|
|
119
|
-
* The linked
|
|
120
|
-
* @type {
|
|
114
|
+
* The linked bank order object
|
|
115
|
+
* @type {BankOrderClass}
|
|
121
116
|
* @memberof BankTransactionClass
|
|
122
117
|
*/
|
|
123
|
-
'
|
|
118
|
+
'linkedBankOrder'?: BankOrderClass;
|
|
124
119
|
/**
|
|
125
120
|
* The file format of the bank transaction
|
|
126
121
|
* @type {string}
|
|
@@ -158,3 +153,8 @@ export interface BankTransactionClass {
|
|
|
158
153
|
*/
|
|
159
154
|
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
160
155
|
}
|
|
156
|
+
export declare const BankTransactionClassLabelEnum: {
|
|
157
|
+
readonly Automated: "automated";
|
|
158
|
+
readonly Manual: "manual";
|
|
159
|
+
};
|
|
160
|
+
export type BankTransactionClassLabelEnum = typeof BankTransactionClassLabelEnum[keyof typeof BankTransactionClassLabelEnum];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BankTransactionInvoiceClass
|
|
16
|
+
*/
|
|
17
|
+
export interface BankTransactionInvoiceClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BankTransactionInvoiceClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BankTransactionInvoiceClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* Bank transaction id
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BankTransactionInvoiceClass
|
|
34
|
+
*/
|
|
35
|
+
'bankTransactionId': number;
|
|
36
|
+
/**
|
|
37
|
+
* Invoice code of the bank transaction invoice
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BankTransactionInvoiceClass
|
|
40
|
+
*/
|
|
41
|
+
'invoiceCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* Invoice number of the bank transaction invoice
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BankTransactionInvoiceClass
|
|
46
|
+
*/
|
|
47
|
+
'invoiceNumber': string;
|
|
48
|
+
/**
|
|
49
|
+
* Linked transaction id of the bank transaction invoice
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof BankTransactionInvoiceClass
|
|
52
|
+
*/
|
|
53
|
+
'linkedTransactionId': number;
|
|
54
|
+
/**
|
|
55
|
+
* Time at which the object was created.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BankTransactionInvoiceClass
|
|
58
|
+
*/
|
|
59
|
+
'createdAt': string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|