@emilgroup/payment-sdk-node 1.28.1-beta.4 → 1.28.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-node@1.28.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.28.1-beta.5 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.28.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.28.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';
|
|
@@ -34,6 +38,53 @@ const FormData = require('form-data');
|
|
|
34
38
|
*/
|
|
35
39
|
export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
40
|
return {
|
|
41
|
+
/**
|
|
42
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
43
|
+
* @summary Create the exceeding credit
|
|
44
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createExceedingCredit: async (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto)
|
|
52
|
+
const localVarPath = `/paymentservice/v1/exceeding-credits`;
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
let baseAccessToken;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
baseAccessToken = configuration.accessToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63
|
+
const localVarHeaderParameter = {} as any;
|
|
64
|
+
const localVarQueryParameter = {} as any;
|
|
65
|
+
|
|
66
|
+
// authentication bearer required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
+
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createExceedingCreditRequestDto, localVarRequestOptions, configuration)
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
37
88
|
/**
|
|
38
89
|
* 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\"
|
|
39
90
|
* @summary Retrieve the exceeding credit
|
|
@@ -165,6 +216,18 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
|
|
|
165
216
|
export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
166
217
|
const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
|
|
167
218
|
return {
|
|
219
|
+
/**
|
|
220
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
221
|
+
* @summary Create the exceeding credit
|
|
222
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
223
|
+
* @param {string} [authorization] Bearer Token
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
async createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>> {
|
|
228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options);
|
|
229
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
230
|
+
},
|
|
168
231
|
/**
|
|
169
232
|
* 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\"
|
|
170
233
|
* @summary Retrieve the exceeding credit
|
|
@@ -205,6 +268,17 @@ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
|
205
268
|
export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
206
269
|
const localVarFp = ExceedingCreditsApiFp(configuration)
|
|
207
270
|
return {
|
|
271
|
+
/**
|
|
272
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
273
|
+
* @summary Create the exceeding credit
|
|
274
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
275
|
+
* @param {string} [authorization] Bearer Token
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass> {
|
|
280
|
+
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
281
|
+
},
|
|
208
282
|
/**
|
|
209
283
|
* 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\"
|
|
210
284
|
* @summary Retrieve the exceeding credit
|
|
@@ -236,6 +310,27 @@ export const ExceedingCreditsApiFactory = function (configuration?: Configuratio
|
|
|
236
310
|
};
|
|
237
311
|
};
|
|
238
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
|
|
315
|
+
* @export
|
|
316
|
+
* @interface ExceedingCreditsApiCreateExceedingCreditRequest
|
|
317
|
+
*/
|
|
318
|
+
export interface ExceedingCreditsApiCreateExceedingCreditRequest {
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @type {CreateExceedingCreditRequestDto}
|
|
322
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
323
|
+
*/
|
|
324
|
+
readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Bearer Token
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
330
|
+
*/
|
|
331
|
+
readonly authorization?: string
|
|
332
|
+
}
|
|
333
|
+
|
|
239
334
|
/**
|
|
240
335
|
* Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
|
|
241
336
|
* @export
|
|
@@ -327,6 +422,18 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
|
|
|
327
422
|
* @extends {BaseAPI}
|
|
328
423
|
*/
|
|
329
424
|
export class ExceedingCreditsApi extends BaseAPI {
|
|
425
|
+
/**
|
|
426
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
427
|
+
* @summary Create the exceeding credit
|
|
428
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
* @memberof ExceedingCreditsApi
|
|
432
|
+
*/
|
|
433
|
+
public createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig) {
|
|
434
|
+
return ExceedingCreditsApiFp(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
435
|
+
}
|
|
436
|
+
|
|
330
437
|
/**
|
|
331
438
|
* 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\"
|
|
332
439
|
* @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
|
|
@@ -96,6 +96,55 @@ var FormData = require('form-data');
|
|
|
96
96
|
var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
101
|
+
* @summary Create the exceeding credit
|
|
102
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto);
|
|
116
|
+
localVarPath = "/paymentservice/v1/exceeding-credits";
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExceedingCreditRequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return [2 /*return*/, {
|
|
141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
},
|
|
99
148
|
/**
|
|
100
149
|
* 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\"
|
|
101
150
|
* @summary Retrieve the exceeding credit
|
|
@@ -226,6 +275,27 @@ exports.ExceedingCreditsApiAxiosParamCreator = ExceedingCreditsApiAxiosParamCrea
|
|
|
226
275
|
var ExceedingCreditsApiFp = function (configuration) {
|
|
227
276
|
var localVarAxiosParamCreator = (0, exports.ExceedingCreditsApiAxiosParamCreator)(configuration);
|
|
228
277
|
return {
|
|
278
|
+
/**
|
|
279
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
280
|
+
* @summary Create the exceeding credit
|
|
281
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
282
|
+
* @param {string} [authorization] Bearer Token
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
288
|
+
var localVarAxiosArgs;
|
|
289
|
+
return __generator(this, function (_a) {
|
|
290
|
+
switch (_a.label) {
|
|
291
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options)];
|
|
292
|
+
case 1:
|
|
293
|
+
localVarAxiosArgs = _a.sent();
|
|
294
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
},
|
|
229
299
|
/**
|
|
230
300
|
* 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\"
|
|
231
301
|
* @summary Retrieve the exceeding credit
|
|
@@ -284,6 +354,17 @@ exports.ExceedingCreditsApiFp = ExceedingCreditsApiFp;
|
|
|
284
354
|
var ExceedingCreditsApiFactory = function (configuration, basePath, axios) {
|
|
285
355
|
var localVarFp = (0, exports.ExceedingCreditsApiFp)(configuration);
|
|
286
356
|
return {
|
|
357
|
+
/**
|
|
358
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
359
|
+
* @summary Create the exceeding credit
|
|
360
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
361
|
+
* @param {string} [authorization] Bearer Token
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
366
|
+
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
367
|
+
},
|
|
287
368
|
/**
|
|
288
369
|
* 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\"
|
|
289
370
|
* @summary Retrieve the exceeding credit
|
|
@@ -326,6 +407,18 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
326
407
|
function ExceedingCreditsApi() {
|
|
327
408
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
328
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
412
|
+
* @summary Create the exceeding credit
|
|
413
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
* @memberof ExceedingCreditsApi
|
|
417
|
+
*/
|
|
418
|
+
ExceedingCreditsApi.prototype.createExceedingCredit = function (requestParameters, options) {
|
|
419
|
+
var _this = this;
|
|
420
|
+
return (0, exports.ExceedingCreditsApiFp)(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
421
|
+
};
|
|
329
422
|
/**
|
|
330
423
|
* 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\"
|
|
331
424
|
* @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';
|