@emilgroup/payment-sdk 1.13.1-beta.12 → 1.13.1-beta.120

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 (177) hide show
  1. package/.openapi-generator/FILES +31 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +691 -0
  5. package/api/bank-transaction-api.ts +59 -48
  6. package/api/exceeding-credits-api.ts +349 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +180 -17
  10. package/api/policy-payment-methods-api.ts +353 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +6 -0
  14. package/base.ts +51 -2
  15. package/dist/api/bank-accounts-api.d.ts +35 -8
  16. package/dist/api/bank-accounts-api.js +48 -63
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +642 -0
  19. package/dist/api/bank-transaction-api.d.ts +39 -31
  20. package/dist/api/bank-transaction-api.js +54 -82
  21. package/dist/api/exceeding-credits-api.d.ts +206 -0
  22. package/dist/api/exceeding-credits-api.js +352 -0
  23. package/dist/api/health-check-api.js +5 -18
  24. package/dist/api/payment-methods-api.d.ts +39 -12
  25. package/dist/api/payment-methods-api.js +42 -45
  26. package/dist/api/payment-reminders-api.d.ts +35 -8
  27. package/dist/api/payment-reminders-api.js +42 -49
  28. package/dist/api/payment-setup-api.js +8 -25
  29. package/dist/api/payments-api.d.ts +104 -12
  30. package/dist/api/payments-api.js +143 -45
  31. package/dist/api/policy-payment-methods-api.d.ts +207 -0
  32. package/dist/api/policy-payment-methods-api.js +353 -0
  33. package/dist/api/refunds-api.d.ts +28 -10
  34. package/dist/api/refunds-api.js +34 -43
  35. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  36. package/dist/api/tenant-bank-account-api.js +40 -57
  37. package/dist/api/webhooks-api.js +5 -18
  38. package/dist/api.d.ts +3 -0
  39. package/dist/api.js +3 -0
  40. package/dist/base.d.ts +10 -1
  41. package/dist/base.js +51 -7
  42. package/dist/common.d.ts +1 -1
  43. package/dist/common.js +2 -2
  44. package/dist/models/bank-order-class.d.ts +122 -0
  45. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  46. package/dist/models/bank-order-xml-file-class.js +15 -0
  47. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  48. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  49. package/dist/models/bank-transaction-class.d.ts +22 -22
  50. package/dist/models/bank-transaction-class.js +5 -0
  51. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  52. package/dist/models/bank-transaction-invoice-class.js +15 -0
  53. package/dist/models/bank-transfer-dto.d.ts +25 -0
  54. package/dist/models/bank-transfer-dto.js +15 -0
  55. package/dist/models/billing-address-dto.d.ts +54 -0
  56. package/dist/models/billing-address-dto.js +15 -0
  57. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  58. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  59. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  60. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  61. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  62. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  63. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  64. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  65. package/dist/models/create-bank-order-request-dto.js +28 -0
  66. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  67. package/dist/models/create-bank-order-response-class.js +15 -0
  68. package/dist/models/create-payment-order-dto.d.ts +48 -0
  69. package/dist/models/create-payment-order-dto.js +15 -0
  70. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  71. package/dist/models/create-payment-order-request-dto.js +15 -0
  72. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  73. package/dist/models/create-payment-request-dto.d.ts +7 -1
  74. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  75. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  76. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  77. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  78. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  79. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  80. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  81. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  82. package/dist/models/eis-sepa-debit-dto.js +15 -0
  83. package/dist/models/exceeding-credit-class.d.ts +116 -0
  84. package/dist/models/exceeding-credit-class.js +29 -0
  85. package/dist/models/financial-account-class.d.ts +111 -0
  86. package/dist/models/financial-account-class.js +24 -0
  87. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  88. package/dist/models/get-bank-order-response-class.js +15 -0
  89. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  90. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  91. package/dist/models/index.d.ts +28 -1
  92. package/dist/models/index.js +28 -1
  93. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  94. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  95. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  96. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  97. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  98. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  99. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  100. package/dist/models/invoice-allocation-dto.js +15 -0
  101. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  102. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  103. package/dist/models/list-bank-orders-response-class.js +15 -0
  104. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  105. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  106. package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
  107. package/dist/models/list-policy-payment-methods-response-class.js +15 -0
  108. package/dist/models/mandate-dto.d.ts +43 -0
  109. package/dist/models/mandate-dto.js +15 -0
  110. package/dist/models/mandate-hash-data-dto.d.ts +42 -0
  111. package/dist/models/mandate-hash-data-dto.js +15 -0
  112. package/dist/models/mandate-reference-class.d.ts +90 -0
  113. package/dist/models/mandate-reference-class.js +15 -0
  114. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  115. package/dist/models/payment-class.d.ts +7 -1
  116. package/dist/models/payment-method-class.d.ts +6 -0
  117. package/dist/models/payment-reminder-class.d.ts +7 -1
  118. package/dist/models/policy-payment-method-class.d.ts +86 -0
  119. package/dist/models/policy-payment-method-class.js +15 -0
  120. package/dist/models/refund-class.d.ts +7 -1
  121. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  122. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  123. package/dist/models/update-bank-order-request-dto.d.ts +62 -0
  124. package/dist/models/update-bank-order-request-dto.js +23 -0
  125. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  126. package/dist/models/update-bank-order-response-class.js +15 -0
  127. package/models/bank-order-class.ts +128 -0
  128. package/models/bank-order-xml-file-class.ts +78 -0
  129. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  130. package/models/bank-transaction-class.ts +25 -22
  131. package/models/bank-transaction-invoice-class.ts +66 -0
  132. package/models/bank-transfer-dto.ts +31 -0
  133. package/models/billing-address-dto.ts +60 -0
  134. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  135. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  136. package/models/complete-payment-setup-request-dto.ts +7 -0
  137. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  138. package/models/create-bank-order-request-dto.ts +84 -0
  139. package/models/create-bank-order-response-class.ts +31 -0
  140. package/models/create-payment-order-dto.ts +54 -0
  141. package/models/create-payment-order-request-dto.ts +54 -0
  142. package/models/create-payment-reminder-request-dto.ts +7 -1
  143. package/models/create-payment-request-dto.ts +7 -1
  144. package/models/create-policy-payment-method-request-dto.ts +36 -0
  145. package/models/create-policy-payment-method-response-class.ts +31 -0
  146. package/models/create-psp-payment-method-request-dto.ts +30 -2
  147. package/models/deactivated-payment-reminder-class.ts +7 -1
  148. package/models/eis-sepa-debit-dto.ts +61 -0
  149. package/models/exceeding-credit-class.ts +125 -0
  150. package/models/financial-account-class.ts +120 -0
  151. package/models/get-bank-order-response-class.ts +31 -0
  152. package/models/get-exceeding-credit-response-class.ts +31 -0
  153. package/models/index.ts +28 -1
  154. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  155. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  156. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  157. package/models/initiate-payment-setup-request-dto.ts +3 -2
  158. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  159. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  160. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  161. package/models/list-bank-orders-response-class.ts +37 -0
  162. package/models/list-exceeding-credits-response-class.ts +37 -0
  163. package/models/list-policy-payment-methods-response-class.ts +37 -0
  164. package/models/mandate-dto.ts +49 -0
  165. package/models/mandate-hash-data-dto.ts +48 -0
  166. package/models/mandate-reference-class.ts +96 -0
  167. package/models/payment-class-without-expand-properties.ts +7 -1
  168. package/models/payment-class.ts +7 -1
  169. package/models/payment-method-class.ts +6 -0
  170. package/models/payment-reminder-class.ts +7 -1
  171. package/models/policy-payment-method-class.ts +92 -0
  172. package/models/refund-class.ts +7 -1
  173. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  174. package/models/update-bank-order-request-dto.ts +71 -0
  175. package/models/update-bank-order-response-class.ts +31 -0
  176. package/package.json +3 -3
  177. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
package/dist/base.d.ts CHANGED
@@ -26,6 +26,14 @@ export interface LoginClass {
26
26
  accessToken: string;
27
27
  permissions: string;
28
28
  }
29
+ export interface SwitchWorkspaceRequest {
30
+ username: string;
31
+ targetWorkspace: string;
32
+ }
33
+ export interface SwitchWorkspaceResponseClass {
34
+ accessToken: string;
35
+ permissions: string;
36
+ }
29
37
  export declare enum Environment {
30
38
  Production = "https://apiv2.emil.de",
31
39
  Test = "https://apiv2-test.emil.de",
@@ -57,7 +65,8 @@ export declare class BaseAPI {
57
65
  selectEnvironment(env: Environment): void;
58
66
  selectBasePath(path: string): void;
59
67
  getPermissions(): Array<string>;
60
- authorize(username: string, password: string): Promise<void>;
68
+ authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
69
+ switchWorkspace(targetWorkspace: string): Promise<void>;
61
70
  refreshTokenInternal(): Promise<LoginClass>;
62
71
  private storeTokenData;
63
72
  loadTokenData(): void;
package/dist/base.js CHANGED
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -78,8 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
82
- exports.resetRetry = resetRetry;
81
+ exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
83
82
  var configuration_1 = require("./configuration");
84
83
  var common_1 = require("./common");
85
84
  // Some imports not used depending on template conditions
@@ -103,12 +102,13 @@ var Environment;
103
102
  Environment["Staging"] = "https://apiv2-staging.emil.de";
104
103
  Environment["Development"] = "https://apiv2-dev.emil.de";
105
104
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
106
- })(Environment || (exports.Environment = Environment = {}));
105
+ })(Environment = exports.Environment || (exports.Environment = {}));
107
106
  var _retry_count = 0;
108
107
  var _retry = null;
109
108
  function resetRetry() {
110
109
  _retry_count = 0;
111
110
  }
111
+ exports.resetRetry = resetRetry;
112
112
  var NETWORK_ERROR_MESSAGE = "Network Error";
113
113
  var TOKEN_DATA = 'APP_TOKEN';
114
114
  /**
@@ -124,9 +124,13 @@ var BaseAPI = /** @class */ (function () {
124
124
  this.axios = axios;
125
125
  this.loadTokenData();
126
126
  if (configuration) {
127
+ var accessToken = this.tokenData.accessToken;
127
128
  this.configuration = configuration;
128
129
  this.basePath = configuration.basePath || this.basePath;
129
- this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
130
+ // Use config token if provided, otherwise use tokenData token
131
+ var configToken = this.configuration.accessToken;
132
+ var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
133
+ this.configuration.accessToken = configToken || storedToken;
130
134
  }
131
135
  else {
132
136
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -151,7 +155,7 @@ var BaseAPI = /** @class */ (function () {
151
155
  }
152
156
  return this.tokenData.permissions.split(',');
153
157
  };
154
- BaseAPI.prototype.authorize = function (username, password) {
158
+ BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
155
159
  return __awaiter(this, void 0, void 0, function () {
156
160
  var options, response, _a, accessToken, permissions;
157
161
  return __generator(this, function (_b) {
@@ -176,6 +180,46 @@ var BaseAPI = /** @class */ (function () {
176
180
  this.tokenData.username = username;
177
181
  this.tokenData.accessToken = accessToken;
178
182
  this.tokenData.permissions = permissions;
183
+ if (!targetWorkspace) return [3 /*break*/, 3];
184
+ return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
185
+ case 2:
186
+ _b.sent();
187
+ return [3 /*break*/, 4];
188
+ case 3:
189
+ // Only store if no workspace switch (since switchWorkspace will store after switching)
190
+ this.storeTokenData(__assign({}, this.tokenData));
191
+ _b.label = 4;
192
+ case 4: return [2 /*return*/];
193
+ }
194
+ });
195
+ });
196
+ };
197
+ BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
198
+ return __awaiter(this, void 0, void 0, function () {
199
+ var options, response, _a, accessToken, permissions;
200
+ return __generator(this, function (_b) {
201
+ switch (_b.label) {
202
+ case 0:
203
+ options = {
204
+ method: 'POST',
205
+ url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
206
+ headers: {
207
+ 'Content-Type': 'application/json',
208
+ 'Authorization': "Bearer ".concat(this.configuration.accessToken),
209
+ },
210
+ data: {
211
+ username: this.configuration.username,
212
+ targetWorkspace: targetWorkspace,
213
+ },
214
+ withCredentials: true,
215
+ };
216
+ return [4 /*yield*/, axios_1.default.request(options)];
217
+ case 1:
218
+ response = _b.sent();
219
+ _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
220
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
221
+ this.tokenData.accessToken = accessToken;
222
+ this.tokenData.permissions = permissions;
179
223
  this.storeTokenData(__assign({}, this.tokenData));
180
224
  return [2 /*return*/];
181
225
  }
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
66
  /**
67
67
  * Emil Payment Service
68
68
  * 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.
package/dist/common.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  });
34
34
  };
35
35
  var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
38
  function verb(n) { return function (v) { return step([n, v]); }; }
39
39
  function step(op) {
40
40
  if (f) throw new TypeError("Generator is already executing.");
@@ -0,0 +1,122 @@
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 { BankOrderXmlFileClass } from './bank-order-xml-file-class';
13
+ import { FinancialAccountClass } from './financial-account-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BankOrderClass
18
+ */
19
+ export interface BankOrderClass {
20
+ /**
21
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
22
+ * @type {number}
23
+ * @memberof BankOrderClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * Unique identifier for the object.
28
+ * @type {string}
29
+ * @memberof BankOrderClass
30
+ */
31
+ 'code': string;
32
+ /**
33
+ * Bank order type.
34
+ * @type {string}
35
+ * @memberof BankOrderClass
36
+ */
37
+ 'type': string;
38
+ /**
39
+ * Amount associated with bank order.
40
+ * @type {number}
41
+ * @memberof BankOrderClass
42
+ */
43
+ 'amount': number;
44
+ /**
45
+ * Status associated with bank order.
46
+ * @type {string}
47
+ * @memberof BankOrderClass
48
+ */
49
+ 'status': string;
50
+ /**
51
+ * Number associated with bank order.
52
+ * @type {string}
53
+ * @memberof BankOrderClass
54
+ */
55
+ 'orderNumber': string;
56
+ /**
57
+ * Bank order description.
58
+ * @type {string}
59
+ * @memberof BankOrderClass
60
+ */
61
+ 'description'?: string;
62
+ /**
63
+ * Financial account code associated with the bank order.
64
+ * @type {string}
65
+ * @memberof BankOrderClass
66
+ */
67
+ 'financialAccountCode': string;
68
+ /**
69
+ * List of invoice IDs associated with bank order.
70
+ * @type {Array<number>}
71
+ * @memberof BankOrderClass
72
+ */
73
+ 'invoiceIds': Array<number>;
74
+ /**
75
+ * Day of execution of bank order.
76
+ * @type {string}
77
+ * @memberof BankOrderClass
78
+ */
79
+ 'executionDate': string;
80
+ /**
81
+ * Latest due date.
82
+ * @type {string}
83
+ * @memberof BankOrderClass
84
+ */
85
+ 'dueDate': string;
86
+ /**
87
+ * Time at which the object was created.
88
+ * @type {string}
89
+ * @memberof BankOrderClass
90
+ */
91
+ 'createdAt': string;
92
+ /**
93
+ * Time at which the object was updated.
94
+ * @type {string}
95
+ * @memberof BankOrderClass
96
+ */
97
+ 'updatedAt': string;
98
+ /**
99
+ * Identifier of the user who created the record.
100
+ * @type {string}
101
+ * @memberof BankOrderClass
102
+ */
103
+ 'createdBy': string;
104
+ /**
105
+ * Identifier of the user who last updated the record.
106
+ * @type {string}
107
+ * @memberof BankOrderClass
108
+ */
109
+ 'updatedBy': string;
110
+ /**
111
+ * The financial account object that this bank order is belongs to
112
+ * @type {FinancialAccountClass}
113
+ * @memberof BankOrderClass
114
+ */
115
+ 'financialAccount'?: FinancialAccountClass;
116
+ /**
117
+ * The XML file associated with this bank order
118
+ * @type {BankOrderXmlFileClass}
119
+ * @memberof BankOrderClass
120
+ */
121
+ 'xmlFile'?: BankOrderXmlFileClass;
122
+ }
@@ -0,0 +1,72 @@
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 BankOrderXmlFileClass
16
+ */
17
+ export interface BankOrderXmlFileClass {
18
+ /**
19
+ * Unique identifier for the bank order XML file
20
+ * @type {number}
21
+ * @memberof BankOrderXmlFileClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * XML content of the bank order file
26
+ * @type {string}
27
+ * @memberof BankOrderXmlFileClass
28
+ */
29
+ 'xmlContent': string;
30
+ /**
31
+ * Original filename of the XML file
32
+ * @type {string}
33
+ * @memberof BankOrderXmlFileClass
34
+ */
35
+ 'fileName'?: string;
36
+ /**
37
+ * MIME type of the file
38
+ * @type {string}
39
+ * @memberof BankOrderXmlFileClass
40
+ */
41
+ 'mimeType'?: string;
42
+ /**
43
+ * Size of the file in bytes
44
+ * @type {number}
45
+ * @memberof BankOrderXmlFileClass
46
+ */
47
+ 'fileSize'?: number;
48
+ /**
49
+ * Timestamp when the record was created
50
+ * @type {string}
51
+ * @memberof BankOrderXmlFileClass
52
+ */
53
+ 'createdAt': string;
54
+ /**
55
+ * Timestamp when the record was last updated
56
+ * @type {string}
57
+ * @memberof BankOrderXmlFileClass
58
+ */
59
+ 'updatedAt': string;
60
+ /**
61
+ * User ID who created the record
62
+ * @type {string}
63
+ * @memberof BankOrderXmlFileClass
64
+ */
65
+ 'createdBy': string;
66
+ /**
67
+ * User ID who last updated the record
68
+ * @type {string}
69
+ * @memberof BankOrderXmlFileClass
70
+ */
71
+ 'updatedBy': string;
72
+ }
@@ -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 });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { BankOrderClass } from './bank-order-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface BankTransactionClassWithoutExpandProperties {
45
46
  * @memberof BankTransactionClassWithoutExpandProperties
46
47
  */
47
48
  'messageReference'?: string;
49
+ /**
50
+ * Label of the transaction
51
+ * @type {string}
52
+ * @memberof BankTransactionClassWithoutExpandProperties
53
+ */
54
+ 'label'?: BankTransactionClassWithoutExpandPropertiesLabelEnum;
48
55
  /**
49
56
  * Currency of the transaction.
50
57
  * @type {string}
@@ -81,30 +88,18 @@ export interface BankTransactionClassWithoutExpandProperties {
81
88
  * @memberof BankTransactionClassWithoutExpandProperties
82
89
  */
83
90
  'metadata'?: object;
84
- /**
85
- * The id of the PSP transaction that this bank transaction is linked to
86
- * @type {number}
87
- * @memberof BankTransactionClassWithoutExpandProperties
88
- */
89
- 'linkedTransactionId'?: number;
90
- /**
91
- * The code of the invoice that this bank transaction is linked to
92
- * @type {string}
93
- * @memberof BankTransactionClassWithoutExpandProperties
94
- */
95
- 'linkedInvoiceCode'?: string;
96
- /**
97
- * The identifying invoice number that this bank transaction is linked to
98
- * @type {string}
99
- * @memberof BankTransactionClassWithoutExpandProperties
100
- */
101
- 'linkedInvoiceNumber'?: string;
102
91
  /**
103
92
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
104
93
  * @type {boolean}
105
94
  * @memberof BankTransactionClassWithoutExpandProperties
106
95
  */
107
96
  'isLinked': boolean;
97
+ /**
98
+ * The linked bank order object
99
+ * @type {BankOrderClass}
100
+ * @memberof BankTransactionClassWithoutExpandProperties
101
+ */
102
+ 'linkedBankOrder'?: BankOrderClass;
108
103
  /**
109
104
  * The file format of the bank transaction
110
105
  * @type {string}
@@ -130,3 +125,8 @@ export interface BankTransactionClassWithoutExpandProperties {
130
125
  */
131
126
  'updatedBy': string;
132
127
  }
128
+ export declare const BankTransactionClassWithoutExpandPropertiesLabelEnum: {
129
+ readonly Automated: "automated";
130
+ readonly Manual: "manual";
131
+ };
132
+ export type BankTransactionClassWithoutExpandPropertiesLabelEnum = typeof BankTransactionClassWithoutExpandPropertiesLabelEnum[keyof typeof BankTransactionClassWithoutExpandPropertiesLabelEnum];
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = void 0;
17
+ exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = {
18
+ Automated: 'automated',
19
+ Manual: 'manual'
20
+ };
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { BankOrderClass } from './bank-order-class';
13
+ import { BankTransactionInvoiceClass } from './bank-transaction-invoice-class';
12
14
  import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
13
- import { SharedTransactionClass } from './shared-transaction-class';
14
15
  import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
15
16
  import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
16
17
  /**
@@ -49,6 +50,12 @@ export interface BankTransactionClass {
49
50
  * @memberof BankTransactionClass
50
51
  */
51
52
  'messageReference'?: string;
53
+ /**
54
+ * Label of the transaction
55
+ * @type {string}
56
+ * @memberof BankTransactionClass
57
+ */
58
+ 'label'?: BankTransactionClassLabelEnum;
52
59
  /**
53
60
  * Currency of the transaction.
54
61
  * @type {string}
@@ -85,30 +92,18 @@ export interface BankTransactionClass {
85
92
  * @memberof BankTransactionClass
86
93
  */
87
94
  'metadata'?: object;
88
- /**
89
- * The id of the PSP transaction that this bank transaction is linked to
90
- * @type {number}
91
- * @memberof BankTransactionClass
92
- */
93
- 'linkedTransactionId'?: number;
94
- /**
95
- * The code of the invoice that this bank transaction is linked to
96
- * @type {string}
97
- * @memberof BankTransactionClass
98
- */
99
- 'linkedInvoiceCode'?: string;
100
- /**
101
- * The identifying invoice number that this bank transaction is linked to
102
- * @type {string}
103
- * @memberof BankTransactionClass
104
- */
105
- 'linkedInvoiceNumber'?: string;
106
95
  /**
107
96
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
108
97
  * @type {boolean}
109
98
  * @memberof BankTransactionClass
110
99
  */
111
100
  'isLinked': boolean;
101
+ /**
102
+ * The bank transaction invoices that this bank transaction is linked to
103
+ * @type {Array<BankTransactionInvoiceClass>}
104
+ * @memberof BankTransactionClass
105
+ */
106
+ 'bankTransactionInvoices'?: Array<BankTransactionInvoiceClass>;
112
107
  /**
113
108
  * The bank account object that this transaction is belongs to
114
109
  * @type {TenantBankAccountClassWithoutExpandProperties}
@@ -116,11 +111,11 @@ export interface BankTransactionClass {
116
111
  */
117
112
  'bankAccount'?: TenantBankAccountClassWithoutExpandProperties;
118
113
  /**
119
- * The linked transaction object
120
- * @type {SharedTransactionClass}
114
+ * The linked bank order object
115
+ * @type {BankOrderClass}
121
116
  * @memberof BankTransactionClass
122
117
  */
123
- 'linkedTransaction'?: SharedTransactionClass;
118
+ 'linkedBankOrder'?: BankOrderClass;
124
119
  /**
125
120
  * The file format of the bank transaction
126
121
  * @type {string}
@@ -158,3 +153,8 @@ export interface BankTransactionClass {
158
153
  */
159
154
  'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
160
155
  }
156
+ export declare const BankTransactionClassLabelEnum: {
157
+ readonly Automated: "automated";
158
+ readonly Manual: "manual";
159
+ };
160
+ export type BankTransactionClassLabelEnum = typeof BankTransactionClassLabelEnum[keyof typeof BankTransactionClassLabelEnum];
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BankTransactionClassLabelEnum = void 0;
17
+ exports.BankTransactionClassLabelEnum = {
18
+ Automated: 'automated',
19
+ Manual: 'manual'
20
+ };
@@ -0,0 +1,60 @@
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 BankTransactionInvoiceClass
16
+ */
17
+ export interface BankTransactionInvoiceClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof BankTransactionInvoiceClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof BankTransactionInvoiceClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Bank transaction id
32
+ * @type {number}
33
+ * @memberof BankTransactionInvoiceClass
34
+ */
35
+ 'bankTransactionId': number;
36
+ /**
37
+ * Invoice code of the bank transaction invoice
38
+ * @type {string}
39
+ * @memberof BankTransactionInvoiceClass
40
+ */
41
+ 'invoiceCode': string;
42
+ /**
43
+ * Invoice number of the bank transaction invoice
44
+ * @type {string}
45
+ * @memberof BankTransactionInvoiceClass
46
+ */
47
+ 'invoiceNumber': string;
48
+ /**
49
+ * Linked transaction id of the bank transaction invoice
50
+ * @type {number}
51
+ * @memberof BankTransactionInvoiceClass
52
+ */
53
+ 'linkedTransactionId': number;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof BankTransactionInvoiceClass
58
+ */
59
+ 'createdAt': string;
60
+ }
@@ -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,25 @@
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 { BillingAddressDto } from './billing-address-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BankTransferDto
17
+ */
18
+ export interface BankTransferDto {
19
+ /**
20
+ * Billing address for the bank transfer payment method
21
+ * @type {BillingAddressDto}
22
+ * @memberof BankTransferDto
23
+ */
24
+ 'billingAddress': BillingAddressDto;
25
+ }
@@ -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 });