@vario-software/types 2026.42.4 → 2026.43.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.
package/app/Api.d.ts CHANGED
@@ -36,16 +36,33 @@ type QueryParams<Op> =
36
36
  ? [Q] extends [never] ? Record<string, never> : NonNullable<Q>
37
37
  : Record<string, never>;
38
38
 
39
+ // Query values may be passed as single value or as list
40
+ type ScalarOrArray<T> = T extends readonly (infer E)[] ? E | T : T;
41
+
42
+ type QueryOption<Q> = { [K in keyof Q]: ScalarOrArray<Q[K]> };
43
+
39
44
  type RequestBody<Op> =
40
45
  Op extends { requestBody: { content: { 'application/json': infer B } } } ? B :
41
46
  Op extends { requestBody?: { content: { 'application/json': infer B } } } ? B :
42
47
  any;
43
48
 
49
+ // Operation with a JSON success response – matches the same cases as SuccessResponse,
50
+ // but as a single structural check without infer to keep the per-path cost low on large schemas
51
+ type JsonSuccessOperation = {
52
+ responses:
53
+ | { 200: { content: { 'application/json': unknown } } }
54
+ | { 201: { content: { 'application/json': unknown } } }
55
+ | { 200: { content: { '*/*': unknown } } }
56
+ | { 201: { content: { '*/*': unknown } } }
57
+ | { 200: { content: { 'application/*': unknown } } }
58
+ | { 201: { content: { 'application/*': unknown } } };
59
+ };
60
+
61
+ type JsonSuccessMethod<M extends string> = { [K in M]: JsonSuccessOperation };
62
+
44
63
  type MethodEndpoints<Paths, M extends string> = {
45
64
  [P in keyof Paths as
46
- GetOperation<Paths[P], M> extends never ? never :
47
- [SuccessResponse<GetOperation<Paths[P], M>>] extends [never] ? never :
48
- ConvertPath<P & string>
65
+ Paths[P] extends JsonSuccessMethod<M> ? ConvertPath<P & string> : never
49
66
  ]: GetOperation<Paths[P], M>;
50
67
  };
51
68
 
@@ -115,12 +132,16 @@ type DirectQueryParams<Paths, P extends string> =
115
132
  type GenericGetOptions<Paths, P extends string> = ErpBaseOptions & {
116
133
  method: 'GET';
117
134
  pathParams?: DirectPathParams<Paths, P>;
135
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'get'>>>;
136
+ /** @deprecated Not appended to the URL, use `query` instead. */
118
137
  params?: QueryParams<DirectOperation<Paths, P, 'get'>>;
119
138
  };
120
139
 
121
140
  type GenericPostOptions<Paths, P extends string> = ErpBaseOptions & {
122
141
  method: 'POST';
123
142
  pathParams?: DirectPathParams<Paths, P>;
143
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'post'>>>;
144
+ /** @deprecated Not appended to the URL, use `query` instead. */
124
145
  params?: QueryParams<DirectOperation<Paths, P, 'post'>>;
125
146
  body?: DirectRequestBody<Paths, P>;
126
147
  };
@@ -128,6 +149,8 @@ type GenericPostOptions<Paths, P extends string> = ErpBaseOptions & {
128
149
  type GenericPutOptions<Paths, P extends string> = ErpBaseOptions & {
129
150
  method: 'PUT';
130
151
  pathParams?: DirectPathParams<Paths, P>;
152
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'put'>>>;
153
+ /** @deprecated Not appended to the URL, use `query` instead. */
131
154
  params?: QueryParams<DirectOperation<Paths, P, 'put'>>;
132
155
  body?: DirectRequestBody<Paths, P>;
133
156
  };
@@ -135,12 +158,16 @@ type GenericPutOptions<Paths, P extends string> = ErpBaseOptions & {
135
158
  type GenericDeleteOptions<Paths, P extends string> = ErpBaseOptions & {
136
159
  method: 'DELETE';
137
160
  pathParams?: DirectPathParams<Paths, P>;
161
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P, 'delete'>>>;
162
+ /** @deprecated Not appended to the URL, use `query` instead. */
138
163
  params?: QueryParams<DirectOperation<Paths, P, 'delete'>>;
139
164
  };
140
165
 
141
166
  type GenericFallbackOptions<Paths, P extends string> = ErpBaseOptions & {
142
167
  method?: DirectMethods<Paths, P>;
143
168
  pathParams?: DirectPathParams<Paths, P>;
169
+ query?: QueryOption<DirectQueryParams<Paths, P>>;
170
+ /** @deprecated Not appended to the URL, use `query` instead. */
144
171
  params?: DirectQueryParams<Paths, P>;
145
172
  body?: DirectRequestBody<Paths, P>;
146
173
  };
@@ -173,6 +200,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
173
200
  options: ErpBaseOptions & {
174
201
  method: 'GET';
175
202
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'get'>>;
203
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'get'>>>;
204
+ /** @deprecated Not appended to the URL, use `query` instead. */
176
205
  params?: QueryParams<DirectOperation<Paths, P & string, 'get'>>;
177
206
  },
178
207
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'get'>>>>;
@@ -182,6 +211,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
182
211
  options: ErpBaseOptions & {
183
212
  method: 'POST';
184
213
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'post'>>;
214
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'post'>>>;
215
+ /** @deprecated Not appended to the URL, use `query` instead. */
185
216
  params?: QueryParams<DirectOperation<Paths, P & string, 'post'>>;
186
217
  body?: RequestBody<DirectOperation<Paths, P & string, 'post'>> | string;
187
218
  },
@@ -192,6 +223,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
192
223
  options: ErpBaseOptions & {
193
224
  method: 'PUT';
194
225
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'put'>>;
226
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'put'>>>;
227
+ /** @deprecated Not appended to the URL, use `query` instead. */
195
228
  params?: QueryParams<DirectOperation<Paths, P & string, 'put'>>;
196
229
  body?: RequestBody<DirectOperation<Paths, P & string, 'put'>> | string;
197
230
  },
@@ -202,6 +235,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
202
235
  options: ErpBaseOptions & {
203
236
  method: 'DELETE';
204
237
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'delete'>>;
238
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'delete'>>>;
239
+ /** @deprecated Not appended to the URL, use `query` instead. */
205
240
  params?: QueryParams<DirectOperation<Paths, P & string, 'delete'>>;
206
241
  },
207
242
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'delete'>>>>;
@@ -211,6 +246,8 @@ export interface TypedErpApiFetch<Paths = Record<string, any>>
211
246
  path: P,
212
247
  options?: ErpBaseOptions & {
213
248
  pathParams?: PathParams<DirectOperation<Paths, P & string, 'get'>>;
249
+ query?: QueryOption<QueryParams<DirectOperation<Paths, P & string, 'get'>>>;
250
+ /** @deprecated Not appended to the URL, use `query` instead. */
214
251
  params?: QueryParams<DirectOperation<Paths, P & string, 'get'>>;
215
252
  },
216
253
  ): Promise<ErpFetchResponse<SuccessResponse<DirectOperation<Paths, P & string, 'get'>>>>;
@@ -271,6 +308,8 @@ export interface TypedApiStatic<Paths = Record<string, any>>
271
308
  method?: string;
272
309
  pathParams?: Record<string, any>;
273
310
  body?: any;
311
+ query?: Record<string, any>;
312
+ /** @deprecated Not appended to the URL, use `query` instead. */
274
313
  params?: Record<string, any>;
275
314
  }): ApiInstance;
276
315
 
package/app/Migrator.d.ts CHANGED
@@ -17,8 +17,8 @@ export interface MigratorMethods
17
17
  getEavGroup(groupKey: string): Promise<EavGroup>;
18
18
  createEavGroup(eavGroup: EavGroup): Promise<EavGroup>;
19
19
  changeEavGroup(groupKey: string, callback: (group: EavGroup) => EavGroup): Promise<EavGroup>;
20
- deleteEavGroup(groupKey: string): Promise<EavGroup>;
21
- removeDataFromEavGroup(groupKey: string, attributeKeys?: string[]): Promise<EavGroup>;
20
+ deleteEavGroup(groupKey: string): Promise<boolean>;
21
+ removeDataFromEavGroup(groupKey: string, attributeKeys?: string[]): Promise<boolean>;
22
22
  createTextEnumGroup(textEnumGroup: TextEnumGroupCreate): Promise<TextEnumGroupCreate>;
23
23
  registerWebhook(destinationQueue: string, url: string, destinationOwner?: string): Promise<void>;
24
24
  deregisterWebhook(destinationQueue: string, url: string, destinationOwner?: string): Promise<void>;
@@ -33,9 +33,9 @@ export declare class BaseUrlCache
33
33
  app: VarioCloudApp;
34
34
 
35
35
  init(): Promise<void>;
36
- get(): Promise<string>;
37
- set(value: string): Promise<void>;
38
- delete(): Promise<void>;
36
+ get(tenant: string): Promise<string>;
37
+ set(tenant: string, value: string): Promise<void>;
38
+ delete(tenant: string): Promise<void>;
39
39
  }
40
40
 
41
41
  // -- App Configuration --
package/index.d.ts CHANGED
@@ -4,35 +4,35 @@
4
4
 
5
5
  declare module '@vario-software/vario-app-framework-backend/api/ErpApi'
6
6
  {
7
- import Api = require('./app/ErpApi');
7
+ import Api = require('@vario-software/types/app/ErpApi');
8
8
  export = Api;
9
9
  }
10
10
 
11
11
  declare module '@vario-software/vario-app-framework-backend/api/ErpApi.js'
12
12
  {
13
- import Api = require('./app/ErpApi');
13
+ import Api = require('@vario-software/types/app/ErpApi');
14
14
  export = Api;
15
15
  }
16
16
 
17
17
  declare module '@vario-software/vario-app-framework-backend/utils/context'
18
18
  {
19
- export * from './app/context';
19
+ export * from '@vario-software/types/app/context';
20
20
  }
21
21
 
22
22
  declare module '@vario-software/vario-app-framework-backend/utils/context.js'
23
23
  {
24
- export * from './app/context';
24
+ export * from '@vario-software/types/app/context';
25
25
  }
26
26
 
27
27
  declare module '@vario-software/vario-app-framework-backend/app'
28
28
  {
29
- const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
29
+ const VarioCloudApp: typeof import('@vario-software/types/app/VarioCloudApp').VarioCloudApp;
30
30
  export = VarioCloudApp;
31
31
  }
32
32
 
33
33
  declare module '@vario-software/vario-app-framework-backend/app.js'
34
34
  {
35
- const VarioCloudApp: typeof import('./app/VarioCloudApp').VarioCloudApp;
35
+ const VarioCloudApp: typeof import('@vario-software/types/app/VarioCloudApp').VarioCloudApp;
36
36
  export = VarioCloudApp;
37
37
  }
38
38
 
@@ -40,22 +40,22 @@ declare module '@vario-software/vario-app-framework-backend/app.js'
40
40
 
41
41
  declare module '@vario-software/vario-app-framework-backend/utils/httpError'
42
42
  {
43
- export { HttpError as default, HttpError } from './app/HttpError';
43
+ export { HttpError as default, HttpError } from '@vario-software/types/app/HttpError';
44
44
  }
45
45
 
46
46
  declare module '@vario-software/vario-app-framework-backend/utils/httpError.js'
47
47
  {
48
- export { HttpError as default, HttpError } from './app/HttpError';
48
+ export { HttpError as default, HttpError } from '@vario-software/types/app/HttpError';
49
49
  }
50
50
 
51
51
  declare module '@vario-software/vario-app-framework-backend/utils/migrator'
52
52
  {
53
- export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
53
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from '@vario-software/types/app/Migrator';
54
54
  }
55
55
 
56
56
  declare module '@vario-software/vario-app-framework-backend/utils/migrator.js'
57
57
  {
58
- export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from './app/Migrator';
58
+ export { Migrator as default, Migrator, MigratorMethods, MigratorCallback } from '@vario-software/types/app/Migrator';
59
59
  }
60
60
 
61
61
  declare module '@vario-software/vario-app-framework-backend/utils/permission'
@@ -84,26 +84,26 @@ declare module '@vario-software/vario-app-framework-backend/utils/licenses.js'
84
84
 
85
85
  declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap'
86
86
  {
87
- export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
87
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from '@vario-software/types/app/PromiseSingletonMap';
88
88
  }
89
89
 
90
90
  declare module '@vario-software/vario-app-framework-backend/utils/promiseSingletonMap.js'
91
91
  {
92
- export { PromiseSingletonMap as default, PromiseSingletonMap } from './app/PromiseSingletonMap';
92
+ export { PromiseSingletonMap as default, PromiseSingletonMap } from '@vario-software/types/app/PromiseSingletonMap';
93
93
  }
94
94
 
95
95
  declare module '@vario-software/vario-app-framework-backend/utils/token'
96
96
  {
97
- export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
98
- export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
97
+ export function validateOfflineToken(offlineToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
98
+ export function validateAppToken(appToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
99
99
  export function isAppTokenExpired(): boolean;
100
100
  export function refreshAppToken(): Promise<void>;
101
101
  }
102
102
 
103
103
  declare module '@vario-software/vario-app-framework-backend/utils/token.js'
104
104
  {
105
- export function validateOfflineToken(offlineToken: string): Promise<import('./app/context').AccessTokenPayload>;
106
- export function validateAppToken(appToken: string): Promise<import('./app/context').AccessTokenPayload>;
105
+ export function validateOfflineToken(offlineToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
106
+ export function validateAppToken(appToken: string): Promise<import('@vario-software/types/app/context').AccessTokenPayload>;
107
107
  export function isAppTokenExpired(): boolean;
108
108
  export function refreshAppToken(): Promise<void>;
109
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vario-software/types",
3
- "version": "2026.42.4",
3
+ "version": "2026.43.1",
4
4
  "description": "TypeScript type definitions for the VARIO Cloud platform: REST API schemas, app framework contexts and scripting interfaces. Provides type checking, autocompletion and IntelliSense in TypeScript and JavaScript projects.",
5
5
  "homepage": "https://developer.vario-software.de/",
6
6
  "bugs": "https://developer.vario-software.de/help-support",
package/schema/erp.d.ts CHANGED
@@ -39852,6 +39852,8 @@ export interface components {
39852
39852
  * @enum {string}
39853
39853
  */
39854
39854
  lineType: "PAYMENT" | "DUNNING" | "FEE";
39855
+ /** @description Amount taken from the bank transaction in its currency. Required for payments on an open item in another currency; the amount is then given in the currency of the open item. */
39856
+ transactionAmount?: number;
39855
39857
  };
39856
39858
  "erp-bank-OpenItemDistributionResult": {
39857
39859
  /** @description If applicable the amount that has yet to be distributed/was overdrafted/was marked as irrelevant */
@@ -42690,6 +42692,8 @@ export interface components {
42690
42692
  posPaymentMethodRef?: components["schemas"]["core-api-ApiObjectReference"];
42691
42693
  /** @description Version Identifier for this Object (for PUT) */
42692
42694
  version?: string;
42695
+ /** @description Scanned code of the preprinted voucher card a POS return is refunded on */
42696
+ voucherCode?: string;
42693
42697
  voucherRef?: components["schemas"]["core-api-ApiObjectReference"];
42694
42698
  voucherTypeRef?: components["schemas"]["core-api-ApiObjectReference"];
42695
42699
  /** @description Withdrawal amount; in mode MANUAL provided by the user, in modes FULL/BALANCE/NONE calculated by the backend from the current balance. */
@@ -44478,7 +44482,7 @@ export interface components {
44478
44482
  * @description Assignment Type
44479
44483
  * @enum {string}
44480
44484
  */
44481
- assignmentType: "SALES_POSITION_LEDGER" | "PURCHASE_POSITION_LEDGER" | "COMMISSION_POSITION_LEDGER" | "BANK_LEDGER" | "RECEIVABLE_DUNNING_FEE_LEDGER" | "RECEIVABLE_DUNNING_INTEREST_LEDGER" | "PAYABLE_DUNNING_FEE_LEDGER" | "PAYABLE_DUNNING_INTEREST_LEDGER" | "OPEN_ITEM_MANUAL_CLOSURE" | "SALES_PREPAYMENT_TAX_LEDGER" | "SALES_PREPAYMENT_TAX_INTERIM_LEDGER" | "SALES_PREPAYMENT_DOCUMENTFIELD1_INTERIM_LEDGER" | "FINANCIAL_SETTLEMENT_LEDGER" | "LEDGER_NOT_RELEVANT_FOR_BUSINESS" | "PAYMENT_FEE_LEDGER" | "DISCOUNT_GRANTED" | "DISCOUNT_RECEIVED" | "BANK_TRANSACTION" | "VOUCHER_LIABILITY_LEDGER" | "VOUCHER_DISCOUNT_LEDGER" | "POS_PAYMENT_LEDGER" | "POS_INTERIM_LEDGER" | "CASH_JOURNAL_BALANCE_DIFFERENCE" | "POS_DEPOSIT_EXPENSE";
44485
+ assignmentType: "SALES_POSITION_LEDGER" | "PURCHASE_POSITION_LEDGER" | "COMMISSION_POSITION_LEDGER" | "BANK_LEDGER" | "RECEIVABLE_DUNNING_FEE_LEDGER" | "RECEIVABLE_DUNNING_INTEREST_LEDGER" | "PAYABLE_DUNNING_FEE_LEDGER" | "PAYABLE_DUNNING_INTEREST_LEDGER" | "OPEN_ITEM_MANUAL_CLOSURE" | "SALES_PREPAYMENT_TAX_LEDGER" | "SALES_PREPAYMENT_TAX_INTERIM_LEDGER" | "SALES_PREPAYMENT_DOCUMENTFIELD1_INTERIM_LEDGER" | "FINANCIAL_SETTLEMENT_LEDGER" | "LEDGER_NOT_RELEVANT_FOR_BUSINESS" | "PAYMENT_FEE_LEDGER" | "EXCHANGE_GAIN_LEDGER" | "EXCHANGE_LOSS_LEDGER" | "DISCOUNT_GRANTED" | "DISCOUNT_RECEIVED" | "BANK_TRANSACTION" | "VOUCHER_LIABILITY_LEDGER" | "VOUCHER_DISCOUNT_LEDGER" | "POS_PAYMENT_LEDGER" | "POS_INTERIM_LEDGER" | "CASH_JOURNAL_BALANCE_DIFFERENCE" | "POS_DEPOSIT_EXPENSE";
44482
44486
  bankAccountRef?: components["schemas"]["core-api-ApiObjectReference"];
44483
44487
  /**
44484
44488
  * @description Booking account type (debtor or creditor) of the open item this ledger assignment applies to; empty means any.
@@ -44490,6 +44494,8 @@ export interface components {
44490
44494
  comment?: string;
44491
44495
  /** @description Cost center 1 */
44492
44496
  costCenter1?: string;
44497
+ /** @description ISO 4217 code of the currency this ledger assignment applies to; empty means any currency. */
44498
+ currency?: string;
44493
44499
  /** @description Booking text. */
44494
44500
  description?: string;
44495
44501
  /** @description Unique identifier of the Object */
@@ -44593,22 +44599,34 @@ export interface components {
44593
44599
  version?: string;
44594
44600
  };
44595
44601
  "erp-finance-ManualEntry": {
44596
- /** @description the amount */
44602
+ /** @description Amount relative to the bank transaction: positive amounts use up the transaction amount, negative amounts free it. A bank fee (PAYMENT_FEE) on an incoming transaction is therefore negative. */
44597
44603
  amount?: number;
44598
44604
  /** @description a comment on the entry */
44599
44605
  comment?: string;
44600
44606
  /** @description cost center 1 */
44601
44607
  costCenter1?: string;
44608
+ /** @description Book exchange rate of the open item: amount in bank currency per unit of the open item currency. */
44609
+ readonly determinedExchangeRate?: number;
44602
44610
  /** @description document field 1 */
44603
44611
  documentField1?: string;
44612
+ /**
44613
+ * @description Type of a manual finance booking on a bank transaction.
44614
+ * @default MANUAL
44615
+ * @enum {string}
44616
+ */
44617
+ entryType: "MANUAL" | "PAYMENT_FEE" | "EXCHANGE_DIFFERENCE";
44604
44618
  /** @description Unique identifier of the Object */
44605
44619
  id?: string;
44606
44620
  info?: components["schemas"]["core-api-MetaInfo"];
44607
44621
  /** @description the number of the ledger */
44608
44622
  ledgerNumber?: string;
44623
+ /** @description Identifier of the payment record the exchange rate difference belongs to. */
44624
+ readonly openItemRecordId?: string;
44609
44625
  transaction?: components["schemas"]["erp-bank-BankTransaction"];
44610
44626
  /** @description transaction key */
44611
44627
  transactionKey?: string;
44628
+ /** @description Exchange rate transmitted by the bank: amount in bank currency per unit of the open item currency. */
44629
+ readonly transmittedExchangeRate?: number;
44612
44630
  /** @description Version Identifier for this Object (for PUT) */
44613
44631
  version?: string;
44614
44632
  };
@@ -44616,10 +44634,16 @@ export interface components {
44616
44634
  "erp-finance-ManualFinanceBookingAccountDistribution": {
44617
44635
  /** @description Cost center. */
44618
44636
  costCenter1?: string;
44619
- /** @description Distribution amount. */
44637
+ /** @description Distribution amount. For MANUAL a positive amount uses up the bank transaction amount, a negative amount books in the opposite direction. For PAYMENT_FEE always enter the bank fee as a positive expense, for incoming transactions it is stored with a negative sign. */
44620
44638
  distributionAmount?: number;
44621
44639
  /** @description Document field 1. */
44622
44640
  documentField1?: string;
44641
+ /**
44642
+ * @description Type of a manual finance booking on a bank transaction.
44643
+ * @default MANUAL
44644
+ * @enum {string}
44645
+ */
44646
+ entryType: "MANUAL" | "PAYMENT_FEE" | "EXCHANGE_DIFFERENCE";
44623
44647
  /** @description Finance account. */
44624
44648
  ledgerNumber?: string;
44625
44649
  /** @description Transaction key. */
@@ -45201,6 +45225,8 @@ export interface components {
45201
45225
  readonly revertedByRecordId?: number;
45202
45226
  /** @description record total amount */
45203
45227
  readonly totalAmount?: number;
45228
+ /** @description Amount in the currency of the assigned bank transaction, converted with the book exchange rate of the open item for foreign currencies. */
45229
+ readonly transactionAmount?: number;
45204
45230
  /**
45205
45231
  * Format: int64
45206
45232
  * @description Identifier of the transaction that caused this record.
@@ -45991,8 +46017,11 @@ export interface components {
45991
46017
  cashDrawerRef?: components["schemas"]["core-api-ApiObjectReference"];
45992
46018
  /** @description Description. */
45993
46019
  description: string;
45994
- /** @description Perform the DSFinV-K export. */
45995
- readonly dsfinvkExport?: boolean;
46020
+ /**
46021
+ * @description Perform the DSFinV-K export.
46022
+ * @default false
46023
+ */
46024
+ readonly dsfinvkExport: boolean;
45996
46025
  /**
45997
46026
  * @description Automatically triggered DSFinV-K export state.
45998
46027
  * @enum {string}
@@ -46018,6 +46047,7 @@ export interface components {
46018
46047
  * @description Business day of the currently running DSFinV-K export.
46019
46048
  */
46020
46049
  readonly pendingExportBusinessDateEnd?: string;
46050
+ refundVoucherTypeRef?: components["schemas"]["core-api-ApiObjectReference"];
46021
46051
  salesChannelRef?: components["schemas"]["core-api-ApiObjectReference"];
46022
46052
  /** @description Software name. */
46023
46053
  softwareBrand?: string;
@@ -49601,7 +49631,7 @@ export interface components {
49601
49631
  * @description Origin of the record
49602
49632
  * @enum {string}
49603
49633
  */
49604
- origin: "ISSUE" | "REDEMPTION" | "REDEMPTION_DISSOLVED" | "CREDIT_NOTE" | "CREDIT_NOTE_DISSOLVED" | "REMAINDER_TRANSFERRED" | "CANCELLATION" | "CANCELLATION_REVOKED" | "PAYOUT" | "IMPORT" | "ADJUSTMENT_INCREASE" | "ADJUSTMENT_DECREASE" | "RESERVATION" | "RESERVATION_RELEASED";
49634
+ origin: "ISSUE" | "ISSUE_RESERVATION" | "REDEMPTION" | "REDEMPTION_DISSOLVED" | "CREDIT_NOTE" | "CREDIT_NOTE_DISSOLVED" | "REMAINDER_TRANSFERRED" | "CANCELLATION" | "CANCELLATION_REVOKED" | "PAYOUT" | "IMPORT" | "ADJUSTMENT_INCREASE" | "ADJUSTMENT_DECREASE" | "RESERVATION" | "RESERVATION_RELEASED";
49605
49635
  /**
49606
49636
  * Format: date
49607
49637
  * @description Record date, today if omitted
@@ -49640,7 +49670,7 @@ export interface components {
49640
49670
  * @description Origin of the record
49641
49671
  * @enum {string}
49642
49672
  */
49643
- origin?: "ISSUE" | "REDEMPTION" | "REDEMPTION_DISSOLVED" | "CREDIT_NOTE" | "CREDIT_NOTE_DISSOLVED" | "REMAINDER_TRANSFERRED" | "CANCELLATION" | "CANCELLATION_REVOKED" | "PAYOUT" | "IMPORT" | "ADJUSTMENT_INCREASE" | "ADJUSTMENT_DECREASE" | "RESERVATION" | "RESERVATION_RELEASED";
49673
+ origin?: "ISSUE" | "ISSUE_RESERVATION" | "REDEMPTION" | "REDEMPTION_DISSOLVED" | "CREDIT_NOTE" | "CREDIT_NOTE_DISSOLVED" | "REMAINDER_TRANSFERRED" | "CANCELLATION" | "CANCELLATION_REVOKED" | "PAYOUT" | "IMPORT" | "ADJUSTMENT_INCREASE" | "ADJUSTMENT_DECREASE" | "RESERVATION" | "RESERVATION_RELEASED";
49644
49674
  /**
49645
49675
  * Format: date
49646
49676
  * @description Record date
@@ -49692,6 +49722,11 @@ export interface components {
49692
49722
  * @enum {string}
49693
49723
  */
49694
49724
  codeOrigin: "GENERATED" | "SCANNED";
49725
+ /**
49726
+ * @description Must a captured code be unique within the voucher type?
49727
+ * @default true
49728
+ */
49729
+ codeUnique: boolean;
49695
49730
  /** @description Description */
49696
49731
  description?: string;
49697
49732
  /**
@@ -99515,6 +99550,7 @@ export interface operations {
99515
99550
  parameters: {
99516
99551
  query?: {
99517
99552
  amount?: number;
99553
+ voucherTypeId?: number;
99518
99554
  };
99519
99555
  header?: never;
99520
99556
  path: {
@@ -25,9 +25,9 @@ export interface AppScriptingProxyScriptingContext {
25
25
  *
26
26
  * @param {AppScriptingProxyScriptingContext} ctx - Skript-Kontext
27
27
  * @param {object} jsonObj - JSON-Objekt
28
- * @return {object} Das ggf. veränderte JSON-Objekt
28
+ * @return {object | Promise<object>} Das ggf. veränderte JSON-Objekt
29
29
  */
30
- type AppScriptForExecutionProcess = (ctx: AppScriptingProxyScriptingContext, jsonObj: object) => object;
30
+ type AppScriptForExecutionProcess = (ctx: AppScriptingProxyScriptingContext, jsonObj: object) => object | Promise<object>;
31
31
 
32
32
  export interface AppScriptingProxyScriptingContext {
33
33
 
@@ -38,24 +38,24 @@ export interface BatchScriptingContext {
38
38
  * Die in der Stapelverarbeitung auszuführende Aktion
39
39
  *
40
40
  * @param {BatchScriptingContext} ctx - Import-Kontext
41
- * @return {boolean} true, falls erfolgreich durchgeführt. Sonst false.
41
+ * @return {boolean | Promise<boolean>} true, falls erfolgreich durchgeführt. Sonst false.
42
42
  */
43
- type BatchScriptAction = (ctx: BatchScriptingContext) => boolean;
43
+ type BatchScriptAction = (ctx: BatchScriptingContext) => boolean | Promise<boolean>;
44
44
 
45
45
  /**
46
46
  * Wird nach dem Import ausgeführt
47
47
  *
48
48
  * @param {BatchScriptingContext} ctx - Import-Kontext
49
49
  */
50
- type BatchScriptAfterbatch = (ctx: BatchScriptingContext) => void;
50
+ type BatchScriptAfterbatch = (ctx: BatchScriptingContext) => void | Promise<void>;
51
51
 
52
52
  /**
53
53
  * Definiert, ob die Aktion ausgeführt werden soll
54
54
  *
55
55
  * @param {BatchScriptingContext} ctx - Import-Kontext
56
- * @return {boolean} true => Aktion ausführen, false => Eintrag ignorieren
56
+ * @return {boolean | Promise<boolean>} true => Aktion ausführen, false => Eintrag ignorieren
57
57
  */
58
- type BatchScriptGuard = (ctx: BatchScriptingContext) => boolean;
58
+ type BatchScriptGuard = (ctx: BatchScriptingContext) => boolean | Promise<boolean>;
59
59
 
60
60
  export interface BatchScriptingContext {
61
61
 
@@ -25,9 +25,9 @@ export interface TaskOutputFilterContext {
25
25
  * Verarbeitet die Json-Daten
26
26
  *
27
27
  * @param {TaskOutputFilterContext} ctx - Skript-Kontext
28
- * @return {object} Das ggf. veränderte JSON-Objekt
28
+ * @return {object | Promise<object>} Das ggf. veränderte JSON-Objekt
29
29
  */
30
- type OutputFilterScriptShouldprocess = (ctx: TaskOutputFilterContext) => object;
30
+ type OutputFilterScriptShouldprocess = (ctx: TaskOutputFilterContext) => object | Promise<object>;
31
31
 
32
32
  export interface TaskOutputFilterContext {
33
33
 
@@ -38,9 +38,9 @@ export interface OutputModuleScriptingContext {
38
38
  * Executed before printing
39
39
  *
40
40
  * @param {OutputModuleScriptingContext} ctx - Script context
41
- * @return {boolean} true = create output, false = abort output
41
+ * @return {boolean | Promise<boolean>} true = create output, false = abort output
42
42
  */
43
- type OutputModuleScriptBeforeprint = (ctx: OutputModuleScriptingContext) => boolean;
43
+ type OutputModuleScriptBeforeprint = (ctx: OutputModuleScriptingContext) => boolean | Promise<boolean>;
44
44
 
45
45
  export interface OutputModuleScriptingContext {
46
46
 
@@ -39,7 +39,7 @@ export interface PicklistScriptingContext {
39
39
  *
40
40
  * @param {PicklistScriptingContext} ctx - Skript-Kontext
41
41
  */
42
- type PicklistScriptForExecutionProcess = (ctx: PicklistScriptingContext) => void;
42
+ type PicklistScriptForExecutionProcess = (ctx: PicklistScriptingContext) => void | Promise<void>;
43
43
 
44
44
  export interface PicklistScriptingContext {
45
45