@emilgroup/payment-sdk 1.13.1-beta.72 → 1.13.1-beta.73
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@1.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.13.1-beta.73 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.13.1-beta.73
|
|
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';
|
|
@@ -35,12 +37,13 @@ import { ListPaymentsResponseClass } from '../models';
|
|
|
35
37
|
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
38
|
return {
|
|
37
39
|
/**
|
|
38
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
40
|
+
* 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\"
|
|
39
41
|
* @summary Create the payment
|
|
40
42
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
41
43
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
42
44
|
* @param {string} [authorization] Bearer Token
|
|
43
45
|
* @param {*} [options] Override http request option.
|
|
46
|
+
* @deprecated
|
|
44
47
|
* @throws {RequiredError}
|
|
45
48
|
*/
|
|
46
49
|
createPayment: async (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -88,6 +91,60 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
88
91
|
options: localVarRequestOptions,
|
|
89
92
|
};
|
|
90
93
|
},
|
|
94
|
+
/**
|
|
95
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
96
|
+
* @summary Create the payment
|
|
97
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
98
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createPaymentOrder: async (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
105
|
+
assertParamExists('createPaymentOrder', 'idempotencyKey', idempotencyKey)
|
|
106
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
107
|
+
assertParamExists('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto)
|
|
108
|
+
const localVarPath = `/paymentservice/v1/payments/order`;
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
let baseAccessToken;
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
baseAccessToken = configuration.accessToken;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
119
|
+
const localVarHeaderParameter = {} as any;
|
|
120
|
+
const localVarQueryParameter = {} as any;
|
|
121
|
+
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
|
+
|
|
126
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
131
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
137
|
+
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
141
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentOrderDto, localVarRequestOptions, configuration)
|
|
142
|
+
|
|
143
|
+
return {
|
|
144
|
+
url: toPathString(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
};
|
|
147
|
+
},
|
|
91
148
|
/**
|
|
92
149
|
* 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\"
|
|
93
150
|
* @summary Retrieve the payment
|
|
@@ -225,18 +282,32 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
225
282
|
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
226
283
|
return {
|
|
227
284
|
/**
|
|
228
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
285
|
+
* 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\"
|
|
229
286
|
* @summary Create the payment
|
|
230
287
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
231
288
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
232
289
|
* @param {string} [authorization] Bearer Token
|
|
233
290
|
* @param {*} [options] Override http request option.
|
|
291
|
+
* @deprecated
|
|
234
292
|
* @throws {RequiredError}
|
|
235
293
|
*/
|
|
236
294
|
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
237
295
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
238
296
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
239
297
|
},
|
|
298
|
+
/**
|
|
299
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
300
|
+
* @summary Create the payment
|
|
301
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
302
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
303
|
+
* @param {string} [authorization] Bearer Token
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
async createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options);
|
|
309
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
310
|
+
},
|
|
240
311
|
/**
|
|
241
312
|
* 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\"
|
|
242
313
|
* @summary Retrieve the payment
|
|
@@ -279,17 +350,30 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
279
350
|
const localVarFp = PaymentsApiFp(configuration)
|
|
280
351
|
return {
|
|
281
352
|
/**
|
|
282
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
353
|
+
* 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\"
|
|
283
354
|
* @summary Create the payment
|
|
284
355
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
285
356
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
286
357
|
* @param {string} [authorization] Bearer Token
|
|
287
358
|
* @param {*} [options] Override http request option.
|
|
359
|
+
* @deprecated
|
|
288
360
|
* @throws {RequiredError}
|
|
289
361
|
*/
|
|
290
362
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
291
363
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
292
364
|
},
|
|
365
|
+
/**
|
|
366
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
367
|
+
* @summary Create the payment
|
|
368
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
369
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
370
|
+
* @param {string} [authorization] Bearer Token
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
375
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then((request) => request(axios, basePath));
|
|
376
|
+
},
|
|
293
377
|
/**
|
|
294
378
|
* 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\"
|
|
295
379
|
* @summary Retrieve the payment
|
|
@@ -350,6 +434,34 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
350
434
|
readonly authorization?: string
|
|
351
435
|
}
|
|
352
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
439
|
+
* @export
|
|
440
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
441
|
+
*/
|
|
442
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
443
|
+
/**
|
|
444
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
445
|
+
* @type {string}
|
|
446
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
447
|
+
*/
|
|
448
|
+
readonly idempotencyKey: string
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {CreatePaymentOrderDto}
|
|
453
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
454
|
+
*/
|
|
455
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Bearer Token
|
|
459
|
+
* @type {string}
|
|
460
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
461
|
+
*/
|
|
462
|
+
readonly authorization?: string
|
|
463
|
+
}
|
|
464
|
+
|
|
353
465
|
/**
|
|
354
466
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
355
467
|
* @export
|
|
@@ -449,10 +561,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
449
561
|
*/
|
|
450
562
|
export class PaymentsApi extends BaseAPI {
|
|
451
563
|
/**
|
|
452
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
564
|
+
* 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\"
|
|
453
565
|
* @summary Create the payment
|
|
454
566
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
455
567
|
* @param {*} [options] Override http request option.
|
|
568
|
+
* @deprecated
|
|
456
569
|
* @throws {RequiredError}
|
|
457
570
|
* @memberof PaymentsApi
|
|
458
571
|
*/
|
|
@@ -460,6 +573,18 @@ export class PaymentsApi extends BaseAPI {
|
|
|
460
573
|
return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
461
574
|
}
|
|
462
575
|
|
|
576
|
+
/**
|
|
577
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
578
|
+
* @summary Create the payment
|
|
579
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
* @memberof PaymentsApi
|
|
583
|
+
*/
|
|
584
|
+
public createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig) {
|
|
585
|
+
return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
586
|
+
}
|
|
587
|
+
|
|
463
588
|
/**
|
|
464
589
|
* 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\"
|
|
465
590
|
* @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
|
@@ -93,12 +93,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
96
|
+
* 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\"
|
|
97
97
|
* @summary Create the payment
|
|
98
98
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
99
99
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
100
100
|
* @param {string} [authorization] Bearer Token
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
|
+
* @deprecated
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
104
105
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
@@ -147,6 +148,61 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
147
148
|
});
|
|
148
149
|
});
|
|
149
150
|
},
|
|
151
|
+
/**
|
|
152
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
153
|
+
* @summary Create the payment
|
|
154
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
155
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
156
|
+
* @param {string} [authorization] Bearer Token
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
161
|
+
if (options === void 0) { options = {}; }
|
|
162
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
163
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
switch (_a.label) {
|
|
166
|
+
case 0:
|
|
167
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('createPaymentOrder', 'idempotencyKey', idempotencyKey);
|
|
169
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto);
|
|
171
|
+
localVarPath = "/paymentservice/v1/payments/order";
|
|
172
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
|
+
if (configuration) {
|
|
174
|
+
baseOptions = configuration.baseOptions;
|
|
175
|
+
baseAccessToken = configuration.accessToken;
|
|
176
|
+
}
|
|
177
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
178
|
+
localVarHeaderParameter = {};
|
|
179
|
+
localVarQueryParameter = {};
|
|
180
|
+
// authentication bearer required
|
|
181
|
+
// http bearer authentication required
|
|
182
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
183
|
+
case 1:
|
|
184
|
+
// authentication bearer required
|
|
185
|
+
// http bearer authentication required
|
|
186
|
+
_a.sent();
|
|
187
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
188
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
189
|
+
}
|
|
190
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
192
|
+
}
|
|
193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
194
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
195
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
197
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentOrderDto, localVarRequestOptions, configuration);
|
|
198
|
+
return [2 /*return*/, {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
}];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
},
|
|
150
206
|
/**
|
|
151
207
|
* 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\"
|
|
152
208
|
* @summary Retrieve the payment
|
|
@@ -282,12 +338,13 @@ var PaymentsApiFp = function (configuration) {
|
|
|
282
338
|
var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
|
|
283
339
|
return {
|
|
284
340
|
/**
|
|
285
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
341
|
+
* 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\"
|
|
286
342
|
* @summary Create the payment
|
|
287
343
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
288
344
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
289
345
|
* @param {string} [authorization] Bearer Token
|
|
290
346
|
* @param {*} [options] Override http request option.
|
|
347
|
+
* @deprecated
|
|
291
348
|
* @throws {RequiredError}
|
|
292
349
|
*/
|
|
293
350
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
@@ -303,6 +360,28 @@ var PaymentsApiFp = function (configuration) {
|
|
|
303
360
|
});
|
|
304
361
|
});
|
|
305
362
|
},
|
|
363
|
+
/**
|
|
364
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
365
|
+
* @summary Create the payment
|
|
366
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
367
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
374
|
+
var localVarAxiosArgs;
|
|
375
|
+
return __generator(this, function (_a) {
|
|
376
|
+
switch (_a.label) {
|
|
377
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options)];
|
|
378
|
+
case 1:
|
|
379
|
+
localVarAxiosArgs = _a.sent();
|
|
380
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
},
|
|
306
385
|
/**
|
|
307
386
|
* 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\"
|
|
308
387
|
* @summary Retrieve the payment
|
|
@@ -363,17 +442,30 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
363
442
|
var localVarFp = (0, exports.PaymentsApiFp)(configuration);
|
|
364
443
|
return {
|
|
365
444
|
/**
|
|
366
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
445
|
+
* 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\"
|
|
367
446
|
* @summary Create the payment
|
|
368
447
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
369
448
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
370
449
|
* @param {string} [authorization] Bearer Token
|
|
371
450
|
* @param {*} [options] Override http request option.
|
|
451
|
+
* @deprecated
|
|
372
452
|
* @throws {RequiredError}
|
|
373
453
|
*/
|
|
374
454
|
createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
|
|
375
455
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
376
456
|
},
|
|
457
|
+
/**
|
|
458
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
459
|
+
* @summary Create the payment
|
|
460
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
461
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
462
|
+
* @param {string} [authorization] Bearer Token
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
|
|
467
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
468
|
+
},
|
|
377
469
|
/**
|
|
378
470
|
* 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\"
|
|
379
471
|
* @summary Retrieve the payment
|
|
@@ -418,10 +510,11 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
418
510
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
419
511
|
}
|
|
420
512
|
/**
|
|
421
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
513
|
+
* 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\"
|
|
422
514
|
* @summary Create the payment
|
|
423
515
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
424
516
|
* @param {*} [options] Override http request option.
|
|
517
|
+
* @deprecated
|
|
425
518
|
* @throws {RequiredError}
|
|
426
519
|
* @memberof PaymentsApi
|
|
427
520
|
*/
|
|
@@ -429,6 +522,18 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
429
522
|
var _this = this;
|
|
430
523
|
return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
431
524
|
};
|
|
525
|
+
/**
|
|
526
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
527
|
+
* @summary Create the payment
|
|
528
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
* @memberof PaymentsApi
|
|
532
|
+
*/
|
|
533
|
+
PaymentsApi.prototype.createPaymentOrder = function (requestParameters, options) {
|
|
534
|
+
var _this = this;
|
|
535
|
+
return (0, exports.PaymentsApiFp)(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
536
|
+
};
|
|
432
537
|
/**
|
|
433
538
|
* 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\"
|
|
434
539
|
* @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';
|