@emilgroup/payment-sdk-node 1.28.1-beta.35 → 1.28.1-beta.36
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 +0 -6
- package/README.md +2 -2
- package/api/bank-orders-api.ts +8 -8
- package/api/exceeding-credits-api.ts +0 -107
- package/api/payment-requests-api.ts +12 -12
- package/api.ts +0 -2
- package/dist/api/bank-orders-api.d.ts +8 -8
- package/dist/api/bank-orders-api.js +6 -6
- package/dist/api/exceeding-credits-api.d.ts +0 -57
- package/dist/api/exceeding-credits-api.js +0 -93
- package/dist/api/payment-requests-api.d.ts +12 -12
- package/dist/api/payment-requests-api.js +9 -9
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/create-payment-request-request-dto.d.ts +0 -12
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-request-class.d.ts +0 -12
- package/dist/models/shared-transaction-class.d.ts +0 -6
- package/dist/models/transaction-entity.d.ts +0 -6
- package/models/create-payment-request-request-dto.ts +0 -12
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/index.ts +0 -5
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-entity.ts +1 -1
- package/models/payment-request-class.ts +0 -12
- package/models/shared-transaction-class.ts +0 -6
- package/models/transaction-entity.ts +0 -6
- package/package.json +1 -1
- package/api/jobs-api.ts +0 -169
- package/dist/api/jobs-api.d.ts +0 -97
- package/dist/api/jobs-api.js +0 -228
- package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
- package/dist/models/create-exceeding-credit-request-dto.js +0 -15
- package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
- package/dist/models/create-exceeding-credit-response-class.js +0 -15
- package/dist/models/run-job-grpc-request-dto.d.ts +0 -63
- package/dist/models/run-job-grpc-request-dto.js +0 -23
- package/dist/models/run-job-request-dto.d.ts +0 -63
- package/dist/models/run-job-request-dto.js +0 -23
- package/dist/models/run-job-response-class.d.ts +0 -24
- package/dist/models/run-job-response-class.js +0 -15
- package/models/create-exceeding-credit-request-dto.ts +0 -54
- package/models/create-exceeding-credit-response-class.ts +0 -31
- package/models/run-job-grpc-request-dto.ts +0 -73
- package/models/run-job-request-dto.ts +0 -73
- package/models/run-job-response-class.ts +0 -30
|
@@ -94,18 +94,6 @@ export interface PaymentRequestClass {
|
|
|
94
94
|
* @memberof PaymentRequestClass
|
|
95
95
|
*/
|
|
96
96
|
'status': PaymentRequestClassStatusEnum;
|
|
97
|
-
/**
|
|
98
|
-
* Code of the settlement the payment request was created for.
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof PaymentRequestClass
|
|
101
|
-
*/
|
|
102
|
-
'settlementCode'?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Code of the partner the payment request was created for.
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof PaymentRequestClass
|
|
107
|
-
*/
|
|
108
|
-
'partnerCode': string;
|
|
109
97
|
/**
|
|
110
98
|
* Code of the payment method used for this payment request.
|
|
111
99
|
* @type {string}
|
|
@@ -69,10 +69,4 @@ export interface SharedTransactionClass {
|
|
|
69
69
|
* @memberof SharedTransactionClass
|
|
70
70
|
*/
|
|
71
71
|
'updatedBy': string;
|
|
72
|
-
/**
|
|
73
|
-
* Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof SharedTransactionClass
|
|
76
|
-
*/
|
|
77
|
-
'bankTransactionCode'?: string;
|
|
78
72
|
}
|
|
@@ -74,18 +74,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
74
74
|
* @memberof CreatePaymentRequestRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
77
|
-
/**
|
|
78
|
-
* Code of the settlement the payment request was created for.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
81
|
-
*/
|
|
82
|
-
'settlementCode'?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Code of the partner the payment request was created for.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
87
|
-
*/
|
|
88
|
-
'partnerCode': string;
|
|
89
77
|
/**
|
|
90
78
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
91
79
|
* @type {string}
|
|
@@ -39,12 +39,6 @@ export interface CreditAllocationClass {
|
|
|
39
39
|
* @memberof CreditAllocationClass
|
|
40
40
|
*/
|
|
41
41
|
'exceedingCreditCodes': Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Partner code derived from the policy related to the exceeding credits.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreditAllocationClass
|
|
46
|
-
*/
|
|
47
|
-
'partnerCode': string;
|
|
48
42
|
/**
|
|
49
43
|
* Policy code associated with the credit.
|
|
50
44
|
* @type {string}
|
package/models/index.ts
CHANGED
|
@@ -31,8 +31,6 @@ export * from './create-billing-address-request-dto';
|
|
|
31
31
|
export * from './create-billing-address-response-class';
|
|
32
32
|
export * from './create-credit-allocation-request-dto';
|
|
33
33
|
export * from './create-credit-allocation-response-class';
|
|
34
|
-
export * from './create-exceeding-credit-request-dto';
|
|
35
|
-
export * from './create-exceeding-credit-response-class';
|
|
36
34
|
export * from './create-payment-method-response-class';
|
|
37
35
|
export * from './create-payment-order-dto';
|
|
38
36
|
export * from './create-payment-order-request-dto';
|
|
@@ -124,9 +122,6 @@ export * from './policy-payment-method-class';
|
|
|
124
122
|
export * from './primary-bank-account-response-class';
|
|
125
123
|
export * from './refund-class';
|
|
126
124
|
export * from './refund-item-class';
|
|
127
|
-
export * from './run-job-grpc-request-dto';
|
|
128
|
-
export * from './run-job-request-dto';
|
|
129
|
-
export * from './run-job-response-class';
|
|
130
125
|
export * from './sepa-direct-dto';
|
|
131
126
|
export * from './set-primary-bank-account-request-dto-rest';
|
|
132
127
|
export * from './shared-transaction-class';
|
|
@@ -21,18 +21,18 @@ import { BillingAddressClass } from './billing-address-class';
|
|
|
21
21
|
* @interface ListBillingAddressesResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListBillingAddressesResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The billing addresses
|
|
26
|
-
* @type {Array<BillingAddressClass>}
|
|
27
|
-
* @memberof ListBillingAddressesResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<BillingAddressClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListBillingAddressesResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListBillingAddressesResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListBillingAddressesResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* The billing addresses
|
|
44
|
+
* @type {Array<BillingAddressClass>}
|
|
45
45
|
* @memberof ListBillingAddressesResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'items': Array<BillingAddressClass>;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,17 +21,29 @@ import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
|
21
21
|
* @interface ListExceedingCreditsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListExceedingCreditsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The list of exceeding credits.
|
|
26
|
-
* @type {Array<ExceedingCreditClass>}
|
|
27
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<ExceedingCreditClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListExceedingCreditsResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
|
+
/**
|
|
37
|
+
* Items per page.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* The list of exceeding credits.
|
|
44
|
+
* @type {Array<ExceedingCreditClass>}
|
|
45
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'items': Array<ExceedingCreditClass>;
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -21,18 +21,18 @@ import { PaymentReceiptClass } from './payment-receipt-class';
|
|
|
21
21
|
* @interface ListPaymentReceiptsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentReceiptsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The list of payment receipts.
|
|
26
|
-
* @type {Array<PaymentReceiptClass>}
|
|
27
|
-
* @memberof ListPaymentReceiptsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<PaymentReceiptClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListPaymentReceiptsResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListPaymentReceiptsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPaymentReceiptsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* The list of payment receipts.
|
|
44
|
+
* @type {Array<PaymentReceiptClass>}
|
|
45
45
|
* @memberof ListPaymentReceiptsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'items': Array<PaymentReceiptClass>;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,17 +21,29 @@ import { PaymentRequestClass } from './payment-request-class';
|
|
|
21
21
|
* @interface ListPaymentRequestsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentRequestsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The list of payment requests.
|
|
26
|
-
* @type {Array<PaymentRequestClass>}
|
|
27
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<PaymentRequestClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListPaymentRequestsResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
|
+
/**
|
|
37
|
+
* Items per page.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* The list of payment requests.
|
|
44
|
+
* @type {Array<PaymentRequestClass>}
|
|
45
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'items': Array<PaymentRequestClass>;
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -21,18 +21,18 @@ import { PayoutMethodClass } from './payout-method-class';
|
|
|
21
21
|
* @interface ListPayoutMethodsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPayoutMethodsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The payout methods
|
|
26
|
-
* @type {Array<PayoutMethodClass>}
|
|
27
|
-
* @memberof ListPayoutMethodsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<PayoutMethodClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListPayoutMethodsResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListPayoutMethodsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPayoutMethodsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* The payout methods
|
|
44
|
+
* @type {Array<PayoutMethodClass>}
|
|
45
45
|
* @memberof ListPayoutMethodsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'items': Array<PayoutMethodClass>;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,17 +21,29 @@ import { RefundClass } from './refund-class';
|
|
|
21
21
|
* @interface ListRefundsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListRefundsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The list of refunds.
|
|
26
|
-
* @type {Array<RefundClass>}
|
|
27
|
-
* @memberof ListRefundsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<RefundClass>;
|
|
30
24
|
/**
|
|
31
25
|
* Next page token.
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof ListRefundsResponseClass
|
|
34
28
|
*/
|
|
35
29
|
'nextPageToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Total amount of items.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ListRefundsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'totalItems': number;
|
|
36
|
+
/**
|
|
37
|
+
* Items per page.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListRefundsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* The list of refunds.
|
|
44
|
+
* @type {Array<RefundClass>}
|
|
45
|
+
* @memberof ListRefundsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'items': Array<RefundClass>;
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -49,7 +49,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentClassWithoutExpandProperties
|
|
51
51
|
*/
|
|
52
|
-
'partnerCode'
|
|
52
|
+
'partnerCode'?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
55
55
|
* @type {number}
|
package/models/payment-class.ts
CHANGED
package/models/payment-entity.ts
CHANGED
|
@@ -99,18 +99,6 @@ export interface PaymentRequestClass {
|
|
|
99
99
|
* @memberof PaymentRequestClass
|
|
100
100
|
*/
|
|
101
101
|
'status': PaymentRequestClassStatusEnum;
|
|
102
|
-
/**
|
|
103
|
-
* Code of the settlement the payment request was created for.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof PaymentRequestClass
|
|
106
|
-
*/
|
|
107
|
-
'settlementCode'?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Code of the partner the payment request was created for.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof PaymentRequestClass
|
|
112
|
-
*/
|
|
113
|
-
'partnerCode': string;
|
|
114
102
|
/**
|
|
115
103
|
* Code of the payment method used for this payment request.
|
|
116
104
|
* @type {string}
|
|
@@ -74,11 +74,5 @@ export interface SharedTransactionClass {
|
|
|
74
74
|
* @memberof SharedTransactionClass
|
|
75
75
|
*/
|
|
76
76
|
'updatedBy': string;
|
|
77
|
-
/**
|
|
78
|
-
* Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof SharedTransactionClass
|
|
81
|
-
*/
|
|
82
|
-
'bankTransactionCode'?: string;
|
|
83
77
|
}
|
|
84
78
|
|
package/package.json
CHANGED
package/api/jobs-api.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { RunJobRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { RunJobResponseClass } from '../models';
|
|
27
|
-
// URLSearchParams not necessarily used
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { URL, URLSearchParams } from 'url';
|
|
30
|
-
const FormData = require('form-data');
|
|
31
|
-
/**
|
|
32
|
-
* JobsApi - axios parameter creator
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
-
return {
|
|
37
|
-
/**
|
|
38
|
-
* Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
|
|
39
|
-
* @summary Create the job run
|
|
40
|
-
* @param {RunJobRequestDto} runJobRequestDto
|
|
41
|
-
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
runJob: async (runJobRequestDto: RunJobRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
-
// verify required parameter 'runJobRequestDto' is not null or undefined
|
|
47
|
-
assertParamExists('runJob', 'runJobRequestDto', runJobRequestDto)
|
|
48
|
-
const localVarPath = `/paymentservice/v1/jobs/run`;
|
|
49
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
-
let baseOptions;
|
|
52
|
-
let baseAccessToken;
|
|
53
|
-
if (configuration) {
|
|
54
|
-
baseOptions = configuration.baseOptions;
|
|
55
|
-
baseAccessToken = configuration.accessToken;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
-
const localVarHeaderParameter = {} as any;
|
|
60
|
-
const localVarQueryParameter = {} as any;
|
|
61
|
-
|
|
62
|
-
// authentication bearer required
|
|
63
|
-
// http bearer authentication required
|
|
64
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
-
|
|
66
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
-
|
|
74
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(runJobRequestDto, localVarRequestOptions, configuration)
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
url: toPathString(localVarUrlObj),
|
|
81
|
-
options: localVarRequestOptions,
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* JobsApi - functional programming interface
|
|
89
|
-
* @export
|
|
90
|
-
*/
|
|
91
|
-
export const JobsApiFp = function(configuration?: Configuration) {
|
|
92
|
-
const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
|
|
93
|
-
return {
|
|
94
|
-
/**
|
|
95
|
-
* Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
|
|
96
|
-
* @summary Create the job run
|
|
97
|
-
* @param {RunJobRequestDto} runJobRequestDto
|
|
98
|
-
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
async runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunJobResponseClass>> {
|
|
103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.runJob(runJobRequestDto, authorization, options);
|
|
104
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
|
-
},
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* JobsApi - factory interface
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
-
const localVarFp = JobsApiFp(configuration)
|
|
115
|
-
return {
|
|
116
|
-
/**
|
|
117
|
-
* Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
|
|
118
|
-
* @summary Create the job run
|
|
119
|
-
* @param {RunJobRequestDto} runJobRequestDto
|
|
120
|
-
* @param {string} [authorization] Bearer Token
|
|
121
|
-
* @param {*} [options] Override http request option.
|
|
122
|
-
* @throws {RequiredError}
|
|
123
|
-
*/
|
|
124
|
-
runJob(runJobRequestDto: RunJobRequestDto, authorization?: string, options?: any): AxiosPromise<RunJobResponseClass> {
|
|
125
|
-
return localVarFp.runJob(runJobRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Request parameters for runJob operation in JobsApi.
|
|
132
|
-
* @export
|
|
133
|
-
* @interface JobsApiRunJobRequest
|
|
134
|
-
*/
|
|
135
|
-
export interface JobsApiRunJobRequest {
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {RunJobRequestDto}
|
|
139
|
-
* @memberof JobsApiRunJob
|
|
140
|
-
*/
|
|
141
|
-
readonly runJobRequestDto: RunJobRequestDto
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Bearer Token
|
|
145
|
-
* @type {string}
|
|
146
|
-
* @memberof JobsApiRunJob
|
|
147
|
-
*/
|
|
148
|
-
readonly authorization?: string
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* JobsApi - object-oriented interface
|
|
153
|
-
* @export
|
|
154
|
-
* @class JobsApi
|
|
155
|
-
* @extends {BaseAPI}
|
|
156
|
-
*/
|
|
157
|
-
export class JobsApi extends BaseAPI {
|
|
158
|
-
/**
|
|
159
|
-
* Starts one of the payment jobs for the current tenant immediately, instead of waiting for its schedule. The job runs in the background; the call returns as soon as the run is accepted. **Required Permissions** \"payment-management.bank-orders.run\"
|
|
160
|
-
* @summary Create the job run
|
|
161
|
-
* @param {JobsApiRunJobRequest} requestParameters Request parameters.
|
|
162
|
-
* @param {*} [options] Override http request option.
|
|
163
|
-
* @throws {RequiredError}
|
|
164
|
-
* @memberof JobsApi
|
|
165
|
-
*/
|
|
166
|
-
public runJob(requestParameters: JobsApiRunJobRequest, options?: AxiosRequestConfig) {
|
|
167
|
-
return JobsApiFp(this.configuration).runJob(requestParameters.runJobRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
-
}
|
|
169
|
-
}
|