@emilgroup/payment-sdk 1.16.1-beta.0 → 1.16.1-beta.7
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/README.md +2 -2
- package/api/payment-requests-api.ts +101 -0
- package/dist/api/payment-requests-api.d.ts +55 -0
- package/dist/api/payment-requests-api.js +92 -0
- package/dist/models/create-payment-request-request-dto.d.ts +1 -1
- package/dist/models/payment-request-class.d.ts +3 -3
- package/dist/models/payment-request-class.js +2 -2
- package/dist/models/update-payment-request-request-dto.d.ts +3 -3
- package/dist/models/update-payment-request-request-dto.js +2 -2
- package/models/create-payment-request-request-dto.ts +1 -1
- package/models/payment-request-class.ts +3 -3
- package/models/update-payment-request-request-dto.ts +3 -3
- package/package.json +1 -1
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.16.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.16.1-beta.7 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.16.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.16.1-beta.7
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -85,6 +85,51 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
85
85
|
options: localVarRequestOptions,
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
90
|
+
* @summary Delete the payment request
|
|
91
|
+
* @param {string} code Unique identifier for the object.
|
|
92
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deletePaymentRequest: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'code' is not null or undefined
|
|
98
|
+
assertParamExists('deletePaymentRequest', 'code', code)
|
|
99
|
+
const localVarPath = `/paymentservice/v1/payment-requests/{code}`
|
|
100
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
88
133
|
/**
|
|
89
134
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
90
135
|
* @summary Retrieve the payment request
|
|
@@ -286,6 +331,18 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
|
|
|
286
331
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequestDto, authorization, options);
|
|
287
332
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
288
333
|
},
|
|
334
|
+
/**
|
|
335
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
336
|
+
* @summary Delete the payment request
|
|
337
|
+
* @param {string} code Unique identifier for the object.
|
|
338
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async deletePaymentRequest(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options);
|
|
344
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
|
+
},
|
|
289
346
|
/**
|
|
290
347
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
291
348
|
* @summary Retrieve the payment request
|
|
@@ -351,6 +408,17 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
|
|
|
351
408
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass> {
|
|
352
409
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
353
410
|
},
|
|
411
|
+
/**
|
|
412
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
413
|
+
* @summary Delete the payment request
|
|
414
|
+
* @param {string} code Unique identifier for the object.
|
|
415
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
deletePaymentRequest(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
420
|
+
return localVarFp.deletePaymentRequest(code, authorization, options).then((request) => request(axios, basePath));
|
|
421
|
+
},
|
|
354
422
|
/**
|
|
355
423
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
356
424
|
* @summary Retrieve the payment request
|
|
@@ -416,6 +484,27 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
|
|
|
416
484
|
readonly authorization?: string
|
|
417
485
|
}
|
|
418
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Request parameters for deletePaymentRequest operation in PaymentRequestsApi.
|
|
489
|
+
* @export
|
|
490
|
+
* @interface PaymentRequestsApiDeletePaymentRequestRequest
|
|
491
|
+
*/
|
|
492
|
+
export interface PaymentRequestsApiDeletePaymentRequestRequest {
|
|
493
|
+
/**
|
|
494
|
+
* Unique identifier for the object.
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
497
|
+
*/
|
|
498
|
+
readonly code: string
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
504
|
+
*/
|
|
505
|
+
readonly authorization?: string
|
|
506
|
+
}
|
|
507
|
+
|
|
419
508
|
/**
|
|
420
509
|
* Request parameters for getPaymentRequest operation in PaymentRequestsApi.
|
|
421
510
|
* @export
|
|
@@ -554,6 +643,18 @@ export class PaymentRequestsApi extends BaseAPI {
|
|
|
554
643
|
return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
555
644
|
}
|
|
556
645
|
|
|
646
|
+
/**
|
|
647
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
648
|
+
* @summary Delete the payment request
|
|
649
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
* @memberof PaymentRequestsApi
|
|
653
|
+
*/
|
|
654
|
+
public deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig) {
|
|
655
|
+
return PaymentRequestsApiFp(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
656
|
+
}
|
|
657
|
+
|
|
557
658
|
/**
|
|
558
659
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
559
660
|
* @summary Retrieve the payment request
|
|
@@ -32,6 +32,15 @@ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
createPaymentRequest: (createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
37
|
+
* @summary Delete the payment request
|
|
38
|
+
* @param {string} code Unique identifier for the object.
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deletePaymentRequest: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
44
|
/**
|
|
36
45
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
37
46
|
* @summary Retrieve the payment request
|
|
@@ -82,6 +91,15 @@ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
|
|
|
82
91
|
* @throws {RequiredError}
|
|
83
92
|
*/
|
|
84
93
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentRequestResponseClass>>;
|
|
94
|
+
/**
|
|
95
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
96
|
+
* @summary Delete the payment request
|
|
97
|
+
* @param {string} code Unique identifier for the object.
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
deletePaymentRequest(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
85
103
|
/**
|
|
86
104
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
87
105
|
* @summary Retrieve the payment request
|
|
@@ -132,6 +150,15 @@ export declare const PaymentRequestsApiFactory: (configuration?: Configuration,
|
|
|
132
150
|
* @throws {RequiredError}
|
|
133
151
|
*/
|
|
134
152
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass>;
|
|
153
|
+
/**
|
|
154
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
155
|
+
* @summary Delete the payment request
|
|
156
|
+
* @param {string} code Unique identifier for the object.
|
|
157
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
deletePaymentRequest(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
135
162
|
/**
|
|
136
163
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
137
164
|
* @summary Retrieve the payment request
|
|
@@ -187,6 +214,25 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
|
|
|
187
214
|
*/
|
|
188
215
|
readonly authorization?: string;
|
|
189
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Request parameters for deletePaymentRequest operation in PaymentRequestsApi.
|
|
219
|
+
* @export
|
|
220
|
+
* @interface PaymentRequestsApiDeletePaymentRequestRequest
|
|
221
|
+
*/
|
|
222
|
+
export interface PaymentRequestsApiDeletePaymentRequestRequest {
|
|
223
|
+
/**
|
|
224
|
+
* Unique identifier for the object.
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
227
|
+
*/
|
|
228
|
+
readonly code: string;
|
|
229
|
+
/**
|
|
230
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
233
|
+
*/
|
|
234
|
+
readonly authorization?: string;
|
|
235
|
+
}
|
|
190
236
|
/**
|
|
191
237
|
* Request parameters for getPaymentRequest operation in PaymentRequestsApi.
|
|
192
238
|
* @export
|
|
@@ -308,6 +354,15 @@ export declare class PaymentRequestsApi extends BaseAPI {
|
|
|
308
354
|
* @memberof PaymentRequestsApi
|
|
309
355
|
*/
|
|
310
356
|
createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentRequestResponseClass, any, {}>>;
|
|
357
|
+
/**
|
|
358
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
359
|
+
* @summary Delete the payment request
|
|
360
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof PaymentRequestsApi
|
|
364
|
+
*/
|
|
365
|
+
deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
311
366
|
/**
|
|
312
367
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
313
368
|
* @summary Retrieve the payment request
|
|
@@ -141,6 +141,54 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
+
/**
|
|
145
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
146
|
+
* @summary Delete the payment request
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'code' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deletePaymentRequest', 'code', code);
|
|
161
|
+
localVarPath = "/paymentservice/v1/payment-requests/{code}"
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
144
192
|
/**
|
|
145
193
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
146
194
|
* @summary Retrieve the payment request
|
|
@@ -351,6 +399,27 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
351
399
|
});
|
|
352
400
|
});
|
|
353
401
|
},
|
|
402
|
+
/**
|
|
403
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
404
|
+
* @summary Delete the payment request
|
|
405
|
+
* @param {string} code Unique identifier for the object.
|
|
406
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
+
var localVarAxiosArgs;
|
|
413
|
+
return __generator(this, function (_a) {
|
|
414
|
+
switch (_a.label) {
|
|
415
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options)];
|
|
416
|
+
case 1:
|
|
417
|
+
localVarAxiosArgs = _a.sent();
|
|
418
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
},
|
|
354
423
|
/**
|
|
355
424
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
356
425
|
* @summary Retrieve the payment request
|
|
@@ -443,6 +512,17 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
443
512
|
createPaymentRequest: function (createPaymentRequestRequestDto, authorization, options) {
|
|
444
513
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
445
514
|
},
|
|
515
|
+
/**
|
|
516
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
517
|
+
* @summary Delete the payment request
|
|
518
|
+
* @param {string} code Unique identifier for the object.
|
|
519
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
524
|
+
return localVarFp.deletePaymentRequest(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
525
|
+
},
|
|
446
526
|
/**
|
|
447
527
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
448
528
|
* @summary Retrieve the payment request
|
|
@@ -510,6 +590,18 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
|
|
|
510
590
|
var _this = this;
|
|
511
591
|
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
512
592
|
};
|
|
593
|
+
/**
|
|
594
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
595
|
+
* @summary Delete the payment request
|
|
596
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
* @memberof PaymentRequestsApi
|
|
600
|
+
*/
|
|
601
|
+
PaymentRequestsApi.prototype.deletePaymentRequest = function (requestParameters, options) {
|
|
602
|
+
var _this = this;
|
|
603
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
604
|
+
};
|
|
513
605
|
/**
|
|
514
606
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
515
607
|
* @summary Retrieve the payment request
|
|
@@ -22,7 +22,7 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'amount': number;
|
|
24
24
|
/**
|
|
25
|
-
* Currency code for the payment request.
|
|
25
|
+
* Currency code for the payment request (ISO 4217 format).
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreatePaymentRequestRequestDto
|
|
28
28
|
*/
|
|
@@ -58,7 +58,7 @@ export interface PaymentRequestClass {
|
|
|
58
58
|
*/
|
|
59
59
|
'type': PaymentRequestClassTypeEnum;
|
|
60
60
|
/**
|
|
61
|
-
* Current status of the payment request. Valid statuses: open, approved,
|
|
61
|
+
* Current status of the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof PaymentRequestClass
|
|
64
64
|
*/
|
|
@@ -103,9 +103,9 @@ export type PaymentRequestClassTypeEnum = typeof PaymentRequestClassTypeEnum[key
|
|
|
103
103
|
export declare const PaymentRequestClassStatusEnum: {
|
|
104
104
|
readonly Open: "open";
|
|
105
105
|
readonly Approved: "approved";
|
|
106
|
-
readonly
|
|
106
|
+
readonly Pending: "pending";
|
|
107
107
|
readonly Succeeded: "succeeded";
|
|
108
108
|
readonly Failed: "failed";
|
|
109
|
-
readonly
|
|
109
|
+
readonly Withdrawn: "withdrawn";
|
|
110
110
|
};
|
|
111
111
|
export type PaymentRequestClassStatusEnum = typeof PaymentRequestClassStatusEnum[keyof typeof PaymentRequestClassStatusEnum];
|
|
@@ -27,8 +27,8 @@ exports.PaymentRequestClassTypeEnum = {
|
|
|
27
27
|
exports.PaymentRequestClassStatusEnum = {
|
|
28
28
|
Open: 'open',
|
|
29
29
|
Approved: 'approved',
|
|
30
|
-
|
|
30
|
+
Pending: 'pending',
|
|
31
31
|
Succeeded: 'succeeded',
|
|
32
32
|
Failed: 'failed',
|
|
33
|
-
|
|
33
|
+
Withdrawn: 'withdrawn'
|
|
34
34
|
};
|
|
@@ -22,7 +22,7 @@ export interface UpdatePaymentRequestRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'code': string;
|
|
24
24
|
/**
|
|
25
|
-
* New status for the payment request. Valid statuses: open, approved,
|
|
25
|
+
* New status for the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdatePaymentRequestRequestDto
|
|
28
28
|
*/
|
|
@@ -31,9 +31,9 @@ export interface UpdatePaymentRequestRequestDto {
|
|
|
31
31
|
export declare const UpdatePaymentRequestRequestDtoStatusEnum: {
|
|
32
32
|
readonly Open: "open";
|
|
33
33
|
readonly Approved: "approved";
|
|
34
|
-
readonly
|
|
34
|
+
readonly Pending: "pending";
|
|
35
35
|
readonly Succeeded: "succeeded";
|
|
36
36
|
readonly Failed: "failed";
|
|
37
|
-
readonly
|
|
37
|
+
readonly Withdrawn: "withdrawn";
|
|
38
38
|
};
|
|
39
39
|
export type UpdatePaymentRequestRequestDtoStatusEnum = typeof UpdatePaymentRequestRequestDtoStatusEnum[keyof typeof UpdatePaymentRequestRequestDtoStatusEnum];
|
|
@@ -17,8 +17,8 @@ exports.UpdatePaymentRequestRequestDtoStatusEnum = void 0;
|
|
|
17
17
|
exports.UpdatePaymentRequestRequestDtoStatusEnum = {
|
|
18
18
|
Open: 'open',
|
|
19
19
|
Approved: 'approved',
|
|
20
|
-
|
|
20
|
+
Pending: 'pending',
|
|
21
21
|
Succeeded: 'succeeded',
|
|
22
22
|
Failed: 'failed',
|
|
23
|
-
|
|
23
|
+
Withdrawn: 'withdrawn'
|
|
24
24
|
};
|
|
@@ -27,7 +27,7 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'amount': number;
|
|
29
29
|
/**
|
|
30
|
-
* Currency code for the payment request.
|
|
30
|
+
* Currency code for the payment request (ISO 4217 format).
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreatePaymentRequestRequestDto
|
|
33
33
|
*/
|
|
@@ -63,7 +63,7 @@ export interface PaymentRequestClass {
|
|
|
63
63
|
*/
|
|
64
64
|
'type': PaymentRequestClassTypeEnum;
|
|
65
65
|
/**
|
|
66
|
-
* Current status of the payment request. Valid statuses: open, approved,
|
|
66
|
+
* Current status of the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof PaymentRequestClass
|
|
69
69
|
*/
|
|
@@ -111,10 +111,10 @@ export type PaymentRequestClassTypeEnum = typeof PaymentRequestClassTypeEnum[key
|
|
|
111
111
|
export const PaymentRequestClassStatusEnum = {
|
|
112
112
|
Open: 'open',
|
|
113
113
|
Approved: 'approved',
|
|
114
|
-
|
|
114
|
+
Pending: 'pending',
|
|
115
115
|
Succeeded: 'succeeded',
|
|
116
116
|
Failed: 'failed',
|
|
117
|
-
|
|
117
|
+
Withdrawn: 'withdrawn'
|
|
118
118
|
} as const;
|
|
119
119
|
|
|
120
120
|
export type PaymentRequestClassStatusEnum = typeof PaymentRequestClassStatusEnum[keyof typeof PaymentRequestClassStatusEnum];
|
|
@@ -27,7 +27,7 @@ export interface UpdatePaymentRequestRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'code': string;
|
|
29
29
|
/**
|
|
30
|
-
* New status for the payment request. Valid statuses: open, approved,
|
|
30
|
+
* New status for the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof UpdatePaymentRequestRequestDto
|
|
33
33
|
*/
|
|
@@ -37,10 +37,10 @@ export interface UpdatePaymentRequestRequestDto {
|
|
|
37
37
|
export const UpdatePaymentRequestRequestDtoStatusEnum = {
|
|
38
38
|
Open: 'open',
|
|
39
39
|
Approved: 'approved',
|
|
40
|
-
|
|
40
|
+
Pending: 'pending',
|
|
41
41
|
Succeeded: 'succeeded',
|
|
42
42
|
Failed: 'failed',
|
|
43
|
-
|
|
43
|
+
Withdrawn: 'withdrawn'
|
|
44
44
|
} as const;
|
|
45
45
|
|
|
46
46
|
export type UpdatePaymentRequestRequestDtoStatusEnum = typeof UpdatePaymentRequestRequestDtoStatusEnum[keyof typeof UpdatePaymentRequestRequestDtoStatusEnum];
|