@emilgroup/payment-sdk-node 1.28.1-beta.36 → 1.28.1-beta.38
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 +6 -0
- package/README.md +2 -2
- package/api/bank-orders-api.ts +8 -8
- package/api/exceeding-credits-api.ts +107 -0
- package/api/jobs-api.ts +169 -0
- package/api/payment-requests-api.ts +12 -12
- package/api.ts +2 -0
- 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 +57 -0
- package/dist/api/exceeding-credits-api.js +93 -0
- package/dist/api/jobs-api.d.ts +97 -0
- package/dist/api/jobs-api.js +228 -0
- package/dist/api/payment-requests-api.d.ts +12 -12
- package/dist/api/payment-requests-api.js +9 -9
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-bank-order-request-dto.d.ts +2 -2
- package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- package/dist/models/create-payment-request-request-dto.d.ts +12 -0
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- 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 +30 -0
- package/dist/models/run-job-grpc-request-dto.d.ts +63 -0
- package/dist/models/run-job-grpc-request-dto.js +23 -0
- package/dist/models/run-job-request-dto.d.ts +63 -0
- package/dist/models/run-job-request-dto.js +23 -0
- package/dist/models/run-job-response-class.d.ts +24 -0
- package/dist/models/run-job-response-class.js +15 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-request-dto.d.ts +2 -2
- package/models/create-bank-order-request-dto.ts +2 -2
- package/models/create-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- package/models/create-payment-request-request-dto.ts +12 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/index.ts +5 -0
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- 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 +30 -0
- package/models/run-job-grpc-request-dto.ts +73 -0
- package/models/run-job-request-dto.ts +73 -0
- package/models/run-job-response-class.ts +30 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -21,29 +21,17 @@ import { RefundClass } from './refund-class';
|
|
|
21
21
|
* @interface ListRefundsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListRefundsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListRefundsResponseClass
|
|
28
|
-
*/
|
|
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
24
|
/**
|
|
43
25
|
* The list of refunds.
|
|
44
26
|
* @type {Array<RefundClass>}
|
|
45
27
|
* @memberof ListRefundsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<RefundClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListRefundsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -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,6 +99,36 @@ 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
|
+
/**
|
|
115
|
+
* Code of the bank order that contains this payment request. Absent while the request is in no bank order.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PaymentRequestClass
|
|
118
|
+
*/
|
|
119
|
+
'bankOrderCode'?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Order number of the bank order that contains this payment request.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PaymentRequestClass
|
|
124
|
+
*/
|
|
125
|
+
'bankOrderNumber'?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the recipient partner has an active payout method, i.e. the request can be added to a bank order.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof PaymentRequestClass
|
|
130
|
+
*/
|
|
131
|
+
'recipientHasBankDetails'?: boolean;
|
|
102
132
|
/**
|
|
103
133
|
* Code of the payment method used for this payment request.
|
|
104
134
|
* @type {string}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RunJobGrpcRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface RunJobGrpcRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RunJobGrpcRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'jobName': RunJobGrpcRequestDtoJobNameEnum;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RunJobGrpcRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'tenantBankAccountCode': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RunJobGrpcRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'executionDate'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof RunJobGrpcRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'leadDays'?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof RunJobGrpcRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'dateField'?: RunJobGrpcRequestDtoDateFieldEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof RunJobGrpcRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'dryRun'?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const RunJobGrpcRequestDtoJobNameEnum = {
|
|
62
|
+
BankOrders: 'bank-orders'
|
|
63
|
+
} as const;
|
|
64
|
+
|
|
65
|
+
export type RunJobGrpcRequestDtoJobNameEnum = typeof RunJobGrpcRequestDtoJobNameEnum[keyof typeof RunJobGrpcRequestDtoJobNameEnum];
|
|
66
|
+
export const RunJobGrpcRequestDtoDateFieldEnum = {
|
|
67
|
+
DueDate: 'dueDate',
|
|
68
|
+
CreatedAt: 'createdAt'
|
|
69
|
+
} as const;
|
|
70
|
+
|
|
71
|
+
export type RunJobGrpcRequestDtoDateFieldEnum = typeof RunJobGrpcRequestDtoDateFieldEnum[keyof typeof RunJobGrpcRequestDtoDateFieldEnum];
|
|
72
|
+
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RunJobRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface RunJobRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Job to run.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RunJobRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'jobName': RunJobRequestDtoJobNameEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Tenant bank account the bank orders are created for.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RunJobRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'tenantBankAccountCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* Date the run acts as if it were running on (YYYY-MM-DD). Defaults to today.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RunJobRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'executionDate'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Also collect invoices due up to this many days after executionDate. Defaults to 0.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof RunJobRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'leadDays'?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Invoice date the selection window applies to. Defaults to dueDate.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof RunJobRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'dateField'?: RunJobRequestDtoDateFieldEnum;
|
|
53
|
+
/**
|
|
54
|
+
* Log what would be created without creating bank orders.
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof RunJobRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'dryRun'?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const RunJobRequestDtoJobNameEnum = {
|
|
62
|
+
BankOrders: 'bank-orders'
|
|
63
|
+
} as const;
|
|
64
|
+
|
|
65
|
+
export type RunJobRequestDtoJobNameEnum = typeof RunJobRequestDtoJobNameEnum[keyof typeof RunJobRequestDtoJobNameEnum];
|
|
66
|
+
export const RunJobRequestDtoDateFieldEnum = {
|
|
67
|
+
DueDate: 'dueDate',
|
|
68
|
+
CreatedAt: 'createdAt'
|
|
69
|
+
} as const;
|
|
70
|
+
|
|
71
|
+
export type RunJobRequestDtoDateFieldEnum = typeof RunJobRequestDtoDateFieldEnum[keyof typeof RunJobRequestDtoDateFieldEnum];
|
|
72
|
+
|
|
73
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RunJobResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface RunJobResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* The job run was accepted and is executing in the background.
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof RunJobResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'success': boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -74,5 +74,11 @@ 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;
|
|
77
83
|
}
|
|
78
84
|
|
|
@@ -51,11 +51,11 @@ export interface UpdateBankOrderRequestDto {
|
|
|
51
51
|
*/
|
|
52
52
|
'executionDate': string;
|
|
53
53
|
/**
|
|
54
|
-
* Latest due date.
|
|
54
|
+
* Latest due date. Required for \'direct_debit\' and \'commission_payment\' orders; optional for \'claim_payment\', where the execution date is stored in its place (a sent value is still checked against the execution date).
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof UpdateBankOrderRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'dueDate'
|
|
58
|
+
'dueDate'?: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export const UpdateBankOrderRequestDtoStatusEnum = {
|