@emilgroup/payment-sdk 1.22.1-beta.3 → 1.22.1-beta.5
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 +2 -0
- package/README.md +2 -2
- package/api/exceeding-credits-api.ts +107 -0
- package/dist/api/exceeding-credits-api.d.ts +57 -0
- package/dist/api/exceeding-credits-api.js +93 -0
- package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/create-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -60,6 +60,8 @@ models/create-billing-address-request-dto.ts
|
|
|
60
60
|
models/create-billing-address-response-class.ts
|
|
61
61
|
models/create-credit-allocation-request-dto.ts
|
|
62
62
|
models/create-credit-allocation-response-class.ts
|
|
63
|
+
models/create-exceeding-credit-request-dto.ts
|
|
64
|
+
models/create-exceeding-credit-response-class.ts
|
|
63
65
|
models/create-payment-method-response-class.ts
|
|
64
66
|
models/create-payment-order-dto.ts
|
|
65
67
|
models/create-payment-order-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.22.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.22.1-beta.5 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.22.1-beta.5
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateExceedingCreditRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateExceedingCreditResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { GetExceedingCreditResponseClass } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { ListExceedingCreditsResponseClass } from '../models';
|
|
@@ -30,6 +34,53 @@ import { ListExceedingCreditsResponseClass } from '../models';
|
|
|
30
34
|
*/
|
|
31
35
|
export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
36
|
return {
|
|
37
|
+
/**
|
|
38
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
39
|
+
* @summary Create the exceeding credit
|
|
40
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
createExceedingCredit: async (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto)
|
|
48
|
+
const localVarPath = `/paymentservice/v1/exceeding-credits`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createExceedingCreditRequestDto, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
33
84
|
/**
|
|
34
85
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
35
86
|
* @summary Retrieve the exceeding credit
|
|
@@ -161,6 +212,18 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
|
|
|
161
212
|
export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
162
213
|
const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
|
|
163
214
|
return {
|
|
215
|
+
/**
|
|
216
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
217
|
+
* @summary Create the exceeding credit
|
|
218
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
219
|
+
* @param {string} [authorization] Bearer Token
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
async createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>> {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options);
|
|
225
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
226
|
+
},
|
|
164
227
|
/**
|
|
165
228
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
166
229
|
* @summary Retrieve the exceeding credit
|
|
@@ -201,6 +264,17 @@ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
|
201
264
|
export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
202
265
|
const localVarFp = ExceedingCreditsApiFp(configuration)
|
|
203
266
|
return {
|
|
267
|
+
/**
|
|
268
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
269
|
+
* @summary Create the exceeding credit
|
|
270
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
271
|
+
* @param {string} [authorization] Bearer Token
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass> {
|
|
276
|
+
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
277
|
+
},
|
|
204
278
|
/**
|
|
205
279
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
206
280
|
* @summary Retrieve the exceeding credit
|
|
@@ -232,6 +306,27 @@ export const ExceedingCreditsApiFactory = function (configuration?: Configuratio
|
|
|
232
306
|
};
|
|
233
307
|
};
|
|
234
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface ExceedingCreditsApiCreateExceedingCreditRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface ExceedingCreditsApiCreateExceedingCreditRequest {
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {CreateExceedingCreditRequestDto}
|
|
318
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
319
|
+
*/
|
|
320
|
+
readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Bearer Token
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
326
|
+
*/
|
|
327
|
+
readonly authorization?: string
|
|
328
|
+
}
|
|
329
|
+
|
|
235
330
|
/**
|
|
236
331
|
* Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
|
|
237
332
|
* @export
|
|
@@ -323,6 +418,18 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
|
|
|
323
418
|
* @extends {BaseAPI}
|
|
324
419
|
*/
|
|
325
420
|
export class ExceedingCreditsApi extends BaseAPI {
|
|
421
|
+
/**
|
|
422
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
423
|
+
* @summary Create the exceeding credit
|
|
424
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @memberof ExceedingCreditsApi
|
|
428
|
+
*/
|
|
429
|
+
public createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig) {
|
|
430
|
+
return ExceedingCreditsApiFp(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
431
|
+
}
|
|
432
|
+
|
|
326
433
|
/**
|
|
327
434
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
328
435
|
* @summary Retrieve the exceeding credit
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateExceedingCreditRequestDto } from '../models';
|
|
16
|
+
import { CreateExceedingCreditResponseClass } from '../models';
|
|
15
17
|
import { GetExceedingCreditResponseClass } from '../models';
|
|
16
18
|
import { ListExceedingCreditsResponseClass } from '../models';
|
|
17
19
|
/**
|
|
@@ -19,6 +21,15 @@ import { ListExceedingCreditsResponseClass } from '../models';
|
|
|
19
21
|
* @export
|
|
20
22
|
*/
|
|
21
23
|
export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
26
|
+
* @summary Create the exceeding credit
|
|
27
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
28
|
+
* @param {string} [authorization] Bearer Token
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
createExceedingCredit: (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
33
|
/**
|
|
23
34
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
24
35
|
* @summary Retrieve the exceeding credit
|
|
@@ -49,6 +60,15 @@ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Conf
|
|
|
49
60
|
* @export
|
|
50
61
|
*/
|
|
51
62
|
export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
|
|
63
|
+
/**
|
|
64
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
65
|
+
* @summary Create the exceeding credit
|
|
66
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
67
|
+
* @param {string} [authorization] Bearer Token
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>>;
|
|
52
72
|
/**
|
|
53
73
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
54
74
|
* @summary Retrieve the exceeding credit
|
|
@@ -79,6 +99,15 @@ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
|
|
|
79
99
|
* @export
|
|
80
100
|
*/
|
|
81
101
|
export declare const ExceedingCreditsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
102
|
+
/**
|
|
103
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
104
|
+
* @summary Create the exceeding credit
|
|
105
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
106
|
+
* @param {string} [authorization] Bearer Token
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass>;
|
|
82
111
|
/**
|
|
83
112
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
84
113
|
* @summary Retrieve the exceeding credit
|
|
@@ -104,6 +133,25 @@ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration,
|
|
|
104
133
|
*/
|
|
105
134
|
listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
|
|
106
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
|
|
138
|
+
* @export
|
|
139
|
+
* @interface ExceedingCreditsApiCreateExceedingCreditRequest
|
|
140
|
+
*/
|
|
141
|
+
export interface ExceedingCreditsApiCreateExceedingCreditRequest {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {CreateExceedingCreditRequestDto}
|
|
145
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
146
|
+
*/
|
|
147
|
+
readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto;
|
|
148
|
+
/**
|
|
149
|
+
* Bearer Token
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
152
|
+
*/
|
|
153
|
+
readonly authorization?: string;
|
|
154
|
+
}
|
|
107
155
|
/**
|
|
108
156
|
* Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
|
|
109
157
|
* @export
|
|
@@ -185,6 +233,15 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
|
|
|
185
233
|
* @extends {BaseAPI}
|
|
186
234
|
*/
|
|
187
235
|
export declare class ExceedingCreditsApi extends BaseAPI {
|
|
236
|
+
/**
|
|
237
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
238
|
+
* @summary Create the exceeding credit
|
|
239
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
* @memberof ExceedingCreditsApi
|
|
243
|
+
*/
|
|
244
|
+
createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}>>;
|
|
188
245
|
/**
|
|
189
246
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
190
247
|
* @summary Retrieve the exceeding credit
|
|
@@ -92,6 +92,55 @@ var base_1 = require("../base");
|
|
|
92
92
|
var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
97
|
+
* @summary Create the exceeding credit
|
|
98
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto);
|
|
112
|
+
localVarPath = "/paymentservice/v1/exceeding-credits";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExceedingCreditRequestDto, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
95
144
|
/**
|
|
96
145
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
97
146
|
* @summary Retrieve the exceeding credit
|
|
@@ -222,6 +271,27 @@ exports.ExceedingCreditsApiAxiosParamCreator = ExceedingCreditsApiAxiosParamCrea
|
|
|
222
271
|
var ExceedingCreditsApiFp = function (configuration) {
|
|
223
272
|
var localVarAxiosParamCreator = (0, exports.ExceedingCreditsApiAxiosParamCreator)(configuration);
|
|
224
273
|
return {
|
|
274
|
+
/**
|
|
275
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
276
|
+
* @summary Create the exceeding credit
|
|
277
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
278
|
+
* @param {string} [authorization] Bearer Token
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
284
|
+
var localVarAxiosArgs;
|
|
285
|
+
return __generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
287
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options)];
|
|
288
|
+
case 1:
|
|
289
|
+
localVarAxiosArgs = _a.sent();
|
|
290
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
},
|
|
225
295
|
/**
|
|
226
296
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
227
297
|
* @summary Retrieve the exceeding credit
|
|
@@ -280,6 +350,17 @@ exports.ExceedingCreditsApiFp = ExceedingCreditsApiFp;
|
|
|
280
350
|
var ExceedingCreditsApiFactory = function (configuration, basePath, axios) {
|
|
281
351
|
var localVarFp = (0, exports.ExceedingCreditsApiFp)(configuration);
|
|
282
352
|
return {
|
|
353
|
+
/**
|
|
354
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
355
|
+
* @summary Create the exceeding credit
|
|
356
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
357
|
+
* @param {string} [authorization] Bearer Token
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
362
|
+
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
363
|
+
},
|
|
283
364
|
/**
|
|
284
365
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
285
366
|
* @summary Retrieve the exceeding credit
|
|
@@ -322,6 +403,18 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
322
403
|
function ExceedingCreditsApi() {
|
|
323
404
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
324
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
408
|
+
* @summary Create the exceeding credit
|
|
409
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
* @memberof ExceedingCreditsApi
|
|
413
|
+
*/
|
|
414
|
+
ExceedingCreditsApi.prototype.createExceedingCredit = function (requestParameters, options) {
|
|
415
|
+
var _this = this;
|
|
416
|
+
return (0, exports.ExceedingCreditsApiFp)(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
417
|
+
};
|
|
325
418
|
/**
|
|
326
419
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
327
420
|
* @summary Retrieve the exceeding credit
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CreateExceedingCreditRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateExceedingCreditRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of the credit
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'amount': number;
|
|
24
|
+
/**
|
|
25
|
+
* The description of the credit
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'description'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The policy code of the credit
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'policyCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* The transaction code of the credit
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'bankTransactionCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* The invoice code of the credit
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'invoiceCode': string;
|
|
48
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ExceedingCreditClass } from './exceeding-credit-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateExceedingCreditResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateExceedingCreditResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Exceeding credit
|
|
21
|
+
* @type {ExceedingCreditClass}
|
|
22
|
+
* @memberof CreateExceedingCreditResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'exceedingCredit': ExceedingCreditClass;
|
|
25
|
+
}
|
|
@@ -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/dist/models/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './create-billing-address-request-dto';
|
|
|
31
31
|
export * from './create-billing-address-response-class';
|
|
32
32
|
export * from './create-credit-allocation-request-dto';
|
|
33
33
|
export * from './create-credit-allocation-response-class';
|
|
34
|
+
export * from './create-exceeding-credit-request-dto';
|
|
35
|
+
export * from './create-exceeding-credit-response-class';
|
|
34
36
|
export * from './create-payment-method-response-class';
|
|
35
37
|
export * from './create-payment-order-dto';
|
|
36
38
|
export * from './create-payment-order-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -47,6 +47,8 @@ __exportStar(require("./create-billing-address-request-dto"), exports);
|
|
|
47
47
|
__exportStar(require("./create-billing-address-response-class"), exports);
|
|
48
48
|
__exportStar(require("./create-credit-allocation-request-dto"), exports);
|
|
49
49
|
__exportStar(require("./create-credit-allocation-response-class"), exports);
|
|
50
|
+
__exportStar(require("./create-exceeding-credit-request-dto"), exports);
|
|
51
|
+
__exportStar(require("./create-exceeding-credit-response-class"), exports);
|
|
50
52
|
__exportStar(require("./create-payment-method-response-class"), exports);
|
|
51
53
|
__exportStar(require("./create-payment-order-dto"), exports);
|
|
52
54
|
__exportStar(require("./create-payment-order-request-dto"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CreateExceedingCreditRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateExceedingCreditRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The amount of the credit
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'amount': number;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the credit
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'description'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The policy code of the credit
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'policyCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* The transaction code of the credit
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'bankTransactionCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* The invoice code of the credit
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'invoiceCode': string;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateExceedingCreditResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateExceedingCreditResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Exceeding credit
|
|
26
|
+
* @type {ExceedingCreditClass}
|
|
27
|
+
* @memberof CreateExceedingCreditResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'exceedingCredit': ExceedingCreditClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './create-billing-address-request-dto';
|
|
|
31
31
|
export * from './create-billing-address-response-class';
|
|
32
32
|
export * from './create-credit-allocation-request-dto';
|
|
33
33
|
export * from './create-credit-allocation-response-class';
|
|
34
|
+
export * from './create-exceeding-credit-request-dto';
|
|
35
|
+
export * from './create-exceeding-credit-response-class';
|
|
34
36
|
export * from './create-payment-method-response-class';
|
|
35
37
|
export * from './create-payment-order-dto';
|
|
36
38
|
export * from './create-payment-order-request-dto';
|