@emilgroup/payment-sdk-node 1.21.1-beta.71 → 1.21.1-beta.72
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/payments-api.ts +129 -4
- package/dist/api/payments-api.d.ts +73 -4
- package/dist/api/payments-api.js +109 -4
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -38,6 +38,8 @@ models/create-bank-account-response-class.ts
|
|
|
38
38
|
models/create-bank-order-request-dto.ts
|
|
39
39
|
models/create-bank-order-response-class.ts
|
|
40
40
|
models/create-payment-method-response-class.ts
|
|
41
|
+
models/create-payment-order-dto.ts
|
|
42
|
+
models/create-payment-order-request-dto.ts
|
|
41
43
|
models/create-payment-reminder-request-dto.ts
|
|
42
44
|
models/create-payment-reminder-response-class.ts
|
|
43
45
|
models/create-payment-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.21.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.21.1-beta.72 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.21.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.21.1-beta.72
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/payments-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ 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 { CreatePaymentOrderDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreatePaymentResponseClass } from '../models';
|
|
@@ -39,12 +41,13 @@ const FormData = require('form-data');
|
|
|
39
41
|
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
42
|
return {
|
|
41
43
|
/**
|
|
42
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
44
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
43
45
|
* @summary Create the payment
|
|
44
46
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
45
47
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
46
48
|
* @param {string} [authorization] Bearer Token
|
|
47
49
|
* @param {*} [options] Override http request option.
|
|
50
|
+
* @deprecated
|
|
48
51
|
* @throws {RequiredError}
|
|
49
52
|
*/
|
|
50
53
|
createPayment: async (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -92,6 +95,60 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
95
|
options: localVarRequestOptions,
|
|
93
96
|
};
|
|
94
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
100
|
+
* @summary Create the payment
|
|
101
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
102
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
createPaymentOrder: async (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
108
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
109
|
+
assertParamExists('createPaymentOrder', 'idempotencyKey', idempotencyKey)
|
|
110
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
111
|
+
assertParamExists('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto)
|
|
112
|
+
const localVarPath = `/paymentservice/v1/payments/order`;
|
|
113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
115
|
+
let baseOptions;
|
|
116
|
+
let baseAccessToken;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
baseAccessToken = configuration.accessToken;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
123
|
+
const localVarHeaderParameter = {} as any;
|
|
124
|
+
const localVarQueryParameter = {} as any;
|
|
125
|
+
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
129
|
+
|
|
130
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
135
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentOrderDto, localVarRequestOptions, configuration)
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
95
152
|
/**
|
|
96
153
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
97
154
|
* @summary Retrieve the payment
|
|
@@ -229,18 +286,32 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
229
286
|
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
230
287
|
return {
|
|
231
288
|
/**
|
|
232
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
289
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
233
290
|
* @summary Create the payment
|
|
234
291
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
235
292
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
236
293
|
* @param {string} [authorization] Bearer Token
|
|
237
294
|
* @param {*} [options] Override http request option.
|
|
295
|
+
* @deprecated
|
|
238
296
|
* @throws {RequiredError}
|
|
239
297
|
*/
|
|
240
298
|
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
241
299
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
242
300
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
243
301
|
},
|
|
302
|
+
/**
|
|
303
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
304
|
+
* @summary Create the payment
|
|
305
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
306
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
307
|
+
* @param {string} [authorization] Bearer Token
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
async createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options);
|
|
313
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
314
|
+
},
|
|
244
315
|
/**
|
|
245
316
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
246
317
|
* @summary Retrieve the payment
|
|
@@ -283,17 +354,30 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
283
354
|
const localVarFp = PaymentsApiFp(configuration)
|
|
284
355
|
return {
|
|
285
356
|
/**
|
|
286
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
357
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
287
358
|
* @summary Create the payment
|
|
288
359
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
289
360
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
290
361
|
* @param {string} [authorization] Bearer Token
|
|
291
362
|
* @param {*} [options] Override http request option.
|
|
363
|
+
* @deprecated
|
|
292
364
|
* @throws {RequiredError}
|
|
293
365
|
*/
|
|
294
366
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
295
367
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
296
368
|
},
|
|
369
|
+
/**
|
|
370
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
371
|
+
* @summary Create the payment
|
|
372
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
373
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
374
|
+
* @param {string} [authorization] Bearer Token
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
379
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then((request) => request(axios, basePath));
|
|
380
|
+
},
|
|
297
381
|
/**
|
|
298
382
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
299
383
|
* @summary Retrieve the payment
|
|
@@ -354,6 +438,34 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
354
438
|
readonly authorization?: string
|
|
355
439
|
}
|
|
356
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
443
|
+
* @export
|
|
444
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
445
|
+
*/
|
|
446
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
447
|
+
/**
|
|
448
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
451
|
+
*/
|
|
452
|
+
readonly idempotencyKey: string
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @type {CreatePaymentOrderDto}
|
|
457
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
458
|
+
*/
|
|
459
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Bearer Token
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
465
|
+
*/
|
|
466
|
+
readonly authorization?: string
|
|
467
|
+
}
|
|
468
|
+
|
|
357
469
|
/**
|
|
358
470
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
359
471
|
* @export
|
|
@@ -453,10 +565,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
453
565
|
*/
|
|
454
566
|
export class PaymentsApi extends BaseAPI {
|
|
455
567
|
/**
|
|
456
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
568
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
457
569
|
* @summary Create the payment
|
|
458
570
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
459
571
|
* @param {*} [options] Override http request option.
|
|
572
|
+
* @deprecated
|
|
460
573
|
* @throws {RequiredError}
|
|
461
574
|
* @memberof PaymentsApi
|
|
462
575
|
*/
|
|
@@ -464,6 +577,18 @@ export class PaymentsApi extends BaseAPI {
|
|
|
464
577
|
return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
465
578
|
}
|
|
466
579
|
|
|
580
|
+
/**
|
|
581
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
582
|
+
* @summary Create the payment
|
|
583
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof PaymentsApi
|
|
587
|
+
*/
|
|
588
|
+
public createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig) {
|
|
589
|
+
return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
591
|
+
|
|
467
592
|
/**
|
|
468
593
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
469
594
|
* @summary Retrieve the payment
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePaymentOrderDto } from '../models';
|
|
15
16
|
import { CreatePaymentRequestDto } from '../models';
|
|
16
17
|
import { CreatePaymentResponseClass } from '../models';
|
|
17
18
|
import { GetPaymentResponseClass } from '../models';
|
|
@@ -22,15 +23,26 @@ import { ListPaymentsResponseClass } from '../models';
|
|
|
22
23
|
*/
|
|
23
24
|
export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
25
|
/**
|
|
25
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
26
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
26
27
|
* @summary Create the payment
|
|
27
28
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
28
29
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
29
30
|
* @param {string} [authorization] Bearer Token
|
|
30
31
|
* @param {*} [options] Override http request option.
|
|
32
|
+
* @deprecated
|
|
31
33
|
* @throws {RequiredError}
|
|
32
34
|
*/
|
|
33
35
|
createPayment: (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
38
|
+
* @summary Create the payment
|
|
39
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
40
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
createPaymentOrder: (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
46
|
/**
|
|
35
47
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
36
48
|
* @summary Retrieve the payment
|
|
@@ -63,15 +75,26 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
63
75
|
*/
|
|
64
76
|
export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
65
77
|
/**
|
|
66
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
78
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
67
79
|
* @summary Create the payment
|
|
68
80
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
69
81
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
70
82
|
* @param {string} [authorization] Bearer Token
|
|
71
83
|
* @param {*} [options] Override http request option.
|
|
84
|
+
* @deprecated
|
|
72
85
|
* @throws {RequiredError}
|
|
73
86
|
*/
|
|
74
87
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
88
|
+
/**
|
|
89
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
90
|
+
* @summary Create the payment
|
|
91
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
92
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
93
|
+
* @param {string} [authorization] Bearer Token
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
75
98
|
/**
|
|
76
99
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
77
100
|
* @summary Retrieve the payment
|
|
@@ -104,15 +127,26 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
104
127
|
*/
|
|
105
128
|
export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
106
129
|
/**
|
|
107
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
130
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
108
131
|
* @summary Create the payment
|
|
109
132
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
110
133
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
111
134
|
* @param {string} [authorization] Bearer Token
|
|
112
135
|
* @param {*} [options] Override http request option.
|
|
136
|
+
* @deprecated
|
|
113
137
|
* @throws {RequiredError}
|
|
114
138
|
*/
|
|
115
139
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
140
|
+
/**
|
|
141
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
142
|
+
* @summary Create the payment
|
|
143
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
144
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
145
|
+
* @param {string} [authorization] Bearer Token
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
116
150
|
/**
|
|
117
151
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
118
152
|
* @summary Retrieve the payment
|
|
@@ -164,6 +198,31 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
164
198
|
*/
|
|
165
199
|
readonly authorization?: string;
|
|
166
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
203
|
+
* @export
|
|
204
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
205
|
+
*/
|
|
206
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
207
|
+
/**
|
|
208
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
211
|
+
*/
|
|
212
|
+
readonly idempotencyKey: string;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {CreatePaymentOrderDto}
|
|
216
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
217
|
+
*/
|
|
218
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto;
|
|
219
|
+
/**
|
|
220
|
+
* Bearer Token
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
223
|
+
*/
|
|
224
|
+
readonly authorization?: string;
|
|
225
|
+
}
|
|
167
226
|
/**
|
|
168
227
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
169
228
|
* @export
|
|
@@ -252,14 +311,24 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
252
311
|
*/
|
|
253
312
|
export declare class PaymentsApi extends BaseAPI {
|
|
254
313
|
/**
|
|
255
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
314
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
256
315
|
* @summary Create the payment
|
|
257
316
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
258
317
|
* @param {*} [options] Override http request option.
|
|
318
|
+
* @deprecated
|
|
259
319
|
* @throws {RequiredError}
|
|
260
320
|
* @memberof PaymentsApi
|
|
261
321
|
*/
|
|
262
322
|
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
323
|
+
/**
|
|
324
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
325
|
+
* @summary Create the payment
|
|
326
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
* @memberof PaymentsApi
|
|
330
|
+
*/
|
|
331
|
+
createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
263
332
|
/**
|
|
264
333
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
265
334
|
* @summary Retrieve the payment
|
package/dist/api/payments-api.js
CHANGED
|
@@ -97,12 +97,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
100
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
101
101
|
* @summary Create the payment
|
|
102
102
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
103
103
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
104
104
|
* @param {string} [authorization] Bearer Token
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
|
+
* @deprecated
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
109
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
@@ -151,6 +152,61 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
151
152
|
});
|
|
152
153
|
});
|
|
153
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
157
|
+
* @summary Create the payment
|
|
158
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
159
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
160
|
+
* @param {string} [authorization] Bearer Token
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
165
|
+
if (options === void 0) { options = {}; }
|
|
166
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
167
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0:
|
|
171
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
172
|
+
(0, common_1.assertParamExists)('createPaymentOrder', 'idempotencyKey', idempotencyKey);
|
|
173
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto);
|
|
175
|
+
localVarPath = "/paymentservice/v1/payments/order";
|
|
176
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
177
|
+
if (configuration) {
|
|
178
|
+
baseOptions = configuration.baseOptions;
|
|
179
|
+
baseAccessToken = configuration.accessToken;
|
|
180
|
+
}
|
|
181
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
182
|
+
localVarHeaderParameter = {};
|
|
183
|
+
localVarQueryParameter = {};
|
|
184
|
+
// authentication bearer required
|
|
185
|
+
// http bearer authentication required
|
|
186
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
187
|
+
case 1:
|
|
188
|
+
// authentication bearer required
|
|
189
|
+
// http bearer authentication required
|
|
190
|
+
_a.sent();
|
|
191
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
193
|
+
}
|
|
194
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
195
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
196
|
+
}
|
|
197
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
198
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
201
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentOrderDto, localVarRequestOptions, configuration);
|
|
202
|
+
return [2 /*return*/, {
|
|
203
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
}];
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
},
|
|
154
210
|
/**
|
|
155
211
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
156
212
|
* @summary Retrieve the payment
|
|
@@ -286,12 +342,13 @@ var PaymentsApiFp = function (configuration) {
|
|
|
286
342
|
var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
|
|
287
343
|
return {
|
|
288
344
|
/**
|
|
289
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
345
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
290
346
|
* @summary Create the payment
|
|
291
347
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
292
348
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
293
349
|
* @param {string} [authorization] Bearer Token
|
|
294
350
|
* @param {*} [options] Override http request option.
|
|
351
|
+
* @deprecated
|
|
295
352
|
* @throws {RequiredError}
|
|
296
353
|
*/
|
|
297
354
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
@@ -307,6 +364,28 @@ var PaymentsApiFp = function (configuration) {
|
|
|
307
364
|
});
|
|
308
365
|
});
|
|
309
366
|
},
|
|
367
|
+
/**
|
|
368
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
369
|
+
* @summary Create the payment
|
|
370
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
371
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
372
|
+
* @param {string} [authorization] Bearer Token
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
378
|
+
var localVarAxiosArgs;
|
|
379
|
+
return __generator(this, function (_a) {
|
|
380
|
+
switch (_a.label) {
|
|
381
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options)];
|
|
382
|
+
case 1:
|
|
383
|
+
localVarAxiosArgs = _a.sent();
|
|
384
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
},
|
|
310
389
|
/**
|
|
311
390
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
312
391
|
* @summary Retrieve the payment
|
|
@@ -367,17 +446,30 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
367
446
|
var localVarFp = (0, exports.PaymentsApiFp)(configuration);
|
|
368
447
|
return {
|
|
369
448
|
/**
|
|
370
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
449
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
371
450
|
* @summary Create the payment
|
|
372
451
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
373
452
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
374
453
|
* @param {string} [authorization] Bearer Token
|
|
375
454
|
* @param {*} [options] Override http request option.
|
|
455
|
+
* @deprecated
|
|
376
456
|
* @throws {RequiredError}
|
|
377
457
|
*/
|
|
378
458
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
379
459
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
380
460
|
},
|
|
461
|
+
/**
|
|
462
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
463
|
+
* @summary Create the payment
|
|
464
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
465
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
466
|
+
* @param {string} [authorization] Bearer Token
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
471
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
472
|
+
},
|
|
381
473
|
/**
|
|
382
474
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
383
475
|
* @summary Retrieve the payment
|
|
@@ -422,10 +514,11 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
422
514
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
423
515
|
}
|
|
424
516
|
/**
|
|
425
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
517
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
426
518
|
* @summary Create the payment
|
|
427
519
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
428
520
|
* @param {*} [options] Override http request option.
|
|
521
|
+
* @deprecated
|
|
429
522
|
* @throws {RequiredError}
|
|
430
523
|
* @memberof PaymentsApi
|
|
431
524
|
*/
|
|
@@ -433,6 +526,18 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
433
526
|
var _this = this;
|
|
434
527
|
return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
435
528
|
};
|
|
529
|
+
/**
|
|
530
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
531
|
+
* @summary Create the payment
|
|
532
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
* @memberof PaymentsApi
|
|
536
|
+
*/
|
|
537
|
+
PaymentsApi.prototype.createPaymentOrder = function (requestParameters, options) {
|
|
538
|
+
var _this = this;
|
|
539
|
+
return (0, exports.PaymentsApiFp)(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
540
|
+
};
|
|
436
541
|
/**
|
|
437
542
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
438
543
|
* @summary Retrieve the payment
|
|
@@ -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 CreatePaymentOrderDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePaymentOrderDto {
|
|
18
|
+
/**
|
|
19
|
+
* Invoice referenced in this payment order.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreatePaymentOrderDto
|
|
22
|
+
*/
|
|
23
|
+
'invoiceId': number;
|
|
24
|
+
/**
|
|
25
|
+
* Optional comment.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePaymentOrderDto
|
|
28
|
+
*/
|
|
29
|
+
'comment'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional payment date.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreatePaymentOrderDto
|
|
34
|
+
*/
|
|
35
|
+
'receivedDate'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional reference number.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePaymentOrderDto
|
|
40
|
+
*/
|
|
41
|
+
'referenceNumber'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional field contain extra information.
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof CreatePaymentOrderDto
|
|
46
|
+
*/
|
|
47
|
+
'metadata': object;
|
|
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,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 CreatePaymentOrderRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePaymentOrderRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'invoiceId': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'comment'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'receivedDate'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'referenceNumber'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'metadata': object;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './create-bank-account-response-class';
|
|
|
17
17
|
export * from './create-bank-order-request-dto';
|
|
18
18
|
export * from './create-bank-order-response-class';
|
|
19
19
|
export * from './create-payment-method-response-class';
|
|
20
|
+
export * from './create-payment-order-dto';
|
|
21
|
+
export * from './create-payment-order-request-dto';
|
|
20
22
|
export * from './create-payment-reminder-request-dto';
|
|
21
23
|
export * from './create-payment-reminder-response-class';
|
|
22
24
|
export * from './create-payment-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,8 @@ __exportStar(require("./create-bank-account-response-class"), exports);
|
|
|
33
33
|
__exportStar(require("./create-bank-order-request-dto"), exports);
|
|
34
34
|
__exportStar(require("./create-bank-order-response-class"), exports);
|
|
35
35
|
__exportStar(require("./create-payment-method-response-class"), exports);
|
|
36
|
+
__exportStar(require("./create-payment-order-dto"), exports);
|
|
37
|
+
__exportStar(require("./create-payment-order-request-dto"), exports);
|
|
36
38
|
__exportStar(require("./create-payment-reminder-request-dto"), exports);
|
|
37
39
|
__exportStar(require("./create-payment-reminder-response-class"), exports);
|
|
38
40
|
__exportStar(require("./create-payment-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 CreatePaymentOrderDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePaymentOrderDto {
|
|
23
|
+
/**
|
|
24
|
+
* Invoice referenced in this payment order.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreatePaymentOrderDto
|
|
27
|
+
*/
|
|
28
|
+
'invoiceId': number;
|
|
29
|
+
/**
|
|
30
|
+
* Optional comment.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePaymentOrderDto
|
|
33
|
+
*/
|
|
34
|
+
'comment'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional payment date.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreatePaymentOrderDto
|
|
39
|
+
*/
|
|
40
|
+
'receivedDate'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional reference number.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreatePaymentOrderDto
|
|
45
|
+
*/
|
|
46
|
+
'referenceNumber'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Optional field contain extra information.
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof CreatePaymentOrderDto
|
|
51
|
+
*/
|
|
52
|
+
'metadata': object;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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 CreatePaymentOrderRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePaymentOrderRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'invoiceId': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'comment'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'receivedDate'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'referenceNumber'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof CreatePaymentOrderRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'metadata': object;
|
|
53
|
+
}
|
|
54
|
+
|
package/models/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './create-bank-account-response-class';
|
|
|
17
17
|
export * from './create-bank-order-request-dto';
|
|
18
18
|
export * from './create-bank-order-response-class';
|
|
19
19
|
export * from './create-payment-method-response-class';
|
|
20
|
+
export * from './create-payment-order-dto';
|
|
21
|
+
export * from './create-payment-order-request-dto';
|
|
20
22
|
export * from './create-payment-reminder-request-dto';
|
|
21
23
|
export * from './create-payment-reminder-response-class';
|
|
22
24
|
export * from './create-payment-request-dto';
|