@vario-software/types 2026.42.3 → 2026.43.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vario-software/types",
3
- "version": "2026.42.3",
3
+ "version": "2026.43.0",
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 */
@@ -44599,16 +44605,28 @@ export interface components {
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
  };
@@ -44620,6 +44638,12 @@ export interface components {
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
 
@@ -5,17 +5,19 @@ import {
5
5
  ApiObjectReference, Article, Article$Metric, ArticleAssetInformation,
6
6
  ArticleAvailabilityDetermination, ArticleBundleConversionInfo,
7
7
  ArticleCustomer, ArticleIdentifier, ArticleListing,
8
- ArticlePrintLabelSettings, ArticleSerialNumber, ArticleStorage,
9
- ArticleSupplier, AssemblyComponentReturnLine, Asset, AssetType,
10
- BulkTransferRequestApi, BulkTransferResult, BundleSchema,
11
- BundleUnitTypeRatio, CommissionAssignment, Contact, CountryReference,
12
- CreateNewDocumentRequest, CrmActivity, CrmActivityType, CrmChecklistItem,
13
- CrmDeal, CrmDealTopic, CrmObjectRef, CrmParticipant, CrmPriority,
14
- CrmProject, CrmReference, CrmReminder, CrmState, CrmSubType, CrmTask,
15
- CrmTaskParticipant, CrmTypedDocumentRef, CrmTypedDocumentRefList,
16
- CurrencyReference, Customer, DangerousGoodInformation,
17
- DealNotificationEventConfig, DeliveryMethod, DeliveryTerm, DmsOutputStream,
18
- Document, DocumentAdditionalInfo,
8
+ ArticleListing$CustomFieldWithDefaults,
9
+ ArticleListing$WithDefaults_List_ArticleIdentifier,
10
+ ArticleListing$WithDefaults_String, ArticlePrintLabelSettings,
11
+ ArticleSerialNumber, ArticleStorage, ArticleSupplier,
12
+ AssemblyComponentReturnLine, Asset, AssetType, BulkTransferRequestApi,
13
+ BulkTransferResult, BundleSchema, BundleUnitTypeRatio,
14
+ CommissionAssignment, Contact, CountryReference, CreateNewDocumentRequest,
15
+ CrmActivity, CrmActivityType, CrmChecklistItem, CrmDeal, CrmDealTopic,
16
+ CrmObjectRef, CrmParticipant, CrmPriority, CrmProject, CrmReference,
17
+ CrmReminder, CrmState, CrmSubType, CrmTask, CrmTaskParticipant,
18
+ CrmTypedDocumentRef, CrmTypedDocumentRefList, CurrencyReference, Customer,
19
+ DangerousGoodInformation, DealNotificationEventConfig, DeliveryMethod,
20
+ DeliveryTerm, DmsOutputStream, Document, DocumentAdditionalInfo,
19
21
  DocumentAdditionalInfo$IncomingGoodsTarget,
20
22
  DocumentAdditionalInfo$IncomingGoodsTargetOfLine,
21
23
  DocumentAdditionalInfo$PrintedTranslatedField, DocumentAddress,
@@ -32,14 +34,15 @@ import {
32
34
  DummySerialNumberStockTransferApi, ECrmPriorityType,
33
35
  ECrmSpecialDocumentRefType, ECrmType, ELinebreakType,
34
36
  EScriptingAuthenticationType, EShelfDocumentDeletionState,
35
- ExternalDocumentWithTaxesLine, ExternalDocumentWithTaxesRequest,
36
- FabricationComponentForProduction, FabricationDefectiveRequest,
37
- FabricationProduceRequest, FabricationRemainingComponent,
38
- FabricationRevertRequest, FabricationSerialNumber, Group, JsonNode,
39
- LocalizedTextTemplateContent, OpenItem, PaymentMethod, PaymentTerm,
40
- PaymentTermRef, PickTrolley, PickTrolleyBox, Picklist, PicklistLine,
41
- PicklistLineBooking, PicklistLineComponent, PicklistTemplate,
42
- PicklistTemplate$DateRange, PicklistTemplate$OrderSelectionOptions,
37
+ ExternalDocumentShippingCost, ExternalDocumentWithTaxesLine,
38
+ ExternalDocumentWithTaxesRequest, FabricationComponentForProduction,
39
+ FabricationDefectiveRequest, FabricationProduceRequest,
40
+ FabricationRemainingComponent, FabricationRevertRequest,
41
+ FabricationSerialNumber, Group, JsonNode, LocalizedTextTemplateContent,
42
+ OpenItem, PaymentMethod, PaymentTerm, PaymentTermRef, PickTrolley,
43
+ PickTrolleyBox, Picklist, PicklistLine, PicklistLineBooking,
44
+ PicklistLineComponent, PicklistTemplate, PicklistTemplate$DateRange,
45
+ PicklistTemplate$OrderSelectionOptions,
43
46
  PicklistTemplate$PicklistCreationOptions,
44
47
  PicklistTemplate$PicklistProcessingOptions,
45
48
  PicklistTemplate$PicklistScript, PlainScriptingWriter,
@@ -572,8 +575,10 @@ export interface ArticleScriptingService {
572
575
  *
573
576
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
574
577
  * @param {number} articleId - ID des zu druckenden Artikels
578
+ * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
579
+ * @param {number} labelCount - Anzahl der zu druckenden Etiketten
575
580
  */
576
- addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
581
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
577
582
 
578
583
  /**
579
584
  * Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
@@ -589,10 +594,8 @@ export interface ArticleScriptingService {
589
594
  *
590
595
  * @param {string} batchIdentifier - ID des Etikettendrucklaufs
591
596
  * @param {number} articleId - ID des zu druckenden Artikels
592
- * @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
593
- * @param {number} labelCount - Anzahl der zu druckenden Etiketten
594
597
  */
595
- addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
598
+ addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
596
599
 
597
600
  /**
598
601
  * Persistiert einen Artikel. Die Texte werden zur Sprache der eigenen Adresse gespeichert
@@ -662,21 +665,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
662
665
  executeLabelPrintBatch(batchIdentifier: string): void;
663
666
 
664
667
  /**
665
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
668
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
666
669
  *
667
670
  * @param {string} articleNumber - Eine Artikelnummer
668
- * @param {string} languageCode - Zu verwendende Sprache
669
- * @return {Article} Der gelesene Artikel oder null
671
+ * @return {Article} Der gelesene Artikel oder null
670
672
  */
671
- findByNumber(articleNumber: string, languageCode: string): Article;
673
+ findByNumber(articleNumber: string): Article;
672
674
 
673
675
  /**
674
- * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
676
+ * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
675
677
  *
676
678
  * @param {string} articleNumber - Eine Artikelnummer
677
- * @return {Article} Der gelesene Artikel oder null
679
+ * @param {string} languageCode - Zu verwendende Sprache
680
+ * @return {Article} Der gelesene Artikel oder null
678
681
  */
679
- findByNumber(articleNumber: string): Article;
682
+ findByNumber(articleNumber: string, languageCode: string): Article;
680
683
 
681
684
  /**
682
685
  * Liefert die Einkaufsrabatte zu einem Artikel
@@ -725,21 +728,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
725
728
  newLabelPrintBatchIdentifier(): string;
726
729
 
727
730
  /**
728
- * Liest einen Artikel mit Texten zur Sprache der eigenen Adresse
731
+ * Liest einen Artikel mit Texten zur Sprache languageCode
729
732
  *
730
733
  * @param {number} id - ID vom zu lesenden Artikel
734
+ * @param {string} languageCode - Zu verwendende Sprache
731
735
  * @return {Article} Der gelesene Artikel
732
736
  */
733
- readById(id: number): Article;
737
+ readById(id: number, languageCode: string): Article;
734
738
 
735
739
  /**
736
- * Liest einen Artikel mit Texten zur Sprache languageCode
740
+ * Liest einen Artikel mit Texten zur Sprache der eigenen Adresse
737
741
  *
738
742
  * @param {number} id - ID vom zu lesenden Artikel
739
- * @param {string} languageCode - Zu verwendende Sprache
740
743
  * @return {Article} Der gelesene Artikel
741
744
  */
742
- readById(id: number, languageCode: string): Article;
745
+ readById(id: number): Article;
743
746
 
744
747
  /**
745
748
  * Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
@@ -1937,18 +1940,18 @@ export interface DocumentScriptingService {
1937
1940
  * Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)
1938
1941
  *
1939
1942
  * @param {number} documentId - ID des Belegs
1943
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1940
1944
  * @return {Document} Der abgebrochene Beleg. Falls der Beleg erst angelegt und noch nicht gespeichert wurde, wird er gelöscht und es wird {@code null} zurückgeliefert
1941
1945
  */
1942
- cancel(documentId: number): Document;
1946
+ cancel(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1943
1947
 
1944
1948
  /**
1945
1949
  * Bricht die Bearbeitung eines Belegs ab (Transition EDIT -> SAVED)
1946
1950
  *
1947
1951
  * @param {number} documentId - ID des Belegs
1948
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1949
1952
  * @return {Document} Der abgebrochene Beleg. Falls der Beleg erst angelegt und noch nicht gespeichert wurde, wird er gelöscht und es wird {@code null} zurückgeliefert
1950
1953
  */
1951
- cancel(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
1954
+ cancel(documentId: number): Document;
1952
1955
 
1953
1956
  /**
1954
1957
  * Changes the delivery approval of an order
@@ -1963,20 +1966,20 @@ export interface DocumentScriptingService {
1963
1966
  * Kopiert einen Beleg in die vorgegebene Ziel-Belegart
1964
1967
  *
1965
1968
  * @param {number} documentId - ID des zu kopierenden Belegs
1966
- * @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
1969
+ * @param {string} targetDocumentType - Ziel-Belegart der Kopie
1970
+ * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1967
1971
  * @return {Document} Der kopierte Beleg
1968
1972
  */
1969
- copy(documentId: number, targetDocumentTypeLabel: string): Document;
1973
+ copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
1970
1974
 
1971
1975
  /**
1972
1976
  * Kopiert einen Beleg in die vorgegebene Ziel-Belegart
1973
1977
  *
1974
1978
  * @param {number} documentId - ID des zu kopierenden Belegs
1975
- * @param {string} targetDocumentType - Ziel-Belegart der Kopie
1976
- * @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
1979
+ * @param {string} targetDocumentTypeLabel - Ziel-Belegart der Kopie
1977
1980
  * @return {Document} Der kopierte Beleg
1978
1981
  */
1979
- copy(documentId: number, targetDocumentType: string, additionalParameters: Array<AdditionalParameter>): Document;
1982
+ copy(documentId: number, targetDocumentTypeLabel: string): Document;
1980
1983
 
1981
1984
  /**
1982
1985
  * Erstellt einen neuen Beleg
@@ -1986,6 +1989,14 @@ export interface DocumentScriptingService {
1986
1989
  */
1987
1990
  create(request: CreateNewDocumentRequest): Document;
1988
1991
 
1992
+ /**
1993
+ * Creates an externally created document. The document stays in EDIT mode until saveAndFreeze is called.
1994
+ *
1995
+ * @param {ExternalDocumentWithTaxesRequest} request - Details of the externally created document
1996
+ * @return {Document} The created document in EDIT mode
1997
+ */
1998
+ createExternalDocument(request: ExternalDocumentWithTaxesRequest): Document;
1999
+
1989
2000
  /**
1990
2001
  * Löst einen Beleg auf
1991
2002
  *
@@ -2085,14 +2096,6 @@ export interface DocumentScriptingService {
2085
2096
  */
2086
2097
  getUpdateDocumentRequest(): UpdateDocumentRequest;
2087
2098
 
2088
- /**
2089
- * Importiert einen extern erstellten Beleg (Positionen und Steuern werden übernommen, END_EDITING und Festschreibung inklusive)
2090
- *
2091
- * @param {ExternalDocumentWithTaxesRequest} request - Details zum extern erstellten Beleg
2092
- * @return {Document} Der importierte, festgeschriebene Beleg
2093
- */
2094
- importExternalDocument(request: ExternalDocumentWithTaxesRequest): Document;
2095
-
2096
2099
  /**
2097
2100
  * Partially updates the custom fields of a document. Affects only the given groups and fields, all other custom fields stay unchanged. Custom fields may also be changed for documents not in EDIT mode.
2098
2101
  *
@@ -2134,6 +2137,14 @@ export interface DocumentScriptingService {
2134
2137
  */
2135
2138
  save(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
2136
2139
 
2140
+ /**
2141
+ * Completes an externally created document and freezes it. A document that is no longer in EDIT mode is only frozen.
2142
+ *
2143
+ * @param {number} documentId - ID of the externally created document
2144
+ * @return {Document} The frozen document
2145
+ */
2146
+ saveAndFreeze(documentId: number): Document;
2147
+
2137
2148
  /**
2138
2149
  * Versendet einen Beleg per Mail
2139
2150
  *
@@ -3090,14 +3101,14 @@ export interface ScriptingServiceList {
3090
3101
  crmTaskService: CrmTaskScriptingService;
3091
3102
 
3092
3103
  /**
3093
- * Service zur Verarbeitung von Accounts
3104
+ * Service zur Verarbeitung von Shelf-Documents
3094
3105
  */
3095
- accountService: AccountScriptingService;
3106
+ shelfDocumentService: ShelfDocumentScriptingService;
3096
3107
 
3097
3108
  /**
3098
- * Service zur Verarbeitung von Shelf-Documents
3109
+ * Service zur Verarbeitung von Accounts
3099
3110
  */
3100
- shelfDocumentService: ShelfDocumentScriptingService;
3111
+ accountService: AccountScriptingService;
3101
3112
 
3102
3113
  /**
3103
3114
  * Logging im Scripting
@@ -3403,24 +3414,24 @@ export interface ShelfDocumentScriptingService {
3403
3414
  deleteAttribution(attributionId: number): void;
3404
3415
 
3405
3416
  /**
3406
- * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3417
+ * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3407
3418
  *
3408
3419
  * @param {string} url - Download-URL
3409
- * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3410
- * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3411
3420
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3412
3421
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3413
3422
  */
3414
- downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3423
+ downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3415
3424
 
3416
3425
  /**
3417
- * Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
3426
+ * Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
3418
3427
  *
3419
3428
  * @param {string} url - Download-URL
3429
+ * @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
3430
+ * @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
3420
3431
  * @param {string} documentTypeKey - Schlüssel der Dokumentenart
3421
3432
  * @return {ShelfDocument} Das neu erstellte DMS-Dokument
3422
3433
  */
3423
- downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
3434
+ downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
3424
3435
 
3425
3436
  /**
3426
3437
  * Findet ein Dokumentenart über ihren Schlüssel
@@ -4251,6 +4262,27 @@ export interface dtoFactory {
4251
4262
  */
4252
4263
  createArticleIdentifier(): ArticleIdentifier;
4253
4264
 
4265
+ /**
4266
+ * Erstellt einen neue Instanz von ArticleListing
4267
+ *
4268
+ * @return {ArticleListing} Neue Instanz von ArticleListing
4269
+ */
4270
+ createArticleListing(): ArticleListing;
4271
+
4272
+ /**
4273
+ * Erstellt einen neue Instanz von ArticleListing$WithDefaults_List_ArticleIdentifier
4274
+ *
4275
+ * @return {ArticleListing$WithDefaults_List_ArticleIdentifier} Neue Instanz von ArticleListing$WithDefaults_List_ArticleIdentifier
4276
+ */
4277
+ createArticleListing$WithDefaults_List_ArticleIdentifier(): ArticleListing$WithDefaults_List_ArticleIdentifier;
4278
+
4279
+ /**
4280
+ * Erstellt einen neue Instanz von ArticleListing$WithDefaults_String
4281
+ *
4282
+ * @return {ArticleListing$WithDefaults_String} Neue Instanz von ArticleListing$WithDefaults_String
4283
+ */
4284
+ createArticleListing$WithDefaults_String(): ArticleListing$WithDefaults_String;
4285
+
4254
4286
  /**
4255
4287
  * Erstellt einen neue Instanz von ArticlePrintLabelSettings
4256
4288
  *
@@ -4419,6 +4451,13 @@ export interface dtoFactory {
4419
4451
  */
4420
4452
  createCurrencyReference(): CurrencyReference;
4421
4453
 
4454
+ /**
4455
+ * Erstellt einen neue Instanz von ArticleListing$CustomFieldWithDefaults
4456
+ *
4457
+ * @return {ArticleListing$CustomFieldWithDefaults} Neue Instanz von ArticleListing$CustomFieldWithDefaults
4458
+ */
4459
+ createCustomFieldWithDefaults(): ArticleListing$CustomFieldWithDefaults;
4460
+
4422
4461
  /**
4423
4462
  * Erstellt einen neue Instanz von Customer
4424
4463
  *
@@ -4664,6 +4703,13 @@ export interface dtoFactory {
4664
4703
  */
4665
4704
  createDummySerialNumberStockTransferApi(): DummySerialNumberStockTransferApi;
4666
4705
 
4706
+ /**
4707
+ * Erstellt einen neue Instanz von ExternalDocumentShippingCost
4708
+ *
4709
+ * @return {ExternalDocumentShippingCost} Neue Instanz von ExternalDocumentShippingCost
4710
+ */
4711
+ createExternalDocumentShippingCost(): ExternalDocumentShippingCost;
4712
+
4667
4713
  /**
4668
4714
  * Erstellt einen neue Instanz von ExternalDocumentWithTaxesLine
4669
4715
  *