@emilgroup/payment-sdk 1.22.1-beta.85 → 1.22.1-beta.86
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 +1 -0
- package/README.md +2 -2
- package/api/payment-receipts-api.ts +120 -12
- package/dist/api/payment-receipts-api.d.ts +68 -12
- package/dist/api/payment-receipts-api.js +109 -10
- package/dist/models/cancel-payment-receipt-response-class.d.ts +25 -0
- package/dist/models/cancel-payment-receipt-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/payment-receipt-class.d.ts +12 -0
- package/dist/models/payment-receipt-entity.d.ts +18 -0
- package/models/cancel-payment-receipt-response-class.ts +31 -0
- package/models/index.ts +1 -0
- package/models/payment-receipt-class.ts +12 -0
- package/models/payment-receipt-entity.ts +18 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -47,6 +47,7 @@ models/billing-address-class.ts
|
|
|
47
47
|
models/billing-address-dto.ts
|
|
48
48
|
models/billing-profile-dto.ts
|
|
49
49
|
models/billing-profile-limited-response-dto.ts
|
|
50
|
+
models/cancel-payment-receipt-response-class.ts
|
|
50
51
|
models/card-details-dto.ts
|
|
51
52
|
models/complete-adyen-payment-setup-request-dto.ts
|
|
52
53
|
models/complete-braintree-payment-setup-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.22.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.22.1-beta.86 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.22.1-beta.86
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -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 { CancelPaymentReceiptResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreatePaymentReceiptRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreatePaymentReceiptResponseClass } from '../models';
|
|
@@ -36,6 +38,56 @@ import { UpdatePaymentReceiptResponseClass } from '../models';
|
|
|
36
38
|
*/
|
|
37
39
|
export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
40
|
return {
|
|
41
|
+
/**
|
|
42
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
43
|
+
* @summary Cancel the payment receipt
|
|
44
|
+
* @param {string} code Unique identifier for the object.
|
|
45
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
cancelPaymentReceipt: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'code' is not null or undefined
|
|
51
|
+
assertParamExists('cancelPaymentReceipt', 'code', code)
|
|
52
|
+
const localVarPath = `/paymentservice/v1/payment-receipts/{code}/cancel`
|
|
53
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
72
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
73
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
74
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
75
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
76
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
39
91
|
/**
|
|
40
92
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
41
93
|
* @summary Create the payment receipt
|
|
@@ -89,7 +141,7 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
89
141
|
};
|
|
90
142
|
},
|
|
91
143
|
/**
|
|
92
|
-
*
|
|
144
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
93
145
|
* @summary Delete the payment receipt
|
|
94
146
|
* @param {string} code Unique identifier for the object.
|
|
95
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -201,11 +253,11 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
201
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
202
254
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
203
255
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
204
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
256
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
205
257
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
206
258
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
207
259
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
208
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
260
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
209
261
|
* @param {*} [options] Override http request option.
|
|
210
262
|
* @throws {RequiredError}
|
|
211
263
|
*/
|
|
@@ -336,6 +388,18 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
336
388
|
export const PaymentReceiptsApiFp = function(configuration?: Configuration) {
|
|
337
389
|
const localVarAxiosParamCreator = PaymentReceiptsApiAxiosParamCreator(configuration)
|
|
338
390
|
return {
|
|
391
|
+
/**
|
|
392
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
393
|
+
* @summary Cancel the payment receipt
|
|
394
|
+
* @param {string} code Unique identifier for the object.
|
|
395
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
async cancelPaymentReceipt(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelPaymentReceiptResponseClass>> {
|
|
400
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentReceipt(code, authorization, options);
|
|
401
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
402
|
+
},
|
|
339
403
|
/**
|
|
340
404
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
341
405
|
* @summary Create the payment receipt
|
|
@@ -349,7 +413,7 @@ export const PaymentReceiptsApiFp = function(configuration?: Configuration) {
|
|
|
349
413
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
414
|
},
|
|
351
415
|
/**
|
|
352
|
-
*
|
|
416
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
353
417
|
* @summary Delete the payment receipt
|
|
354
418
|
* @param {string} code Unique identifier for the object.
|
|
355
419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -379,11 +443,11 @@ export const PaymentReceiptsApiFp = function(configuration?: Configuration) {
|
|
|
379
443
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
380
444
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
381
445
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
382
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
446
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
383
447
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
384
448
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
385
449
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
386
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
450
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
387
451
|
* @param {*} [options] Override http request option.
|
|
388
452
|
* @throws {RequiredError}
|
|
389
453
|
*/
|
|
@@ -413,6 +477,17 @@ export const PaymentReceiptsApiFp = function(configuration?: Configuration) {
|
|
|
413
477
|
export const PaymentReceiptsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
414
478
|
const localVarFp = PaymentReceiptsApiFp(configuration)
|
|
415
479
|
return {
|
|
480
|
+
/**
|
|
481
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
482
|
+
* @summary Cancel the payment receipt
|
|
483
|
+
* @param {string} code Unique identifier for the object.
|
|
484
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
cancelPaymentReceipt(code: string, authorization?: string, options?: any): AxiosPromise<CancelPaymentReceiptResponseClass> {
|
|
489
|
+
return localVarFp.cancelPaymentReceipt(code, authorization, options).then((request) => request(axios, basePath));
|
|
490
|
+
},
|
|
416
491
|
/**
|
|
417
492
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
418
493
|
* @summary Create the payment receipt
|
|
@@ -425,7 +500,7 @@ export const PaymentReceiptsApiFactory = function (configuration?: Configuration
|
|
|
425
500
|
return localVarFp.createPaymentReceipt(createPaymentReceiptRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
426
501
|
},
|
|
427
502
|
/**
|
|
428
|
-
*
|
|
503
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
429
504
|
* @summary Delete the payment receipt
|
|
430
505
|
* @param {string} code Unique identifier for the object.
|
|
431
506
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -453,11 +528,11 @@ export const PaymentReceiptsApiFactory = function (configuration?: Configuration
|
|
|
453
528
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
529
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
455
530
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
456
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
531
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
457
532
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
458
533
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
459
534
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
460
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
535
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
461
536
|
* @param {*} [options] Override http request option.
|
|
462
537
|
* @throws {RequiredError}
|
|
463
538
|
*/
|
|
@@ -478,6 +553,27 @@ export const PaymentReceiptsApiFactory = function (configuration?: Configuration
|
|
|
478
553
|
};
|
|
479
554
|
};
|
|
480
555
|
|
|
556
|
+
/**
|
|
557
|
+
* Request parameters for cancelPaymentReceipt operation in PaymentReceiptsApi.
|
|
558
|
+
* @export
|
|
559
|
+
* @interface PaymentReceiptsApiCancelPaymentReceiptRequest
|
|
560
|
+
*/
|
|
561
|
+
export interface PaymentReceiptsApiCancelPaymentReceiptRequest {
|
|
562
|
+
/**
|
|
563
|
+
* Unique identifier for the object.
|
|
564
|
+
* @type {string}
|
|
565
|
+
* @memberof PaymentReceiptsApiCancelPaymentReceipt
|
|
566
|
+
*/
|
|
567
|
+
readonly code: string
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof PaymentReceiptsApiCancelPaymentReceipt
|
|
573
|
+
*/
|
|
574
|
+
readonly authorization?: string
|
|
575
|
+
}
|
|
576
|
+
|
|
481
577
|
/**
|
|
482
578
|
* Request parameters for createPaymentReceipt operation in PaymentReceiptsApi.
|
|
483
579
|
* @export
|
|
@@ -576,7 +672,7 @@ export interface PaymentReceiptsApiListPaymentReceiptsRequest {
|
|
|
576
672
|
readonly pageToken?: string
|
|
577
673
|
|
|
578
674
|
/**
|
|
579
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
675
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
580
676
|
* @type {string}
|
|
581
677
|
* @memberof PaymentReceiptsApiListPaymentReceipts
|
|
582
678
|
*/
|
|
@@ -604,7 +700,7 @@ export interface PaymentReceiptsApiListPaymentReceiptsRequest {
|
|
|
604
700
|
readonly expand?: string
|
|
605
701
|
|
|
606
702
|
/**
|
|
607
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
703
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
608
704
|
* @type {string}
|
|
609
705
|
* @memberof PaymentReceiptsApiListPaymentReceipts
|
|
610
706
|
*/
|
|
@@ -639,6 +735,18 @@ export interface PaymentReceiptsApiUpdatePaymentReceiptRequest {
|
|
|
639
735
|
* @extends {BaseAPI}
|
|
640
736
|
*/
|
|
641
737
|
export class PaymentReceiptsApi extends BaseAPI {
|
|
738
|
+
/**
|
|
739
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
740
|
+
* @summary Cancel the payment receipt
|
|
741
|
+
* @param {PaymentReceiptsApiCancelPaymentReceiptRequest} requestParameters Request parameters.
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
* @memberof PaymentReceiptsApi
|
|
745
|
+
*/
|
|
746
|
+
public cancelPaymentReceipt(requestParameters: PaymentReceiptsApiCancelPaymentReceiptRequest, options?: AxiosRequestConfig) {
|
|
747
|
+
return PaymentReceiptsApiFp(this.configuration).cancelPaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
|
|
642
750
|
/**
|
|
643
751
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
644
752
|
* @summary Create the payment receipt
|
|
@@ -652,7 +760,7 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
652
760
|
}
|
|
653
761
|
|
|
654
762
|
/**
|
|
655
|
-
*
|
|
763
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
656
764
|
* @summary Delete the payment receipt
|
|
657
765
|
* @param {PaymentReceiptsApiDeletePaymentReceiptRequest} requestParameters Request parameters.
|
|
658
766
|
* @param {*} [options] Override http request option.
|
|
@@ -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 { CancelPaymentReceiptResponseClass } from '../models';
|
|
15
16
|
import { CreatePaymentReceiptRequestDto } from '../models';
|
|
16
17
|
import { CreatePaymentReceiptResponseClass } from '../models';
|
|
17
18
|
import { GetPaymentReceiptResponseClass } from '../models';
|
|
@@ -22,6 +23,15 @@ import { UpdatePaymentReceiptResponseClass } from '../models';
|
|
|
22
23
|
* @export
|
|
23
24
|
*/
|
|
24
25
|
export declare const PaymentReceiptsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
|
+
/**
|
|
27
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
28
|
+
* @summary Cancel the payment receipt
|
|
29
|
+
* @param {string} code Unique identifier for the object.
|
|
30
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
cancelPaymentReceipt: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25
35
|
/**
|
|
26
36
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
27
37
|
* @summary Create the payment receipt
|
|
@@ -32,7 +42,7 @@ export declare const PaymentReceiptsApiAxiosParamCreator: (configuration?: Confi
|
|
|
32
42
|
*/
|
|
33
43
|
createPaymentReceipt: (createPaymentReceiptRequestDto: CreatePaymentReceiptRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
44
|
/**
|
|
35
|
-
*
|
|
45
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
36
46
|
* @summary Delete the payment receipt
|
|
37
47
|
* @param {string} code Unique identifier for the object.
|
|
38
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -56,11 +66,11 @@ export declare const PaymentReceiptsApiAxiosParamCreator: (configuration?: Confi
|
|
|
56
66
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
67
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
58
68
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
59
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
69
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
60
70
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
61
71
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
62
72
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
63
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
73
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
64
74
|
* @param {*} [options] Override http request option.
|
|
65
75
|
* @throws {RequiredError}
|
|
66
76
|
*/
|
|
@@ -80,6 +90,15 @@ export declare const PaymentReceiptsApiAxiosParamCreator: (configuration?: Confi
|
|
|
80
90
|
* @export
|
|
81
91
|
*/
|
|
82
92
|
export declare const PaymentReceiptsApiFp: (configuration?: Configuration) => {
|
|
93
|
+
/**
|
|
94
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
95
|
+
* @summary Cancel the payment receipt
|
|
96
|
+
* @param {string} code Unique identifier for the object.
|
|
97
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
cancelPaymentReceipt(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelPaymentReceiptResponseClass>>;
|
|
83
102
|
/**
|
|
84
103
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
85
104
|
* @summary Create the payment receipt
|
|
@@ -90,7 +109,7 @@ export declare const PaymentReceiptsApiFp: (configuration?: Configuration) => {
|
|
|
90
109
|
*/
|
|
91
110
|
createPaymentReceipt(createPaymentReceiptRequestDto: CreatePaymentReceiptRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentReceiptResponseClass>>;
|
|
92
111
|
/**
|
|
93
|
-
*
|
|
112
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
94
113
|
* @summary Delete the payment receipt
|
|
95
114
|
* @param {string} code Unique identifier for the object.
|
|
96
115
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -114,11 +133,11 @@ export declare const PaymentReceiptsApiFp: (configuration?: Configuration) => {
|
|
|
114
133
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
134
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
116
135
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
117
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
136
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
118
137
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
119
138
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
120
139
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
121
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
140
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
122
141
|
* @param {*} [options] Override http request option.
|
|
123
142
|
* @throws {RequiredError}
|
|
124
143
|
*/
|
|
@@ -138,6 +157,15 @@ export declare const PaymentReceiptsApiFp: (configuration?: Configuration) => {
|
|
|
138
157
|
* @export
|
|
139
158
|
*/
|
|
140
159
|
export declare const PaymentReceiptsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
160
|
+
/**
|
|
161
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
162
|
+
* @summary Cancel the payment receipt
|
|
163
|
+
* @param {string} code Unique identifier for the object.
|
|
164
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
cancelPaymentReceipt(code: string, authorization?: string, options?: any): AxiosPromise<CancelPaymentReceiptResponseClass>;
|
|
141
169
|
/**
|
|
142
170
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
143
171
|
* @summary Create the payment receipt
|
|
@@ -148,7 +176,7 @@ export declare const PaymentReceiptsApiFactory: (configuration?: Configuration,
|
|
|
148
176
|
*/
|
|
149
177
|
createPaymentReceipt(createPaymentReceiptRequestDto: CreatePaymentReceiptRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentReceiptResponseClass>;
|
|
150
178
|
/**
|
|
151
|
-
*
|
|
179
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
152
180
|
* @summary Delete the payment receipt
|
|
153
181
|
* @param {string} code Unique identifier for the object.
|
|
154
182
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -172,11 +200,11 @@ export declare const PaymentReceiptsApiFactory: (configuration?: Configuration,
|
|
|
172
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
173
201
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
174
202
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
175
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
203
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
176
204
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
177
205
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
178
206
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
179
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
207
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
180
208
|
* @param {*} [options] Override http request option.
|
|
181
209
|
* @throws {RequiredError}
|
|
182
210
|
*/
|
|
@@ -191,6 +219,25 @@ export declare const PaymentReceiptsApiFactory: (configuration?: Configuration,
|
|
|
191
219
|
*/
|
|
192
220
|
updatePaymentReceipt(code: string, authorization?: string, options?: any): AxiosPromise<UpdatePaymentReceiptResponseClass>;
|
|
193
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Request parameters for cancelPaymentReceipt operation in PaymentReceiptsApi.
|
|
224
|
+
* @export
|
|
225
|
+
* @interface PaymentReceiptsApiCancelPaymentReceiptRequest
|
|
226
|
+
*/
|
|
227
|
+
export interface PaymentReceiptsApiCancelPaymentReceiptRequest {
|
|
228
|
+
/**
|
|
229
|
+
* Unique identifier for the object.
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof PaymentReceiptsApiCancelPaymentReceipt
|
|
232
|
+
*/
|
|
233
|
+
readonly code: string;
|
|
234
|
+
/**
|
|
235
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof PaymentReceiptsApiCancelPaymentReceipt
|
|
238
|
+
*/
|
|
239
|
+
readonly authorization?: string;
|
|
240
|
+
}
|
|
194
241
|
/**
|
|
195
242
|
* Request parameters for createPaymentReceipt operation in PaymentReceiptsApi.
|
|
196
243
|
* @export
|
|
@@ -279,7 +326,7 @@ export interface PaymentReceiptsApiListPaymentReceiptsRequest {
|
|
|
279
326
|
*/
|
|
280
327
|
readonly pageToken?: string;
|
|
281
328
|
/**
|
|
282
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
329
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
283
330
|
* @type {string}
|
|
284
331
|
* @memberof PaymentReceiptsApiListPaymentReceipts
|
|
285
332
|
*/
|
|
@@ -303,7 +350,7 @@ export interface PaymentReceiptsApiListPaymentReceiptsRequest {
|
|
|
303
350
|
*/
|
|
304
351
|
readonly expand?: string;
|
|
305
352
|
/**
|
|
306
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
353
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
307
354
|
* @type {string}
|
|
308
355
|
* @memberof PaymentReceiptsApiListPaymentReceipts
|
|
309
356
|
*/
|
|
@@ -335,6 +382,15 @@ export interface PaymentReceiptsApiUpdatePaymentReceiptRequest {
|
|
|
335
382
|
* @extends {BaseAPI}
|
|
336
383
|
*/
|
|
337
384
|
export declare class PaymentReceiptsApi extends BaseAPI {
|
|
385
|
+
/**
|
|
386
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
387
|
+
* @summary Cancel the payment receipt
|
|
388
|
+
* @param {PaymentReceiptsApiCancelPaymentReceiptRequest} requestParameters Request parameters.
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
* @memberof PaymentReceiptsApi
|
|
392
|
+
*/
|
|
393
|
+
cancelPaymentReceipt(requestParameters: PaymentReceiptsApiCancelPaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelPaymentReceiptResponseClass, any, {}, any>>;
|
|
338
394
|
/**
|
|
339
395
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
340
396
|
* @summary Create the payment receipt
|
|
@@ -345,7 +401,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
345
401
|
*/
|
|
346
402
|
createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReceiptResponseClass, any, {}, any>>;
|
|
347
403
|
/**
|
|
348
|
-
*
|
|
404
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
349
405
|
* @summary Delete the payment receipt
|
|
350
406
|
* @param {PaymentReceiptsApiDeletePaymentReceiptRequest} requestParameters Request parameters.
|
|
351
407
|
* @param {*} [options] Override http request option.
|
|
@@ -92,6 +92,61 @@ var base_1 = require("../base");
|
|
|
92
92
|
var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
97
|
+
* @summary Cancel the payment receipt
|
|
98
|
+
* @param {string} code Unique identifier for the object.
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
cancelPaymentReceipt: function (code, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('cancelPaymentReceipt', 'code', code);
|
|
113
|
+
localVarPath = "/paymentservice/v1/payment-receipts/{code}/cancel"
|
|
114
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
115
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
baseAccessToken = configuration.accessToken;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
// authentication bearer required
|
|
124
|
+
// http bearer authentication required
|
|
125
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
126
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
127
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
128
|
+
];
|
|
129
|
+
case 1:
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
_b.sent();
|
|
133
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
134
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
136
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
138
|
+
}
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
+
return [2 /*return*/, {
|
|
143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
}];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
},
|
|
95
150
|
/**
|
|
96
151
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
97
152
|
* @summary Create the payment receipt
|
|
@@ -149,7 +204,7 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
149
204
|
});
|
|
150
205
|
},
|
|
151
206
|
/**
|
|
152
|
-
*
|
|
207
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
153
208
|
* @summary Delete the payment receipt
|
|
154
209
|
* @param {string} code Unique identifier for the object.
|
|
155
210
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -267,11 +322,11 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
267
322
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
268
323
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
269
324
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
270
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
325
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
271
326
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
272
327
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
273
328
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
274
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
329
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
275
330
|
* @param {*} [options] Override http request option.
|
|
276
331
|
* @throws {RequiredError}
|
|
277
332
|
*/
|
|
@@ -402,6 +457,27 @@ exports.PaymentReceiptsApiAxiosParamCreator = PaymentReceiptsApiAxiosParamCreato
|
|
|
402
457
|
var PaymentReceiptsApiFp = function (configuration) {
|
|
403
458
|
var localVarAxiosParamCreator = (0, exports.PaymentReceiptsApiAxiosParamCreator)(configuration);
|
|
404
459
|
return {
|
|
460
|
+
/**
|
|
461
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
462
|
+
* @summary Cancel the payment receipt
|
|
463
|
+
* @param {string} code Unique identifier for the object.
|
|
464
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
cancelPaymentReceipt: function (code, authorization, options) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
470
|
+
var localVarAxiosArgs;
|
|
471
|
+
return __generator(this, function (_a) {
|
|
472
|
+
switch (_a.label) {
|
|
473
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.cancelPaymentReceipt(code, authorization, options)];
|
|
474
|
+
case 1:
|
|
475
|
+
localVarAxiosArgs = _a.sent();
|
|
476
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
},
|
|
405
481
|
/**
|
|
406
482
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
407
483
|
* @summary Create the payment receipt
|
|
@@ -424,7 +500,7 @@ var PaymentReceiptsApiFp = function (configuration) {
|
|
|
424
500
|
});
|
|
425
501
|
},
|
|
426
502
|
/**
|
|
427
|
-
*
|
|
503
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
428
504
|
* @summary Delete the payment receipt
|
|
429
505
|
* @param {string} code Unique identifier for the object.
|
|
430
506
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -472,11 +548,11 @@ var PaymentReceiptsApiFp = function (configuration) {
|
|
|
472
548
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
473
549
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
474
550
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
475
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
551
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
476
552
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
477
553
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
478
554
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
479
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
555
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
480
556
|
* @param {*} [options] Override http request option.
|
|
481
557
|
* @throws {RequiredError}
|
|
482
558
|
*/
|
|
@@ -524,6 +600,17 @@ exports.PaymentReceiptsApiFp = PaymentReceiptsApiFp;
|
|
|
524
600
|
var PaymentReceiptsApiFactory = function (configuration, basePath, axios) {
|
|
525
601
|
var localVarFp = (0, exports.PaymentReceiptsApiFp)(configuration);
|
|
526
602
|
return {
|
|
603
|
+
/**
|
|
604
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
605
|
+
* @summary Cancel the payment receipt
|
|
606
|
+
* @param {string} code Unique identifier for the object.
|
|
607
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
cancelPaymentReceipt: function (code, authorization, options) {
|
|
612
|
+
return localVarFp.cancelPaymentReceipt(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
613
|
+
},
|
|
527
614
|
/**
|
|
528
615
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
529
616
|
* @summary Create the payment receipt
|
|
@@ -536,7 +623,7 @@ var PaymentReceiptsApiFactory = function (configuration, basePath, axios) {
|
|
|
536
623
|
return localVarFp.createPaymentReceipt(createPaymentReceiptRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
537
624
|
},
|
|
538
625
|
/**
|
|
539
|
-
*
|
|
626
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
540
627
|
* @summary Delete the payment receipt
|
|
541
628
|
* @param {string} code Unique identifier for the object.
|
|
542
629
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -564,11 +651,11 @@ var PaymentReceiptsApiFactory = function (configuration, basePath, axios) {
|
|
|
564
651
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
565
652
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
566
653
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
567
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
654
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
568
655
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, amount, paymentRequestCode</i>
|
|
569
656
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount</i>
|
|
570
657
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
571
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount</i>
|
|
658
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, psp, direction, paymentRequestCode, amount, cancelledAt</i>
|
|
572
659
|
* @param {*} [options] Override http request option.
|
|
573
660
|
* @throws {RequiredError}
|
|
574
661
|
*/
|
|
@@ -600,6 +687,18 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
600
687
|
function PaymentReceiptsApi() {
|
|
601
688
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
602
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* Cancels a payment receipt recorded by hand: the receipt stays as the trail but no longer counts as paid. Its payment request is recomputed from the receipts left, a closed bank order of that request goes back to processing, and payment.receipt.cancelled is published under the tenant that owns the receipt. A receipt is cancelled once; one recorded by linking a bank transaction is cancelled by undoing that link. **Required Permissions** \"payment-management.payments.delete\"
|
|
692
|
+
* @summary Cancel the payment receipt
|
|
693
|
+
* @param {PaymentReceiptsApiCancelPaymentReceiptRequest} requestParameters Request parameters.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof PaymentReceiptsApi
|
|
697
|
+
*/
|
|
698
|
+
PaymentReceiptsApi.prototype.cancelPaymentReceipt = function (requestParameters, options) {
|
|
699
|
+
var _this = this;
|
|
700
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).cancelPaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
|
+
};
|
|
603
702
|
/**
|
|
604
703
|
* This will create payment receipt. **Required Permissions** \"payment-management.payments.create\"
|
|
605
704
|
* @summary Create the payment receipt
|
|
@@ -613,7 +712,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
613
712
|
return (0, exports.PaymentReceiptsApiFp)(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
713
|
};
|
|
615
714
|
/**
|
|
616
|
-
*
|
|
715
|
+
* Refused for every payment receipt: a receipt records money that moved, so it is cancelled with a trail and never deleted. Use POST /paymentservice/v1/payment-receipts/{code}/cancel instead. **Required Permissions** \"payment-management.payments.delete\"
|
|
617
716
|
* @summary Delete the payment receipt
|
|
618
717
|
* @param {PaymentReceiptsApiDeletePaymentReceiptRequest} requestParameters Request parameters.
|
|
619
718
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PaymentReceiptClass } from './payment-receipt-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CancelPaymentReceiptResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CancelPaymentReceiptResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The payment receipt after the cancellation.
|
|
21
|
+
* @type {PaymentReceiptClass}
|
|
22
|
+
* @memberof CancelPaymentReceiptResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'paymentReceipt'?: PaymentReceiptClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './billing-address-class';
|
|
|
17
17
|
export * from './billing-address-dto';
|
|
18
18
|
export * from './billing-profile-dto';
|
|
19
19
|
export * from './billing-profile-limited-response-dto';
|
|
20
|
+
export * from './cancel-payment-receipt-response-class';
|
|
20
21
|
export * from './card-details-dto';
|
|
21
22
|
export * from './complete-adyen-payment-setup-request-dto';
|
|
22
23
|
export * from './complete-braintree-payment-setup-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./billing-address-class"), exports);
|
|
|
33
33
|
__exportStar(require("./billing-address-dto"), exports);
|
|
34
34
|
__exportStar(require("./billing-profile-dto"), exports);
|
|
35
35
|
__exportStar(require("./billing-profile-limited-response-dto"), exports);
|
|
36
|
+
__exportStar(require("./cancel-payment-receipt-response-class"), exports);
|
|
36
37
|
__exportStar(require("./card-details-dto"), exports);
|
|
37
38
|
__exportStar(require("./complete-adyen-payment-setup-request-dto"), exports);
|
|
38
39
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
@@ -81,6 +81,18 @@ export interface PaymentReceiptClass {
|
|
|
81
81
|
* @memberof PaymentReceiptClass
|
|
82
82
|
*/
|
|
83
83
|
'bankTransactionCode'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* When the payment receipt was cancelled; unset while it is active. A cancelled receipt is kept, never deleted.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PaymentReceiptClass
|
|
88
|
+
*/
|
|
89
|
+
'cancelledAt'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The user who cancelled the payment receipt.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof PaymentReceiptClass
|
|
94
|
+
*/
|
|
95
|
+
'cancelledBy'?: string;
|
|
84
96
|
/**
|
|
85
97
|
* Time at which the object was created.
|
|
86
98
|
* @type {string}
|
|
@@ -101,6 +101,24 @@ export interface PaymentReceiptEntity {
|
|
|
101
101
|
* @memberof PaymentReceiptEntity
|
|
102
102
|
*/
|
|
103
103
|
'bankTransaction'?: BankTransactionEntity;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof PaymentReceiptEntity
|
|
108
|
+
*/
|
|
109
|
+
'cancelledAt'?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof PaymentReceiptEntity
|
|
114
|
+
*/
|
|
115
|
+
'cancelledBy'?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof PaymentReceiptEntity
|
|
120
|
+
*/
|
|
121
|
+
'cancellationEventPublishedAt'?: string;
|
|
104
122
|
/**
|
|
105
123
|
*
|
|
106
124
|
* @type {string}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { PaymentReceiptClass } from './payment-receipt-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CancelPaymentReceiptResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CancelPaymentReceiptResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The payment receipt after the cancellation.
|
|
26
|
+
* @type {PaymentReceiptClass}
|
|
27
|
+
* @memberof CancelPaymentReceiptResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'paymentReceipt'?: PaymentReceiptClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './billing-address-class';
|
|
|
17
17
|
export * from './billing-address-dto';
|
|
18
18
|
export * from './billing-profile-dto';
|
|
19
19
|
export * from './billing-profile-limited-response-dto';
|
|
20
|
+
export * from './cancel-payment-receipt-response-class';
|
|
20
21
|
export * from './card-details-dto';
|
|
21
22
|
export * from './complete-adyen-payment-setup-request-dto';
|
|
22
23
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
@@ -86,6 +86,18 @@ export interface PaymentReceiptClass {
|
|
|
86
86
|
* @memberof PaymentReceiptClass
|
|
87
87
|
*/
|
|
88
88
|
'bankTransactionCode'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* When the payment receipt was cancelled; unset while it is active. A cancelled receipt is kept, never deleted.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PaymentReceiptClass
|
|
93
|
+
*/
|
|
94
|
+
'cancelledAt'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The user who cancelled the payment receipt.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof PaymentReceiptClass
|
|
99
|
+
*/
|
|
100
|
+
'cancelledBy'?: string;
|
|
89
101
|
/**
|
|
90
102
|
* Time at which the object was created.
|
|
91
103
|
* @type {string}
|
|
@@ -106,6 +106,24 @@ export interface PaymentReceiptEntity {
|
|
|
106
106
|
* @memberof PaymentReceiptEntity
|
|
107
107
|
*/
|
|
108
108
|
'bankTransaction'?: BankTransactionEntity;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof PaymentReceiptEntity
|
|
113
|
+
*/
|
|
114
|
+
'cancelledAt'?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof PaymentReceiptEntity
|
|
119
|
+
*/
|
|
120
|
+
'cancelledBy'?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof PaymentReceiptEntity
|
|
125
|
+
*/
|
|
126
|
+
'cancellationEventPublishedAt'?: string;
|
|
109
127
|
/**
|
|
110
128
|
*
|
|
111
129
|
* @type {string}
|