@emilgroup/payment-sdk-node 1.8.2 → 1.12.1

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 (91) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +4 -4
  4. package/api/bank-transaction-api.ts +569 -0
  5. package/api/payment-methods-api.ts +4 -4
  6. package/api/payment-reminders-api.ts +12 -10
  7. package/api/payments-api.ts +4 -4
  8. package/api/refunds-api.ts +464 -0
  9. package/api/tenant-bank-account-api.ts +655 -0
  10. package/api.ts +6 -2
  11. package/dist/api/bank-accounts-api.d.ts +4 -4
  12. package/dist/api/bank-accounts-api.js +3 -3
  13. package/dist/api/bank-transaction-api.d.ts +318 -0
  14. package/dist/api/bank-transaction-api.js +543 -0
  15. package/dist/api/payment-methods-api.d.ts +4 -4
  16. package/dist/api/payment-methods-api.js +3 -3
  17. package/dist/api/payment-reminders-api.d.ts +12 -11
  18. package/dist/api/payment-reminders-api.js +7 -7
  19. package/dist/api/payments-api.d.ts +4 -4
  20. package/dist/api/payments-api.js +3 -3
  21. package/dist/api/refunds-api.d.ts +260 -0
  22. package/dist/api/refunds-api.js +445 -0
  23. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  24. package/dist/api/tenant-bank-account-api.js +620 -0
  25. package/dist/api.d.ts +3 -1
  26. package/dist/api.js +3 -1
  27. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  28. package/dist/models/create-payment-reminder-request-dto.d.ts +2 -0
  29. package/dist/models/create-payment-reminder-request-dto.js +3 -1
  30. package/dist/models/create-payment-request-dto.d.ts +3 -3
  31. package/dist/models/create-refund-request-dto.d.ts +24 -0
  32. package/dist/models/create-refund-request-dto.js +15 -0
  33. package/dist/models/create-refund-response-class.d.ts +25 -0
  34. package/dist/models/create-refund-response-class.js +15 -0
  35. package/dist/models/create-tenant-bank-account-request-dto.d.ts +42 -0
  36. package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
  37. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  38. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  39. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  40. package/dist/models/get-bank-transactions-response-class.js +15 -0
  41. package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
  42. package/dist/models/get-refund-response-class.js +15 -0
  43. package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
  44. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  45. package/dist/models/index.d.ts +14 -1
  46. package/dist/models/index.js +14 -1
  47. package/dist/models/inline-response200.d.ts +6 -6
  48. package/dist/models/inline-response503.d.ts +6 -6
  49. package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
  50. package/dist/models/link-bank-transaction-request-dto.js +15 -0
  51. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  52. package/dist/models/list-bank-transactions-response-class.js +15 -0
  53. package/dist/models/list-refunds-response-class.d.ts +31 -0
  54. package/dist/models/list-refunds-response-class.js +15 -0
  55. package/dist/models/payment-class.d.ts +1 -1
  56. package/dist/models/payment-method-class.d.ts +8 -2
  57. package/dist/models/payment-reminder-class.d.ts +4 -0
  58. package/dist/models/payment-reminder-class.js +6 -2
  59. package/dist/models/refund-class.d.ts +104 -0
  60. package/dist/models/refund-class.js +28 -0
  61. package/dist/models/tenant-bank-account-response-class.d.ts +66 -0
  62. package/dist/models/tenant-bank-account-response-class.js +15 -0
  63. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
  64. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  65. package/models/bank-transaction-response-class.ts +128 -0
  66. package/models/create-payment-reminder-request-dto.ts +3 -1
  67. package/models/create-payment-request-dto.ts +3 -3
  68. package/models/create-refund-request-dto.ts +30 -0
  69. package/models/create-refund-response-class.ts +31 -0
  70. package/models/create-tenant-bank-account-request-dto.ts +48 -0
  71. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  72. package/models/get-bank-transactions-response-class.ts +31 -0
  73. package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
  74. package/models/get-tenant-bank-account-response-class.ts +31 -0
  75. package/models/index.ts +14 -1
  76. package/models/inline-response200.ts +6 -6
  77. package/models/inline-response503.ts +6 -6
  78. package/models/link-bank-transaction-request-dto.ts +36 -0
  79. package/models/list-bank-transactions-response-class.ts +37 -0
  80. package/models/list-refunds-response-class.ts +37 -0
  81. package/models/payment-class.ts +1 -1
  82. package/models/payment-method-class.ts +8 -2
  83. package/models/payment-reminder-class.ts +6 -2
  84. package/models/refund-class.ts +114 -0
  85. package/models/tenant-bank-account-response-class.ts +72 -0
  86. package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
  87. package/package.json +1 -1
  88. package/api/payment-service-providers-api.ts +0 -165
  89. package/dist/api/payment-service-providers-api.d.ts +0 -93
  90. package/dist/api/payment-service-providers-api.js +0 -224
  91. /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LinkBankTransactionRequestDto
16
+ */
17
+ export interface LinkBankTransactionRequestDto {
18
+ /**
19
+ * Unique identifier for the object.
20
+ * @type {string}
21
+ * @memberof LinkBankTransactionRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * The code of the invoice that the transaction will be linked to.
26
+ * @type {string}
27
+ * @memberof LinkBankTransactionRequestDto
28
+ */
29
+ 'invoiceCode': string;
30
+ }
@@ -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 });
@@ -0,0 +1,31 @@
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 { BankTransactionResponseClass } from './bank-transaction-response-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListBankTransactionsResponseClass
17
+ */
18
+ export interface ListBankTransactionsResponseClass {
19
+ /**
20
+ * The list of bankTransactionss.
21
+ * @type {Array<BankTransactionResponseClass>}
22
+ * @memberof ListBankTransactionsResponseClass
23
+ */
24
+ 'items': Array<BankTransactionResponseClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListBankTransactionsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -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 });
@@ -0,0 +1,31 @@
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 { RefundClass } from './refund-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListRefundsResponseClass
17
+ */
18
+ export interface ListRefundsResponseClass {
19
+ /**
20
+ * The list of refundss.
21
+ * @type {Array<RefundClass>}
22
+ * @memberof ListRefundsResponseClass
23
+ */
24
+ 'items': Array<RefundClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListRefundsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -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 });
@@ -71,7 +71,7 @@ export interface PaymentClass {
71
71
  */
72
72
  'metadata': object;
73
73
  /**
74
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
74
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
75
75
  * @type {string}
76
76
  * @memberof PaymentClass
77
77
  */
@@ -40,7 +40,7 @@ export interface PaymentMethodClass {
40
40
  */
41
41
  'pspCustomerId': string;
42
42
  /**
43
- * The payment service provider used by this payment method.
43
+ * The payment service provider associated to this payment method.
44
44
  * @type {string}
45
45
  * @memberof PaymentMethodClass
46
46
  */
@@ -52,7 +52,13 @@ export interface PaymentMethodClass {
52
52
  */
53
53
  'type': string;
54
54
  /**
55
- * Created at
55
+ * Optional field contain extra information
56
+ * @type {object}
57
+ * @memberof PaymentMethodClass
58
+ */
59
+ 'metadata': object;
60
+ /**
61
+ * Time at which the object was created.
56
62
  * @type {string}
57
63
  * @memberof PaymentMethodClass
58
64
  */
@@ -95,6 +95,8 @@ export declare const PaymentReminderClassInvoiceTypeEnum: {
95
95
  readonly Estimated: "estimated";
96
96
  readonly Penalty: "penalty";
97
97
  readonly Other: "other";
98
+ readonly Withdraw: "withdraw";
99
+ readonly Final: "final";
98
100
  };
99
101
  export type PaymentReminderClassInvoiceTypeEnum = typeof PaymentReminderClassInvoiceTypeEnum[keyof typeof PaymentReminderClassInvoiceTypeEnum];
100
102
  export declare const PaymentReminderClassPaymentCodeEnum: {
@@ -104,5 +106,7 @@ export declare const PaymentReminderClassPaymentCodeEnum: {
104
106
  readonly Estimated: "estimated";
105
107
  readonly Penalty: "penalty";
106
108
  readonly Other: "other";
109
+ readonly Withdraw: "withdraw";
110
+ readonly Final: "final";
107
111
  };
108
112
  export type PaymentReminderClassPaymentCodeEnum = typeof PaymentReminderClassPaymentCodeEnum[keyof typeof PaymentReminderClassPaymentCodeEnum];
@@ -20,7 +20,9 @@ exports.PaymentReminderClassInvoiceTypeEnum = {
20
20
  Correction: 'correction',
21
21
  Estimated: 'estimated',
22
22
  Penalty: 'penalty',
23
- Other: 'other'
23
+ Other: 'other',
24
+ Withdraw: 'withdraw',
25
+ Final: 'final'
24
26
  };
25
27
  exports.PaymentReminderClassPaymentCodeEnum = {
26
28
  Initial: 'initial',
@@ -28,5 +30,7 @@ exports.PaymentReminderClassPaymentCodeEnum = {
28
30
  Correction: 'correction',
29
31
  Estimated: 'estimated',
30
32
  Penalty: 'penalty',
31
- Other: 'other'
33
+ Other: 'other',
34
+ Withdraw: 'withdraw',
35
+ Final: 'final'
32
36
  };
@@ -0,0 +1,104 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface RefundClass
16
+ */
17
+ export interface RefundClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof RefundClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof RefundClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Payment Service Provider with which the payment/refund is done.
32
+ * @type {string}
33
+ * @memberof RefundClass
34
+ */
35
+ 'psp': string;
36
+ /**
37
+ * User account code associated with the payment.
38
+ * @type {string}
39
+ * @memberof RefundClass
40
+ */
41
+ 'accountCode': string;
42
+ /**
43
+ * Amount that was refunded in cents. 100 to refund 1€.
44
+ * @type {number}
45
+ * @memberof RefundClass
46
+ */
47
+ 'amount': number;
48
+ /**
49
+ * Invoice referenced in this refund. Usually, one refund is connected to one withdraw/termination/correction invoice .
50
+ * @type {string}
51
+ * @memberof RefundClass
52
+ */
53
+ 'invoiceCode': string;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof RefundClass
58
+ */
59
+ 'createdAt': string;
60
+ /**
61
+ * Time at which the object was updated.
62
+ * @type {string}
63
+ * @memberof RefundClass
64
+ */
65
+ 'updatedAt': string;
66
+ /**
67
+ * Currency of the amount refunded.
68
+ * @type {string}
69
+ * @memberof RefundClass
70
+ */
71
+ 'currency': string;
72
+ /**
73
+ * Reason for the refund.
74
+ * @type {string}
75
+ * @memberof RefundClass
76
+ */
77
+ 'reason': RefundClassReasonEnum;
78
+ /**
79
+ * Status of the refund.
80
+ * @type {string}
81
+ * @memberof RefundClass
82
+ */
83
+ 'status': RefundClassStatusEnum;
84
+ /**
85
+ * Items that were refunded.
86
+ * @type {Array<string>}
87
+ * @memberof RefundClass
88
+ */
89
+ 'refundItems': Array<string>;
90
+ }
91
+ export declare const RefundClassReasonEnum: {
92
+ readonly PolicyWithdrawn: "POLICY_WITHDRAWN";
93
+ readonly PolicyTerminated: "POLICY_TERMINATED";
94
+ readonly PolicyCorrected: "POLICY_CORRECTED";
95
+ readonly ManualRefund: "MANUAL_REFUND";
96
+ };
97
+ export type RefundClassReasonEnum = typeof RefundClassReasonEnum[keyof typeof RefundClassReasonEnum];
98
+ export declare const RefundClassStatusEnum: {
99
+ readonly Pending: "pending";
100
+ readonly Succeeded: "succeeded";
101
+ readonly Failed: "failed";
102
+ readonly Canceled: "canceled";
103
+ };
104
+ export type RefundClassStatusEnum = typeof RefundClassStatusEnum[keyof typeof RefundClassStatusEnum];
@@ -0,0 +1,28 @@
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 });
16
+ exports.RefundClassStatusEnum = exports.RefundClassReasonEnum = void 0;
17
+ exports.RefundClassReasonEnum = {
18
+ PolicyWithdrawn: 'POLICY_WITHDRAWN',
19
+ PolicyTerminated: 'POLICY_TERMINATED',
20
+ PolicyCorrected: 'POLICY_CORRECTED',
21
+ ManualRefund: 'MANUAL_REFUND'
22
+ };
23
+ exports.RefundClassStatusEnum = {
24
+ Pending: 'pending',
25
+ Succeeded: 'succeeded',
26
+ Failed: 'failed',
27
+ Canceled: 'canceled'
28
+ };
@@ -0,0 +1,66 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface TenantBankAccountResponseClass
16
+ */
17
+ export interface TenantBankAccountResponseClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof TenantBankAccountResponseClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof TenantBankAccountResponseClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * IBAN number for the bank account
32
+ * @type {string}
33
+ * @memberof TenantBankAccountResponseClass
34
+ */
35
+ 'iban': string;
36
+ /**
37
+ * Name of the account given by the user - to quickly identify the account
38
+ * @type {string}
39
+ * @memberof TenantBankAccountResponseClass
40
+ */
41
+ 'accountName': string;
42
+ /**
43
+ * Name of the bank the account belongs to
44
+ * @type {string}
45
+ * @memberof TenantBankAccountResponseClass
46
+ */
47
+ 'bankName': string;
48
+ /**
49
+ * Number of the booking account this bank account belongs to
50
+ * @type {string}
51
+ * @memberof TenantBankAccountResponseClass
52
+ */
53
+ 'bookingAccount': string;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof TenantBankAccountResponseClass
58
+ */
59
+ 'createdAt': string;
60
+ /**
61
+ * Time at which the object was updated.
62
+ * @type {string}
63
+ * @memberof TenantBankAccountResponseClass
64
+ */
65
+ 'updatedAt': string;
66
+ }
@@ -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 });
@@ -0,0 +1,36 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateTenantBankAccountRestRequestDto
16
+ */
17
+ export interface UpdateTenantBankAccountRestRequestDto {
18
+ /**
19
+ * Name of the account given by the user - to quickly identify the account
20
+ * @type {string}
21
+ * @memberof UpdateTenantBankAccountRestRequestDto
22
+ */
23
+ 'accountName': string;
24
+ /**
25
+ * Name of the bank the account belongs to
26
+ * @type {string}
27
+ * @memberof UpdateTenantBankAccountRestRequestDto
28
+ */
29
+ 'bankName': string;
30
+ /**
31
+ * The name of the account
32
+ * @type {string}
33
+ * @memberof UpdateTenantBankAccountRestRequestDto
34
+ */
35
+ 'bookingAccount': string;
36
+ }
@@ -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 });
@@ -0,0 +1,128 @@
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 { TenantBankAccountResponseClass } from './tenant-bank-account-response-class';
17
+ import { TransactionClass } from './transaction-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface BankTransactionResponseClass
23
+ */
24
+ export interface BankTransactionResponseClass {
25
+ /**
26
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
27
+ * @type {number}
28
+ * @memberof BankTransactionResponseClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * Unique identifier for the object.
33
+ * @type {string}
34
+ * @memberof BankTransactionResponseClass
35
+ */
36
+ 'code': string;
37
+ /**
38
+ * Bank account ID associated with the transaction.
39
+ * @type {number}
40
+ * @memberof BankTransactionResponseClass
41
+ */
42
+ 'bankAccountId': number;
43
+ /**
44
+ * Account number of the bank account
45
+ * @type {string}
46
+ * @memberof BankTransactionResponseClass
47
+ */
48
+ 'bankAccountNumber': string;
49
+ /**
50
+ * Reference number derived from the MT940 swift Insturctions
51
+ * @type {string}
52
+ * @memberof BankTransactionResponseClass
53
+ */
54
+ 'swiftMessageReference'?: string;
55
+ /**
56
+ * Currency of the transaction.
57
+ * @type {string}
58
+ * @memberof BankTransactionResponseClass
59
+ */
60
+ 'currency': string;
61
+ /**
62
+ * Amount of the transaction - can be negative or positive
63
+ * @type {string}
64
+ * @memberof BankTransactionResponseClass
65
+ */
66
+ 'amount': string;
67
+ /**
68
+ * Date on which the transaction was executed. Also known as Value Date
69
+ * @type {string}
70
+ * @memberof BankTransactionResponseClass
71
+ */
72
+ 'transactionDate': string;
73
+ /**
74
+ * Date on which the transaction entry was made in the system. Also known as Booking Date
75
+ * @type {string}
76
+ * @memberof BankTransactionResponseClass
77
+ */
78
+ 'entryDate': string;
79
+ /**
80
+ * Optional reference number that can be given by the customer or bank to uniquely identify a transaction. If no transaction reference is provided the value is set to \'NONREF\'
81
+ * @type {string}
82
+ * @memberof BankTransactionResponseClass
83
+ */
84
+ 'transactionReference': string;
85
+ /**
86
+ * Optional metadata that can be provided by the customer or bank to give more context to the transaction
87
+ * @type {object}
88
+ * @memberof BankTransactionResponseClass
89
+ */
90
+ 'metadata'?: object;
91
+ /**
92
+ * The id of the PSP transaction that this bank transaction is linked to
93
+ * @type {number}
94
+ * @memberof BankTransactionResponseClass
95
+ */
96
+ 'linkedTransactionId': number;
97
+ /**
98
+ * The code of the invoice that this bank transaction is linked to
99
+ * @type {string}
100
+ * @memberof BankTransactionResponseClass
101
+ */
102
+ 'linkedInvoiceCode'?: string;
103
+ /**
104
+ * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
105
+ * @type {boolean}
106
+ * @memberof BankTransactionResponseClass
107
+ */
108
+ 'isLinked': boolean;
109
+ /**
110
+ * The bank account object that this transaction is belongs to
111
+ * @type {TenantBankAccountResponseClass}
112
+ * @memberof BankTransactionResponseClass
113
+ */
114
+ 'bankAccount': TenantBankAccountResponseClass;
115
+ /**
116
+ * The linked transaction object
117
+ * @type {TransactionClass}
118
+ * @memberof BankTransactionResponseClass
119
+ */
120
+ 'linkedTransaction': TransactionClass;
121
+ /**
122
+ * Time at which the object was created.
123
+ * @type {string}
124
+ * @memberof BankTransactionResponseClass
125
+ */
126
+ 'createdAt': string;
127
+ }
128
+
@@ -64,7 +64,9 @@ export const CreatePaymentReminderRequestDtoInvoiceTypeEnum = {
64
64
  Correction: 'correction',
65
65
  Estimated: 'estimated',
66
66
  Penalty: 'penalty',
67
- Other: 'other'
67
+ Other: 'other',
68
+ Withdraw: 'withdraw',
69
+ Final: 'final'
68
70
  } as const;
69
71
 
70
72
  export type CreatePaymentReminderRequestDtoInvoiceTypeEnum = typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum[keyof typeof CreatePaymentReminderRequestDtoInvoiceTypeEnum];
@@ -40,10 +40,10 @@ export interface CreatePaymentRequestDto {
40
40
  'currency'?: string;
41
41
  /**
42
42
  * Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
43
- * @type {Array<string>}
43
+ * @type {Array<number>}
44
44
  * @memberof CreatePaymentRequestDto
45
45
  */
46
- 'invoiceIds': Array<string>;
46
+ 'invoiceIds': Array<number>;
47
47
  /**
48
48
  * Optional field contain extra information.
49
49
  * @type {object}
@@ -51,7 +51,7 @@ export interface CreatePaymentRequestDto {
51
51
  */
52
52
  'metadata': object;
53
53
  /**
54
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
54
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
55
55
  * @type {string}
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */