@emilgroup/payment-sdk-node 1.28.1-beta.4 → 1.28.1-beta.41

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.
Files changed (58) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/bank-orders-api.ts +8 -8
  4. package/api/exceeding-credits-api.ts +107 -0
  5. package/api/jobs-api.ts +169 -0
  6. package/api/payment-requests-api.ts +12 -12
  7. package/api.ts +2 -0
  8. package/dist/api/bank-orders-api.d.ts +8 -8
  9. package/dist/api/bank-orders-api.js +6 -6
  10. package/dist/api/exceeding-credits-api.d.ts +57 -0
  11. package/dist/api/exceeding-credits-api.js +93 -0
  12. package/dist/api/jobs-api.d.ts +97 -0
  13. package/dist/api/jobs-api.js +228 -0
  14. package/dist/api/payment-requests-api.d.ts +12 -12
  15. package/dist/api/payment-requests-api.js +9 -9
  16. package/dist/api.d.ts +1 -0
  17. package/dist/api.js +1 -0
  18. package/dist/models/create-bank-order-request-dto.d.ts +2 -2
  19. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  20. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  21. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  22. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  23. package/dist/models/create-payment-order-dto.d.ts +1 -1
  24. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  25. package/dist/models/create-payment-request-dto.d.ts +1 -1
  26. package/dist/models/index.d.ts +5 -0
  27. package/dist/models/index.js +5 -0
  28. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  29. package/dist/models/payment-class.d.ts +1 -1
  30. package/dist/models/payment-receipt-class.d.ts +1 -1
  31. package/dist/models/payment-request-class.d.ts +18 -0
  32. package/dist/models/run-job-grpc-request-dto.d.ts +63 -0
  33. package/dist/models/run-job-grpc-request-dto.js +23 -0
  34. package/dist/models/run-job-request-dto.d.ts +63 -0
  35. package/dist/models/run-job-request-dto.js +23 -0
  36. package/dist/models/run-job-response-class.d.ts +24 -0
  37. package/dist/models/run-job-response-class.js +15 -0
  38. package/dist/models/shared-transaction-class.d.ts +6 -0
  39. package/dist/models/transaction-entity.d.ts +6 -0
  40. package/dist/models/update-bank-order-request-dto.d.ts +2 -2
  41. package/models/create-bank-order-request-dto.ts +2 -2
  42. package/models/create-exceeding-credit-request-dto.ts +54 -0
  43. package/models/create-exceeding-credit-response-class.ts +31 -0
  44. package/models/create-payment-order-dto.ts +1 -1
  45. package/models/create-payment-receipt-request-dto.ts +1 -1
  46. package/models/create-payment-request-dto.ts +1 -1
  47. package/models/index.ts +5 -0
  48. package/models/payment-class-without-expand-properties.ts +1 -1
  49. package/models/payment-class.ts +1 -1
  50. package/models/payment-receipt-class.ts +1 -1
  51. package/models/payment-request-class.ts +18 -0
  52. package/models/run-job-grpc-request-dto.ts +73 -0
  53. package/models/run-job-request-dto.ts +73 -0
  54. package/models/run-job-response-class.ts +30 -0
  55. package/models/shared-transaction-class.ts +6 -0
  56. package/models/transaction-entity.ts +6 -0
  57. package/models/update-bank-order-request-dto.ts +2 -2
  58. package/package.json +1 -1
@@ -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 });
@@ -69,4 +69,10 @@ 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;
72
78
  }
@@ -71,6 +71,12 @@ export interface TransactionEntity {
71
71
  * @memberof TransactionEntity
72
72
  */
73
73
  'bankTransactionId'?: number;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof TransactionEntity
78
+ */
79
+ 'bankTransactionCode'?: string;
74
80
  /**
75
81
  *
76
82
  * @type {string}
@@ -46,11 +46,11 @@ export interface UpdateBankOrderRequestDto {
46
46
  */
47
47
  'executionDate': string;
48
48
  /**
49
- * Latest due date.
49
+ * 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).
50
50
  * @type {string}
51
51
  * @memberof UpdateBankOrderRequestDto
52
52
  */
53
- 'dueDate': string;
53
+ 'dueDate'?: string;
54
54
  }
55
55
  export declare const UpdateBankOrderRequestDtoStatusEnum: {
56
56
  readonly Open: "open";
@@ -57,11 +57,11 @@ export interface CreateBankOrderRequestDto {
57
57
  */
58
58
  'executionDate': string;
59
59
  /**
60
- * Latest due date.
60
+ * Latest due date. Required for \'direct_debit\' and \'commission_payment\'; ignored for \'claim_payment\', where the execution date is stored in its place.
61
61
  * @type {string}
62
62
  * @memberof CreateBankOrderRequestDto
63
63
  */
64
- 'dueDate': string;
64
+ 'dueDate'?: string;
65
65
  }
66
66
 
67
67
  export const CreateBankOrderRequestDtoTypeEnum = {
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateExceedingCreditRequestDto
21
+ */
22
+ export interface CreateExceedingCreditRequestDto {
23
+ /**
24
+ * The amount of the credit
25
+ * @type {number}
26
+ * @memberof CreateExceedingCreditRequestDto
27
+ */
28
+ 'amount': number;
29
+ /**
30
+ * The description of the credit
31
+ * @type {string}
32
+ * @memberof CreateExceedingCreditRequestDto
33
+ */
34
+ 'description'?: string;
35
+ /**
36
+ * The policy code of the credit
37
+ * @type {string}
38
+ * @memberof CreateExceedingCreditRequestDto
39
+ */
40
+ 'policyCode': string;
41
+ /**
42
+ * The transaction code of the credit
43
+ * @type {string}
44
+ * @memberof CreateExceedingCreditRequestDto
45
+ */
46
+ 'bankTransactionCode': string;
47
+ /**
48
+ * The invoice code of the credit
49
+ * @type {string}
50
+ * @memberof CreateExceedingCreditRequestDto
51
+ */
52
+ 'invoiceCode': string;
53
+ }
54
+
@@ -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 { ExceedingCreditClass } from './exceeding-credit-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateExceedingCreditResponseClass
22
+ */
23
+ export interface CreateExceedingCreditResponseClass {
24
+ /**
25
+ * Exceeding credit
26
+ * @type {ExceedingCreditClass}
27
+ * @memberof CreateExceedingCreditResponseClass
28
+ */
29
+ 'exceedingCredit': ExceedingCreditClass;
30
+ }
31
+
@@ -33,7 +33,7 @@ export interface CreatePaymentOrderDto {
33
33
  */
34
34
  'comment'?: string;
35
35
  /**
36
- * Optional payment date.
36
+ * The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
37
37
  * @type {string}
38
38
  * @memberof CreatePaymentOrderDto
39
39
  */
@@ -39,7 +39,7 @@ export interface CreatePaymentReceiptRequestDto {
39
39
  */
40
40
  'direction': CreatePaymentReceiptRequestDtoDirectionEnum;
41
41
  /**
42
- * Date the payment was confirmed
42
+ * The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
43
43
  * @type {string}
44
44
  * @memberof CreatePaymentReceiptRequestDto
45
45
  */
@@ -63,7 +63,7 @@ export interface CreatePaymentRequestDto {
63
63
  */
64
64
  'productSlug'?: string;
65
65
  /**
66
- * Optional payment date.
66
+ * The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
67
67
  * @type {string}
68
68
  * @memberof CreatePaymentRequestDto
69
69
  */
package/models/index.ts CHANGED
@@ -31,6 +31,8 @@ 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';
34
36
  export * from './create-payment-method-response-class';
35
37
  export * from './create-payment-order-dto';
36
38
  export * from './create-payment-order-request-dto';
@@ -122,6 +124,9 @@ export * from './policy-payment-method-class';
122
124
  export * from './primary-bank-account-response-class';
123
125
  export * from './refund-class';
124
126
  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';
125
130
  export * from './sepa-direct-dto';
126
131
  export * from './set-primary-bank-account-request-dto-rest';
127
132
  export * from './shared-transaction-class';
@@ -81,7 +81,7 @@ export interface PaymentClassWithoutExpandProperties {
81
81
  */
82
82
  'productSlug'?: string;
83
83
  /**
84
- * Time at which the payment was actually received.
84
+ * The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
85
85
  * @type {string}
86
86
  * @memberof PaymentClassWithoutExpandProperties
87
87
  */
@@ -88,7 +88,7 @@ export interface PaymentClass {
88
88
  */
89
89
  'productSlug'?: string;
90
90
  /**
91
- * Time at which the payment was actually received.
91
+ * The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
92
92
  * @type {string}
93
93
  * @memberof PaymentClass
94
94
  */
@@ -51,7 +51,7 @@ export interface PaymentReceiptClass {
51
51
  */
52
52
  'direction': PaymentReceiptClassDirectionEnum;
53
53
  /**
54
- * Date the payment was confirmed
54
+ * The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
55
55
  * @type {string}
56
56
  * @memberof PaymentReceiptClass
57
57
  */
@@ -111,6 +111,24 @@ export interface PaymentRequestClass {
111
111
  * @memberof PaymentRequestClass
112
112
  */
113
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;
114
132
  /**
115
133
  * Code of the payment method used for this payment request.
116
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
 
@@ -76,6 +76,12 @@ export interface TransactionEntity {
76
76
  * @memberof TransactionEntity
77
77
  */
78
78
  'bankTransactionId'?: number;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof TransactionEntity
83
+ */
84
+ 'bankTransactionCode'?: string;
79
85
  /**
80
86
  *
81
87
  * @type {string}
@@ -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': string;
58
+ 'dueDate'?: string;
59
59
  }
60
60
 
61
61
  export const UpdateBankOrderRequestDtoStatusEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.28.1-beta.4",
3
+ "version": "1.28.1-beta.41",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [