@emilgroup/payment-sdk 1.22.1-beta.36 → 1.22.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.
Files changed (70) 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 +165 -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 +224 -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-request-request-dto.d.ts +12 -0
  24. package/dist/models/credit-allocation-class.d.ts +6 -0
  25. package/dist/models/credit-allocation-entity.d.ts +6 -0
  26. package/dist/models/index.d.ts +5 -0
  27. package/dist/models/index.js +5 -0
  28. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  29. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  30. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  31. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  32. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  33. package/dist/models/list-refunds-response-class.d.ts +6 -18
  34. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  35. package/dist/models/payment-class.d.ts +1 -1
  36. package/dist/models/payment-entity.d.ts +1 -1
  37. package/dist/models/payment-request-class.d.ts +30 -0
  38. package/dist/models/run-job-grpc-request-dto.d.ts +63 -0
  39. package/dist/models/run-job-grpc-request-dto.js +23 -0
  40. package/dist/models/run-job-request-dto.d.ts +63 -0
  41. package/dist/models/run-job-request-dto.js +23 -0
  42. package/dist/models/run-job-response-class.d.ts +24 -0
  43. package/dist/models/run-job-response-class.js +15 -0
  44. package/dist/models/shared-transaction-class.d.ts +6 -0
  45. package/dist/models/transaction-entity.d.ts +6 -0
  46. package/dist/models/update-bank-order-request-dto.d.ts +2 -2
  47. package/models/create-bank-order-request-dto.ts +2 -2
  48. package/models/create-exceeding-credit-request-dto.ts +54 -0
  49. package/models/create-exceeding-credit-response-class.ts +31 -0
  50. package/models/create-payment-request-request-dto.ts +12 -0
  51. package/models/credit-allocation-class.ts +6 -0
  52. package/models/credit-allocation-entity.ts +6 -0
  53. package/models/index.ts +5 -0
  54. package/models/list-billing-addresses-response-class.ts +9 -9
  55. package/models/list-exceeding-credits-response-class.ts +6 -18
  56. package/models/list-payment-receipts-response-class.ts +9 -9
  57. package/models/list-payment-requests-response-class.ts +6 -18
  58. package/models/list-payout-methods-response-class.ts +9 -9
  59. package/models/list-refunds-response-class.ts +6 -18
  60. package/models/payment-class-without-expand-properties.ts +1 -1
  61. package/models/payment-class.ts +1 -1
  62. package/models/payment-entity.ts +1 -1
  63. package/models/payment-request-class.ts +30 -0
  64. package/models/run-job-grpc-request-dto.ts +73 -0
  65. package/models/run-job-request-dto.ts +73 -0
  66. package/models/run-job-response-class.ts +30 -0
  67. package/models/shared-transaction-class.ts +6 -0
  68. package/models/transaction-entity.ts +6 -0
  69. package/models/update-bank-order-request-dto.ts +2 -2
  70. 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'?: string;
52
+ 'partnerCode': string;
53
53
  /**
54
54
  * Amount to be paid in cents. 100 to charge 1€.
55
55
  * @type {number}
@@ -50,7 +50,7 @@ export interface PaymentClass {
50
50
  * @type {string}
51
51
  * @memberof PaymentClass
52
52
  */
53
- 'partnerCode'?: string;
53
+ 'partnerCode': string;
54
54
  /**
55
55
  * Amount to be paid in cents. 100 to charge 1€.
56
56
  * @type {number}
@@ -56,7 +56,7 @@ export interface PaymentEntity {
56
56
  * @type {string}
57
57
  * @memberof PaymentEntity
58
58
  */
59
- 'partnerCode'?: string;
59
+ 'partnerCode': string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -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
 
@@ -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",
3
- "version": "1.22.1-beta.36",
3
+ "version": "1.22.1-beta.38",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [