UNPKG

eva-sdk-js

Version:
1,818 lines (1,608 loc) 105 kB
/* tslint:disable:max-classes-per-file */ /* tslint:disable:variable-name */ /* tslint:disable:no-trailing-whitespace */ /* tslint:disable:no-consecutive-blank-lines */ /* tslint:disable:no-namespace */ /* tslint:disable:member-access */ /* tslint:disable:typedef-whitespace */ /* tslint:disable:no-internal-module */ declare module EVA.Core { export class AccountSummary { AccountID : number; // Int32 Name : string; Amount : number; // Decimal ObjectAccount : string; Subsidiary : string; } export enum AccountType { GeneralLedger = 1, Debtor = 2, Creditor = 3, } export class Address { Street : string; Number : string; City : string; PostalCode : string; Country : string; Region : string; Type : EVA.Core.AddressType; } export class AddressDataDto { AddressedTo : string; Street : string; HouseNumber : string; Address1 : string; Address2 : string; ZipCode : string; Subdistrict : string; District : string; City : string; State : string; Region : string; CountryID : string; Latitude? : number; // Double, nullable Longitude? : number; // Double, nullable } export class AddressDto extends EVA.Core.AddressDataDto { ID : number; // Int32 } export class AddressSuggestion { ID : string; Reference : string; Description : string; } export class AddressSuggestionDetails { Formatted : string; Components : EVA.Core.AddressSuggestionDetailsComponent[]; Geometry : EVA.Core.AddressSuggestionDetailsGeometryDetails; UtcOffset : number; // Double HouseNumber : EVA.Core.AddressSuggestionDetailsComponent; Street : EVA.Core.AddressSuggestionDetailsComponent; City : EVA.Core.AddressSuggestionDetailsComponent; Region : EVA.Core.AddressSuggestionDetailsComponent; District : EVA.Core.AddressSuggestionDetailsComponent; Subdistrict : EVA.Core.AddressSuggestionDetailsComponent; Country : EVA.Core.AddressSuggestionDetailsComponent; PostalCode : EVA.Core.AddressSuggestionDetailsComponent; IsValidCountry : boolean; } export enum AddressType { Street = 0, Postal = 1, Billing = 2, ShipTo = 3, ShipFrom = 4, } export class FilterModel { Values : any[]; From : string; To : string; Negation : boolean; ExactMatch : boolean; IncludeMissing? : boolean; } export class AggregationFilterModel extends EVA.Core.FilterModel { MaxAggregationTerms? : number; // Int32, nullable TermsAggregation : boolean; StatsAggregation : boolean; AggregationOptions : { [ key : string ] : EVA.Core.AggregationFilterModel }; } export class EventLedgerFiltersAmountFilter { EqualTo? : number; // Decimal, nullable GreaterThan? : number; // Decimal, nullable LessThan? : number; // Decimal, nullable } export enum AppBundlesBehavior { Default = 0, Fashion = 1, Disabled = 2, } export enum AppScanditWorkingRange { Normal = 0, Long = 1, } export enum AppScanTargets { Details = 0, Cart = 1, } export enum AppSearchMethods { Query = 0, CustomID = 1, } export enum AppStockReservationActions { ForceComplete = 1, Order = 2, SetAside = 4, Cancel = 8, All = 15, } export enum AppViewMethods { ListView = 0, CardView = 1, } export class EventLedgerDocumentAttachmentDocument { Name : string; Category : string; MimeType : string; BlobID : string; } export enum AuditChainTypes { EventLedger = 0, InvoiceTotals = 1, FinancialPeriodTotals = 2, MonthlyFinancialReportingPeriodTotals = 3, YearlyFinancialReportingPeriodTotals = 4, InvoicePrint = 5, Invoice = 6, FinancialPeriodAudit = 7, InvoiceReprint = 8, TerminalTotals = 9, } export class EventLedgerDocumentAuditingDocument { CumulativeTotalTaxes : number; // Decimal SequenceNumber? : number; // Int64, nullable PreviousSequenceNumber? : number; // Int64, nullable Signature : string; PreviousSignature : string; Type : string; Version : number; // Int32 KeyBlobID : string; ChainID : number; // Int64 } export class EventLedgerDocumentAuthenticationResponseDocument { Result : EVA.Framework.AuthenticationResults; } export enum AutoOpenCloseResult { Failure = 0, Success = 1, NothingToProcess = 2, } export enum BadgeTypes { Role = 1, Capability = 2, Achievement = 3, } export enum BankAccountAuthorizationResultTypes { NoPaymentFound = 1, NoPaymentDetails = 2, NoBankAccountInDetails = 3, NoMatchWithCustomerBankAccount = 4, Success = 5, NoMatchWithCustomerName = 6, } export enum BasicTypes { Cost = 1, Product = 2, Project = 3, ArticleGroup = 4, TicketLine = 5, Logging = 6, Saving = 7, Discount = 8, Quantity = 9, Raise = 10, Transaction = 11, Payment = 12, Event = 13, Service = 14, User = 15, Other = 16, } export class Billable { SystemID : string; Name : string; RegistrationNumber : string; TaxRegistrationNumber : string; PhoneNumber : string; Address : EVA.Core.Address; } export enum BookingFlags { None = 0, WithTaxInformation = 1, WithoutOffsets = 2, WithOrderNumber = 4, WithReference = 8, WithInvoiceNumber = 16, WithCurrencyInformation = 32, } export class BrandNameInfo { Name : string; ProductCount : number; // Int32 } export enum CancellationInitiator { System = 1, User = 2, External = 5, } export enum CardActionTypes { Activate = 0, Cancel = 1, PreventActivation = 2, Purchase = 3, Issue = 4, IssueAndActivate = 5, } export enum CardTransactionStatus { NotActivated = 0, Activating = 1, Activated = 2, Issued = 3, Cancelled = 99, } export class CarrierDto { ID : number; // Int32 Name : string; Code : string; } export class CashJournalDetailsModelCashCorrection { ID : number; // Int32 Type : EVA.Core.CashCorrectionTypes; Amount : number; // Decimal Remark : string; CashTransactionLedger : EVA.Core.CashJournalDetailsModelCashTransactionLedger; } export class CashCorrectionDto { ID : number; // Int32 Type : EVA.Core.CashCorrectionTypes; Amount : number; // Decimal Remark : string; CreationTime : string; // DateTime CashJournalID : number; // Int32 } export enum CashCorrectionTypes { CashJournalOpening = 1, CashJournalClosing = 2, } export class CashJournalDetailsModelCashDenominations { Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; } export class CashJournalDetailsModelCashDeposit { ID : number; // Int32 Amount : number; // Decimal Number : string; CashTransactionLedger : EVA.Core.CashJournalDetailsModelCashTransactionLedger; } export class CashDepositDto { Number : string; Description : string; Total : number; // Decimal Lines : EVA.Core.CashDepositLineDto[]; } export class CashDepositLineDto { Currency : number; // Decimal Quantity : number; // Int32 } export class CashJournalDetailsModelCashDevice { ID : number; // Int32 Name : string; Type : EVA.Framework.FlagsEnumDto; Station : EVA.Core.CashJournalDetailsModelStation; } export class CashJournalDetailsModelCashExpense { ID : number; // Int32 Amount : number; // Decimal TaxCode : EVA.Framework.EnumDto; Description : string; CreationTime : string; // DateTime } export enum CashExpenseAmountTypes { Expense = 0, Income = 1, } export class CashJournalDetailsModel { ID : number; // Int32 OpeningAmount : number; // Decimal ExpectedClosingAmount : number; // Decimal OpeningDeviation? : number; // Decimal, nullable OpeningTime : string; // DateTime ClosingTime? : string; // DateTime, nullable ClosingAmount? : number; // Decimal, nullable Device : EVA.Core.CashJournalDetailsModelCashDevice; Type : EVA.Core.CashJournalTypes; PaymentType : EVA.Core.CashJournalDetailsModelPaymentTypeDto; CurrencyID : string; CashTransactions : EVA.Core.CashJournalDetailsModelCashTransactionLedger[]; Expenses : EVA.Core.CashJournalDetailsModelCashExpense[]; Deposits : EVA.Core.CashJournalDetailsModelCashDeposit[]; Corrections : EVA.Core.CashJournalDetailsModelCashCorrection[]; OpeningDenominations : EVA.Core.CashJournalDetailsModelCashDenominations; ClosingDenominations : EVA.Core.CashJournalDetailsModelCashDenominations; OpenCashJournalsCount : number; // Int32 } export class CashJournalDto { OpeningAmount : number; // Decimal ClosingAmount? : number; // Decimal, nullable CreatedByID : number; // Int32 CreatedByFullName : string; TypeID : number; // Int32 } export enum CashJournalTypes { Default = 0, NonMonetary = 1, } export class CashJournalDetailsModelCashTransactionLedger { ID : number; // Int32 Description : string; Amount : number; // Decimal CreationTime : string; // DateTime Type : EVA.Core.CashTransactionLedgerTypes; Denominations : EVA.Core.CashJournalDetailsModelCashDenominations; } export enum CashTransactionLedgerTypes { MoveFrom = 0, MoveTo = 1, Deposit = 2, Correction = 3, Expense = 4, AmountGiven = 5, Change = 6, } export enum CodeMigrationStatuses { Running = 0, Completed = 1, Failed = -1, } export enum ColorOptions { None = 0, Monochrome = 1, Grayscale = 2, } export class CommittedOrderLine { ID : number; // Int32 OrderID : number; // Int32 SoldFromOrganizationUnitID : number; // Int32 SoldFromOrganizationUnitName : string; Description : string; TotalQuantityToShip : number; // Int32 CommitmentStatus? : EVA.Core.OrderLineCommitmentStatus; QuantityCommitted : number; // Int32 RequestedDate? : string; // DateTime, nullable CreationTime : string; // DateTime } export enum CommunicationMessageResults { Found = 0, NotFoundOrDisabled = 1, } export enum CommunicationMessageTypes { Email = 0, SMS = 1, } export class CompanyDto { Name : string; RegistrationNumber : string; RegistrationCity : string; RegistrationCountryID : string; VatNumber : string; LegalFormID : number; // Int32 VisitorsAddress : EVA.Core.AddressDto; DeliveryAddress : EVA.Core.AddressDto; ReturnsAddress : EVA.Core.AddressDto; InvoiceAddress : EVA.Core.AddressDto; InvoiceEmailAddress : string; EstablishedDate? : string; // DateTime, nullable ContactEmailAddress : string; ContactPhoneNumber : string; AccountHolderName : string; IBAN : string; BIC : string; LogoID : string; } export class AddressSuggestionDetailsComponent { LongName : string; ShortName : string; Types : string[]; } export class ConfigurableProductDto { ProductID : number; // Int32 Type : EVA.Core.ProductTypes; Status : EVA.Core.ProductStatus; LogicalLevel : string; ConfigurableProperty : string; Value : any; Values : any[]; Children : EVA.Core.ConfigurableProductDto[]; Properties : any; } export enum ConnectionType { Direct = 0, Proxy = 1, } export class CultureFilter { LanguageID : string; CountryID : string; } export class CurrencyDto { ID : string; Name : string; Precision : number; // Int16 } export class EventLedgerDocumentCurrentUserDocument { ID : number; // Int32 FirstName : string; FullName : string; EmailAddress : string; ApplicationID : number; // Int32 LanguageID : string; CountryID : string; OrganizationUnitID : number; // Int32 StationID? : number; // Int32, nullable Type : EVA.Framework.UserTypes; TimeZone : string; OrganizationUnit : EVA.Core.EventLedgerDocumentOrganizationUnitDocument; } export class EventLedgerDocumentOrderDocumentCustomerDocument { ID : number; // Int32 } export enum DebitCreditIndicator { Debit = 0, Credit = 1, } export class DeliveryAvailabilityIndication { AvailabilityDate? : string; // DateTime, nullable QuantityAvailable? : number; // Int32, nullable IsAvailable : boolean; AvailabilityText : string; } export class DeliveryOrderData { DefaultShippingMethodID? : number; // Int32, nullable ShippingType : string; ShippingPrice : number; // Decimal DeliveryService : string; PickUpPointID : string; PickUpPointName : string; AdditionalPickUpPointInformation : string; ExpectedDeliveryDate? : string; // DateTime, nullable DeliveryTimeFrom? : string; // DateTime, nullable DeliveryTimeTo? : string; // DateTime, nullable } export class EventLedgerDocumentDeviceDocument { ID : number; // Int32 Name : string; IpAddress : string; Type : EVA.Core.EventLedgerDocumentDeviceDocumentDeviceTypeDocument; EcrID : string; HardwareID : string; ProxyID : string; StationID? : number; // Int32, nullable } export class DeviceDto { ID : number; // Int32 BackendID : string; Name : string; Type : EVA.Framework.FlagsEnumDto; TypeID : number; // Int32 NetworkName : string; IpAddress : string; Station : EVA.Core.StationDto; StationID? : number; // Int32, nullable AssemblyName : string; EcrID : string; HardwareID : string; ProxyID : string; OrganizationUnitID? : number; // Int32, nullable OrganizationUnit : EVA.Core.OrganizationUnitDto; } export class EventLedgerDocumentDeviceDocumentDeviceTypeDocument { ID : number; // Int32 IDs : number[]; Name : string; Names : string[]; } export enum DiscountConditionTypes { OneOf = 0, All = 1, } export class DiscountCouponDto { ID : number; // Int32 CouponCode : string; DiscountID : number; // Int32 IsActive : boolean; UsageCount : number; // Int32 } export class EventLedgerDocumentDiscountDocument { Trigger : EVA.Core.DiscountTriggers; ActionType : string; ActionData : any; } export enum DiscountInvalidReasons { None = 0, NotExist = 1, NotValidYet = 2, Expired = 3, HasAlreadyBeenUsed = 4, CouponCodeAlreadyAdded = 5, ManualValueIsInvalid = 6, InvalidOrderType = 7, Invalid = 8, } export enum DiscountObjectTypes { Discount = 0, Condition = 1, Action = 2, Coupon = 3, } export enum DiscountOrderTypes { None = 0, Sales = 1, Purchase = 2, WishList = 4, All = 7, } export enum DiscountTriggers { Automatic = 0, Manual = 1, Coupon = 2, Bundles = 4, SystemManaged = -1, } export class DisputeAmounts { Total : number; // Decimal Original : number; // Decimal Expected : number; // Decimal } export enum DocumentType { BankAccountCard = 0, ID = 1, } export enum DocumentTypes { Ticket = 0, Invoice = 1, CreditNote = 2, Totals = 3, } export enum Drawer { DrawerA = 0, DrawerB = 1, } export class EventLedgerDocument { ID : string; Type : string; BackendType : string; CreationTime : string; // DateTime IpAddress : string; PartitionKey : string; Auditing : EVA.Core.EventLedgerDocumentAuditingDocument; CurrentUser : EVA.Core.EventLedgerDocumentCurrentUserDocument; Order : EVA.Core.EventLedgerDocumentOrderDocument; UserTask : EVA.Core.EventLedgerDocumentUserTaskDocument; ExecutionContext : EVA.Core.EventLedgerDocumentExecutionContextDocument; AuthenticationResponse : EVA.Core.EventLedgerDocumentAuthenticationResponseDocument; PaymentTransaction : EVA.Core.EventLedgerDocumentPaymentTransactionDocument; FinancialPeriod : EVA.Core.EventLedgerDocumentFinancialPeriodDocument; Device : EVA.Core.EventLedgerDocumentDeviceDocument; OrderLines : EVA.Core.EventLedgerDocumentOrderLineDocument[]; Description : string; Discount : EVA.Core.EventLedgerDocumentDiscountDocument; Invoice : EVA.Core.EventLedgerDocumentInvoiceDocument; Amount? : number; // Decimal, nullable Attachments : EVA.Core.EventLedgerDocumentAttachmentDocument[]; MessageTemplate : EVA.Core.EventLedgerDocumentMessageTemplateDocument; FinancialReportingPeriod : EVA.Core.EventLedgerDocumentFinancialReportingPeriodDocument; Data : any; BlobID : string; OrganizationUnit : EVA.Core.EventLedgerDocumentOrganizationUnitDocument; FinancialPeriodAudit : EVA.Core.EventLedgerDocumentFinancialPeriodAuditDocument; Role : EVA.Core.EventLedgerDocumentRoleDocument; User : EVA.Core.EventLedgerDocumentUserDocument; TerminalReport : EVA.Core.EventLedgerDocumentTerminalReportDocument; } export class EventLedgerFilters { Types : string[]; OrderID? : number; // Int32, nullable OrganizationUnitID? : number; // Int32, nullable DeviceID? : number; // Int32, nullable FromDate? : string; // DateTime, nullable ToDate? : string; // DateTime, nullable UserIDs : number[]; FinancialPeriodIDs : number[]; FirstName : string; FullName : string; EmailAddress : string; OrderIDs : number[]; OnlyAuditedDocuments : boolean; Amount : EVA.Core.EventLedgerFiltersAmountFilter; } export enum EventLogStatus { New = 0, InProgress = 1, Solved = 2, Incidental = 3, WontFix = 4, } export enum ExcludedFieldOptions { UseDefaultExcludes = 0, AdditionalExcludes = 1, ReplaceDefaultExcludes = 2, NoExcludes = 3, } export class EventLedgerDocumentExecutionContextDocument { Name : string; UserAgent : string; ID : string; Version : string; } export class ExpenseDto { ID : number; // Int32 TypeID : number; // Int32 TypeDescription : string; TaxRate : number; // Decimal Amount : number; // Decimal Description : string; CreationTime : string; // DateTime } export class ListCashExpensesItemExpenseType extends EVA.Framework.EnumDto { AmountType : EVA.Core.CashExpenseAmountTypes; } export enum ExternalModificationStatuses { None = 0, CancellationRequested = 1, QuantityChangeRequested = 2, CancellationRequestDenied = 4, CancellationRequestApproved = 8, QuantityChangeRequestDenied = 16, QuantityChangeRequestApproved = 32, } export enum ExternalSystemExportTypes { Internal = 0, Order = 1, AdvanceShipmentNotification = 2, Administrative = 3, ReturnOrder = 4, MadeToOrder = 5, } export enum FactorType { Amount = 0, Percentage = 1, } export class OrganizationUnitSetDefinitionFilterDefinition { Values : string[]; Negate : boolean; } export enum FinancialEventProcessStatuses { Success = 0, SuccessWithWarnings = 1, Failure = 2, } export enum FinancialEventStatuses { Unprocessed = 0, Processed = 1, Ignored = 2, NoProcessingRequired = 3, NoMatchingRecipe = 4, } export enum FinancialEventSubTypes { SalesTaxDetail = 111, PurchaseTaxDetail = 211, CashExpense = 501, CashDifferenceCorrection = 502, CashDeposit = 503, CashMovementSource = 504, CashMovementDestination = 505, } export enum FinancialEventTypes { Sales = 10, SalesTax = 11, SalesDiscounts = 12, Purchase = 20, PurchaseTax = 21, PurchasePriceVariance = 22, PurchaseInvoiceDispute = 23, PurchaseInvoiceDisputeResolved = 24, PurchaseDiscounts = 25, CostOfGoods = 30, Payment = 40, PaymentEndRounding = 41, PaymentSettlement = 42, CashAdjustment = 50, StockMutation = 60, StockMutationAutomaticCorrection = 61, StockSold = 62, StockReceived = 63, } export class EventLedgerDocumentFinancialPeriodAuditDocument { ID : number; // Int32 } export class FinancialPeriodAuditDto { ID : number; // Int32 OrganizationUnitID : number; // Int32 OrganizationUnitName : string; StatusID : number; // Int32 BlobID : string; FiscalYear? : number; // Int32, nullable CreatedByID : number; // Int32 CreatedByFirstName : string; CreatedByLastName : string; CreationTime : string; // DateTime Status : EVA.Core.FinancialPeriodAuditStatus; } export enum FinancialPeriodAuditStatus { New = 0, Processing = 10, ProcessingError = 11, Processed = 12, Exporting = 20, ExportingError = 21, Exported = 22, NothingToBeExported = 999, } export class FinancialPeriodClosingImpediment { Type : string; Description : string; Data : any; } export class FinancialPeriodDetailsDto { PreviousPeriodID? : number; // Int32, nullable OpeningTime? : string; // DateTime, nullable ClosingTime? : string; // DateTime, nullable Status : EVA.Core.FinancialPeriodStatus; CurrencyID : string; CashDeposits : EVA.Core.CashDepositDto[]; CashJournals : EVA.Core.CashJournalDto[]; Expenses : EVA.Core.ExpenseDto[]; CashCorrections : EVA.Core.CashCorrectionDto[]; PaymentTotalPerTypes : EVA.Core.PaymentTotalPerPaymentTypeDto[]; Stations : EVA.Core.StationClosing[]; AmountOfRoundingDifference : number; // Decimal AmountOfOpeningDifference : number; // Decimal AmountOfCashDifference : number; // Decimal CashDepositTotal : number; // Decimal TotalAmountOfExpenses : number; // Decimal TotalAmountOfCorrections : number; // Decimal } export class EventLedgerDocumentFinancialPeriodDocument { ID : number; // Int32 } export class FinancialPeriodDto { ID : number; // Int32 OpeningTime? : string; // DateTime, nullable ClosingTime? : string; // DateTime, nullable Status : EVA.Core.FinancialPeriodStatus; OrganizationUnitID : number; // Int32 UserID? : number; // Int32, nullable CurrencyID : string; CostPriceCurrencyID : string; } export enum FinancialPeriodExportTrigger { PeriodOpened = 0, PeriodClosed = 1, CashJournalOpened = 2, CashJournalClosed = 3, CashDeposit = 4, CashExpense = 5, CashMovement = 6, Difference = 7, } export enum FinancialPeriodStatus { Open = 0, Closing = 1, Closed = 2, Processed = 3, Pending = -1, } export class EventLedgerDocumentFinancialReportingPeriodDocument { ID : number; // Int32 Type : EVA.Core.FinancialReportingPeriodTypes; StartDate : string; // DateTime EndDate : string; // DateTime } export enum FinancialReportingPeriodStatuses { New = 0, Closed = 1, Processing = 2, Processed = 3, } export enum FinancialReportingPeriodTypes { Month = 0, FiscalYear = 1, } export enum FraudDataType { Address = 1, IBAN = 2, IdentificationDocument = 3, } export class GeneralLedgerDto { ID : number; // Int32 OrganizationUnitID : number; // Int32 OrganizationUnit : EVA.Core.OrganizationUnitDto; Amount : number; // Decimal Remark : string; PaymentTransactionID? : number; // Int32, nullable PaymentTransaction : EVA.Core.PaymentTransactionDto; CreationTime : string; // DateTime OrderID? : number; // Int32, nullable AccountName : string; AccountObjectAccount : string; AccountingID : number; // Int32 StockMutationID? : number; // Int32, nullable StockMutation : EVA.Core.StockMutationDto; CurrencyID : string; } export enum GeocodeResultStatus { OK = 0, NoResults = 1, InvalidRequest = 2, UnknownError = 3, } export class AddressSuggestionDetailsGeometryDetails { Location : EVA.Core.GeometryLocation; } export class GeometryLocation { Latitude : number; // Double Longitude : number; // Double } export enum GetAvailabilityTypes { None = 0, Pickup = 1, Delivery = 2, } export class GetShipmentDetailsOrder { OrderID : number; // Int32 BackendID : string; CustomerReference : string; } export enum GiftCardHandlerOptions { None = 0, Issue = 1, Activate = 2, Cancel = 4, Get = 8, Purchase = 16, Refund = 32, } export enum GrandTotalsAuditTrailTypes { Invoice = 0, FinancialPeriod = 1, Month = 2, FiscalYear = 3, Terminal = 4, } export enum IdentificationTypes { DiplomaticPassport = 1, DriverLicense = 2, EuropeanIdentification = 3, ForeignPassport = 4, INDSticker = 5, NatoPassport = 6, Passport = 7, PermanentResidencyDocument = 8, PrivilegedDocument = 9, ResidencePermitTypeEuEea = 10, ResidencePermitTypeI = 11, ResidencePermitTypeII = 12, ResidencePermitTypeIII = 13, ResidencePermitTypeIV = 14, ResidencePermitTypeW = 15, VNGCard = 16, ResidencePermitTypeV = 17, } export class SearchStockMutationResultIdNameValue { ID : number; // Int32 Name : string; } export interface ILoginRequest { Username : string; Password : string; IdentificationCode : string; OrganizationUnitID? : number; // Int32, nullable ApplicationID? : number; // Int32, nullable } export class InTransit { QuantityOrdered : number; // Int32 BackendID : string; TrackingCode : string; ID : string; ExpectedDeliveryDate? : string; // DateTime, nullable } export enum InvalidStockMutationReasons { DestinationLabelEqualsSourceLabel = 0, InvalidSourceLabel = 1, InvalidDestinationLabel = 2, InvalidQuantity = 3, InvalidLabelForAdjustment = 4, RemarkRequired = 5, ReasonRequired = 6, NonStockProduct = 7, InvalidProduct = 8, InvalidResourceID = 9, InvalidOrganizationUnitID = 10, TypeRequired = 11, SupplierProduct = 12, } export class InvoiceAdditionalAmountDto { ID : number; // Int32 Type : number; // Int32 OriginalAmount : number; // Decimal Amount : number; // Decimal OriginalAmountInTax : number; // Decimal AmountInTax : number; // Decimal TaxRate : number; // Decimal TaxCodeID : number; // Int32 Disputes : EVA.Core.InvoiceDisputeDto[]; } export class InvoiceBlobDto { BlobID : string; } export class InvoiceBookStatusDto { IsBooked : boolean; CanBeBooked : boolean; Message : string; } export enum InvoiceCalculationMethod { InTax = 0, ExTax = 1, } export class InvoiceDetailLineDto { ID : number; // Int32 OrderLine : EVA.Core.InvoiceDetailsOrderLineDto; ShipmentLine : EVA.Core.InvoiceDetailsShipmentLineDto; InvoiceDate? : string; // DateTime, nullable UnitCost? : number; // Decimal, nullable UnitPrice : number; // Decimal TaxRate : number; // Decimal DiscountAmount : number; // Decimal Disputes : EVA.Core.InvoiceDisputeDto[]; TotalAmount : number; // Decimal TotalAmountInTax : number; // Decimal TotalAmountInvoicedInTax : number; // Decimal TotalAmountInvoiced : number; // Decimal ExpectedUnitPrice? : number; // Decimal, nullable ExpectedQuantity? : number; // Int32, nullable ExpectedDiscountAmount? : number; // Decimal, nullable ExpectedTaxRate? : number; // Decimal, nullable ExpectedTotalAmount? : number; // Decimal, nullable ExpectedTotalAmountInTax? : number; // Decimal, nullable // The amount that has to be resolved with disputes: ExpectedTotalAmountInTax - TotalAmountInTax - Disputes AmountToBeDisputed? : number; // Decimal, nullable Quantity : number; // Int32 } export class InvoiceDto { ID : number; // Int32 OrganizationUnitID : number; // Int32 PaymentTermStartDate? : string; // DateTime, nullable PaymentTermDueDate? : string; // DateTime, nullable Type : EVA.Core.InvoiceTypes; InvoiceDate? : string; // DateTime, nullable InvoiceNumber : string; Description : string; Status : EVA.Core.InvoiceStatuses; SupplierOrganizationUnitID? : number; // Int32, nullable TotalAmount : number; // Decimal CurrencyID : string; HoldStatusID? : number; // Int32, nullable // The TotalAmount on the actual Invoice as provided by the Supplier OriginalTotalAmount? : number; // Decimal, nullable // The difference between the TotalAmount and the OriginalTotalAmount OriginalTotalAmountDifference? : number; // Decimal, nullable // The ExpectedTotalAmountInTax of all the InvoiceLines + AdditionalAmounts + ExpectedDisputes ExpectedTotalAmount? : number; // Decimal, nullable // The difference between the TotalAmount and the ExpectedTotalAmount ExpectedTotalAmountDifference? : number; // Decimal, nullable TaxReverseCharge : boolean; } export class InvoiceDetailsDto extends EVA.Core.InvoiceDto { OrganizationUnitLanguageID : string; OrganizationUnitCountryID : string; AdditionalAmounts : EVA.Core.InvoiceAdditionalAmountDto[]; Disputes : EVA.Core.InvoiceDisputeDto[]; Lines : EVA.Core.InvoiceDetailLineDto[]; Blobs : EVA.Core.InvoiceBlobDto[]; PaidAmount? : number; // Decimal, nullable OpenAmount? : number; // Decimal, nullable BookStatus : EVA.Core.InvoiceBookStatusDto; Shipments : EVA.Core.InvoiceShipment[]; // The ExpectedQuantity of all the InvoiceLines summed ExpectedTotalQuantity? : number; // Int32, nullable // The Quantity of all the InvoiceLines summed TotalQuantity : number; // Int32 // The difference between TotalQuantity and ExpectedTotalQuantity TotalQuantityDifference? : number; // Int32, nullable // The TotalAmount of the invoice minus the OriginalDisputes SubTotalAmount : number; // Decimal // The ExpectedTotalAmount of the invoice minus the Disputes ExpectedSubTotalAmount? : number; // Decimal, nullable // The Amount of the Disputes summed by Type DisputeAmounts : EVA.Core.DisputeAmounts; // The TotalAmountInvoicedInTax of all the InvoiceLines summed TotalLineAmountInvoicedInTax : number; // Decimal } export class InvoiceDetailsOrderLineDto { Description : string; UnitCost : number; // Decimal UnitPrice : number; // Decimal ID : number; // Int32 OrderID : number; // Int32 ProductID? : number; // Int32, nullable ProductCustomID : string; SupplierProductBackendID : string; } export class InvoiceDetailsShipmentDto { ID : number; // Int32 BackendID : string; } export class InvoiceDetailsShipmentLineDto { ID : number; // Int32 QuantityDelivered : number; // Int32 TotalAmountDelivered : number; // Decimal Shipment : EVA.Core.InvoiceDetailsShipmentDto; } export class InvoiceDisputeDto { ID : number; // Int32 ReasonID : number; // Int32 ReasonName : string; Amount : number; // Decimal Description : string; Type? : EVA.Core.InvoiceDisputeTypes; IsResolved : boolean; ResolvedAmount : number; // Decimal ResolveActions : EVA.Core.InvoiceDisputeResolveActionDto[]; } export class InvoiceDisputeResolveActionDto { ID : number; // Int32 Amount : number; // Decimal Description : string; LedgerClassID : string; } export enum InvoiceDisputeTypes { Original = 0, Expected = 1, } export class EventLedgerDocumentInvoiceDocument { ID : number; // Int32 InvoiceNumber : string; FiscalID : string; TotalAmount : number; // Decimal } export enum InvoiceDocumentLedgerFormats { Receipt = 0, Invoice = 1, } export enum InvoiceDocumentLedgerTypes { Physical = 0, Digital = 1, } export enum InvoiceExportStatus { NotExported = 0, Exported = 10, } export enum InvoiceLineTypes { Default = 0, Discount = 1, Return = 2, } export class InvoiceShipment { ShipmentID : number; // Int32 ShipmentBackendID : string; LastDeliveryDate? : string; // DateTime, nullable CompletionTime? : string; // DateTime, nullable TotalAmount : number; // Decimal ExpectedTotalAmount? : number; // Decimal, nullable TotalQuantity : number; // Decimal ExpectedTotalQuantity? : number; // Decimal, nullable } export enum InvoiceStatuses { Open = 0, Closed = 1, } export enum InvoiceTrigger { None = 0, AfterFirstShipment = 1, AfterLastShipment = 2, EveryShipment = 3, AfterFullyPaid = 4, } export enum InvoiceTypes { Sales = 0, Purchase = 1, } export interface IUserTaskResult { Name : string; Description : string; Type : string; Value : string; Data : string; } export enum LegacyCashJournalTypes { Register = 0, Safe = 1, } export enum LegalForms { None = 0, BV = 1, NV = 2, VoF = 3, Eenmanszaak = 4, Stichting = 5, VrijBeroep = 6, Vereniging = 7, CV = 8, Maatschap = 9, Anders = 10, } export enum LineActionTypeChangeInitiator { System = 1, User = 2, } export enum LineActionTypes { None = 0, ReserveLine = 1, OrderLine = 2, ShipLine = 3, Delivery = 4, } export enum LineSize { Regular = 0, Double = 1, Half = 2, } export class ListAccountsFilter { Name : string; ObjectAccount : string; } export class ListAccountsItem { ID : number; // Int32 Name : string; ObjectAccount : string; Subsidiary : string; VisibleByApplicationID : number; // Int32 BookingsFlagsID : number; // Int32 BookingFlags : EVA.Core.BookingFlags; } export class ListAddressBookFilter { ID? : number; // Int32, nullable DefaultShippingAddress? : boolean; DefaultBillingAddress? : boolean; AddressID? : number; // Int32, nullable UserID? : number; // Int32, nullable Description : string; } export class ListAssortmentProductsFilter { ProductID? : number; // Int32, nullable TypeID? : number; // Int32, nullable AssortmentID? : number; // Int32, nullable IncludeDeleted? : boolean; } export class ListAuditsFilter { OrganizationUnitID? : number; // Int32, nullable FiscalYear? : number; // Int32, nullable } export class ListCarriersFilter { Name : string; } export class ListCashDepositsFilter { DeviceID? : number; // Int32, nullable FinancialPeriodID? : number; // Int32, nullable } export class ListCashDepositsItem { ID : number; // Int32 DeviceID : number; // Int32 Type : EVA.Core.CashJournalTypes; CurrencyID : string; PaymentTypeID : number; // Int32 PaymentTypeName : string; Amount : number; // Decimal Number : string; Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; CreationTime : string; // DateTime } export class ListCashExpensesFilter { DeviceID? : number; // Int32, nullable FinancialPeriodID? : number; // Int32, nullable } export class ListCashExpensesItem { ID : number; // Int32 Amount : number; // Decimal TaxCode : EVA.Framework.EnumDto; Type : EVA.Core.ListCashExpensesItemExpenseType; Description : string; BlobID : string; CreationTime : string; // DateTime } export class ListCashHandlersFilter { Name : string; CurrencyID : string; } export class ListCashTransactionLedgerFilter { Types : EVA.Core.CashTransactionLedgerTypes[]; CurrencyID? : string; // DateTime, nullable DeviceID? : number; // Int32, nullable CashJournalID? : number; // Int32, nullable FinancialPeriodID? : number; // Int32, nullable PaymentTypeID? : number; // Int32, nullable FromDate? : string; // DateTime, nullable ToDate? : string; // DateTime, nullable } export class ListCashTransactionLedgerGroup { ID : string; Items : EVA.Core.ListCashTransactionLedgerItem[]; } export class ListCashTransactionLedgerItem { ID : number; // Int32 Amount : number; // Decimal DeviceName : string; DeviceTypeID : number; // Int32 StationName : string; Description : string; Type : EVA.Core.CashTransactionLedgerTypes; CreationTime : string; // DateTime GroupID : string; CurrencyID : string; PaymentTypeID : number; // Int32 PaymentTypeName : string; Details : string; Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; } export class ListCumulativeStockFilter { ProductIDs : number[]; OrganizationUnitType : EVA.Framework.OrganizationUnitTypes; OrganizationUnitName : string; HasStock? : boolean; } export class ListDevicesFilter { BackendID : string; OrganizationUnitID? : number; // Int32, nullable StationID? : number; // Int32, nullable TypeID? : number; // Int32, nullable Name : string; IpAddress : string; NetworkName : string; EcrID : string; HardwareID : string; ProxyID : string; // Obsolete, combine the types in the TypeID property TypeIDs : number[]; } export class ListDevicesModel { ID : number; // Int32 BackendID : string; Name : string; Type : EVA.Framework.FlagsEnumDto; TypeID : number; // Int32 NetworkName : string; IpAddress : string; Station : EVA.Core.ListDevicesModelStationModel; StationID? : number; // Int32, nullable AssemblyName : string; EcrID : string; HardwareID : string; ProxyID : string; OrganizationUnitID? : number; // Int32, nullable OrganizationUnit : EVA.Core.ListDevicesModelOrganizationUnitModel; CashLimit : number; // Decimal } export class ListDiscountLayerFilter { Name : string; IsExclusive? : boolean; } export class ListEntityTranslation { EntityID : number; // Int32 EntityType : string; EntityField : string; LanguageID : string; CountryID : string; Value : string; } export class ListEntityTranslationsFilter { EntityID? : number; // Int32, nullable EntityType : string; EntityField : string; LanguageID : string; CountryID : string; Value : string; } export class ListExchangeRatesFilter { FromCurrencyID : string; ToCurrencyID : string; } export class ListFinancialEventRow { ID : number; // Int32 FinancialPeriodID : number; // Int32 OrganizationUnitID : number; // Int32 OrganizationUnitName : string; Type : EVA.Core.FinancialEventTypes; TypeID : number; // Int32 CurrencyID : string; Amount : number; // Decimal Remark : string; StatusID : number; // Int32 Status : EVA.Core.FinancialEventStatuses; OrderID? : number; // Int32, nullable ProcessingError : string; } export class ListFinancialEventsFilter { FromDate? : string; // DateTime, nullable ToDate? : string; // DateTime, nullable Type : EVA.Core.FinancialEventTypes; Status : EVA.Core.FinancialEventStatuses; OrderID? : number; // Int32, nullable StatusID? : number; // Int32, nullable OrganizationUnitID? : number; // Int32, nullable FinancialPeriodID? : number; // Int32, nullable } export class ListGeneralLedgersFilter { OrganizationUnitID? : number; // Int32, nullable AccountID? : number; // Int32, nullable IsProcessed? : boolean; FinancialPeriodID? : number; // Int32, nullable OrderID? : number; // Int32, nullable InvoiceID? : number; // Int32, nullable CreationTime? : string; // DateTime, nullable FromDate? : string; // DateTime, nullable ToDate? : string; // DateTime, nullable ObjectAccount : string; } export class ListInvoiceFilter { Type : EVA.Core.InvoiceTypes; StartDate? : string; // DateTime, nullable EndDate? : string; // DateTime, nullable Number : string; OrganizationUnitID? : number; // Int32, nullable SupplierOrganizationUnitID? : number; // Int32, nullable Status : EVA.Core.InvoiceStatuses; OrderIDs : number[]; HasUnresolvedDisputes? : boolean; IsMatched? : boolean; } export class ListInvoiceLedgerFilter { InvoiceID? : number; // Int32, nullable InvoiceLineID? : number; // Int32, nullable InvoiceDisputeID? : number; // Int32, nullable Type? : number; // Int32, nullable } export class ListInvoicesDto { ID : number; // Int32 InvoiceDate? : string; // DateTime, nullable InvoiceNumber : string; OrganizationUnitID : string; OrganizationUnitName : string; SupplierOrganizationUnitID? : number; // Int32, nullable SupplierOrganizationUnitName : string; Description : string; CurrencyID : string; TotalAmount? : number; // Decimal, nullable Status : EVA.Core.InvoiceStatuses; StatusID : number; // Int32 HoldStatusID? : number; // Int32, nullable HasUnresolvedDisputes : boolean; } export class ListManualInputAdjustmentsFilter { PriceListAdjustmentID : number; // Int32 ProductID? : number; // Int32, nullable IsActive? : boolean; } export class ListMessageQueueErrorsFilter { Status : EVA.Core.MessageQueueErrorStatuses; StartDate? : string; // DateTime, nullable EndDate? : string; // DateTime, nullable MessageTypeName : string; MessageID : string; ExceptionMessage : string; ErrorCode : string; } export class ListOrderLedgerFilter { TypeIDs : number[]; } export class ListOrderLinesFilter { IDs : number[]; Shippable : boolean; Invoiceable : boolean; OnlyShippableLines : boolean; ProductTypes : EVA.Core.ProductTypes; Query : string; } export class ListOrdersForCustomerFilter { ID? : number; // Int32, nullable OrderID? : number; // Int32, nullable OpenOrdersOnly : boolean; ShowOrdersWithoutLines : boolean; ModifiableOrdersOnly : boolean; Type : EVA.Core.OrderTypes[]; Status : EVA.Core.OrderStatus[]; } export class ListOrganizationUnitGroupsFilter { Name : string; BackendID : string; } export class ListOrganizationUnitSetsFilter { Name : string; ID? : number; // Int32, nullable Types : EVA.Core.OrganizationUnitSetTypes[]; OrganizationUnitID? : number; // Int32, nullable IncludedOrganizationUnitTypes : EVA.Framework.OrganizationUnitTypes; ExcludedOrganizationUnitTypes : EVA.Framework.OrganizationUnitTypes; ScopeID? : number; // Int32, nullable IncludeWithoutScopeID? : boolean; } export class ListOrganizationUnitSetsItem { ID : number; // Int32 Name : string; Type : EVA.Core.OrganizationUnitSetTypes; OrganizationUnitCount : number; // Int32 ScopeID? : number; // Int32, nullable ScopeName : string; } export class ListOrganizationUnitsFilter { IDs : number[]; Name : string; BackendIDs : string[]; CountryIDs : string[]; TypeID? : number; // Int32, nullable StatusID? : number; // Int32, nullable ParentID? : number; // Int32, nullable } export class ListOrganizationUnitSuppliersFilter { OrganizationUnitID? : number; // Int32, nullable SupplierOrganizationUnitID? : number; // Int32, nullable Type : EVA.Core.OrganizationUnitSupplierTypes; } export class ListOrganizationUnitSuppliersModel { ID : number; // Int32 OrganizationUnitID : number; // Int32 OrganizationUnitName : string; SupplierOrganizationUnitID : number; // Int32 SupplierOrganizationUnitName : string; Type : EVA.Core.OrganizationUnitSupplierTypes; } export class ListPriceListAdjustmentsFilter { PriceListID? : number; // Int32, nullable ParentID? : number; // Int32, nullable Type : string; } export class ListPriceListOrganizationUnitsFilter { PriceListID? : number; // Int32, nullable OrganizationUnitID? : number; // Int32, nullable PriceListUsageTypeID? : number; // Int32, nullable } export class ListPriceListsFilter { Name : string; CurrencyID : string; IncludingVat? : boolean; IsActive? : boolean; IsSpecialPricesPriceList? : boolean; SpecialPricesPriceListID? : number; // Int32, nullable } export class ListProductBarcodesFilter { ProductID? : number; // Int32, nullable Barcode : string; UnitOfMeasureID? : number; // Int32, nullable IsSupplierProduct? : boolean; Origin : EVA.Core.ProductBarcodeOrigin; } export class ListProductBundlesFilter { BundleProductID? : number; // Int32, nullable BundleProductIDs : number[]; } export class ListProductGiftCardsFilter { ProductID : number; // Int32 Type : string; } export class ListProductPriceLedgerFilter { ProductIDs : number[]; PriceListID? : number; // Int32, nullable PriceListUsageTypeID? : number; // Int32, nullable OrganizationUnitIDs : number[]; FromDate? : string; // DateTime, nullable } export class ListProductUnitOfMeasuresFilter { ProductID? : number; // Int32, nullable UnitOfMeasureID? : number; // Int32, nullable Quantity? : number; // Int32, nullable } export class ListPurchaseOrderShipmentsFilter { ShipmentID? : number; // Int32, nullable OrderID? : number; // Int32, nullable OrderBackendID : string; OrganizationUnitID? : number; // Int32, nullable IncludeChildOrganizationUnits : boolean; BackendID : string; TrackingCode : string; IsCompleted? : boolean; StatusID? : number; // Int32, nullable StatusIDs : number[]; } export class ListSettlementsFilter { PaymentTransactionID? : number; // Int32, nullable Type? : number; // Int32, nullable } export class ListShipmentLinesFilter { ShipmentID? : number; // Int32, nullable ProductIDs : number[]; OrderIDs : number[]; OrderLineIDs : number[]; } export class ListShipmentLinesToInvoiceFilter { ShipmentID : number; // Int32 ProductIDs : number[]; } export class ListShipmentsToInvoiceFilter { ID? : number; // Int32, nullable ShipFromOrganizationUnitID : number; // Int32 From? : string; // DateTime, nullable To? : string; // DateTime, nullable ProductID? : number; // Int32, nullable BackendID : string; OrderID? : number; // Int32, nullable OrderBackendID : string; } export class ListShippingMethodsFilter { CarrierID : number; // Int32 } export class ListShippingRestrictionsFilter { OrganizationUnitSetID? : number; // Int32, nullable CountryID : string; ProductPropertyTypeID : string; Type : EVA.Core.ShippingRestrictionType; ZipCodeFrom : string; ZipCodeTo : string; } export class ListStockAllocationRulesFilter { OrganizationUnitSupplierID? : number; // Int32, nullable SupplierOrganizationUnitID? : number; // Int32, nullable OrganizationUnitID? : number; // Int32, nullable } export class ListStockAllocationRulesItem { ID : number; // Int32 SupplierOrganizationUnitID : number; // Int32 SupplierOrganizationUnitName : string; OrganizationUnitSupplierID : number; // Int32 OrganizationUnitID : number; // Int32 OrganizationUnitName : string; ProductSearchTemplateID? : number; // Int32, nullable Value : number; // Int32 ValueType : EVA.Core.StockAllocationRuleValueTypes; RefillPeriodInDays? : number; // Int32, nullable LastRefill? : string; // DateTime, nullable Type : EVA.Core.StockAllocationRuleTypes; StartDate? : string; // DateTime, nullable EndDate? : string; // DateTime, nullable } export class ListStockMutationsFilter { ProductID? : number; // Int32, nullable OrderID? : number; // Int32, nullable CreationTime? : string; // DateTime, nullable SourceStockLabelID? : number; // Int32, nullable DestinationStockLabelID? : number; // Int32, nullable ReasonID? : number; // Int32, nullable StartDateTime? : string; // DateTime, nullable EndDateTime? : string; // DateTime, nullable MutationQuantity? : number; // Int32, nullable } export class ListStringTranslation { Key : string; LanguageID : string; CountryID : string; Value : string; } export class ListStringTranslationsFilter { Key : string; LanguageID : string; CountryID : string; Value : string; } export class ListSupplierProductsFilter { SupplierOrganizationUnitID : number; // Int32 BackendID : string; PrimitiveName : string; } export class ListSuspendedOrdersFilter { IsPaid? : boolean; OrderID? : number; // Int32, nullable Description : string; } export class ListTaxRateModelFilters { CountryID : string; OnlyActive? : boolean; } export class ListTransportationTimesFilter { ShippingMethodID? : number; // Int32, nullable FromCountryID : string; ToCountryID : string; TimeInDays? : number; // Int32, nullable } export class ListTransputJobsFilter { ShipmentID? : number; // Int32, nullable OrderID? : number; // Int32, nullable Financ