From a81d169f022ed68ed4bd809f40b330e216c6b3d7 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 2 Jun 2022 16:04:39 +0300 Subject: [PATCH] fix prev commit 7c3dee9 --- .../ELTOsago/ConnectedService.json | 4 +- .../Connected Services/ELTOsago/Reference.cs | 579 +++++++++++++++++- 2 files changed, 572 insertions(+), 11 deletions(-) diff --git a/ELT.Client/Connected Services/ELTOsago/ConnectedService.json b/ELT.Client/Connected Services/ELTOsago/ConnectedService.json index 7f2bd4d..e047695 100644 --- a/ELT.Client/Connected Services/ELTOsago/ConnectedService.json +++ b/ELT.Client/Connected Services/ELTOsago/ConnectedService.json @@ -1,9 +1,6 @@ { "ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf", "Version": "15.0.40203.910", - "GettingStartedDocument": { - "Uri": "https://go.microsoft.com/fwlink/?linkid=858517" - }, "ExtendedData": { "inputs": [ "http://evolucia.elt-poisk.com/soaposago.php?wsdl" @@ -24,6 +21,7 @@ "System.ServiceModel.Primitives, {System.ServiceModel.Primitives, 4.4.4}", "System.ServiceModel.Security, {System.ServiceModel.Security, 4.4.4}" ], + "sync": true, "targetFramework": "netcoreapp3.1", "typeReuseMode": "All" } diff --git a/ELT.Client/Connected Services/ELTOsago/Reference.cs b/ELT.Client/Connected Services/ELTOsago/Reference.cs index 91a3ac3..7a51609 100644 --- a/ELT.Client/Connected Services/ELTOsago/Reference.cs +++ b/ELT.Client/Connected Services/ELTOsago/Reference.cs @@ -20,18 +20,28 @@ namespace ELTOsago [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.DictionaryElement[] GetTypeIdFileToInsurance(string InsuranceCompany); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetTypeIdFileToInsurance", ReplyAction="*")] System.Threading.Tasks.Task GetTypeIdFileToInsuranceAsync(string InsuranceCompany); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetDurationOSAGO", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.DictionaryElement[] GetDurationOSAGO(); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetDurationOSAGO", ReplyAction="*")] System.Threading.Tasks.Task GetDurationOSAGOAsync(); + // CODEGEN: Parameter 'Data' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'Microsoft.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/UploadFileToInsurance", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.UploadFileToInsuranceResponse UploadFileToInsurance(ELTOsago.UploadFileToInsuranceRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/UploadFileToInsurance", ReplyAction="*")] System.Threading.Tasks.Task UploadFileToInsuranceAsync(ELTOsago.UploadFileToInsuranceRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOCalculation", ReplyAction="*")] @@ -39,6 +49,28 @@ namespace ELTOsago [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] [return: System.ServiceModel.MessageParameterAttribute(Name="Results")] + ELTOsago.OSAGOCalculationResult OSAGOCalculation( + ELTOsago.AuthInfo AuthInfo, + string TrafficSource, + string InsuranceCompany, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + string UsagePlace, + int TSToRegistrationPlace, + ELTOsago.TSType TSType, + bool UseWithTrailer, + double VehiclePower, + int Duration, + int DriversCount, + ELTOsago.Driver[] Drivers, + string BonusMalus, + string KBM, + bool GrossViolations); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOCalculation", ReplyAction="*")] + [return: System.ServiceModel.MessageParameterAttribute(Name="Results")] System.Threading.Tasks.Task OSAGOCalculationAsync( ELTOsago.AuthInfo AuthInfo, string TrafficSource, @@ -59,11 +91,14 @@ namespace ELTOsago string KBM, bool GrossViolations); - // CODEGEN: Generating message contract since the operation has multiple return values. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/CheckDK", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.CheckDKResponse CheckDK(ELTOsago.CheckDKRequest request); + + // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/CheckDK", ReplyAction="*")] System.Threading.Tasks.Task CheckDKAsync(ELTOsago.CheckDKRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/CheckPhone", ReplyAction="*")] @@ -71,83 +106,129 @@ namespace ELTOsago [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] [return: System.ServiceModel.MessageParameterAttribute(Name="SendVerificationCodeResult")] + ELTOsago.SendVerificationCodeResult CheckPhone(string InsuranceCompany, string OrderId, string Phone, string VerifycationCode); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/CheckPhone", ReplyAction="*")] + [return: System.ServiceModel.MessageParameterAttribute(Name="SendVerificationCodeResult")] System.Threading.Tasks.Task CheckPhoneAsync(string InsuranceCompany, string OrderId, string Phone, string VerifycationCode); - // CODEGEN: Generating message contract since the operation has multiple return values. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetRequestInfo", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] - System.Threading.Tasks.Task GetRequestInfoAsync(ELTOsago.GetRequestInfoRequest request); + ELTOsago.GetRequestInfoResponse GetRequestInfo(ELTOsago.GetRequestInfoRequest request); // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetRequestInfo", ReplyAction="*")] + System.Threading.Tasks.Task GetRequestInfoAsync(ELTOsago.GetRequestInfoRequest request); + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOFullCalculation", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.OSAGOFullCalculationResponse OSAGOFullCalculation(ELTOsago.OSAGOFullCalculationRequest request); + + // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOFullCalculation", ReplyAction="*")] System.Threading.Tasks.Task OSAGOFullCalculationAsync(ELTOsago.OSAGOFullCalculationRequest request); + // CODEGEN: Parameter 'BuyingPlace' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'Microsoft.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOSave", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + [return: System.ServiceModel.MessageParameterAttribute(Name="Results")] + ELTOsago.OSAGOSaveResponse OSAGOSave(ELTOsago.OSAGOSaveRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOSave", ReplyAction="*")] System.Threading.Tasks.Task OSAGOSaveAsync(ELTOsago.OSAGOSaveRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetInsuranceCompanies", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.InsuranceCompany[] GetInsuranceCompanies(string Login); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetInsuranceCompanies", ReplyAction="*")] System.Threading.Tasks.Task GetInsuranceCompaniesAsync(string Login); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAutoMarks", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + string[] GetAutoMarks(bool ActualOnly, string Category); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAutoMarks", ReplyAction="*")] System.Threading.Tasks.Task GetAutoMarksAsync(bool ActualOnly, string Category); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAutoModels", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + string[] GetAutoModels(string Mark, bool ActualOnly, string Category); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAutoModels", ReplyAction="*")] System.Threading.Tasks.Task GetAutoModelsAsync(string Mark, bool ActualOnly, string Category); - // CODEGEN: Generating message contract since the operation has multiple return values. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/Annulment", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] - System.Threading.Tasks.Task AnnulmentAsync(ELTOsago.AnnulmentRequest request); + ELTOsago.AnnulmentResponse Annulment(ELTOsago.AnnulmentRequest request); // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/Annulment", ReplyAction="*")] + System.Threading.Tasks.Task AnnulmentAsync(ELTOsago.AnnulmentRequest request); + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAvailablePrintForms", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] - System.Threading.Tasks.Task GetAvailablePrintFormsAsync(ELTOsago.GetAvailablePrintFormsRequest request); + ELTOsago.GetAvailablePrintFormsResponse GetAvailablePrintForms(ELTOsago.GetAvailablePrintFormsRequest request); // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAvailablePrintForms", ReplyAction="*")] + System.Threading.Tasks.Task GetAvailablePrintFormsAsync(ELTOsago.GetAvailablePrintFormsRequest request); + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetPrintForm", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.GetPrintFormResponse GetPrintForm(ELTOsago.GetPrintFormRequest request); + + // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetPrintForm", ReplyAction="*")] System.Threading.Tasks.Task GetPrintFormAsync(ELTOsago.GetPrintFormRequest request); + // CODEGEN: Parameter 'SubjectId' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'Microsoft.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetNewSubjectIds", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + [return: System.ServiceModel.MessageParameterAttribute(Name="SubjectId")] + ELTOsago.GetNewSubjectIdsResponse GetNewSubjectIds(ELTOsago.GetNewSubjectIdsRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetNewSubjectIds", ReplyAction="*")] System.Threading.Tasks.Task GetNewSubjectIdsAsync(ELTOsago.GetNewSubjectIdsRequest request); + // CODEGEN: Parameter 'GetRegionsExtResult' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'Microsoft.Xml.Serialization.XmlArrayItemAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetRegionsExt", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.GetRegionsExtResponse GetRegionsExt(ELTOsago.GetRegionsExtRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetRegionsExt", ReplyAction="*")] System.Threading.Tasks.Task GetRegionsExtAsync(ELTOsago.GetRegionsExtRequest request); + // CODEGEN: Parameter 'GetLocalitiesExtResult' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'Microsoft.Xml.Serialization.XmlArrayItemAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetLocalitiesExt", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.GetLocalitiesExtResponse GetLocalitiesExt(ELTOsago.GetLocalitiesExtRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetLocalitiesExt", ReplyAction="*")] System.Threading.Tasks.Task GetLocalitiesExtAsync(ELTOsago.GetLocalitiesExtRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/Delivery", ReplyAction="*")] @@ -155,20 +236,30 @@ namespace ELTOsago [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] [return: System.ServiceModel.MessageParameterAttribute(Name="SaveResult")] + string Delivery(string NumCalc, System.DateTime DeliveryDateTime, string PaymentMethod, string Phone, ELTOsago.Address DeliveryAddress); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/Delivery", ReplyAction="*")] + [return: System.ServiceModel.MessageParameterAttribute(Name="SaveResult")] System.Threading.Tasks.Task DeliveryAsync(string NumCalc, System.DateTime DeliveryDateTime, string PaymentMethod, string Phone, ELTOsago.Address DeliveryAddress); - // CODEGEN: Generating message contract since the operation has multiple return values. [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/ChangeStatusPolicy", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] - System.Threading.Tasks.Task ChangeStatusPolicyAsync(ELTOsago.ChangeStatusPolicyRequest request); + ELTOsago.ChangeStatusPolicyResponse ChangeStatusPolicy(ELTOsago.ChangeStatusPolicyRequest request); // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/ChangeStatusPolicy", ReplyAction="*")] + System.Threading.Tasks.Task ChangeStatusPolicyAsync(ELTOsago.ChangeStatusPolicyRequest request); + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetOrderInfo", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Document))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.GetOrderInfoResponse GetOrderInfo(ELTOsago.GetOrderInfoRequest request); + + // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetOrderInfo", ReplyAction="*")] System.Threading.Tasks.Task GetOrderInfoAsync(ELTOsago.GetOrderInfoRequest request); } @@ -5940,16 +6031,44 @@ namespace ELTOsago { } + public ELTOsago.DictionaryElement[] GetTypeIdFileToInsurance(string InsuranceCompany) + { + return base.Channel.GetTypeIdFileToInsurance(InsuranceCompany); + } + public System.Threading.Tasks.Task GetTypeIdFileToInsuranceAsync(string InsuranceCompany) { return base.Channel.GetTypeIdFileToInsuranceAsync(InsuranceCompany); } + public ELTOsago.DictionaryElement[] GetDurationOSAGO() + { + return base.Channel.GetDurationOSAGO(); + } + public System.Threading.Tasks.Task GetDurationOSAGOAsync() { return base.Channel.GetDurationOSAGOAsync(); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.UploadFileToInsuranceResponse ELTOsago.EltSoap.UploadFileToInsurance(ELTOsago.UploadFileToInsuranceRequest request) + { + return base.Channel.UploadFileToInsurance(request); + } + + public string UploadFileToInsurance(ELTOsago.AuthInfo AuthInfo, string OrderId, string FileName, string Type, byte[] Data) + { + ELTOsago.UploadFileToInsuranceRequest inValue = new ELTOsago.UploadFileToInsuranceRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + inValue.FileName = FileName; + inValue.Type = Type; + inValue.Data = Data; + ELTOsago.UploadFileToInsuranceResponse retVal = ((ELTOsago.EltSoap)(this)).UploadFileToInsurance(inValue); + return retVal.UploadFileToInsuranceResult; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ELTOsago.EltSoap.UploadFileToInsuranceAsync(ELTOsago.UploadFileToInsuranceRequest request) { @@ -5967,6 +6086,29 @@ namespace ELTOsago return ((ELTOsago.EltSoap)(this)).UploadFileToInsuranceAsync(inValue); } + public ELTOsago.OSAGOCalculationResult OSAGOCalculation( + ELTOsago.AuthInfo AuthInfo, + string TrafficSource, + string InsuranceCompany, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + string UsagePlace, + int TSToRegistrationPlace, + ELTOsago.TSType TSType, + bool UseWithTrailer, + double VehiclePower, + int Duration, + int DriversCount, + ELTOsago.Driver[] Drivers, + string BonusMalus, + string KBM, + bool GrossViolations) + { + return base.Channel.OSAGOCalculation(AuthInfo, TrafficSource, InsuranceCompany, InsurerType, OwnerType, ContractOptionId, ContractStatusId, UsagePlace, TSToRegistrationPlace, TSType, UseWithTrailer, VehiclePower, Duration, DriversCount, Drivers, BonusMalus, KBM, GrossViolations); + } + public System.Threading.Tasks.Task OSAGOCalculationAsync( ELTOsago.AuthInfo AuthInfo, string TrafficSource, @@ -5990,26 +6132,294 @@ namespace ELTOsago return base.Channel.OSAGOCalculationAsync(AuthInfo, TrafficSource, InsuranceCompany, InsurerType, OwnerType, ContractOptionId, ContractStatusId, UsagePlace, TSToRegistrationPlace, TSType, UseWithTrailer, VehiclePower, Duration, DriversCount, Drivers, BonusMalus, KBM, GrossViolations); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.CheckDKResponse ELTOsago.EltSoap.CheckDK(ELTOsago.CheckDKRequest request) + { + return base.Channel.CheckDK(request); + } + + public bool CheckDK(string RegNumber, string VIN, string BodyNumber, string ChassisNumber, out string Number, out string DKEndDate, out string ErrorMessage) + { + ELTOsago.CheckDKRequest inValue = new ELTOsago.CheckDKRequest(); + inValue.RegNumber = RegNumber; + inValue.VIN = VIN; + inValue.BodyNumber = BodyNumber; + inValue.ChassisNumber = ChassisNumber; + ELTOsago.CheckDKResponse retVal = ((ELTOsago.EltSoap)(this)).CheckDK(inValue); + Number = retVal.Number; + DKEndDate = retVal.DKEndDate; + ErrorMessage = retVal.ErrorMessage; + return retVal.Success; + } + public System.Threading.Tasks.Task CheckDKAsync(ELTOsago.CheckDKRequest request) { return base.Channel.CheckDKAsync(request); } + public ELTOsago.SendVerificationCodeResult CheckPhone(string InsuranceCompany, string OrderId, string Phone, string VerifycationCode) + { + return base.Channel.CheckPhone(InsuranceCompany, OrderId, Phone, VerifycationCode); + } + public System.Threading.Tasks.Task CheckPhoneAsync(string InsuranceCompany, string OrderId, string Phone, string VerifycationCode) { return base.Channel.CheckPhoneAsync(InsuranceCompany, OrderId, Phone, VerifycationCode); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetRequestInfoResponse ELTOsago.EltSoap.GetRequestInfo(ELTOsago.GetRequestInfoRequest request) + { + return base.Channel.GetRequestInfo(request); + } + + public string GetRequestInfo( + ELTOsago.AuthInfo AuthInfo, + string OrderId, + out string InsuranceCompany, + out string PremiumSum, + out int InsurerType, + out int OwnerType, + out int ContractOptionId, + out int ContractStatusId, + out string UsagePlace, + out int TSToRegistrationPlace, + out System.DateTime ContractBeginDate, + out int Duration, + out ELTOsago.GetRequestInfoResponseCarInfo CarInfo, + out bool GrossViolations, + out ELTOsago.PhysicalPerson Owner, + out int DriversCount, + out ELTOsago.FullDriver[] FullDriversInfo) + { + ELTOsago.GetRequestInfoRequest inValue = new ELTOsago.GetRequestInfoRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + ELTOsago.GetRequestInfoResponse retVal = ((ELTOsago.EltSoap)(this)).GetRequestInfo(inValue); + InsuranceCompany = retVal.InsuranceCompany; + PremiumSum = retVal.PremiumSum; + InsurerType = retVal.InsurerType; + OwnerType = retVal.OwnerType; + ContractOptionId = retVal.ContractOptionId; + ContractStatusId = retVal.ContractStatusId; + UsagePlace = retVal.UsagePlace; + TSToRegistrationPlace = retVal.TSToRegistrationPlace; + ContractBeginDate = retVal.ContractBeginDate; + Duration = retVal.Duration; + CarInfo = retVal.CarInfo; + GrossViolations = retVal.GrossViolations; + Owner = retVal.Owner; + DriversCount = retVal.DriversCount; + FullDriversInfo = retVal.FullDriversInfo; + return retVal.Status; + } + public System.Threading.Tasks.Task GetRequestInfoAsync(ELTOsago.GetRequestInfoRequest request) { return base.Channel.GetRequestInfoAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.OSAGOFullCalculationResponse ELTOsago.EltSoap.OSAGOFullCalculation(ELTOsago.OSAGOFullCalculationRequest request) + { + return base.Channel.OSAGOFullCalculation(request); + } + + public int OSAGOFullCalculation( + ELTOsago.AuthInfo AuthInfo, + string TrafficSource, + int UW3, + string InsuranceCompany, + int PaymentType, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + int Analytics, + ELTOsago.PreviousPolicy PreviousPolicy, + string UsagePlace, + int TSToRegistrationPlace, + System.DateTime ContractBeginDate, + int Duration, + bool IsNew, + ELTOsago.OSAGOFullCalculationCarInfo CarInfo, + bool GrossViolations, + ELTOsago.PhysicalPerson Insurer, + ELTOsago.PhysicalPerson Owner, + ELTOsago.PhysicalPerson Lessee, + int DriversCount, + ELTOsago.FullDriver[] FullDriversInfo, + out string SKCalcId, + out double PremiumSum, + out double Tb, + out ELTOsago.CalcInfo[] CalcInfo, + out string Message, + out string Error, + out string RSARequestId, + out ELTOsago.KBM KBM, + out ELTOsago.KBM PrevoiusKBM, + out ELTOsago.PersonWithKBM[] FullDriversInfo1) + { + ELTOsago.OSAGOFullCalculationRequest inValue = new ELTOsago.OSAGOFullCalculationRequest(); + inValue.AuthInfo = AuthInfo; + inValue.TrafficSource = TrafficSource; + inValue.UW3 = UW3; + inValue.InsuranceCompany = InsuranceCompany; + inValue.PaymentType = PaymentType; + inValue.InsurerType = InsurerType; + inValue.OwnerType = OwnerType; + inValue.ContractOptionId = ContractOptionId; + inValue.ContractStatusId = ContractStatusId; + inValue.Analytics = Analytics; + inValue.PreviousPolicy = PreviousPolicy; + inValue.UsagePlace = UsagePlace; + inValue.TSToRegistrationPlace = TSToRegistrationPlace; + inValue.ContractBeginDate = ContractBeginDate; + inValue.Duration = Duration; + inValue.IsNew = IsNew; + inValue.CarInfo = CarInfo; + inValue.GrossViolations = GrossViolations; + inValue.Insurer = Insurer; + inValue.Owner = Owner; + inValue.Lessee = Lessee; + inValue.DriversCount = DriversCount; + inValue.FullDriversInfo = FullDriversInfo; + ELTOsago.OSAGOFullCalculationResponse retVal = ((ELTOsago.EltSoap)(this)).OSAGOFullCalculation(inValue); + SKCalcId = retVal.SKCalcId; + PremiumSum = retVal.PremiumSum; + Tb = retVal.Tb; + CalcInfo = retVal.CalcInfo; + Message = retVal.Message; + Error = retVal.Error; + RSARequestId = retVal.RSARequestId; + KBM = retVal.KBM; + PrevoiusKBM = retVal.PrevoiusKBM; + FullDriversInfo1 = retVal.FullDriversInfo; + return retVal.NumCalc; + } + public System.Threading.Tasks.Task OSAGOFullCalculationAsync(ELTOsago.OSAGOFullCalculationRequest request) { return base.Channel.OSAGOFullCalculationAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.OSAGOSaveResponse ELTOsago.EltSoap.OSAGOSave(ELTOsago.OSAGOSaveRequest request) + { + return base.Channel.OSAGOSave(request); + } + + public ELTOsago.OSAGOSaveResult OSAGOSave( + ELTOsago.AuthInfo AuthInfo, + string NumCalc, + string Login, + string TrafficSource, + int UW3, + string InsuranceCompany, + int PaymentType, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + string UsagePlace, + int TSToRegistrationPlace, + ELTOsago.TSType TSType, + bool UseWithTrailer, + double VehiclePower, + int Duration, + int DriversCount, + ELTOsago.Driver[] Drivers, + string BonusMalus, + string KBM, + bool GrossViolations, + bool IsNew, + System.Nullable BuyingPlace, + string VehicleYear, + string Mark, + string Model, + ELTOsago.Modification Modification, + string MarkPTS, + string ModelPTS, + ELTOsago.Vehicle Vehicle, + ELTOsago.RegDoc RegDoc, + ELTOsago.TechnicalInspection TechnicalInspection, + int PurposeUse, + bool IsRental, + ELTOsago.PreviousPolicy PreviousPolicy, + ELTOsago.PhysicalPerson Insurer, + ELTOsago.PhysicalPerson Lessee, + ELTOsago.PhysicalPerson Owner, + ELTOsago.FullDriver[] FullDriversInfo, + System.DateTime ContractBegin, + System.DateTime ContractEnd, + System.DateTime ContractSign, + System.Nullable FirstPeriodStart, + System.Nullable FirstPeriodEnd, + System.Nullable SecondPeriodStart, + System.Nullable SecondPeriodEnd, + System.Nullable ThirdPeriodStart, + System.Nullable ThirdPeriodEnd, + string PolicyNumber, + ELTOsago.BSO BSO, + ELTOsago.A7 A7) + { + ELTOsago.OSAGOSaveRequest inValue = new ELTOsago.OSAGOSaveRequest(); + inValue.AuthInfo = AuthInfo; + inValue.NumCalc = NumCalc; + inValue.Login = Login; + inValue.TrafficSource = TrafficSource; + inValue.UW3 = UW3; + inValue.InsuranceCompany = InsuranceCompany; + inValue.PaymentType = PaymentType; + inValue.InsurerType = InsurerType; + inValue.OwnerType = OwnerType; + inValue.ContractOptionId = ContractOptionId; + inValue.ContractStatusId = ContractStatusId; + inValue.UsagePlace = UsagePlace; + inValue.TSToRegistrationPlace = TSToRegistrationPlace; + inValue.TSType = TSType; + inValue.UseWithTrailer = UseWithTrailer; + inValue.VehiclePower = VehiclePower; + inValue.Duration = Duration; + inValue.DriversCount = DriversCount; + inValue.Drivers = Drivers; + inValue.BonusMalus = BonusMalus; + inValue.KBM = KBM; + inValue.GrossViolations = GrossViolations; + inValue.IsNew = IsNew; + inValue.BuyingPlace = BuyingPlace; + inValue.VehicleYear = VehicleYear; + inValue.Mark = Mark; + inValue.Model = Model; + inValue.Modification = Modification; + inValue.MarkPTS = MarkPTS; + inValue.ModelPTS = ModelPTS; + inValue.Vehicle = Vehicle; + inValue.RegDoc = RegDoc; + inValue.TechnicalInspection = TechnicalInspection; + inValue.PurposeUse = PurposeUse; + inValue.IsRental = IsRental; + inValue.PreviousPolicy = PreviousPolicy; + inValue.Insurer = Insurer; + inValue.Lessee = Lessee; + inValue.Owner = Owner; + inValue.FullDriversInfo = FullDriversInfo; + inValue.ContractBegin = ContractBegin; + inValue.ContractEnd = ContractEnd; + inValue.ContractSign = ContractSign; + inValue.FirstPeriodStart = FirstPeriodStart; + inValue.FirstPeriodEnd = FirstPeriodEnd; + inValue.SecondPeriodStart = SecondPeriodStart; + inValue.SecondPeriodEnd = SecondPeriodEnd; + inValue.ThirdPeriodStart = ThirdPeriodStart; + inValue.ThirdPeriodEnd = ThirdPeriodEnd; + inValue.PolicyNumber = PolicyNumber; + inValue.BSO = BSO; + inValue.A7 = A7; + ELTOsago.OSAGOSaveResponse retVal = ((ELTOsago.EltSoap)(this)).OSAGOSave(inValue); + return retVal.Results; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ELTOsago.EltSoap.OSAGOSaveAsync(ELTOsago.OSAGOSaveRequest request) { @@ -6126,36 +6536,119 @@ namespace ELTOsago return ((ELTOsago.EltSoap)(this)).OSAGOSaveAsync(inValue); } + public ELTOsago.InsuranceCompany[] GetInsuranceCompanies(string Login) + { + return base.Channel.GetInsuranceCompanies(Login); + } + public System.Threading.Tasks.Task GetInsuranceCompaniesAsync(string Login) { return base.Channel.GetInsuranceCompaniesAsync(Login); } + public string[] GetAutoMarks(bool ActualOnly, string Category) + { + return base.Channel.GetAutoMarks(ActualOnly, Category); + } + public System.Threading.Tasks.Task GetAutoMarksAsync(bool ActualOnly, string Category) { return base.Channel.GetAutoMarksAsync(ActualOnly, Category); } + public string[] GetAutoModels(string Mark, bool ActualOnly, string Category) + { + return base.Channel.GetAutoModels(Mark, ActualOnly, Category); + } + public System.Threading.Tasks.Task GetAutoModelsAsync(string Mark, bool ActualOnly, string Category) { return base.Channel.GetAutoModelsAsync(Mark, ActualOnly, Category); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.AnnulmentResponse ELTOsago.EltSoap.Annulment(ELTOsago.AnnulmentRequest request) + { + return base.Channel.Annulment(request); + } + + public int Annulment(ELTOsago.AuthInfo AuthInfo, string OrderId, string ContractStatusTypeId, out string ErrorMessage) + { + ELTOsago.AnnulmentRequest inValue = new ELTOsago.AnnulmentRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + inValue.ContractStatusTypeId = ContractStatusTypeId; + ELTOsago.AnnulmentResponse retVal = ((ELTOsago.EltSoap)(this)).Annulment(inValue); + ErrorMessage = retVal.ErrorMessage; + return retVal.AnnulmentResult; + } + public System.Threading.Tasks.Task AnnulmentAsync(ELTOsago.AnnulmentRequest request) { return base.Channel.AnnulmentAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetAvailablePrintFormsResponse ELTOsago.EltSoap.GetAvailablePrintForms(ELTOsago.GetAvailablePrintFormsRequest request) + { + return base.Channel.GetAvailablePrintForms(request); + } + + public ELTOsago.DictionaryElement[] GetAvailablePrintForms(ELTOsago.AuthInfo AuthInfo, string OrderId, out bool Success, out string Error) + { + ELTOsago.GetAvailablePrintFormsRequest inValue = new ELTOsago.GetAvailablePrintFormsRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + ELTOsago.GetAvailablePrintFormsResponse retVal = ((ELTOsago.EltSoap)(this)).GetAvailablePrintForms(inValue); + Success = retVal.Success; + Error = retVal.Error; + return retVal.GetAvailablePrintFormsResult; + } + public System.Threading.Tasks.Task GetAvailablePrintFormsAsync(ELTOsago.GetAvailablePrintFormsRequest request) { return base.Channel.GetAvailablePrintFormsAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetPrintFormResponse ELTOsago.EltSoap.GetPrintForm(ELTOsago.GetPrintFormRequest request) + { + return base.Channel.GetPrintForm(request); + } + + public ELTOsago.DictionaryElement GetPrintForm(ELTOsago.AuthInfo AuthInfo, string OrderId, string FormId, string FormName, out bool Success, out string Error) + { + ELTOsago.GetPrintFormRequest inValue = new ELTOsago.GetPrintFormRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + inValue.FormId = FormId; + inValue.FormName = FormName; + ELTOsago.GetPrintFormResponse retVal = ((ELTOsago.EltSoap)(this)).GetPrintForm(inValue); + Success = retVal.Success; + Error = retVal.Error; + return retVal.GetPrintFormResult; + } + public System.Threading.Tasks.Task GetPrintFormAsync(ELTOsago.GetPrintFormRequest request) { return base.Channel.GetPrintFormAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetNewSubjectIdsResponse ELTOsago.EltSoap.GetNewSubjectIds(ELTOsago.GetNewSubjectIdsRequest request) + { + return base.Channel.GetNewSubjectIds(request); + } + + public int[] GetNewSubjectIds(ELTOsago.AuthInfo AuthInfo, int SubjectsCount) + { + ELTOsago.GetNewSubjectIdsRequest inValue = new ELTOsago.GetNewSubjectIdsRequest(); + inValue.AuthInfo = AuthInfo; + inValue.SubjectsCount = SubjectsCount; + ELTOsago.GetNewSubjectIdsResponse retVal = ((ELTOsago.EltSoap)(this)).GetNewSubjectIds(inValue); + return retVal.SubjectId; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ELTOsago.EltSoap.GetNewSubjectIdsAsync(ELTOsago.GetNewSubjectIdsRequest request) { @@ -6170,6 +6663,19 @@ namespace ELTOsago return ((ELTOsago.EltSoap)(this)).GetNewSubjectIdsAsync(inValue); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetRegionsExtResponse ELTOsago.EltSoap.GetRegionsExt(ELTOsago.GetRegionsExtRequest request) + { + return base.Channel.GetRegionsExt(request); + } + + public ELTOsago.RegionExtended[] GetRegionsExt() + { + ELTOsago.GetRegionsExtRequest inValue = new ELTOsago.GetRegionsExtRequest(); + ELTOsago.GetRegionsExtResponse retVal = ((ELTOsago.EltSoap)(this)).GetRegionsExt(inValue); + return retVal.GetRegionsExtResult; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ELTOsago.EltSoap.GetRegionsExtAsync(ELTOsago.GetRegionsExtRequest request) { @@ -6182,6 +6688,20 @@ namespace ELTOsago return ((ELTOsago.EltSoap)(this)).GetRegionsExtAsync(inValue); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetLocalitiesExtResponse ELTOsago.EltSoap.GetLocalitiesExt(ELTOsago.GetLocalitiesExtRequest request) + { + return base.Channel.GetLocalitiesExt(request); + } + + public ELTOsago.LocalityExtended[] GetLocalitiesExt(string RegionId) + { + ELTOsago.GetLocalitiesExtRequest inValue = new ELTOsago.GetLocalitiesExtRequest(); + inValue.RegionId = RegionId; + ELTOsago.GetLocalitiesExtResponse retVal = ((ELTOsago.EltSoap)(this)).GetLocalitiesExt(inValue); + return retVal.GetLocalitiesExtResult; + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ELTOsago.EltSoap.GetLocalitiesExtAsync(ELTOsago.GetLocalitiesExtRequest request) { @@ -6195,16 +6715,59 @@ namespace ELTOsago return ((ELTOsago.EltSoap)(this)).GetLocalitiesExtAsync(inValue); } + public string Delivery(string NumCalc, System.DateTime DeliveryDateTime, string PaymentMethod, string Phone, ELTOsago.Address DeliveryAddress) + { + return base.Channel.Delivery(NumCalc, DeliveryDateTime, PaymentMethod, Phone, DeliveryAddress); + } + public System.Threading.Tasks.Task DeliveryAsync(string NumCalc, System.DateTime DeliveryDateTime, string PaymentMethod, string Phone, ELTOsago.Address DeliveryAddress) { return base.Channel.DeliveryAsync(NumCalc, DeliveryDateTime, PaymentMethod, Phone, DeliveryAddress); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.ChangeStatusPolicyResponse ELTOsago.EltSoap.ChangeStatusPolicy(ELTOsago.ChangeStatusPolicyRequest request) + { + return base.Channel.ChangeStatusPolicy(request); + } + + public bool ChangeStatusPolicy(ELTOsago.AuthInfo AuthInfo, string Login, string OrderId, string StatusId, ref string PolicyNumber, out ELTOsago.ChangeStatusPolicyResponseResponseStatus ResponseStatus) + { + ELTOsago.ChangeStatusPolicyRequest inValue = new ELTOsago.ChangeStatusPolicyRequest(); + inValue.AuthInfo = AuthInfo; + inValue.Login = Login; + inValue.OrderId = OrderId; + inValue.StatusId = StatusId; + inValue.PolicyNumber = PolicyNumber; + ELTOsago.ChangeStatusPolicyResponse retVal = ((ELTOsago.EltSoap)(this)).ChangeStatusPolicy(inValue); + PolicyNumber = retVal.PolicyNumber; + ResponseStatus = retVal.ResponseStatus; + return retVal.Success; + } + public System.Threading.Tasks.Task ChangeStatusPolicyAsync(ELTOsago.ChangeStatusPolicyRequest request) { return base.Channel.ChangeStatusPolicyAsync(request); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ELTOsago.GetOrderInfoResponse ELTOsago.EltSoap.GetOrderInfo(ELTOsago.GetOrderInfoRequest request) + { + return base.Channel.GetOrderInfo(request); + } + + public ELTOsago.GetOrderInfoResult GetOrderInfo(ELTOsago.AuthInfo AuthInfo, string OrderId, ELTOsago.GetOrderInfoParams Params, out bool Success, out string Error) + { + ELTOsago.GetOrderInfoRequest inValue = new ELTOsago.GetOrderInfoRequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + inValue.Params = Params; + ELTOsago.GetOrderInfoResponse retVal = ((ELTOsago.EltSoap)(this)).GetOrderInfo(inValue); + Success = retVal.Success; + Error = retVal.Error; + return retVal.GetOrderInfoResult; + } + public System.Threading.Tasks.Task GetOrderInfoAsync(ELTOsago.GetOrderInfoRequest request) { return base.Channel.GetOrderInfoAsync(request);