@emilgroup/payment-sdk-node 1.0.1 → 1.3.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/.openapi-generator/FILES +5 -0
- package/README.md +3 -3
- package/api/bank-accounts-api.ts +1 -1
- package/api/payment-methods-api.ts +1 -1
- package/api/payment-reminders-api.ts +560 -0
- package/api/payment-service-providers-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +3 -6
- package/base.ts +27 -36
- package/common.ts +62 -1
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +1 -1
- package/dist/api/bank-accounts-api.js +2 -2
- package/dist/api/payment-methods-api.d.ts +1 -1
- package/dist/api/payment-methods-api.js +2 -2
- package/dist/api/payment-reminders-api.d.ts +317 -0
- package/dist/api/payment-reminders-api.js +542 -0
- package/dist/api/payment-service-providers-api.d.ts +1 -1
- package/dist/api/payment-service-providers-api.js +2 -2
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +2 -2
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/payments-api.js +2 -2
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +2 -2
- package/dist/api.d.ts +2 -5
- package/dist/api.js +2 -7
- package/dist/base.d.ts +5 -5
- package/dist/base.js +24 -25
- package/dist/common.d.ts +27 -1
- package/dist/common.js +36 -3
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.js +1 -1
- package/dist/models/complete-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/complete-payment-setup-request-dto.js +1 -1
- package/dist/models/complete-payment-setup-response-class.d.ts +1 -1
- package/dist/models/complete-payment-setup-response-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/complete-stripe-payment-setup-request-dto.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-method-response-class.d.ts +1 -1
- package/dist/models/create-payment-method-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +63 -0
- package/dist/models/create-payment-reminder-request-dto.js +24 -0
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-payment-response-class.d.ts +1 -1
- package/dist/models/create-payment-response-class.js +1 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +2 -2
- package/dist/models/create-psp-payment-method-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
- package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
- package/dist/models/get-payment-method-response-class.d.ts +1 -1
- package/dist/models/get-payment-method-response-class.js +1 -1
- package/dist/models/get-payment-response-class.d.ts +1 -1
- package/dist/models/get-payment-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.js +1 -1
- package/dist/models/initiate-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/initiate-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-payment-setup-response-class.js +1 -1
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-stripe-payment-setup-response-class.js +1 -1
- package/dist/models/list-payment-methods-response-class.d.ts +1 -1
- package/dist/models/list-payment-methods-response-class.js +1 -1
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +1 -1
- package/dist/models/list-payments-response-class.js +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-class.js +1 -1
- package/dist/models/payment-method-class.d.ts +1 -1
- package/dist/models/payment-method-class.js +1 -1
- package/dist/models/payment-reminder-class.d.ts +108 -0
- package/dist/models/payment-reminder-class.js +32 -0
- package/dist/models/sepa-direct-dto.d.ts +1 -1
- package/dist/models/sepa-direct-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-response-class.d.ts +1 -1
- package/dist/models/validate-pspconfig-response-class.js +1 -1
- package/index.ts +2 -2
- package/models/complete-braintree-payment-setup-request-dto.ts +1 -1
- package/models/complete-payment-setup-request-dto.ts +1 -1
- package/models/complete-payment-setup-response-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +9 -3
- package/models/create-bank-account-request-dto.ts +1 -1
- package/models/create-payment-method-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +72 -0
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-payment-response-class.ts +1 -1
- package/models/create-psp-payment-method-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +39 -0
- package/models/get-payment-method-response-class.ts +1 -1
- package/models/get-payment-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +4 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +9 -3
- package/models/initiate-braintree-payment-setup-response-class.ts +1 -1
- package/models/initiate-payment-setup-request-dto.ts +1 -1
- package/models/initiate-payment-setup-response-class.ts +1 -1
- package/models/initiate-stripe-payment-setup-request-dto.ts +9 -3
- package/models/initiate-stripe-payment-setup-response-class.ts +1 -1
- package/models/list-payment-methods-response-class.ts +1 -1
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-method-class.ts +1 -1
- package/models/payment-reminder-class.ts +118 -0
- package/models/sepa-direct-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/models/validate-pspconfig-response-class.ts +1 -1
- package/package.json +2 -3
package/dist/api/webhooks-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
package/dist/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -11,11 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/bank-accounts-api';
|
|
13
13
|
export * from './api/payment-methods-api';
|
|
14
|
+
export * from './api/payment-reminders-api';
|
|
14
15
|
export * from './api/payment-service-providers-api';
|
|
15
16
|
export * from './api/payment-setup-api';
|
|
16
17
|
export * from './api/payments-api';
|
|
17
18
|
export * from './api/webhooks-api';
|
|
18
|
-
export declare enum Environment {
|
|
19
|
-
Production = "https://apiv2.emil.de",
|
|
20
|
-
Test = "https://apiv2-test.emil.de"
|
|
21
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -27,15 +27,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Environment = void 0;
|
|
31
30
|
__exportStar(require("./api/bank-accounts-api"), exports);
|
|
32
31
|
__exportStar(require("./api/payment-methods-api"), exports);
|
|
32
|
+
__exportStar(require("./api/payment-reminders-api"), exports);
|
|
33
33
|
__exportStar(require("./api/payment-service-providers-api"), exports);
|
|
34
34
|
__exportStar(require("./api/payment-setup-api"), exports);
|
|
35
35
|
__exportStar(require("./api/payments-api"), exports);
|
|
36
36
|
__exportStar(require("./api/webhooks-api"), exports);
|
|
37
|
-
var Environment;
|
|
38
|
-
(function (Environment) {
|
|
39
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
40
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
41
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -25,12 +25,13 @@ export declare const COLLECTION_FORMATS: {
|
|
|
25
25
|
export interface LoginClass {
|
|
26
26
|
accessToken: string;
|
|
27
27
|
permissions: Array<string>;
|
|
28
|
-
newPasswordRequired: boolean;
|
|
29
28
|
}
|
|
30
29
|
export declare enum Environment {
|
|
31
30
|
Production = "https://apiv2.emil.de",
|
|
32
|
-
Test = "https://apiv2-test.emil.de"
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
33
33
|
}
|
|
34
|
+
export declare function resetRetry(): void;
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
37
|
* @export
|
|
@@ -49,7 +50,6 @@ export declare class BaseAPI {
|
|
|
49
50
|
protected basePath: string;
|
|
50
51
|
protected axios: AxiosInstance;
|
|
51
52
|
protected configuration: Configuration;
|
|
52
|
-
private lastRequestConfig?;
|
|
53
53
|
private username?;
|
|
54
54
|
private password?;
|
|
55
55
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
@@ -59,7 +59,7 @@ export declare class BaseAPI {
|
|
|
59
59
|
private readEnvVariables;
|
|
60
60
|
selectEnvironment(env: Environment): void;
|
|
61
61
|
authorize(username: string, password: string): Promise<void>;
|
|
62
|
-
|
|
62
|
+
refreshTokenInternal(): Promise<string>;
|
|
63
63
|
private extractRefreshToken;
|
|
64
64
|
getConfiguration(): Configuration;
|
|
65
65
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
77
77
|
function step(op) {
|
|
78
78
|
if (f) throw new TypeError("Generator is already executing.");
|
|
79
|
-
while (_) try {
|
|
79
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
80
80
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
81
81
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
82
82
|
switch (op[0]) {
|
|
@@ -101,7 +101,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
102
|
};
|
|
103
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
105
105
|
var configuration_1 = require("./configuration");
|
|
106
106
|
// Some imports not used depending on template conditions
|
|
107
107
|
// @ts-ignore
|
|
@@ -129,7 +129,14 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
132
133
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
134
|
+
var _retry_count = 0;
|
|
135
|
+
var _retry = null;
|
|
136
|
+
function resetRetry() {
|
|
137
|
+
_retry_count = 0;
|
|
138
|
+
}
|
|
139
|
+
exports.resetRetry = resetRetry;
|
|
133
140
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
134
141
|
/**
|
|
135
142
|
*
|
|
@@ -263,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
263
270
|
});
|
|
264
271
|
});
|
|
265
272
|
};
|
|
266
|
-
BaseAPI.prototype.
|
|
273
|
+
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
267
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
268
275
|
var _a, username, refreshToken, options, accessToken;
|
|
269
276
|
return __generator(this, function (_b) {
|
|
@@ -303,17 +310,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
303
310
|
};
|
|
304
311
|
BaseAPI.prototype.attachInterceptor = function (axios) {
|
|
305
312
|
var _this = this;
|
|
306
|
-
axios.interceptors.request.use(function (config) {
|
|
307
|
-
var _a;
|
|
308
|
-
if (((_a = config.url) === null || _a === void 0 ? void 0 : _a.indexOf('refresh-token')) === -1) {
|
|
309
|
-
_this.lastRequestConfig = config;
|
|
310
|
-
}
|
|
311
|
-
return config;
|
|
312
|
-
});
|
|
313
313
|
axios.interceptors.response.use(function (res) {
|
|
314
314
|
return res;
|
|
315
315
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
316
|
-
var originalConfig, tokenString, accessToken,
|
|
316
|
+
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
317
317
|
return __generator(this, function (_a) {
|
|
318
318
|
switch (_a.label) {
|
|
319
319
|
case 0:
|
|
@@ -324,15 +324,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
324
324
|
_a.label = 1;
|
|
325
325
|
case 1:
|
|
326
326
|
_a.trys.push([1, 3, , 4]);
|
|
327
|
-
return [4 /*yield*/, this.
|
|
327
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
328
328
|
case 2:
|
|
329
329
|
tokenString = _a.sent();
|
|
330
330
|
accessToken = "Bearer ".concat(tokenString);
|
|
331
|
-
|
|
332
|
-
localVarHeaderParameter['Authorization'] = accessToken;
|
|
333
|
-
originalConfig.headers = __assign(__assign({}, originalConfig.headers), localVarHeaderParameter);
|
|
331
|
+
originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
|
|
334
332
|
this.configuration.accessToken = accessToken;
|
|
335
|
-
return [2 /*return*/, axios(originalConfig)];
|
|
333
|
+
return [2 /*return*/, axios.request(originalConfig)];
|
|
336
334
|
case 3:
|
|
337
335
|
_error_1 = _a.sent();
|
|
338
336
|
if (_error_1.response && _error_1.response.data) {
|
|
@@ -345,21 +343,22 @@ var BaseAPI = /** @class */ (function () {
|
|
|
345
343
|
}
|
|
346
344
|
return [3 /*break*/, 9];
|
|
347
345
|
case 5:
|
|
348
|
-
if (!(err.message === NETWORK_ERROR_MESSAGE
|
|
346
|
+
if (!(err.message === NETWORK_ERROR_MESSAGE
|
|
347
|
+
&& err.isAxiosError
|
|
348
|
+
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
349
|
+
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
350
|
+
_retry_count++;
|
|
349
351
|
_a.label = 6;
|
|
350
352
|
case 6:
|
|
351
353
|
_a.trys.push([6, 8, , 9]);
|
|
352
|
-
return [4 /*yield*/, this.
|
|
354
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
353
355
|
case 7:
|
|
354
356
|
tokenString = _a.sent();
|
|
355
357
|
accessToken = "Bearer ".concat(tokenString);
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.lastRequestConfig.headers = __assign(__assign({}, originalConfig.headers), localVarHeaderParameter);
|
|
359
|
-
originalConfig = __assign({}, this.lastRequestConfig);
|
|
360
|
-
originalConfig._retry = true;
|
|
358
|
+
_retry = true;
|
|
359
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
361
360
|
this.configuration.accessToken = accessToken;
|
|
362
|
-
return [2 /*return*/, axios(originalConfig)];
|
|
361
|
+
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
363
362
|
case 8:
|
|
364
363
|
_error_2 = _a.sent();
|
|
365
364
|
if (_error_2.response && _error_2.response.data) {
|
package/dist/common.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -64,3 +64,29 @@ export declare const toPathString: (url: URL) => string;
|
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
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
|
+
/**
|
|
68
|
+
* Emil Payment Service
|
|
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.
|
|
70
|
+
*
|
|
71
|
+
* The version of the OpenAPI document: 1.0
|
|
72
|
+
* Contact: kontakt@emil.de
|
|
73
|
+
*
|
|
74
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
75
|
+
* https://openapi-generator.tech
|
|
76
|
+
* Do not edit the class manually.
|
|
77
|
+
*/
|
|
78
|
+
export interface IStorageConverter<D, SD> {
|
|
79
|
+
toStorageData(data: D): SD;
|
|
80
|
+
fromStorageData(storageData: SD): D;
|
|
81
|
+
}
|
|
82
|
+
export interface IStorage {
|
|
83
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
84
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
85
|
+
}
|
|
86
|
+
export declare class LocalStorage implements IStorage {
|
|
87
|
+
readonly storage: Storage;
|
|
88
|
+
constructor();
|
|
89
|
+
get<T>(key: string, converter?: IStorageConverter<T, any>): T | null;
|
|
90
|
+
set<T>(key: string, value: T, converter?: IStorageConverter<T, any>): void;
|
|
91
|
+
}
|
|
92
|
+
export declare const defaultStorage: () => IStorage;
|
package/dist/common.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
41
|
-
while (_) try {
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
42
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43
43
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
44
|
switch (op[0]) {
|
|
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
63
|
+
exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
64
|
var base_1 = require("./base");
|
|
65
65
|
var url_1 = require("url");
|
|
66
66
|
/**
|
|
@@ -242,3 +242,36 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
exports.createRequestFunction = createRequestFunction;
|
|
245
|
+
var LocalStorage = /** @class */ (function () {
|
|
246
|
+
function LocalStorage() {
|
|
247
|
+
this.storage = localStorage;
|
|
248
|
+
}
|
|
249
|
+
LocalStorage.prototype.get = function (key, converter) {
|
|
250
|
+
var jsonValue = this.storage.getItem(key);
|
|
251
|
+
if (jsonValue === null) {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
var value = JSON.parse(jsonValue);
|
|
255
|
+
if (converter !== undefined) {
|
|
256
|
+
return converter.fromStorageData(value);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return value;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
LocalStorage.prototype.set = function (key, value, converter) {
|
|
263
|
+
var valueToStore = value;
|
|
264
|
+
if (converter !== undefined) {
|
|
265
|
+
valueToStore = converter.toStorageData(value);
|
|
266
|
+
}
|
|
267
|
+
var jsonValue = JSON.stringify(valueToStore);
|
|
268
|
+
this.storage.setItem(key, jsonValue);
|
|
269
|
+
};
|
|
270
|
+
return LocalStorage;
|
|
271
|
+
}());
|
|
272
|
+
exports.LocalStorage = LocalStorage;
|
|
273
|
+
var _defaultStorage = null;
|
|
274
|
+
var defaultStorage = function () {
|
|
275
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
276
|
+
};
|
|
277
|
+
exports.defaultStorage = defaultStorage;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/configuration.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export { BaseAPI } from "./base";
|
|
12
|
+
export { Environment, BaseAPI } from "./base";
|
|
13
13
|
export * from "./api";
|
|
14
14
|
export * from "./configuration";
|
|
15
15
|
export * from "./models";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -27,8 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.BaseAPI = void 0;
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
31
|
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
32
33
|
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
33
34
|
__exportStar(require("./api"), exports);
|
|
34
35
|
__exportStar(require("./configuration"), exports);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -38,7 +38,7 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'leadCode'
|
|
41
|
+
'leadCode'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Unique identifier for the customer on Stripe.
|
|
44
44
|
* @type {string}
|
|
@@ -50,5 +50,11 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'pspPaymentMethodId'
|
|
53
|
+
'pspPaymentMethodId'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The payment method type on Stripe.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'paymentMethodType'?: string;
|
|
54
60
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -0,0 +1,63 @@
|
|
|
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 CreatePaymentReminderRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePaymentReminderRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Date on which the reminder is triggered.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'nextReminderDate': string;
|
|
24
|
+
/**
|
|
25
|
+
* Code referencing the policy for which this reminder is created.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'policyCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* Code referencing the account for which this reminder is created.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'accountCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* The type of invoice is used to determine the proper workflow.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'invoiceType': CreatePaymentReminderRequestDtoInvoiceTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the payment for which the reminder happened.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'paymentCode': string;
|
|
48
|
+
/**
|
|
49
|
+
* The stage of a reminder according to the product definition.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreatePaymentReminderRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'reminderStage': number;
|
|
54
|
+
}
|
|
55
|
+
export declare const CreatePaymentReminderRequestDtoInvoiceTypeEnum: {
|
|
56
|
+
readonly Initial: "initial";
|
|
57
|
+
readonly Recurring: "recurring";
|
|
58
|
+
readonly Correction: "correction";
|
|
59
|
+
readonly Estimated: "estimated";
|
|
60
|
+
readonly Penalty: "penalty";
|
|
61
|
+
readonly Other: "other";
|
|
62
|
+
};
|
|
63
|
+
export type CreatePaymentReminderRequestDtoInvoiceTypeEnum = typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum[keyof typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum];
|
|
@@ -0,0 +1,24 @@
|
|
|
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 });
|
|
16
|
+
exports.CreatePaymentReminderRequestDtoInvoiceTypeEnum = void 0;
|
|
17
|
+
exports.CreatePaymentReminderRequestDtoInvoiceTypeEnum = {
|
|
18
|
+
Initial: 'initial',
|
|
19
|
+
Recurring: 'recurring',
|
|
20
|
+
Correction: 'correction',
|
|
21
|
+
Estimated: 'estimated',
|
|
22
|
+
Penalty: 'penalty',
|
|
23
|
+
Other: 'other'
|
|
24
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -39,4 +39,10 @@ export interface CreatePaymentRequestDto {
|
|
|
39
39
|
* @memberof CreatePaymentRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'invoiceIds': Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePaymentRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'productSlug'?: string;
|
|
42
48
|
}
|