@emilgroup/payment-sdk-node 1.2.0 → 1.4.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 +3 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +174 -0
- package/api/payment-methods-api.ts +16 -16
- package/api/payment-reminders-api.ts +16 -16
- package/api/payments-api.ts +16 -16
- package/api.ts +0 -5
- package/base.ts +4 -3
- package/dist/api/bank-accounts-api.d.ts +101 -0
- package/dist/api/bank-accounts-api.js +123 -0
- package/dist/api/payment-methods-api.d.ts +16 -16
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +16 -16
- package/dist/api/payment-reminders-api.js +12 -12
- package/dist/api/payments-api.d.ts +16 -16
- package/dist/api/payments-api.js +12 -12
- package/dist/api.d.ts +0 -4
- package/dist/api.js +0 -6
- package/dist/base.d.ts +3 -2
- package/dist/base.js +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +15 -2
- package/dist/models/transaction-class.d.ts +54 -0
- package/dist/models/transaction-class.js +15 -0
- package/index.ts +1 -1
- package/models/bank-account-class.ts +60 -0
- package/models/create-payment-request-dto.ts +7 -1
- package/models/index.ts +3 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/payment-class.ts +15 -2
- package/models/transaction-class.ts +60 -0
- package/package.json +2 -2
|
@@ -46,12 +46,12 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
46
46
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
47
|
* @summary List payments
|
|
48
48
|
* @param {string} [authorization] Bearer Token
|
|
49
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
50
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
50
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
51
51
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
52
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
53
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
54
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
53
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
54
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
@@ -87,12 +87,12 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
87
87
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
88
88
|
* @summary List payments
|
|
89
89
|
* @param {string} [authorization] Bearer Token
|
|
90
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
91
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
90
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
91
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
92
92
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
93
93
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
94
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
95
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
94
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
95
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
@@ -128,12 +128,12 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
128
128
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
129
129
|
* @summary List payments
|
|
130
130
|
* @param {string} [authorization] Bearer Token
|
|
131
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
132
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
131
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
132
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
133
133
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
134
134
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
135
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
136
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
135
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
136
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
137
137
|
* @param {*} [options] Override http request option.
|
|
138
138
|
* @throws {RequiredError}
|
|
139
139
|
*/
|
|
@@ -208,13 +208,13 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
208
208
|
*/
|
|
209
209
|
readonly authorization?: string;
|
|
210
210
|
/**
|
|
211
|
-
* A limit on the number of objects to be returned.
|
|
211
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
212
212
|
* @type {any}
|
|
213
213
|
* @memberof PaymentsApiListPayments
|
|
214
214
|
*/
|
|
215
215
|
readonly pageSize?: any;
|
|
216
216
|
/**
|
|
217
|
-
* A cursor for use in pagination.
|
|
217
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
218
218
|
* @type {any}
|
|
219
219
|
* @memberof PaymentsApiListPayments
|
|
220
220
|
*/
|
|
@@ -232,13 +232,13 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
232
232
|
*/
|
|
233
233
|
readonly search?: any;
|
|
234
234
|
/**
|
|
235
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
235
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
236
236
|
* @type {any}
|
|
237
237
|
* @memberof PaymentsApiListPayments
|
|
238
238
|
*/
|
|
239
239
|
readonly order?: any;
|
|
240
240
|
/**
|
|
241
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
241
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
242
242
|
* @type {any}
|
|
243
243
|
* @memberof PaymentsApiListPayments
|
|
244
244
|
*/
|
package/dist/api/payments-api.js
CHANGED
|
@@ -211,12 +211,12 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
212
212
|
* @summary List payments
|
|
213
213
|
* @param {string} [authorization] Bearer Token
|
|
214
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
215
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
214
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
215
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
216
216
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
217
217
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
218
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
219
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
218
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
219
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
220
220
|
* @param {*} [options] Override http request option.
|
|
221
221
|
* @throws {RequiredError}
|
|
222
222
|
*/
|
|
@@ -334,12 +334,12 @@ var PaymentsApiFp = function (configuration) {
|
|
|
334
334
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
335
335
|
* @summary List payments
|
|
336
336
|
* @param {string} [authorization] Bearer Token
|
|
337
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
338
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
337
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
338
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
339
339
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
340
340
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
341
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
342
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
341
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
342
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
343
343
|
* @param {*} [options] Override http request option.
|
|
344
344
|
* @throws {RequiredError}
|
|
345
345
|
*/
|
|
@@ -395,12 +395,12 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
395
395
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
396
396
|
* @summary List payments
|
|
397
397
|
* @param {string} [authorization] Bearer Token
|
|
398
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
399
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
398
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
399
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
400
400
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
401
401
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
402
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
403
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
402
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
403
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
404
404
|
* @param {*} [options] Override http request option.
|
|
405
405
|
* @throws {RequiredError}
|
|
406
406
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -16,7 +16,3 @@ export * from './api/payment-service-providers-api';
|
|
|
16
16
|
export * from './api/payment-setup-api';
|
|
17
17
|
export * from './api/payments-api';
|
|
18
18
|
export * from './api/webhooks-api';
|
|
19
|
-
export declare enum Environment {
|
|
20
|
-
Production = "https://apiv2.emil.de",
|
|
21
|
-
Test = "https://apiv2-test.emil.de"
|
|
22
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -27,7 +27,6 @@ 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);
|
|
33
32
|
__exportStar(require("./api/payment-reminders-api"), exports);
|
|
@@ -35,8 +34,3 @@ __exportStar(require("./api/payment-service-providers-api"), exports);
|
|
|
35
34
|
__exportStar(require("./api/payment-setup-api"), exports);
|
|
36
35
|
__exportStar(require("./api/payments-api"), exports);
|
|
37
36
|
__exportStar(require("./api/webhooks-api"), exports);
|
|
38
|
-
var Environment;
|
|
39
|
-
(function (Environment) {
|
|
40
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
41
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
42
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -28,7 +28,8 @@ export interface LoginClass {
|
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
31
|
-
Test = "https://apiv2-test.emil.de"
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
32
33
|
}
|
|
33
34
|
export declare function resetRetry(): void;
|
|
34
35
|
/**
|
|
@@ -58,7 +59,7 @@ export declare class BaseAPI {
|
|
|
58
59
|
private readEnvVariables;
|
|
59
60
|
selectEnvironment(env: Environment): void;
|
|
60
61
|
authorize(username: string, password: string): Promise<void>;
|
|
61
|
-
|
|
62
|
+
refreshTokenInternal(): Promise<string>;
|
|
62
63
|
private extractRefreshToken;
|
|
63
64
|
getConfiguration(): Configuration;
|
|
64
65
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -129,6 +129,7 @@ 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 = {}));
|
|
133
134
|
var _retry_count = 0;
|
|
134
135
|
var _retry = null;
|
|
@@ -269,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
270
|
});
|
|
270
271
|
});
|
|
271
272
|
};
|
|
272
|
-
BaseAPI.prototype.
|
|
273
|
+
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
273
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
274
275
|
var _a, username, refreshToken, options, accessToken;
|
|
275
276
|
return __generator(this, function (_b) {
|
|
@@ -323,7 +324,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
323
324
|
_a.label = 1;
|
|
324
325
|
case 1:
|
|
325
326
|
_a.trys.push([1, 3, , 4]);
|
|
326
|
-
return [4 /*yield*/, this.
|
|
327
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
327
328
|
case 2:
|
|
328
329
|
tokenString = _a.sent();
|
|
329
330
|
accessToken = "Bearer ".concat(tokenString);
|
|
@@ -350,7 +351,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
350
351
|
_a.label = 6;
|
|
351
352
|
case 6:
|
|
352
353
|
_a.trys.push([6, 8, , 9]);
|
|
353
|
-
return [4 /*yield*/, this.
|
|
354
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
354
355
|
case 7:
|
|
355
356
|
tokenString = _a.sent();
|
|
356
357
|
accessToken = "Bearer ".concat(tokenString);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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);
|
|
@@ -0,0 +1,54 @@
|
|
|
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 BankAccountClass
|
|
16
|
+
*/
|
|
17
|
+
export interface BankAccountClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for bank account.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BankAccountClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BankAccountClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* User account code associated to bank account.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BankAccountClass
|
|
34
|
+
*/
|
|
35
|
+
'accountCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* International bank account number with witch the bank account is created
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BankAccountClass
|
|
40
|
+
*/
|
|
41
|
+
'iban': string;
|
|
42
|
+
/**
|
|
43
|
+
* Time at which the object was created.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BankAccountClass
|
|
46
|
+
*/
|
|
47
|
+
'createdAt': string;
|
|
48
|
+
/**
|
|
49
|
+
* Time at which the object was updated.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BankAccountClass
|
|
52
|
+
*/
|
|
53
|
+
'updatedAt': string;
|
|
54
|
+
}
|
|
@@ -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 });
|
|
@@ -34,11 +34,17 @@ export interface CreatePaymentRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'currency'?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Invoices referenced in this payment. Usually, one payment has one invoice id
|
|
37
|
+
* Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
|
|
38
38
|
* @type {Array<string>}
|
|
39
39
|
* @memberof CreatePaymentRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'invoiceIds': Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Optional field contain extra information.
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof CreatePaymentRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'metadata': object;
|
|
42
48
|
/**
|
|
43
49
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
44
50
|
* @type {string}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './bank-account-class';
|
|
1
2
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
2
3
|
export * from './complete-payment-setup-request-dto';
|
|
3
4
|
export * from './complete-payment-setup-response-class';
|
|
@@ -18,6 +19,7 @@ export * from './initiate-payment-setup-request-dto';
|
|
|
18
19
|
export * from './initiate-payment-setup-response-class';
|
|
19
20
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
20
21
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
22
|
+
export * from './list-bank-accounts-response-class';
|
|
21
23
|
export * from './list-payment-methods-response-class';
|
|
22
24
|
export * from './list-payment-reminders-response-class';
|
|
23
25
|
export * from './list-payments-response-class';
|
|
@@ -25,5 +27,6 @@ export * from './payment-class';
|
|
|
25
27
|
export * from './payment-method-class';
|
|
26
28
|
export * from './payment-reminder-class';
|
|
27
29
|
export * from './sepa-direct-dto';
|
|
30
|
+
export * from './transaction-class';
|
|
28
31
|
export * from './validate-pspconfig-request-dto';
|
|
29
32
|
export * from './validate-pspconfig-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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-account-class"), exports);
|
|
17
18
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
18
19
|
__exportStar(require("./complete-payment-setup-request-dto"), exports);
|
|
19
20
|
__exportStar(require("./complete-payment-setup-response-class"), exports);
|
|
@@ -34,6 +35,7 @@ __exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
|
34
35
|
__exportStar(require("./initiate-payment-setup-response-class"), exports);
|
|
35
36
|
__exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
|
|
36
37
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
38
|
+
__exportStar(require("./list-bank-accounts-response-class"), exports);
|
|
37
39
|
__exportStar(require("./list-payment-methods-response-class"), exports);
|
|
38
40
|
__exportStar(require("./list-payment-reminders-response-class"), exports);
|
|
39
41
|
__exportStar(require("./list-payments-response-class"), exports);
|
|
@@ -41,5 +43,6 @@ __exportStar(require("./payment-class"), exports);
|
|
|
41
43
|
__exportStar(require("./payment-method-class"), exports);
|
|
42
44
|
__exportStar(require("./payment-reminder-class"), exports);
|
|
43
45
|
__exportStar(require("./sepa-direct-dto"), exports);
|
|
46
|
+
__exportStar(require("./transaction-class"), exports);
|
|
44
47
|
__exportStar(require("./validate-pspconfig-request-dto"), exports);
|
|
45
48
|
__exportStar(require("./validate-pspconfig-response-class"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { BankAccountClass } from './bank-account-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListBankAccountsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListBankAccountsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Bank accounts
|
|
21
|
+
* @type {Array<BankAccountClass>}
|
|
22
|
+
* @memberof ListBankAccountsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<BankAccountClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListBankAccountsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
}
|
|
@@ -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 { TransactionClass } from './transaction-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -65,8 +66,20 @@ export interface PaymentClass {
|
|
|
65
66
|
'updatedAt': string;
|
|
66
67
|
/**
|
|
67
68
|
* Transactions referenced by this payment.
|
|
68
|
-
* @type {Array<
|
|
69
|
+
* @type {Array<TransactionClass>}
|
|
70
|
+
* @memberof PaymentClass
|
|
71
|
+
*/
|
|
72
|
+
'transactions': Array<TransactionClass>;
|
|
73
|
+
/**
|
|
74
|
+
* Optional field contain extra information.
|
|
75
|
+
* @type {object}
|
|
76
|
+
* @memberof PaymentClass
|
|
77
|
+
*/
|
|
78
|
+
'metadata': object;
|
|
79
|
+
/**
|
|
80
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
81
|
+
* @type {string}
|
|
69
82
|
* @memberof PaymentClass
|
|
70
83
|
*/
|
|
71
|
-
'
|
|
84
|
+
'productSlug'?: string;
|
|
72
85
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 TransactionClass
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TransactionClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for transaction.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* Reference to the payment id.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TransactionClass
|
|
34
|
+
*/
|
|
35
|
+
'paymentId': number;
|
|
36
|
+
/**
|
|
37
|
+
* Webhook associated to that transaction. Webhooks
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TransactionClass
|
|
40
|
+
*/
|
|
41
|
+
'webhookId': number;
|
|
42
|
+
/**
|
|
43
|
+
* Status of the transaction. Can be one of the following: \'succeeded\', \'pending\', \'failed\', \'disputed\'. }
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransactionClass
|
|
46
|
+
*/
|
|
47
|
+
'status': string;
|
|
48
|
+
/**
|
|
49
|
+
* Time at which the object was created.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TransactionClass
|
|
52
|
+
*/
|
|
53
|
+
'createdAt': string;
|
|
54
|
+
}
|
|
@@ -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 });
|
package/index.ts
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface BankAccountClass
|
|
21
|
+
*/
|
|
22
|
+
export interface BankAccountClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for bank account.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof BankAccountClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BankAccountClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* User account code associated to bank account.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BankAccountClass
|
|
39
|
+
*/
|
|
40
|
+
'accountCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* International bank account number with witch the bank account is created
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BankAccountClass
|
|
45
|
+
*/
|
|
46
|
+
'iban': string;
|
|
47
|
+
/**
|
|
48
|
+
* Time at which the object was created.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof BankAccountClass
|
|
51
|
+
*/
|
|
52
|
+
'createdAt': string;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was updated.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BankAccountClass
|
|
57
|
+
*/
|
|
58
|
+
'updatedAt': string;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -39,11 +39,17 @@ export interface CreatePaymentRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'currency'?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Invoices referenced in this payment. Usually, one payment has one invoice id
|
|
42
|
+
* Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
|
|
43
43
|
* @type {Array<string>}
|
|
44
44
|
* @memberof CreatePaymentRequestDto
|
|
45
45
|
*/
|
|
46
46
|
'invoiceIds': Array<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Optional field contain extra information.
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof CreatePaymentRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'metadata': object;
|
|
47
53
|
/**
|
|
48
54
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
49
55
|
* @type {string}
|