UNPKG

eva-sdk-js

Version:
1,495 lines (1,258 loc) 228 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.Services { export class AddBundleProductToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.SimpleShoppingCartResponse> { SessionID : string; OrderID? : number; // Int32, nullable LineActionType? : EVA.Core.LineActionTypes; BundleProductID : number; // Int32 LineSelection : EVA.Core.Services.AddBundleProductToOrderLineSelection[]; } export class AddBundleProductToOrderLineSelection { ProductBundleLineID : number; // Int32 SelectedProductID : number; // Int32 LineSelection : EVA.Core.Services.AddBundleProductToOrderLineSelection[]; } export class AddDiscountToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.SimpleShoppingCartResponse> { SessionID : string; OrderID? : number; // Int32, nullable CouponCode : string; DiscountID? : number; // Int32, nullable DiscountAmount? : number; // Decimal, nullable // Obsolete CurrencyID : string; Reason : string; OrderLines : EVA.Core.OrderLineWithQuantity[]; Password : string; } export class AddLineToPurchaseOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AddLineToPurchaseOrderResponse> { OrderID : number; // Int32 ProductID : number; // Int32 Quantity : number; // Int32 UnitPrice? : number; // Decimal, nullable RequestedDate? : string; // DateTime, nullable Reference : string; StockLabelID? : number; // Int32, nullable } export class AddLineToPurchaseOrderResponse extends EVA.API.ResponseMessage { Result : EVA.Core.Services.AddLineToPurchaseOrderResponseModel; } export class AddProductToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AddProductToOrderResponse> { OrderID? : number; // Int32, nullable SessionID : string; ForceCreate : boolean; Barcode : string; ProductID? : number; // Int32, nullable QuantityOrdered? : number; // Int32, nullable LineActionType? : EVA.Core.LineActionTypes; StockLabelID? : number; // Int32, nullable ParentID? : number; // Int32, nullable ResourceID? : number; // Int32, nullable GroupID : string; } export class AddProductToOrderResponse extends EVA.Core.SimpleShoppingCartResponse { // Created or updated OrderLineID OrderLineID : number; // Int32 } export class AddProductToWishList extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AddProductToWishListResponse> { OrderID : number; // Int32 ProductID : number; // Int32 Quantity : number; // Int32 SingleProductPerLine : boolean; } export class AddProductToWishListResponse extends EVA.API.ResponseMessage { WishListLineID : number; // Int32 WishListLineIDs : number[]; } export class AddPushNotificationDevice extends EVA.API.RequestMessageWithEmptyResponse { DeviceToken : string; DeviceOS : string; MobileAppID : string; BackendSystemID : string; } export class AddressBookDto { ID : number; // Int32 Address : EVA.Core.AddressDto; Description : string; DefaultShippingAddress : boolean; DefaultBillingAddress : boolean; } export class AddServiceProductToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AddServiceProductToOrderResponse> { OrderID? : number; // Int32, nullable SessionID : string; ForceCreate : boolean; ProductID : number; // Int32 Description : string; UnitPriceInTax? : number; // Decimal, nullable UnitCost? : number; // Decimal, nullable UnitPrice? : number; // Decimal, nullable } export class AddServiceProductToOrderResponse extends EVA.Core.SimpleShoppingCartResponse { // Created or updated OrderLineID OrderLineID : number; // Int32 } export class AddStockResourceToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AddStockResourceToOrderResponse> { ResourceID : number; // Int32 OrderID? : number; // Int32, nullable SessionID : string; } export class AddStockResourceToOrderResponse extends EVA.Core.SimpleShoppingCartResponse { // Created or updated OrderLineID OrderLineID : number; // Int32 } export class AddUserToGroup extends EVA.API.RequestMessageWithEmptyResponse { UserID : number; // Int32 GroupID : number; // Int32 } export class AddWishListProductToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.SimpleShoppingCartResponse> { WishListOrderID : number; // Int32 OrderID? : number; // Int32, nullable // Required if you are not the owner of the wishlist. AccessToken : string; TargetOrderID? : number; // Int32, nullable SessionID : string; LineActionType? : EVA.Core.LineActionTypes; Name : string; Remark : string; WishListLines : EVA.Core.Services.AddWishListProductToOrderLine[]; } export class AddWishListProductToOrderLine { WishListLineID : number; // Int32 Quantity : number; // Int32 } export class AdjustStockAdjustment { BackendID : string; ProductID? : number; // Int32, nullable OrganizationUnitID : number; // Int32 StockLabelID : number; // Int32 StockResourceID? : number; // Int32, nullable StockMutationReasonID : number; // Int32 Quantity : number; // Int32 Remark : string; ProductBackendID : string; } export class AdjustStock extends EVA.API.RequestMessageWithEmptyResponse { ProductID? : number; // Int32, nullable OrganizationUnitID? : number; // Int32, nullable ResourceID? : number; // Int32, nullable SourceLabel? : number; // Int32, nullable Reason? : number; // Int32, nullable Quantity? : number; // Int32, nullable Remark : string; BackendSystemID : string; Adjustments : EVA.Core.Services.AdjustStockAdjustment[]; } export class ApplicationDto { ID : number; // Int32 Name : string; OrganizationUnitID : number; // Int32 AuthenticationToken : string; AssetsBaseUrl : string; RequiredUserTypeID? : number; // Int32, nullable BaseUrl : string; } export class ApplyBundleProductLineSelection { ProductBundleLineID : number; // Int32 SelectedProductID : number; // Int32 LineSelection : EVA.Core.Services.ApplyBundleProductLineSelection[]; } export class ApplyBundleProductSelection extends EVA.API.RequestMessageGeneric<EVA.Core.SimpleShoppingCartResponse> { OrderID? : number; // Int32, nullable SessionID : string; LineActionType? : EVA.Core.LineActionTypes; BundleProductOrderLineID : number; // Int32 LineSelection : EVA.Core.Services.ApplyBundleProductLineSelection[]; } export class ApplySalesTaxEstimateForOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.SalesTaxEstimateForOrderResponse> { OrderID : number; // Int32 } export enum ApprovementFailureReasons { AlreadyApproved = 1, OrderAlreadyPaid = 2, } export class ApprovePayment extends EVA.API.RequestMessageGeneric<EVA.Core.Services.ApprovePaymentResponse> { PaymentID : number; // Int32 } export class ApprovePaymentResponse extends EVA.API.ResponseMessage { HasBeenApproved : boolean; Reason : EVA.Core.Services.ApprovementFailureReasons; } export class AssignedToUser { ID : number; // Int32 FullName : string; EmailAddress : string; } export class AttachAddressToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AttachAddressToOrderResponse> { OrderID? : number; // Int32, nullable OrderIDs : number[]; BillingAddressID? : number; // Int32, nullable ShippingAddressID? : number; // Int32, nullable BillingAddressBookID? : number; // Int32, nullable ShippingAddressBookID? : number; // Int32, nullable } export class AttachAddressToOrderResponse extends EVA.API.ResponseMessage { CreditcardDisabled : boolean; } export class AttachBlobToInvoice extends EVA.API.RequestMessageWithEmptyResponse { InvoiceID : number; // Int32 BlobID : string; } export class AttachBlobToOrder extends EVA.API.RequestMessageWithEmptyResponse { BlobID : string; Name : string; Type? : EVA.Core.OrderBlobTypes; OrderID? : number; // Int32, nullable OrderLineID? : number; // Int32, nullable } export class AttachCustomerToOrder extends EVA.API.RequestMessageWithEmptyResponse { UserID? : number; // Int32, nullable OrderID : number; // Int32 } export class AttachIdentificationToOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AttachIdentificationToOrderResponse> { OrderID : number; // Int32 Type : EVA.Core.IdentificationTypes; Number : string; ValidTo : string; // DateTime IssuingDate? : string; // DateTime, nullable IssuingCity : string; IssuingCountryID : string; OriginatingCountryID : string; DocumentMimeType : string; Document : string; } export class AttachIdentificationToOrderResponse extends EVA.API.ResponseMessage { IdentificationID : number; // Int32 } export class AttachOrderToSession extends EVA.API.RequestMessageGeneric<EVA.API.EmptyResponseMessage> { OrderID : number; // Int32 SessionID : string; } export class AuthenticateWithThirdPartyLogin extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AuthenticateWithThirdPartyLoginResponse> { Code : string; Data : { [ key : string ] : string }; } export class AuthenticateWithThirdPartyLoginResponse extends EVA.API.ResponseMessage { Authentication : EVA.Framework.AuthenticationResults; AuthenticationToken : string; } export class AutocompleteAddress extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AutocompleteAddressResponse> { Query : string; } export class AutocompleteAddressResponse extends EVA.API.ResponseMessage { Result : EVA.Core.AddressSuggestion[]; } export class AutocompleteOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.AutocompleteOrderResponse> { OrderID : number; // Int32 } export class AutocompleteOrderResponse extends EVA.API.ResponseMessage { IsCompleted : boolean; } export class GetStockAvailabilityEstimateForProductsResponseAvailabilityDate { Date : string; // DateTime QuantityAvailable? : number; // Int32, nullable PurchaseOrderLines : EVA.Core.Services.GetStockAvailabilityEstimateForProductsResponsePurchaseOrderLine[]; } export class GetProductAvailabilityAvailabilityOptions { Delivery : EVA.Core.Services.GetProductAvailabilityDeliveryAvailability; Pickup : EVA.Core.Services.GetProductAvailabilityPickupAvailability; // In case a product is not currently available (either for pick-up or delivery),<br />look at future stock to calculate when it's available again. This is more expensive to calculate. FutureAvailability? : boolean; QuantityAvailable? : boolean; } export enum AvailabilityTimelineItemTypes { CurrentAvailability = 0, ExpectedCommitment = 1, ExpectedReplenishment = 2, ExpectedShipment = 3, } export class GetProductSupplierInfoForProductsResponseBarcode { Code : string; UnitOfMeasureID : number; // Int32 Quantity : number; // Int32 } export class BookInvoice extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class ListBrandsResponseBrandDto { ID : number; // Int32 Name : string; BackendID : string; } export class GetPotentialBundleProductsForOrderResponseBundleProduct { BundleProductID : number; // Int32 BundlePricing : EVA.Core.Services.BundleProductPriceInfo; BundleProductContent : any; } export class BundleProductContainingProduct { BundleProductID : number; // Int32 BundlePricing : EVA.Core.Services.BundleProductPriceInfo; BundleProductContent : any; } export class BundleProductLine { ID : number; // Int32 BackendID : string; DefaultProductID? : number; // Int32, nullable Options : EVA.Core.Services.BundleProductLineOption[]; IsRequired : boolean; IncludedInBundlePrice : boolean; Description : string; IsDeleted : boolean; } export class BundleProductLineOption { ProductID : number; // Int32 Lines : EVA.Core.Services.BundleProductLine[]; ProductBundleLineID : number; // Int32 AdditionalUnitPriceInTax? : number; // Decimal, nullable ID : number; // Int32 Quantity : number; // Int32 Sequence : number; // Int32 } export class BundleProductPriceInfo { UnitPrice : number; // Decimal UnitPriceInTax : number; // Decimal OriginalUnitPrice? : number; // Decimal, nullable OriginalUnitPriceInTax? : number; // Decimal, nullable TaxRate : number; // Decimal CurrencyID : string; } export class CancelOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CancelOrderResponse> { OrderID : number; // Int32 OrderLineIDs : number[]; } export class CancelOrderLine extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CancelOrderLineResponse> { OrderLineID : number; // Int32 } export class CancelOrderLineResponse extends EVA.API.ResponseMessage { Result : EVA.Core.OrderCancellationOptions; } export class CancelOrderResponse extends EVA.API.ResponseMessage { Result : EVA.Core.OrderCancellationOptions; } export class CancelPayment extends EVA.API.RequestMessageWithEmptyResponse { PaymentID : number; // Int32 } export class CancelShipments extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CancelShipmentsResponse> { ShipmentIDs : number[]; } export class CancelShipmentsResponse extends EVA.API.ResponseMessage { Total : number; // Int32 Errors : number; // Int32 Message : string; } export class CancelWishList extends EVA.API.RequestMessageGeneric<EVA.API.EmptyResponseMessage> { OrderID : number; // Int32 } export class CardBalanceCheck extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CardBalanceCheckResponse> { CardNumber : string; CardPin : string; Barcode : string; CardType : string; OrderID? : number; // Int32, nullable } export class CardBalanceCheckResponse extends EVA.API.ResponseMessage { CardID : string; Balance : number; // Decimal CurrencyID : string; CanSpendAll? : boolean; RemainingBalance? : number; // Decimal, nullable } export class GetGiftCardOptionsResponseCardBusinessRules { ActivateValues : number[]; ActivateValueMin? : number; // Decimal, nullable ActivateValueMax? : number; // Decimal, nullable ReloadValueMin? : number; // Decimal, nullable ReloadValueMax? : number; // Decimal, nullable PurchaseValueMin? : number; // Decimal, nullable PurchaseValueMax? : number; // Decimal, nullable Reloadable? : boolean; Refundable? : boolean; } export class CompleteCloseCashJournalCashCorrection { Amount : number; // Decimal Description : string; } export class CompleteOpenCashJournalCashCorrection { Amount : number; // Decimal Description : string; } export class GetCashExpenseTypesResponseCashExpenseTypeDto { ID : number; // Int32 BackendID : string; Name : string; Description : string; LedgerClassID : string; AmountType : EVA.Core.CashExpenseAmountTypes; TaxCodeID? : number; // Int32, nullable TaxCodeName : string; OrganizationUnitSet : EVA.Core.Services.CashExpenseTypeOrganizationUnitSet; } export class CashExpenseTypeOrganizationUnitSet { ID : number; // Int32 Name : string; } export class GetAvailableCashHandlersResponseCashHandler { ID : number; // Int32 Name : string; CurrencyID : string; } export class GetCurrentCashJournalsResponseCashJournal { ID? : number; // Int32, nullable OpeningTime? : string; // DateTime, nullable OpeningAmount? : number; // Decimal, nullable Type : EVA.Core.CashJournalTypes; CurrencyID : string; PaymentType : EVA.Core.Services.GetCurrentCashJournalsResponsePaymentTypeDto; PreviousCashJournal : EVA.Core.Services.GetCurrentCashJournalsResponsePreviousCashJournal; DeviceID : number; // Int32 } export class StartOpenCashJournalResponseCashJournal { ID : number; // Int32 OpeningTime : string; // DateTime ClosingTime? : string; // DateTime, nullable OpeningAmount : number; // Decimal ClosingAmount? : number; // Decimal, nullable } export class GetCashJournalDenominationsResponseCashJournalDenomination { CurrencyID : string; AvailableCoins : number[]; AvailableBankNotes : number[]; } export class ChangeUserPassword extends EVA.API.RequestMessageGeneric<EVA.Core.Services.ChangeUserPasswordResponse> { UserID : number; // Int32 NewPassword : string; OldPassword : string; } export class ChangeUserPasswordResponse extends EVA.API.ResponseMessage { Success : boolean; Result : EVA.Core.Services.PasswordValidationResults; } export class CheckEmailAddressAvailability extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CheckUsernameAvailabilityResponse> { EmailAddress : string; AsEmployee? : boolean; } export class CheckNicknameAvailability extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CheckUsernameAvailabilityResponse> { Nickname : string; AsEmployee? : boolean; } export class CheckUsernameAvailabilityResponse extends EVA.API.ResponseMessage { IsAvailable : boolean; IsValid : boolean; PasswordResetRequired : boolean; } export class CloseFinancialPeriod extends EVA.API.RequestMessageWithEmptyResponse { FinancialPeriodID : number; // Int32 } export class MoveCommitmentsCommitmentMovement { SourceOrderLineID : number; // Int32 DestinationOrderLineID : number; // Int32 } export class CommitOrderLinesResponseCommitmentResultForOrderLine { OrderLineID : number; // Int32 IsCommitted : boolean; } export class CommitOrderLines extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CommitOrderLinesResponse> { OrderID : number; // Int32 OrderLineIDs : number[]; CommitmentStatus? : EVA.Core.OrderLineCommitmentStatus; } export class CommitOrderLinesResponse extends EVA.API.ResponseMessage { Results : EVA.Core.Services.CommitOrderLinesResponseCommitmentResultForOrderLine[]; } export class CompleteCloseCashJournal extends EVA.API.RequestMessageWithEmptyResponse { DeviceID : number; // Int32 // Will be required! CurrencyID : string; // Will be required! PaymentTypeID? : number; // Int32, nullable Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; TotalAmount : number; // Decimal Corrections : EVA.Core.Services.CompleteCloseCashJournalCashCorrection[]; Data : any; } export class CompleteOpenCashJournal extends EVA.API.RequestMessageWithEmptyResponse { DeviceID : number; // Int32 // Will be required! CurrencyID : string; // Will be required! PaymentTypeID? : number; // Int32, nullable Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; TotalAmount : number; // Decimal OpeningDeviationCorrection : EVA.Core.Services.CompleteOpenCashJournalCashCorrection; } export class CompleteWishList extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 } export class ConfigurableGroup { ProductID : number; // Int32 Properties : any; LogicalLevel : string; ConfigurableProperty : string; Value : any; Values : any[]; TotalAmount : number; // Decimal TotalAmountInTax : number; // Decimal Quantity : number; // Int32 Children : EVA.Core.Services.ConfigurableGroup[]; OrderLines : EVA.Core.Services.ConfigurableOrderLine[]; } export class ConfigurableOrderLine { OrderLineID : number; // Int32 Quantity : number; // Int32 TotalAmount : number; // Decimal TotalAmountInTax : number; // Decimal } export class ConfirmPurchaseOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 BackendID : string; } export class ConfirmSubscription extends EVA.API.RequestMessageGeneric<EVA.Core.Services.ConfirmSubscriptionResponse> { Token : string; } export class ConfirmSubscriptionResponse extends EVA.API.ResponseMessage { ID : number; // Int32 Status : EVA.Core.SubscriptionStatus; } export class ListShopsInAreaCoordinate { Latitude : number; // Double Longitude : number; // Double } export class CountryDto { ID : string; Name : string; } export class CreateAccountForIncognitoUser extends EVA.API.RequestMessageWithEmptyResponse { Password : string; } export class CreateAddressBookItem extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { UserID? : number; // Int32, nullable Description : string; Address : EVA.Core.AddressDataDto; UseAsDefaultShippingAddress : boolean; UseAsDefaultBillingAddress : boolean; } export class CreateAnonymousToken extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateAnonymousTokenResponse> { OrganizationUnitID : number; // Int32 LanguageID : string; } export class CreateAnonymousTokenResponse extends EVA.API.ResponseMessage { Token : string; } export class CreateApiKey extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateApiKeyResponse> { UserID : number; // Int32 ApplicationID? : number; // Int32, nullable OrganizationUnitID : number; // Int32 RequestPermanentApiKey : boolean; } export class CreateApiKeyResponse extends EVA.API.ResponseMessage { ApiKey : string; ExpirationDate? : string; // DateTime, nullable } export class CreateCashDeposit extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { DeviceID : number; // Int32 // Will be required! CurrencyID : string; // Will be required! PaymentTypeID? : number; // Int32, nullable // Required for monetary deposits Number : string; TotalAmount : number; // Decimal Coins : { [ key : number ] : number }; BankNotes : { [ key : number ] : number }; } export class CreateCashExpense extends EVA.API.RequestMessageWithEmptyResponse { DeviceID : number; // Int32 TypeID : number; // Int32 Amount : number; // Decimal TaxCodeID : number; // Int32 Description : string; // Optional image of the receipt BlobID : string; } export class CreateCashExpenseType extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateCashExpenseTypeResponse> { BackendID : string; Name : string; Description : string; LedgerClassID : string; AmountType : EVA.Core.CashExpenseAmountTypes; TaxCodeID? : number; // Int32, nullable OrganizationUnitSetID? : number; // Int32, nullable } export class CreateCashExpenseTypeResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateCompanyForUser extends EVA.API.RequestMessageWithEmptyResponse { UserID : number; // Int32 Name : string; RegistrationNumber : string; RegistrationCity : string; RegistrationCountryID : string; VatNumber : string; LegalFormID : number; // Int32 EstablishedDate? : string; // DateTime, nullable ContactEmailAddress : string; ContactPhoneNumber : string; AccountHolderName : string; IBAN : string; BIC : string; } export class CreateCurrency extends EVA.API.RequestMessageWithEmptyResponse { ID : string; Name : string; Precision : number; // Int16 } export class CreateCustomer extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateCustomerResponse> { User : EVA.Core.Services.CustomerDto; SessionID : string; NoAccount : boolean; AutoLogin : boolean; } export class CreateCustomerResponse extends EVA.API.ResponseMessage { User : EVA.Core.LoggedInUserDto; Result : EVA.Core.Services.CreateCustomerResults; } export enum CreateCustomerResults { CreatedCustomer = 0, InvalidEmail = 1, EmailAlreadyInUse = 3, NicknameAlreadyInUse = 4, PhoneNumberAlreadyInUse = 5, AutoLoginFailed = 6, } export class CreateCustomerWithCompany extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateCustomerWithCompanyResponse> { Nickname : string; EmailAddress : string; Gender : string; Initials : string; FirstName : string; LastName : string; PhoneNumber : string; LanguageID : string; CountryID : string; Company : EVA.Core.Services.CustomerCompany; } export class CreateCustomerWithCompanyResponse extends EVA.API.ResponseMessage { Result : EVA.Core.Services.CreateCustomerResults; } export class CreateFinancialPeriodAudit extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateFinancialPeriodAuditResponse> { OrganizationUnitID : number; // Int32 To? : string; // DateTime, nullable Till? : string; // DateTime, nullable } export class CreateFinancialPeriodAuditResponse extends EVA.API.ResponseMessage { IDs : number[]; ID : number; // Int32 } export class CreateInterbranchOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 OrganizationUnitID? : number; // Int32, nullable // The date when the shipment is expected in the other store ExpectedDeliveryDate? : string; // DateTime, nullable } export class CreateInvoice extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceResponse> { OrganizationUnitID : number; // Int32 SupplierOrganizationUnitID? : number; // Int32, nullable PaymentTermStartDate? : string; // DateTime, nullable PaymentTermDueDate? : string; // DateTime, nullable InvoiceDate : string; // DateTime InvoiceNumber : string; Description : string; Blobs : EVA.Core.InvoiceBlobDto[]; OriginalTotalAmount? : number; // Decimal, nullable Type : EVA.Core.InvoiceTypes; HoldStatusID? : number; // Int32, nullable FiscalID : string; TaxReverseCharge : boolean; CalculationMethod? : EVA.Core.InvoiceCalculationMethod; } export class CreateInvoiceAdditionalAmount extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceAdditionalAmountResponse> { InvoiceID : number; // Int32 TypeID : number; // Int32 OriginalAmount : number; // Decimal Amount : number; // Decimal TaxRate? : number; // Decimal, nullable TaxCodeID : number; // Int32 } export class CreateInvoiceAdditionalAmountResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoiceAdditionalAmountType extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceAdditionalAmountTypeResponse> { Name : string; Description : string; LedgerClassID : string; } export class CreateInvoiceAdditionalAmountTypeResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoiceDispute extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceDisputeResponse> { InvoiceID : number; // Int32 InvoiceLineID? : number; // Int32, nullable InvoiceAdditionalAmountID? : number; // Int32, nullable ReasonID : number; // Int32 Amount : number; // Decimal Description : string; Type? : EVA.Core.InvoiceDisputeTypes; } export class CreateInvoiceDisputeReason extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceDisputeReasonResponse> { Name : string; Description : string; LedgerClassID : string; AutoResolve : boolean; } export class CreateInvoiceDisputeReasonResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoiceDisputeResolveAction extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoiceDisputeResolveActionResponse> { InvoiceDisputeID : number; // Int32 Amount : number; // Decimal Description : string; LedgerClassID : string; } export class CreateInvoiceDisputeResolveActionResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoiceDisputeResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoiceLine { OrderLineID? : number; // Int32, nullable ShipmentLineID? : number; // Int32, nullable Quantity? : number; // Int32, nullable ExpectedQuantity? : number; // Int32, nullable UnitPrice? : number; // Decimal, nullable TaxRate? : number; // Decimal, nullable } export class CreateInvoiceLines extends EVA.API.RequestMessageWithEmptyResponse { InvoiceID : number; // Int32 Lines : EVA.Core.Services.CreateInvoiceLine[]; } export class CreateInvoicePayment extends EVA.API.RequestMessageWithEmptyResponse { PaymentTransactionID : number; // Int32 InvoiceID? : number; // Int32, nullable } export class CreateInvoiceResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateInvoicesForOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateInvoicesForOrderResponse> { OrderID : number; // Int32 LinesToInvoice : EVA.Core.Services.CreateInvoicesForOrderOrderLineToInvoice[]; } export class CreateInvoicesForOrderResponse extends EVA.API.ResponseMessage { Invoices : EVA.Core.Services.CreateInvoicesForOrderResponseInvoice[]; } export class CreateManualInvoice extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateManualInvoiceResponse> { OrganizationUnitID : number; // Int32 Series : string; Number : number; // Int32 InvoiceDate : string; // DateTime Customer : EVA.Core.Services.ManualCustomer; Lines : EVA.Core.Services.ManualLine[]; } export class CreateManualInvoiceResponse extends EVA.API.ResponseMessage { OrderID : number; // Int32 } export class CreateOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateOrderResponse> { SessionID : string; OrganizationUnitID? : number; // Int32, nullable Type : EVA.Core.OrderTypes; } export class PrepareOrderForCheckout extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 } export class CreateOrderLineUnitPriceCorrection extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateOrderLineUnitPriceCorrectionResponse> { OrderID : number; // Int32 OrderLineID : number; // Int32 UnitPrice? : number; // Decimal, nullable IncludingTax : boolean; } export class CreateOrderLineUnitPriceCorrectionResponse extends EVA.API.GetResponse<EVA.Core.OrderLineDto> { } export class CreateOrderResponse extends EVA.API.ResponseMessage { OrderID : number; // Int32 } export class CreateOrganizationOpeningHours extends EVA.API.RequestMessageWithEmptyResponse { OpeningHoursDto : EVA.Core.OpeningHoursDataDto[]; } export class CreateOrganizationUnit extends EVA.API.CreateRequest<EVA.Core.OrganizationUnitDto> implements EVA.API.IRequestRespondsAs<EVA.API.CreateResponse> { } export class CreateOrganizationUnitSupplier extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { OrganizationUnitID? : number; // Int32, nullable SupplierOrganizationUnitID : number; // Int32 Type : EVA.Core.OrganizationUnitSupplierTypes; } export class CreatePayment extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreatePaymentResponse> { OrderID : number; // Int32 PaymentTypeID? : number; // Int32, nullable Amount? : number; // Decimal, nullable Properties : any; Code : string; } export class CreatePaymentResponse extends EVA.API.ResponseMessage { PaymentTransaction : EVA.Core.PaymentTransactionDto; PaymentTransactions : EVA.Core.PaymentTransactionDto[]; OpenAmount : number; // Decimal Properties : any; } export class CreateProductAvailabilityData extends EVA.API.CreateRequest<EVA.Core.ProductAvailabilityDataDto> implements EVA.API.IRequestRespondsAs<EVA.API.EmptyResponseMessage> { } export class CreateProductBundle extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { BackendID : string; BundleProductID : number; // Int32 Lines : EVA.Core.Services.CreateProductBundleLine[]; } export class CreateProductBundleLine { DefaultProductID? : number; // Int32, nullable Description : string; BackendID : string; Type : EVA.Core.ProductBundleLineTypes; Options : EVA.Core.Services.CreateProductBundleLineOption[]; } export class CreateProductBundleLineOption { ProductID : number; // Int32 } export class CreateProductRequirement extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateProductRequirementResponse> { ProductID : number; // Int32 Name : string; DataType : EVA.Core.ProductRequirementDataTypes; IsArray : boolean; IsRequired : boolean; Data : any; } export class CreateProductRequirementResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateProductStructure extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateProductStructureResponse> { Code : string; Name : string; LanguageID : string; CountryID : string; Definition : EVA.Core.ProductStructureDefinition; } export class CreateProductStructureResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreatePurchaseOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreatePurchaseOrderResponse> { OrganizationUnitID : number; // Int32 SupplierID? : number; // Int32, nullable BackendID : string; } export class CreatePurchaseOrderResponse extends EVA.API.ResponseMessage { Success : boolean; ID : number; // Int32 } export class CreateRecurringTask extends EVA.API.RequestMessageWithEmptyResponse { ID : string; FullName : string; Cron : string; Arguments : { [ key : string ] : string }; } export class CreateRefund extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateRefundResponse> { OrderID? : number; // Int32, nullable PaymentMethod : string; PaymentTransactionID? : number; // Int32, nullable Amount? : number; // Decimal, nullable CurrencyID : string; Properties : any; } export class CreateRefundResponse extends EVA.API.ResponseMessage { Success : boolean; PaymentTransactions : EVA.Core.PaymentTransactionDto[]; Properties : any; } export class CreateReturnToSupplierOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 } export class CreateShipmentReceipt extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateShipmentReceiptResponse> { BackendID : string; BackendSystemID : string; ShipmentID : number; // Int32 CompletesShipment : boolean; Lines : EVA.Core.Services.CreateShipmentReceiptLine[]; } export class CreateShipmentReceiptResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateStockAllocationRule extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { OrganizationUnitSupplierID : number; // Int32 OrganizationUnitID? : number; // Int32, nullable Value : number; // Int32 ValueType : EVA.Core.StockAllocationRuleValueTypes; RefillPeriodInDays? : number; // Int32, nullable Type : EVA.Core.StockAllocationRuleTypes; ProductSearchTemplateID? : number; // Int32, nullable StartDate? : string; // DateTime, nullable EndDate? : string; // DateTime, nullable } export class CreateStockMutations extends EVA.API.RequestMessageWithEmptyResponse { OrganizationUnitBackendID : string; Mutations : EVA.Core.Services.CreateStockMutationsStockMutation[]; } export class CreateStockNotification extends EVA.API.RequestMessageGeneric<EVA.Core.Services.StockNotificationResponse> { ProductID : number; // Int32 OrganizationUnitID : number; // Int32 EmailAddress : string; CountryID : string; LanguageID : string; } export class CreateStockNotificationForCurrentUser extends EVA.API.RequestMessageGeneric<EVA.Core.Services.StockNotificationResponse> { ProductID : number; // Int32 OrganizationUnitID? : number; // Int32, nullable CountryID : string; LanguageID : string; } export class CreateStockResource extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateStockResourceResponse> { Resources : { [ key : string ] : string }; } export class CreateStockResourceResponse extends EVA.API.ResponseMessage { ResourceID : number; // Int32 } export class CreateTaxCode extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateTaxCodeResponse> { Name : string; Description : string; LedgerClassID : string; BackendID : string; } export class CreateTaxCodeResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class CreateTaxRate extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { CountryID : string; TaxCodeID : number; // Int32 Rate : number; // Decimal StartDate? : string; // DateTime, nullable EndDate? : string; // DateTime, nullable } export class CreateUserGroup extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { Name : string; } export class CreateUserPhoneNumber extends EVA.API.RequestMessageGeneric<EVA.API.CreateResponse> { UserID? : number; // Int32, nullable PhoneNumber : string; Type : EVA.Core.PhoneNumberTypes; Description : string; IsPrimary : boolean; } export class CreateWishList extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateWishListResponse> { Name : string; Data : any; } export class CreateWishListFromShoppingCart extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateWishListFromShoppingCartResponse> { SessionID : string; OrderID? : number; // Int32, nullable Name : string; Data : any; } export class CreateWishListFromShoppingCartResponse extends EVA.API.ResponseMessage { OrderID : number; // Int32 AccessToken : string; } export class CreateWishListPayment extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateWishListPaymentResponse> { OrderID : number; // Int32 // Required if you are not the owner of the wishlist. AccessToken : string; Code : string; Amount : number; // Decimal Properties : any; Name : string; Remark : string; Lines : EVA.Core.Services.CreateWishListPaymentLine[]; } export class CreateWishListPaymentFromShoppingCart extends EVA.API.RequestMessageGeneric<EVA.Core.Services.CreateWishListPaymentResponse> { DummyOrderID : number; // Int32 SessionID : string; OrderID : number; // Int32 // Required if you are not the owner of the wishlist. AccessToken : string; Code : string; Properties : any; Name : string; Remark : string; } export class CreateWishListPaymentLine { WishListLineID : number; // Int32 Amount : number; // Decimal } export class CreateWishListPaymentResponse extends EVA.API.ResponseMessage { PaymentTransaction : EVA.Core.Services.WishListPaymentTransactionDto; OpenAmount : number; // Decimal Properties : any; } export class CreateWishListResponse extends EVA.API.ResponseMessage { OrderID : number; // Int32 AccessToken : string; } export class CustomerCompany { Name : string; RegistrationNumber : string; RegistrationCity : string; RegistrationCountryID : string; VatNumber : string; LegalForm : EVA.Core.LegalForms; EstablishedDate? : string; // DateTime, nullable VisitorsAddress : EVA.Core.AddressDataDto; DeliveryAddress : EVA.Core.AddressDataDto; ReturnsAddress : EVA.Core.AddressDataDto; InvoiceAddress : EVA.Core.AddressDataDto; InvoiceEmailAddress : string; ContactEmailAddress : string; ContactPhoneNumber : string; AccountHolderName : string; IBAN : string; BIC : string; LogoID : string; } export class CustomerDto { EmailAddress : string; Gender : string; Initials : string; FirstName : string; LastName : string; PhoneNumber : string; DateOfBirth? : string; // DateTime, nullable PlaceOfBirth : string; BankAccount : string; Nickname : string; Password : string; LanguageID : string; CountryID : string; FiscalID : string; SocialSecurityNumber : string; OriginID? : number; // Int32, nullable ShippingAddress : EVA.Core.AddressDataDto; BillingAddress : EVA.Core.AddressDataDto; } export class DeleteAddressBookItem extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteCashDeposit extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteCashExpense extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteCashExpenseType extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteCurrency extends EVA.API.RequestMessageWithEmptyResponse { ID : string; } export class DeleteEntityTranslation extends EVA.API.RequestMessageWithEmptyResponse { EntityID : number; // Int32 EntityType : string; EntityField : string; LanguageID : string; CountryID : string; } export class DeleteInvoice extends EVA.API.RequestMessageWithEmptyResponse { InvoiceID : number; // Int32 } export class DeleteInvoiceAdditionalAmount extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteInvoiceAdditionalAmountType extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteInvoiceBlob extends EVA.API.RequestMessageWithEmptyResponse { InvoiceID : number; // Int32 BlobID : string; } export class DeleteInvoiceDispute extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteInvoiceDisputeReason extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteInvoiceDisputeResolveAction extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteOrganizationOpeningHours extends EVA.API.DeleteRequest implements EVA.API.IRequestRespondsAs<EVA.API.EmptyResponseMessage> { } export class DeleteOrganizationUnit extends EVA.API.RequestMessageWithEmptyResponse { OrganizationUnitID : number; // Int32 } export class DeleteOrganizationUnitSupplier extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteProductAvailabilityData extends EVA.API.DeleteRequest implements EVA.API.IRequestRespondsAs<EVA.API.EmptyResponseMessage> { } export class DeleteProductBundle extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteProductRequirement extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteProductStructure extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteRecurringTask extends EVA.API.RequestMessageWithEmptyResponse { ID : string; } export class DeleteStockAllocationRule extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteStockNotification extends EVA.API.RequestMessageGeneric<EVA.API.EmptyResponseMessage> { ID : number; // Int32 EmailAddress : string; } export class DeleteStringTranslation extends EVA.API.RequestMessageWithEmptyResponse { Key : string; LanguageID : string; CountryID : string; } export class DeleteTaxCode extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteTaxRate extends EVA.API.DeleteRequest implements EVA.API.IRequestRespondsAs<EVA.API.EmptyResponseMessage> { } export class DeleteUser extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteUserGroup extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeleteUserPhoneNumber extends EVA.API.RequestMessageWithEmptyResponse { ID : number; // Int32 } export class DeliverShipment extends EVA.API.RequestMessageWithEmptyResponse { // Either this or ShipmentBackendID is required. ShipmentID? : number; // Int32, nullable // Either this or ShipmentID is required. If ShipmentBackendID is specified, ShipmentBackendSystem is also required. ShipmentBackendID : string; // Required if ShipmentBackendID is specified. ShipmentBackendSystemID : string; } export class GetProductAvailabilityDeliveryAvailability { // Include the expected date on which the provided products can be home-delivered. AvailabilityDate? : boolean; } export class GetProductAvailabilityResponseDeliveryAvailabilityResult { AvailabilityDate? : string; // DateTime, nullable IsAvailable : boolean; QuantityAvailable? : number; // Int32, nullable // Indicates whether or not there is currently stock available for home-delivery. HasStock : boolean; } export class GetStockAvailabilityEstimateForOrderResponseDependsOnPurchaseOrderLine { ID : number; // Int32 BackendID : string; ProductID : number; // Int32 OrderID : number; // Int32 QuantityToShip : number; // Int32 QuantityShipped : number; // Int32 QuantityDelivered : number; // Int32 RequestedDate : string; // DateTime CreationTime : string; // DateTime } export class DetachCompanyFromUser extends EVA.API.RequestMessageWithEmptyResponse { UserID : number; // Int32 } export class DetachCustomerFromOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 } export class DetachOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.DetachOrderResponse> { OrderID : number; // Int32 } export class DetachOrderFromSession extends EVA.API.RequestMessageGeneric<EVA.API.EmptyResponseMessage> { SessionID : string; OrderID? : number; // Int32, nullable } export class DetachOrderResponse extends EVA.API.ResponseMessage { ReminderToken : string; } export class DisableDiscountOnOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 DiscountID : number; // Int32 } export enum DocumentTypes { Order = 0, Quote = 1, Invoice = 2, ReturnToSupplier = 3, Interbranch = 4, } export class DownloadFinancialPeriodAudits extends EVA.API.RequestMessageWithResourceResponse { OrganizationUnitID : number; // Int32 FiscalYear : number; // Int32 } export class DownloadFinancialPeriodDeposit extends EVA.API.RequestMessageGeneric<EVA.API.ResourceResponseMessage> { FinancialPeriodID : number; // Int32 } export class DuplicateOrder extends EVA.API.RequestMessageGeneric<EVA.Core.Services.DuplicateOrderResponse> { OrderID : number; // Int32 OrderLineIDs : number[]; OrganizationUnitID? : number; // Int32, nullable } export class DuplicateOrderResponse extends EVA.API.ResponseMessage { DuplicatedOrderID : number; // Int32 } export class EditProductStructure extends EVA.API.RequestMessageGeneric<EVA.Core.Services.EditProductStructureResponse> { ID : number; // Int32 Code : string; Name : string; LanguageID : string; CountryID : string; Definition : EVA.Core.ProductStructureDefinition; } export class EditProductStructureResponse extends EVA.API.ResponseMessage { ID : number; // Int32 } export class EnableDisabledDiscountOnOrder extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 DiscountID : number; // Int32 } export class EnqueueTask extends EVA.API.RequestMessageWithEmptyResponse { FullName : string; Arguments : { [ key : string ] : string }; } export class EnrollSentinel extends EVA.API.RequestMessageWithEmptyResponse { SentinelID : string; } export class GetEnumValuesResponseEnumValue { Name : string; Value : number; // Int32 Description : string; } export class ExemptOrderFromTax extends EVA.API.RequestMessageWithEmptyResponse { OrderID : number; // Int32 OrderLineID? : number; // Int32, nullable // A short code (max 10 characters) identifying the tax exemption. TaxExemptionCode : string; // A longer description with the justification for the tax exemption. TaxExemptionReason : string; } export class ListExternalOrderStatusForOrderResponseExternalOrderStatus { Name : string; Status : string; CanPollStatus : boolean; } export class FeedSubscriptionDto { ID : number; // Int32 Name : string; WebhookUrl : string; } export class FinalizePayment extends EVA.API.RequestMessageGeneric<EVA.Core.Services.FinalizePaymentResponse> { PaymentTransactionID : number; // Int32 Amount? : number; // Decimal, nullable } export class FinalizePaymentResponse extends EVA.API.ResponseMessage { PaymentTransaction : EVA.Core.PaymentTransactionDto; OpenAmount : number; // Decimal } export class FinancialPeriodBlobDto { FinancialPeriodID : number; // Int32 Name : string; MimeType : string; BlobID : string; } export class GetFinancialPeriodInformationResponseFinancialPeriodOrganizationUnit { ID : number; // Int32 Name : string; } e