From 5413b4a1002c2662688253c0022996fba6534553 Mon Sep 17 00:00:00 2001 From: Chika Date: Sat, 20 Feb 2021 16:07:30 +0300 Subject: [PATCH] result type --- .../ELTOsago/ConnectedService.json | 30 + .../Connected Services/ELTOsago/Reference.cs | 4992 +++++++++++++++++ ELT.Client/Kasko/KaskoManager.cs | 5 +- ELT/Controllers/KaskoController.cs | 10 +- 4 files changed, 5031 insertions(+), 6 deletions(-) create mode 100644 ELT.Client/Connected Services/ELTOsago/ConnectedService.json create mode 100644 ELT.Client/Connected Services/ELTOsago/Reference.cs diff --git a/ELT.Client/Connected Services/ELTOsago/ConnectedService.json b/ELT.Client/Connected Services/ELTOsago/ConnectedService.json new file mode 100644 index 0000000..f650308 --- /dev/null +++ b/ELT.Client/Connected Services/ELTOsago/ConnectedService.json @@ -0,0 +1,30 @@ +{ + "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" + ], + "collectionTypes": [ + "System.Array", + "System.Collections.Generic.Dictionary`2" + ], + "namespaceMappings": [ + "*, ELTOsago" + ], + "references": [ + "System.ServiceModel, {System.ServiceModel.Primitives, 4.4.4}", + "System.ServiceModel.Duplex, {System.ServiceModel.Duplex, 4.4.4}", + "System.ServiceModel.Http, {System.ServiceModel.Http, 4.4.4}", + "System.ServiceModel.NetTcp, {System.ServiceModel.NetTcp, 4.4.4}", + "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" + } +} \ No newline at end of file diff --git a/ELT.Client/Connected Services/ELTOsago/Reference.cs b/ELT.Client/Connected Services/ELTOsago/Reference.cs new file mode 100644 index 0000000..4dbdfbe --- /dev/null +++ b/ELT.Client/Connected Services/ELTOsago/Reference.cs @@ -0,0 +1,4992 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ELTOsago +{ + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.ServiceContractAttribute(Namespace="http://elt-poisk.com/", ConfigurationName="ELTOsago.EltSoap")] + public interface EltSoap + { + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/OSAGOCalculation", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [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, + 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/CheckDK", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [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="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [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); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetRequestInfo", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + 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(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 'FirstPeriodStart' 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(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(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(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(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); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/AnnulOSAGO", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.AnnulOSAGOResponse AnnulOSAGO(ELTOsago.AnnulOSAGORequest request); + + // CODEGEN: Generating message contract since the operation has multiple return values. + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/AnnulOSAGO", ReplyAction="*")] + System.Threading.Tasks.Task AnnulOSAGOAsync(ELTOsago.AnnulOSAGORequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAvailablePrintForms", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.DictionaryElement[] GetAvailablePrintForms(ELTOsago.AuthInfo AuthInfo, string OrderId); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetAvailablePrintForms", ReplyAction="*")] + System.Threading.Tasks.Task GetAvailablePrintFormsAsync(ELTOsago.AuthInfo AuthInfo, string OrderId); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetPrintForm", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + ELTOsago.DictionaryElement GetPrintForm(ELTOsago.AuthInfo AuthInfo, string OrderId, string FormId); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/GetPrintForm", ReplyAction="*")] + System.Threading.Tasks.Task GetPrintFormAsync(ELTOsago.AuthInfo AuthInfo, string OrderId, string FormId); + + // 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(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(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(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="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [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); + + [System.ServiceModel.OperationContractAttribute(Action="http://elt-poisk.com/ChangeStatusPolicy", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(Person))] + 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.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class AuthInfo + { + + private string loginField; + + private string passwordField; + + private string sessionIdField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Login + { + get + { + return this.loginField; + } + set + { + this.loginField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Password + { + get + { + return this.passwordField; + } + set + { + this.passwordField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string SessionId + { + get + { + return this.sessionIdField; + } + set + { + this.sessionIdField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class LocalityExtended + { + + private string regionIdField; + + private string regionNameField; + + private string idField; + + private string nameField; + + private string kladrField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string RegionId + { + get + { + return this.regionIdField; + } + set + { + this.regionIdField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string RegionName + { + get + { + return this.regionNameField; + } + set + { + this.regionNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string Kladr + { + get + { + return this.kladrField; + } + set + { + this.kladrField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class RegionExtended + { + + private string idField; + + private string nameField; + + private string kladrField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Kladr + { + get + { + return this.kladrField; + } + set + { + this.kladrField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class OSAGOSaveResult + { + + private string numCalcField; + + private string policyNumberField; + + private double premiumSumField; + + private bool premiumSumFieldSpecified; + + private string messageField; + + private string errorField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string NumCalc + { + get + { + return this.numCalcField; + } + set + { + this.numCalcField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string PolicyNumber + { + get + { + return this.policyNumberField; + } + set + { + this.policyNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public double PremiumSum + { + get + { + return this.premiumSumField; + } + set + { + this.premiumSumField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PremiumSumSpecified + { + get + { + return this.premiumSumFieldSpecified; + } + set + { + this.premiumSumFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string Message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string Error + { + get + { + return this.errorField; + } + set + { + this.errorField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class A7 + { + + private string idField; + + private string a7NumberField; + + private string a7TypeField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string ID + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string A7Number + { + get + { + return this.a7NumberField; + } + set + { + this.a7NumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string A7Type + { + get + { + return this.a7TypeField; + } + set + { + this.a7TypeField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class BSO + { + + private string idField; + + private string bSONumberField; + + private string bSOTypeField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string ID + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string BSONumber + { + get + { + return this.bSONumberField; + } + set + { + this.bSONumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string BSOType + { + get + { + return this.bSOTypeField; + } + set + { + this.bSOTypeField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class TechnicalInspection + { + + private string seriesField; + + private string numberField; + + private string monthField; + + private int yearField; + + private bool yearFieldSpecified; + + private string typeField; + + private System.DateTime dKIssuedDateField; + + private bool dKIssuedDateFieldSpecified; + + private System.DateTime dKEndDateField; + + private bool dKEndDateFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Series + { + get + { + return this.seriesField; + } + set + { + this.seriesField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Number + { + get + { + return this.numberField; + } + set + { + this.numberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Month + { + get + { + return this.monthField; + } + set + { + this.monthField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public int Year + { + get + { + return this.yearField; + } + set + { + this.yearField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool YearSpecified + { + get + { + return this.yearFieldSpecified; + } + set + { + this.yearFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public System.DateTime DKIssuedDate + { + get + { + return this.dKIssuedDateField; + } + set + { + this.dKIssuedDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool DKIssuedDateSpecified + { + get + { + return this.dKIssuedDateFieldSpecified; + } + set + { + this.dKIssuedDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public System.DateTime DKEndDate + { + get + { + return this.dKEndDateField; + } + set + { + this.dKEndDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool DKEndDateSpecified + { + get + { + return this.dKEndDateFieldSpecified; + } + set + { + this.dKEndDateFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class RegDoc + { + + private int typeField; + + private bool typeFieldSpecified; + + private string seriesField; + + private string numberField; + + private System.DateTime dateField; + + private bool dateFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool TypeSpecified + { + get + { + return this.typeFieldSpecified; + } + set + { + this.typeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Series + { + get + { + return this.seriesField; + } + set + { + this.seriesField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Number + { + get + { + return this.numberField; + } + set + { + this.numberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public System.DateTime Date + { + get + { + return this.dateField; + } + set + { + this.dateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool DateSpecified + { + get + { + return this.dateFieldSpecified; + } + set + { + this.dateFieldSpecified = value; + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(InsuranceCompany))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Modification))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class DictionaryElement + { + + private string idField; + + private string nameField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class InsuranceCompany : DictionaryElement + { + + private string legalNameField; + + private string iNNField; + + private string kPPField; + + private string logoField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string LegalName + { + get + { + return this.legalNameField; + } + set + { + this.legalNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string INN + { + get + { + return this.iNNField; + } + set + { + this.iNNField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string KPP + { + get + { + return this.kPPField; + } + set + { + this.kPPField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public string Logo + { + get + { + return this.logoField; + } + set + { + this.logoField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Modification : DictionaryElement + { + + private double powerField; + + private bool powerFieldSpecified; + + private string engineTypeField; + + private double engineVolumeField; + + private bool engineVolumeFieldSpecified; + + private int kPPTypeIdField; + + private bool kPPTypeIdFieldSpecified; + + private int bodyTypeField; + + private bool bodyTypeFieldSpecified; + + private int doorsCountField; + + private bool doorsCountFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public double Power + { + get + { + return this.powerField; + } + set + { + this.powerField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PowerSpecified + { + get + { + return this.powerFieldSpecified; + } + set + { + this.powerFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string EngineType + { + get + { + return this.engineTypeField; + } + set + { + this.engineTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public double EngineVolume + { + get + { + return this.engineVolumeField; + } + set + { + this.engineVolumeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool EngineVolumeSpecified + { + get + { + return this.engineVolumeFieldSpecified; + } + set + { + this.engineVolumeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public int KPPTypeId + { + get + { + return this.kPPTypeIdField; + } + set + { + this.kPPTypeIdField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool KPPTypeIdSpecified + { + get + { + return this.kPPTypeIdFieldSpecified; + } + set + { + this.kPPTypeIdFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public int BodyType + { + get + { + return this.bodyTypeField; + } + set + { + this.bodyTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool BodyTypeSpecified + { + get + { + return this.bodyTypeFieldSpecified; + } + set + { + this.bodyTypeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public int DoorsCount + { + get + { + return this.doorsCountField; + } + set + { + this.doorsCountField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool DoorsCountSpecified + { + get + { + return this.doorsCountFieldSpecified; + } + set + { + this.doorsCountFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class PersonWithKBM + { + + private double kBMField; + + private double kBMValueField; + + private DriverLicence driverLicenceField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public double KBM + { + get + { + return this.kBMField; + } + set + { + this.kBMField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public double KBMValue + { + get + { + return this.kBMValueField; + } + set + { + this.kBMValueField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public DriverLicence DriverLicence + { + get + { + return this.driverLicenceField; + } + set + { + this.driverLicenceField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class DriverLicence : Document + { + + private string issuedByField; + + private System.DateTime issuedDateField; + + private bool issuedDateFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string IssuedBy + { + get + { + return this.issuedByField; + } + set + { + this.issuedByField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public System.DateTime IssuedDate + { + get + { + return this.issuedDateField; + } + set + { + this.issuedDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool IssuedDateSpecified + { + get + { + return this.issuedDateFieldSpecified; + } + set + { + this.issuedDateFieldSpecified = value; + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(JuridicalDocument))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PersonDocument))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(DriverLicence))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Document + { + + private string seriesField; + + private string numberField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Series + { + get + { + return this.seriesField; + } + set + { + this.seriesField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Number + { + get + { + return this.numberField; + } + set + { + this.numberField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class JuridicalDocument : Document + { + + private System.DateTime issuedDateField; + + private bool issuedDateFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public System.DateTime IssuedDate + { + get + { + return this.issuedDateField; + } + set + { + this.issuedDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool IssuedDateSpecified + { + get + { + return this.issuedDateFieldSpecified; + } + set + { + this.issuedDateFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class PersonDocument : Document + { + + private string typeField; + + private string issuedByField; + + private System.DateTime issuedDateField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string IssuedBy + { + get + { + return this.issuedByField; + } + set + { + this.issuedByField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public System.DateTime IssuedDate + { + get + { + return this.issuedDateField; + } + set + { + this.issuedDateField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class KBM + { + + private double valueField; + + private int classField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public double Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int Class + { + get + { + return this.classField; + } + set + { + this.classField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class PreviousPolicy + { + + private string numberField; + + private int kSSField; + + private bool kSSFieldSpecified; + + private System.DateTime dateField; + + private bool dateFieldSpecified; + + private string insuranceCompanyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Number + { + get + { + return this.numberField; + } + set + { + this.numberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int KSS + { + get + { + return this.kSSField; + } + set + { + this.kSSField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool KSSSpecified + { + get + { + return this.kSSFieldSpecified; + } + set + { + this.kSSFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public System.DateTime Date + { + get + { + return this.dateField; + } + set + { + this.dateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool DateSpecified + { + get + { + return this.dateFieldSpecified; + } + set + { + this.dateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string InsuranceCompany + { + get + { + return this.insuranceCompanyField; + } + set + { + this.insuranceCompanyField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Address + { + + private int residentField; + + private bool residentFieldSpecified; + + private string indexField; + + private string countryField; + + private string regionField; + + private string districtField; + + private string cityField; + + private string cityKLADRField; + + private string streetField; + + private string streetKLADRField; + + private string cityFIASField; + + private string streetFIASField; + + private string houseField; + + private string korpusField; + + private string flatField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int Resident + { + get + { + return this.residentField; + } + set + { + this.residentField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool ResidentSpecified + { + get + { + return this.residentFieldSpecified; + } + set + { + this.residentFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Index + { + get + { + return this.indexField; + } + set + { + this.indexField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Country + { + get + { + return this.countryField; + } + set + { + this.countryField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string Region + { + get + { + return this.regionField; + } + set + { + this.regionField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string District + { + get + { + return this.districtField; + } + set + { + this.districtField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public string City + { + get + { + return this.cityField; + } + set + { + this.cityField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public string CityKLADR + { + get + { + return this.cityKLADRField; + } + set + { + this.cityKLADRField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public string Street + { + get + { + return this.streetField; + } + set + { + this.streetField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=8)] + public string StreetKLADR + { + get + { + return this.streetKLADRField; + } + set + { + this.streetKLADRField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=9)] + public string CityFIAS + { + get + { + return this.cityFIASField; + } + set + { + this.cityFIASField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=10)] + public string StreetFIAS + { + get + { + return this.streetFIASField; + } + set + { + this.streetFIASField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=11)] + public string House + { + get + { + return this.houseField; + } + set + { + this.houseField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=12)] + public string Korpus + { + get + { + return this.korpusField; + } + set + { + this.korpusField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=13)] + public string Flat + { + get + { + return this.flatField; + } + set + { + this.flatField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlIncludeAttribute(typeof(FullDriver))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PhysicalPerson))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Person + { + + private System.DateTime dOBField; + + private string subjectIdField; + + private string surnameField; + + private string nameField; + + private string patronymicField; + + private string sexField; + + private DriverLicence driverLicenceField; + + private PersonDocument personDocumentField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public System.DateTime DOB + { + get + { + return this.dOBField; + } + set + { + this.dOBField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string SubjectId + { + get + { + return this.subjectIdField; + } + set + { + this.subjectIdField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Surname + { + get + { + return this.surnameField; + } + set + { + this.surnameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string Patronymic + { + get + { + return this.patronymicField; + } + set + { + this.patronymicField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public string Sex + { + get + { + return this.sexField; + } + set + { + this.sexField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public DriverLicence DriverLicence + { + get + { + return this.driverLicenceField; + } + set + { + this.driverLicenceField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public PersonDocument PersonDocument + { + get + { + return this.personDocumentField; + } + set + { + this.personDocumentField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class FullDriver : Person + { + + private System.DateTime expertienceStartField; + + private int relationWithOwnerField; + + private bool relationWithOwnerFieldSpecified; + + private string phoneNumberField; + + private string kBMField; + + private bool isDLForeignField; + + private bool isDLForeignFieldSpecified; + + private Document oldDriverLicenceField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public System.DateTime ExpertienceStart + { + get + { + return this.expertienceStartField; + } + set + { + this.expertienceStartField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int RelationWithOwner + { + get + { + return this.relationWithOwnerField; + } + set + { + this.relationWithOwnerField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool RelationWithOwnerSpecified + { + get + { + return this.relationWithOwnerFieldSpecified; + } + set + { + this.relationWithOwnerFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string PhoneNumber + { + get + { + return this.phoneNumberField; + } + set + { + this.phoneNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string KBM + { + get + { + return this.kBMField; + } + set + { + this.kBMField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public bool IsDLForeign + { + get + { + return this.isDLForeignField; + } + set + { + this.isDLForeignField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool IsDLForeignSpecified + { + get + { + return this.isDLForeignFieldSpecified; + } + set + { + this.isDLForeignFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public Document OldDriverLicence + { + get + { + return this.oldDriverLicenceField; + } + set + { + this.oldDriverLicenceField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class PhysicalPerson : Person + { + + private int subjectTypeField; + + private bool subjectTypeFieldSpecified; + + private int oPFField; + + private bool oPFFieldSpecified; + + private string juridicalNameField; + + private string iNNField; + + private string kPPField; + + private string oGRNField; + + private string oKPOField; + + private string contactFIOField; + + private JuridicalDocument registrationDocumentField; + + private Address registrationAddressField; + + private Address factAddressField; + + private string phoneField; + + private string emailField; + + private string birthPlaceField; + + private string economicSectorField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int SubjectType + { + get + { + return this.subjectTypeField; + } + set + { + this.subjectTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool SubjectTypeSpecified + { + get + { + return this.subjectTypeFieldSpecified; + } + set + { + this.subjectTypeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int OPF + { + get + { + return this.oPFField; + } + set + { + this.oPFField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool OPFSpecified + { + get + { + return this.oPFFieldSpecified; + } + set + { + this.oPFFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string JuridicalName + { + get + { + return this.juridicalNameField; + } + set + { + this.juridicalNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string INN + { + get + { + return this.iNNField; + } + set + { + this.iNNField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string KPP + { + get + { + return this.kPPField; + } + set + { + this.kPPField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public string OGRN + { + get + { + return this.oGRNField; + } + set + { + this.oGRNField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public string OKPO + { + get + { + return this.oKPOField; + } + set + { + this.oKPOField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public string ContactFIO + { + get + { + return this.contactFIOField; + } + set + { + this.contactFIOField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=8)] + public JuridicalDocument RegistrationDocument + { + get + { + return this.registrationDocumentField; + } + set + { + this.registrationDocumentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=9)] + public Address RegistrationAddress + { + get + { + return this.registrationAddressField; + } + set + { + this.registrationAddressField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=10)] + public Address FactAddress + { + get + { + return this.factAddressField; + } + set + { + this.factAddressField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=11)] + public string Phone + { + get + { + return this.phoneField; + } + set + { + this.phoneField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=12)] + public string Email + { + get + { + return this.emailField; + } + set + { + this.emailField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=13)] + public string BirthPlace + { + get + { + return this.birthPlaceField; + } + set + { + this.birthPlaceField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=14)] + public string EconomicSector + { + get + { + return this.economicSectorField; + } + set + { + this.economicSectorField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Vehicle + { + + private string regNumberField; + + private string bodyNumberField; + + private string chassisNumberField; + + private string vINField; + + private int seatingCapacityField; + + private bool seatingCapacityFieldSpecified; + + private int maxAllowedMassField; + + private bool maxAllowedMassFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string RegNumber + { + get + { + return this.regNumberField; + } + set + { + this.regNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string BodyNumber + { + get + { + return this.bodyNumberField; + } + set + { + this.bodyNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string ChassisNumber + { + get + { + return this.chassisNumberField; + } + set + { + this.chassisNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string VIN + { + get + { + return this.vINField; + } + set + { + this.vINField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public int SeatingCapacity + { + get + { + return this.seatingCapacityField; + } + set + { + this.seatingCapacityField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool SeatingCapacitySpecified + { + get + { + return this.seatingCapacityFieldSpecified; + } + set + { + this.seatingCapacityFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public int MaxAllowedMass + { + get + { + return this.maxAllowedMassField; + } + set + { + this.maxAllowedMassField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool MaxAllowedMassSpecified + { + get + { + return this.maxAllowedMassFieldSpecified; + } + set + { + this.maxAllowedMassFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class ValidationErrors + { + + private string stringField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string @string + { + get + { + return this.stringField; + } + set + { + this.stringField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class KeyValuePairOfstringstring + { + + private string keyField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string key + { + get + { + return this.keyField; + } + set + { + this.keyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class ValidationCodeErrors + { + + private KeyValuePairOfstringstring keyValuePairOfstringstringField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public KeyValuePairOfstringstring KeyValuePairOfstringstring + { + get + { + return this.keyValuePairOfstringstringField; + } + set + { + this.keyValuePairOfstringstringField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class SendVerificationCodeResult + { + + private string additionalDataField; + + private string correlationIdField; + + private string dataField; + + private string errorMessageField; + + private string grouppedErrorMessageField; + + private string phoneExistField; + + private string verificationSentField; + + private string verificationCompleteField; + + private bool isSuccessField; + + private bool isSuccessFieldSpecified; + + private string serviceVersionField; + + private ValidationCodeErrors validationCodeErrorsField; + + private ValidationErrors validationErrorsField; + + private string warningMessagesField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string AdditionalData + { + get + { + return this.additionalDataField; + } + set + { + this.additionalDataField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string CorrelationId + { + get + { + return this.correlationIdField; + } + set + { + this.correlationIdField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string Data + { + get + { + return this.dataField; + } + set + { + this.dataField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public string ErrorMessage + { + get + { + return this.errorMessageField; + } + set + { + this.errorMessageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string GrouppedErrorMessage + { + get + { + return this.grouppedErrorMessageField; + } + set + { + this.grouppedErrorMessageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public string PhoneExist + { + get + { + return this.phoneExistField; + } + set + { + this.phoneExistField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public string VerificationSent + { + get + { + return this.verificationSentField; + } + set + { + this.verificationSentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public string VerificationComplete + { + get + { + return this.verificationCompleteField; + } + set + { + this.verificationCompleteField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=8)] + public bool IsSuccess + { + get + { + return this.isSuccessField; + } + set + { + this.isSuccessField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool IsSuccessSpecified + { + get + { + return this.isSuccessFieldSpecified; + } + set + { + this.isSuccessFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=9)] + public string ServiceVersion + { + get + { + return this.serviceVersionField; + } + set + { + this.serviceVersionField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=10)] + public ValidationCodeErrors ValidationCodeErrors + { + get + { + return this.validationCodeErrorsField; + } + set + { + this.validationCodeErrorsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=11)] + public ValidationErrors ValidationErrors + { + get + { + return this.validationErrorsField; + } + set + { + this.validationErrorsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=12)] + public string WarningMessages + { + get + { + return this.warningMessagesField; + } + set + { + this.warningMessagesField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class CalcInfo + { + + private string itemNameField; + + private double valueField; + + private bool valueFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string ItemName + { + get + { + return this.itemNameField; + } + set + { + this.itemNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public double Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool ValueSpecified + { + get + { + return this.valueFieldSpecified; + } + set + { + this.valueFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class OSAGOCalculationResult + { + + private string numCalcField; + + private double premiumSumField; + + private bool premiumSumFieldSpecified; + + private double tbField; + + private bool tbFieldSpecified; + + private CalcInfo[] calcInfoField; + + private string messageField; + + private string errorField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string NumCalc + { + get + { + return this.numCalcField; + } + set + { + this.numCalcField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public double PremiumSum + { + get + { + return this.premiumSumField; + } + set + { + this.premiumSumField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PremiumSumSpecified + { + get + { + return this.premiumSumFieldSpecified; + } + set + { + this.premiumSumFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public double Tb + { + get + { + return this.tbField; + } + set + { + this.tbField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool TbSpecified + { + get + { + return this.tbFieldSpecified; + } + set + { + this.tbFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(Order=3)] + [System.Xml.Serialization.XmlArrayItemAttribute("Param")] + public CalcInfo[] CalcInfo + { + get + { + return this.calcInfoField; + } + set + { + this.calcInfoField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public string Message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public string Error + { + get + { + return this.errorField; + } + set + { + this.errorField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class Driver + { + + private int ageField; + + private int experienceField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int Age + { + get + { + return this.ageField; + } + set + { + this.ageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int Experience + { + get + { + return this.experienceField; + } + set + { + this.experienceField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://elt-poisk.com/")] + public partial class TSType + { + + private string categoryField; + + private string subcategoryField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Subcategory + { + get + { + return this.subcategoryField; + } + set + { + this.subcategoryField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="CheckDK", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class CheckDKRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public string RegNumber; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string VIN; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string BodyNumber; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public string ChassisNumber; + + public CheckDKRequest() + { + } + + public CheckDKRequest(string RegNumber, string VIN, string BodyNumber, string ChassisNumber) + { + this.RegNumber = RegNumber; + this.VIN = VIN; + this.BodyNumber = BodyNumber; + this.ChassisNumber = ChassisNumber; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="CheckDKResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class CheckDKResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public bool Success; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string Number; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string DKEndDate; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public string ErrorMessage; + + public CheckDKResponse() + { + } + + public CheckDKResponse(bool Success, string Number, string DKEndDate, string ErrorMessage) + { + this.Success = Success; + this.Number = Number; + this.DKEndDate = DKEndDate; + this.ErrorMessage = ErrorMessage; + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://elt-poisk.com/")] + public partial class GetRequestInfoResponseCarInfo + { + + private string markField; + + private string modelField; + + private string vehicleYearField; + + private double vehiclePowerField; + + private TSType tSTypeField; + + private Vehicle vehicleField; + + private bool useWithTrailerField; + + private bool useWithTrailerFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Mark + { + get + { + return this.markField; + } + set + { + this.markField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Model + { + get + { + return this.modelField; + } + set + { + this.modelField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string VehicleYear + { + get + { + return this.vehicleYearField; + } + set + { + this.vehicleYearField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public double VehiclePower + { + get + { + return this.vehiclePowerField; + } + set + { + this.vehiclePowerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public TSType TSType + { + get + { + return this.tSTypeField; + } + set + { + this.tSTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public Vehicle Vehicle + { + get + { + return this.vehicleField; + } + set + { + this.vehicleField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public bool UseWithTrailer + { + get + { + return this.useWithTrailerField; + } + set + { + this.useWithTrailerField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool UseWithTrailerSpecified + { + get + { + return this.useWithTrailerFieldSpecified; + } + set + { + this.useWithTrailerFieldSpecified = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetRequestInfo", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetRequestInfoRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string OrderId; + + public GetRequestInfoRequest() + { + } + + public GetRequestInfoRequest(ELTOsago.AuthInfo AuthInfo, string OrderId) + { + this.AuthInfo = AuthInfo; + this.OrderId = OrderId; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetRequestInfoResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetRequestInfoResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public string Status; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string InsuranceCompany; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string PremiumSum; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public int InsurerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=4)] + public int OwnerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=5)] + public int ContractOptionId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=6)] + public int ContractStatusId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=7)] + public string UsagePlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=8)] + public int TSToRegistrationPlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=9)] + public System.DateTime ContractBeginDate; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=10)] + public int Duration; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=11)] + public ELTOsago.GetRequestInfoResponseCarInfo CarInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=12)] + public bool GrossViolations; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=13)] + public ELTOsago.PhysicalPerson Owner; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=14)] + public int DriversCount; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=15)] + public ELTOsago.FullDriver[] FullDriversInfo; + + public GetRequestInfoResponse() + { + } + + public GetRequestInfoResponse( + string Status, + string InsuranceCompany, + string PremiumSum, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + string UsagePlace, + int TSToRegistrationPlace, + System.DateTime ContractBeginDate, + int Duration, + ELTOsago.GetRequestInfoResponseCarInfo CarInfo, + bool GrossViolations, + ELTOsago.PhysicalPerson Owner, + int DriversCount, + ELTOsago.FullDriver[] FullDriversInfo) + { + this.Status = Status; + this.InsuranceCompany = InsuranceCompany; + this.PremiumSum = PremiumSum; + this.InsurerType = InsurerType; + this.OwnerType = OwnerType; + this.ContractOptionId = ContractOptionId; + this.ContractStatusId = ContractStatusId; + this.UsagePlace = UsagePlace; + this.TSToRegistrationPlace = TSToRegistrationPlace; + this.ContractBeginDate = ContractBeginDate; + this.Duration = Duration; + this.CarInfo = CarInfo; + this.GrossViolations = GrossViolations; + this.Owner = Owner; + this.DriversCount = DriversCount; + this.FullDriversInfo = FullDriversInfo; + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://elt-poisk.com/")] + public partial class OSAGOFullCalculationCarInfo + { + + private string markField; + + private string modelField; + + private string vehicleYearField; + + private double vehiclePowerField; + + private TSType tSTypeField; + + private Vehicle vehicleField; + + private bool useWithTrailerField; + + private bool useWithTrailerFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Mark + { + get + { + return this.markField; + } + set + { + this.markField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string Model + { + get + { + return this.modelField; + } + set + { + this.modelField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string VehicleYear + { + get + { + return this.vehicleYearField; + } + set + { + this.vehicleYearField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public double VehiclePower + { + get + { + return this.vehiclePowerField; + } + set + { + this.vehiclePowerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public TSType TSType + { + get + { + return this.tSTypeField; + } + set + { + this.tSTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public Vehicle Vehicle + { + get + { + return this.vehicleField; + } + set + { + this.vehicleField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public bool UseWithTrailer + { + get + { + return this.useWithTrailerField; + } + set + { + this.useWithTrailerField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool UseWithTrailerSpecified + { + get + { + return this.useWithTrailerFieldSpecified; + } + set + { + this.useWithTrailerFieldSpecified = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="OSAGOFullCalculation", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class OSAGOFullCalculationRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string TrafficSource; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public int UW3; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public string InsuranceCompany; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=4)] + public int InsurerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=5)] + public int OwnerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=6)] + public int ContractOptionId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=7)] + public int ContractStatusId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=8)] + public ELTOsago.PreviousPolicy PreviousPolicy; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=9)] + public string UsagePlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=10)] + public int TSToRegistrationPlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=11)] + public System.DateTime ContractBeginDate; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=12)] + public int Duration; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=13)] + public ELTOsago.OSAGOFullCalculationCarInfo CarInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=14)] + public bool GrossViolations; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=15)] + public ELTOsago.PhysicalPerson Owner; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=16)] + public int DriversCount; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=17)] + public ELTOsago.FullDriver[] FullDriversInfo; + + public OSAGOFullCalculationRequest() + { + } + + public OSAGOFullCalculationRequest( + ELTOsago.AuthInfo AuthInfo, + string TrafficSource, + int UW3, + string InsuranceCompany, + int InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + ELTOsago.PreviousPolicy PreviousPolicy, + string UsagePlace, + int TSToRegistrationPlace, + System.DateTime ContractBeginDate, + int Duration, + ELTOsago.OSAGOFullCalculationCarInfo CarInfo, + bool GrossViolations, + ELTOsago.PhysicalPerson Owner, + int DriversCount, + ELTOsago.FullDriver[] FullDriversInfo) + { + this.AuthInfo = AuthInfo; + this.TrafficSource = TrafficSource; + this.UW3 = UW3; + this.InsuranceCompany = InsuranceCompany; + this.InsurerType = InsurerType; + this.OwnerType = OwnerType; + this.ContractOptionId = ContractOptionId; + this.ContractStatusId = ContractStatusId; + this.PreviousPolicy = PreviousPolicy; + this.UsagePlace = UsagePlace; + this.TSToRegistrationPlace = TSToRegistrationPlace; + this.ContractBeginDate = ContractBeginDate; + this.Duration = Duration; + this.CarInfo = CarInfo; + this.GrossViolations = GrossViolations; + this.Owner = Owner; + this.DriversCount = DriversCount; + this.FullDriversInfo = FullDriversInfo; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="OSAGOFullCalculationResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class OSAGOFullCalculationResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public int NumCalc; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public double PremiumSum; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public double Tb; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + [System.Xml.Serialization.XmlArrayItemAttribute("Param")] + public ELTOsago.CalcInfo[] CalcInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=4)] + public string Message; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=5)] + public string Error; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=6)] + public string RSARequestId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=7)] + public ELTOsago.KBM KBM; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=8)] + public ELTOsago.KBM PrevoiusKBM; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=9)] + [System.Xml.Serialization.XmlArrayItemAttribute("FullDriver")] + public ELTOsago.PersonWithKBM[] FullDriversInfo; + + public OSAGOFullCalculationResponse() + { + } + + public OSAGOFullCalculationResponse(int NumCalc, double PremiumSum, double Tb, ELTOsago.CalcInfo[] CalcInfo, string Message, string Error, string RSARequestId, ELTOsago.KBM KBM, ELTOsago.KBM PrevoiusKBM, ELTOsago.PersonWithKBM[] FullDriversInfo) + { + this.NumCalc = NumCalc; + this.PremiumSum = PremiumSum; + this.Tb = Tb; + this.CalcInfo = CalcInfo; + this.Message = Message; + this.Error = Error; + this.RSARequestId = RSARequestId; + this.KBM = KBM; + this.PrevoiusKBM = PrevoiusKBM; + this.FullDriversInfo = FullDriversInfo; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="OSAGOSave", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class OSAGOSaveRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string NumCalc; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string Login; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public string TrafficSource; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=4)] + public int UW3; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=5)] + public string InsuranceCompany; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=6)] + public int InsurerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=7)] + public int OwnerType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=8)] + public int ContractOptionId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=9)] + public int ContractStatusId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=10)] + public string UsagePlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=11)] + public int TSToRegistrationPlace; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=12)] + public ELTOsago.TSType TSType; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=13)] + public bool UseWithTrailer; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=14)] + public double VehiclePower; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=15)] + public int Duration; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=16)] + public int DriversCount; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=17)] + public ELTOsago.Driver[] Drivers; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=18)] + public string BonusMalus; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=19)] + public string KBM; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=20)] + public bool GrossViolations; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=21)] + public string VehicleYear; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=22)] + public string Mark; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=23)] + public string Model; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=24)] + public ELTOsago.Modification Modification; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=25)] + public string MarkPTS; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=26)] + public string ModelPTS; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=27)] + public ELTOsago.Vehicle Vehicle; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=28)] + public ELTOsago.RegDoc RegDoc; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=29)] + public ELTOsago.TechnicalInspection TechnicalInspection; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=30)] + public int PurposeUse; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=31)] + public bool IsRental; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=32)] + public ELTOsago.PreviousPolicy PreviousPolicy; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=33)] + public ELTOsago.PhysicalPerson Insurer; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=34)] + public ELTOsago.PhysicalPerson Owner; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=35)] + public ELTOsago.FullDriver[] FullDriversInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=36)] + public System.DateTime ContractBegin; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=37)] + public System.DateTime ContractEnd; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=38)] + public System.DateTime ContractSign; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=39)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable FirstPeriodStart; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=40)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable FirstPeriodEnd; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=41)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable SecondPeriodStart; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=42)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable SecondPeriodEnd; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=43)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable ThirdPeriodStart; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=44)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public System.Nullable ThirdPeriodEnd; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=45)] + public string PolicyNumber; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=46)] + public ELTOsago.BSO BSO; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=47)] + public ELTOsago.A7 A7; + + public OSAGOSaveRequest() + { + } + + public OSAGOSaveRequest( + ELTOsago.AuthInfo AuthInfo, + string NumCalc, + string Login, + string TrafficSource, + int UW3, + 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, + 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 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) + { + this.AuthInfo = AuthInfo; + this.NumCalc = NumCalc; + this.Login = Login; + this.TrafficSource = TrafficSource; + this.UW3 = UW3; + this.InsuranceCompany = InsuranceCompany; + this.InsurerType = InsurerType; + this.OwnerType = OwnerType; + this.ContractOptionId = ContractOptionId; + this.ContractStatusId = ContractStatusId; + this.UsagePlace = UsagePlace; + this.TSToRegistrationPlace = TSToRegistrationPlace; + this.TSType = TSType; + this.UseWithTrailer = UseWithTrailer; + this.VehiclePower = VehiclePower; + this.Duration = Duration; + this.DriversCount = DriversCount; + this.Drivers = Drivers; + this.BonusMalus = BonusMalus; + this.KBM = KBM; + this.GrossViolations = GrossViolations; + this.VehicleYear = VehicleYear; + this.Mark = Mark; + this.Model = Model; + this.Modification = Modification; + this.MarkPTS = MarkPTS; + this.ModelPTS = ModelPTS; + this.Vehicle = Vehicle; + this.RegDoc = RegDoc; + this.TechnicalInspection = TechnicalInspection; + this.PurposeUse = PurposeUse; + this.IsRental = IsRental; + this.PreviousPolicy = PreviousPolicy; + this.Insurer = Insurer; + this.Owner = Owner; + this.FullDriversInfo = FullDriversInfo; + this.ContractBegin = ContractBegin; + this.ContractEnd = ContractEnd; + this.ContractSign = ContractSign; + this.FirstPeriodStart = FirstPeriodStart; + this.FirstPeriodEnd = FirstPeriodEnd; + this.SecondPeriodStart = SecondPeriodStart; + this.SecondPeriodEnd = SecondPeriodEnd; + this.ThirdPeriodStart = ThirdPeriodStart; + this.ThirdPeriodEnd = ThirdPeriodEnd; + this.PolicyNumber = PolicyNumber; + this.BSO = BSO; + this.A7 = A7; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="OSAGOSaveResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class OSAGOSaveResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.OSAGOSaveResult Results; + + public OSAGOSaveResponse() + { + } + + public OSAGOSaveResponse(ELTOsago.OSAGOSaveResult Results) + { + this.Results = Results; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="AnnulOSAGO", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class AnnulOSAGORequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string OrderId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string ContractStatusTypeId; + + public AnnulOSAGORequest() + { + } + + public AnnulOSAGORequest(ELTOsago.AuthInfo AuthInfo, string OrderId, string ContractStatusTypeId) + { + this.AuthInfo = AuthInfo; + this.OrderId = OrderId; + this.ContractStatusTypeId = ContractStatusTypeId; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="AnnulOSAGOResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class AnnulOSAGOResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public int AnnulOSAGOResult; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string ErrorMessage; + + public AnnulOSAGOResponse() + { + } + + public AnnulOSAGOResponse(int AnnulOSAGOResult, string ErrorMessage) + { + this.AnnulOSAGOResult = AnnulOSAGOResult; + this.ErrorMessage = ErrorMessage; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetNewSubjectIds", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetNewSubjectIdsRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public int SubjectsCount; + + public GetNewSubjectIdsRequest() + { + } + + public GetNewSubjectIdsRequest(ELTOsago.AuthInfo AuthInfo, int SubjectsCount) + { + this.AuthInfo = AuthInfo; + this.SubjectsCount = SubjectsCount; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetNewSubjectIdsResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetNewSubjectIdsResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + [System.Xml.Serialization.XmlElementAttribute("SubjectId")] + public int[] SubjectId; + + public GetNewSubjectIdsResponse() + { + } + + public GetNewSubjectIdsResponse(int[] SubjectId) + { + this.SubjectId = SubjectId; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetRegionsExt", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetRegionsExtRequest + { + + public GetRegionsExtRequest() + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetRegionsExtResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetRegionsExtResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + [System.Xml.Serialization.XmlArrayItemAttribute("Region")] + public ELTOsago.RegionExtended[] GetRegionsExtResult; + + public GetRegionsExtResponse() + { + } + + public GetRegionsExtResponse(ELTOsago.RegionExtended[] GetRegionsExtResult) + { + this.GetRegionsExtResult = GetRegionsExtResult; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetLocalitiesExt", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetLocalitiesExtRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public string RegionId; + + public GetLocalitiesExtRequest() + { + } + + public GetLocalitiesExtRequest(string RegionId) + { + this.RegionId = RegionId; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="GetLocalitiesExtResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class GetLocalitiesExtResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + [System.Xml.Serialization.XmlArrayItemAttribute("Locality")] + public ELTOsago.LocalityExtended[] GetLocalitiesExtResult; + + public GetLocalitiesExtResponse() + { + } + + public GetLocalitiesExtResponse(ELTOsago.LocalityExtended[] GetLocalitiesExtResult) + { + this.GetLocalitiesExtResult = GetLocalitiesExtResult; + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://elt-poisk.com/")] + public partial class ChangeStatusPolicyResponseResponseStatus + { + + private string errorField; + + private string errorMsgField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string Error + { + get + { + return this.errorField; + } + set + { + this.errorField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string ErrorMsg + { + get + { + return this.errorMsgField; + } + set + { + this.errorMsgField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="ChangeStatusPolicy", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class ChangeStatusPolicyRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public ELTOsago.AuthInfo AuthInfo; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public string Login; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=2)] + public string OrderId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=3)] + public string StatusId; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=4)] + public string PolicyNumber; + + public ChangeStatusPolicyRequest() + { + } + + public ChangeStatusPolicyRequest(ELTOsago.AuthInfo AuthInfo, string Login, string OrderId, string StatusId, string PolicyNumber) + { + this.AuthInfo = AuthInfo; + this.Login = Login; + this.OrderId = OrderId; + this.StatusId = StatusId; + this.PolicyNumber = PolicyNumber; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="ChangeStatusPolicyResponse", WrapperNamespace="http://elt-poisk.com/", IsWrapped=true)] + public partial class ChangeStatusPolicyResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=0)] + public bool Success; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://elt-poisk.com/", Order=1)] + public ELTOsago.ChangeStatusPolicyResponseResponseStatus ResponseStatus; + + public ChangeStatusPolicyResponse() + { + } + + public ChangeStatusPolicyResponse(bool Success, ELTOsago.ChangeStatusPolicyResponseResponseStatus ResponseStatus) + { + this.Success = Success; + this.ResponseStatus = ResponseStatus; + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + public interface EltSoapChannel : ELTOsago.EltSoap, System.ServiceModel.IClientChannel + { + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + public partial class EltSoapClient : System.ServiceModel.ClientBase, ELTOsago.EltSoap + { + + /// + /// Implement this partial method to configure the service endpoint. + /// + /// The endpoint to configure + /// The client credentials + static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); + + public EltSoapClient() : + base(EltSoapClient.GetDefaultBinding(), EltSoapClient.GetDefaultEndpointAddress()) + { + this.Endpoint.Name = EndpointConfiguration.EltSoap.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public EltSoapClient(EndpointConfiguration endpointConfiguration) : + base(EltSoapClient.GetBindingForEndpoint(endpointConfiguration), EltSoapClient.GetEndpointAddress(endpointConfiguration)) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public EltSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : + base(EltSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public EltSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : + base(EltSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public EltSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + 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, + 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.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 InsurerType, + int OwnerType, + int ContractOptionId, + int ContractStatusId, + ELTOsago.PreviousPolicy PreviousPolicy, + string UsagePlace, + int TSToRegistrationPlace, + System.DateTime ContractBeginDate, + int Duration, + ELTOsago.OSAGOFullCalculationCarInfo CarInfo, + bool GrossViolations, + ELTOsago.PhysicalPerson Owner, + int DriversCount, + ELTOsago.FullDriver[] FullDriversInfo, + 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.InsurerType = InsurerType; + inValue.OwnerType = OwnerType; + inValue.ContractOptionId = ContractOptionId; + inValue.ContractStatusId = ContractStatusId; + inValue.PreviousPolicy = PreviousPolicy; + inValue.UsagePlace = UsagePlace; + inValue.TSToRegistrationPlace = TSToRegistrationPlace; + inValue.ContractBeginDate = ContractBeginDate; + inValue.Duration = Duration; + inValue.CarInfo = CarInfo; + inValue.GrossViolations = GrossViolations; + inValue.Owner = Owner; + inValue.DriversCount = DriversCount; + inValue.FullDriversInfo = FullDriversInfo; + ELTOsago.OSAGOFullCalculationResponse retVal = ((ELTOsago.EltSoap)(this)).OSAGOFullCalculation(inValue); + 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 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, + 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 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.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.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.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) + { + return base.Channel.OSAGOSaveAsync(request); + } + + public System.Threading.Tasks.Task OSAGOSaveAsync( + ELTOsago.AuthInfo AuthInfo, + string NumCalc, + string Login, + string TrafficSource, + int UW3, + 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, + 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 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.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.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.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; + 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.AnnulOSAGOResponse ELTOsago.EltSoap.AnnulOSAGO(ELTOsago.AnnulOSAGORequest request) + { + return base.Channel.AnnulOSAGO(request); + } + + public int AnnulOSAGO(ELTOsago.AuthInfo AuthInfo, string OrderId, string ContractStatusTypeId, out string ErrorMessage) + { + ELTOsago.AnnulOSAGORequest inValue = new ELTOsago.AnnulOSAGORequest(); + inValue.AuthInfo = AuthInfo; + inValue.OrderId = OrderId; + inValue.ContractStatusTypeId = ContractStatusTypeId; + ELTOsago.AnnulOSAGOResponse retVal = ((ELTOsago.EltSoap)(this)).AnnulOSAGO(inValue); + ErrorMessage = retVal.ErrorMessage; + return retVal.AnnulOSAGOResult; + } + + public System.Threading.Tasks.Task AnnulOSAGOAsync(ELTOsago.AnnulOSAGORequest request) + { + return base.Channel.AnnulOSAGOAsync(request); + } + + public ELTOsago.DictionaryElement[] GetAvailablePrintForms(ELTOsago.AuthInfo AuthInfo, string OrderId) + { + return base.Channel.GetAvailablePrintForms(AuthInfo, OrderId); + } + + public System.Threading.Tasks.Task GetAvailablePrintFormsAsync(ELTOsago.AuthInfo AuthInfo, string OrderId) + { + return base.Channel.GetAvailablePrintFormsAsync(AuthInfo, OrderId); + } + + public ELTOsago.DictionaryElement GetPrintForm(ELTOsago.AuthInfo AuthInfo, string OrderId, string FormId) + { + return base.Channel.GetPrintForm(AuthInfo, OrderId, FormId); + } + + public System.Threading.Tasks.Task GetPrintFormAsync(ELTOsago.AuthInfo AuthInfo, string OrderId, string FormId) + { + return base.Channel.GetPrintFormAsync(AuthInfo, OrderId, FormId); + } + + [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) + { + return base.Channel.GetNewSubjectIdsAsync(request); + } + + public System.Threading.Tasks.Task GetNewSubjectIdsAsync(ELTOsago.AuthInfo AuthInfo, int SubjectsCount) + { + ELTOsago.GetNewSubjectIdsRequest inValue = new ELTOsago.GetNewSubjectIdsRequest(); + inValue.AuthInfo = AuthInfo; + inValue.SubjectsCount = SubjectsCount; + 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) + { + return base.Channel.GetRegionsExtAsync(request); + } + + public System.Threading.Tasks.Task GetRegionsExtAsync() + { + ELTOsago.GetRegionsExtRequest inValue = new ELTOsago.GetRegionsExtRequest(); + 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) + { + return base.Channel.GetLocalitiesExtAsync(request); + } + + public System.Threading.Tasks.Task GetLocalitiesExtAsync(string RegionId) + { + ELTOsago.GetLocalitiesExtRequest inValue = new ELTOsago.GetLocalitiesExtRequest(); + inValue.RegionId = RegionId; + 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, 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); + ResponseStatus = retVal.ResponseStatus; + return retVal.Success; + } + + public System.Threading.Tasks.Task ChangeStatusPolicyAsync(ELTOsago.ChangeStatusPolicyRequest request) + { + return base.Channel.ChangeStatusPolicyAsync(request); + } + + public virtual System.Threading.Tasks.Task OpenAsync() + { + return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen)); + } + + public virtual System.Threading.Tasks.Task CloseAsync() + { + return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose)); + } + + private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) + { + if ((endpointConfiguration == EndpointConfiguration.EltSoap)) + { + System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); + result.MaxBufferSize = int.MaxValue; + result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; + result.MaxReceivedMessageSize = int.MaxValue; + result.AllowCookies = true; + return result; + } + throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); + } + + private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) + { + if ((endpointConfiguration == EndpointConfiguration.EltSoap)) + { + return new System.ServiceModel.EndpointAddress("http://evolucia.elt-poisk.com/soaposago.php"); + } + throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); + } + + private static System.ServiceModel.Channels.Binding GetDefaultBinding() + { + return EltSoapClient.GetBindingForEndpoint(EndpointConfiguration.EltSoap); + } + + private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() + { + return EltSoapClient.GetEndpointAddress(EndpointConfiguration.EltSoap); + } + + public enum EndpointConfiguration + { + + EltSoap, + } + } +} diff --git a/ELT.Client/Kasko/KaskoManager.cs b/ELT.Client/Kasko/KaskoManager.cs index b28fcdd..9a25318 100644 --- a/ELT.Client/Kasko/KaskoManager.cs +++ b/ELT.Client/Kasko/KaskoManager.cs @@ -15,7 +15,7 @@ namespace ELT.Client.Kasko _eltKaskoSoap = new EltSoapClient(); } - public Dictionary CalculateKasko(CalculateKaskoRequest calculateKaskoRequest) + public Dictionary CalculateKasko(CalculateKaskoRequest calculateKaskoRequest) { var authInfo = new AuthInfo { @@ -63,7 +63,7 @@ namespace ELT.Client.Kasko //CAR - var result = new Dictionary(); + var result = new Dictionary(); foreach (var companyId in calculateKaskoRequest.CompanyIds) try { @@ -74,6 +74,7 @@ namespace ELT.Client.Kasko } catch (Exception e) { + throw e; } return result; diff --git a/ELT/Controllers/KaskoController.cs b/ELT/Controllers/KaskoController.cs index 8b3382c..574bf8b 100644 --- a/ELT/Controllers/KaskoController.cs +++ b/ELT/Controllers/KaskoController.cs @@ -1,5 +1,7 @@ -using ELT.Client.Kasko; +using System.Collections.Generic; +using ELT.Client.Kasko; using ELT.Models; +using ELTKasko; using Microsoft.AspNetCore.Mvc; namespace ELT.Controllers @@ -9,11 +11,11 @@ namespace ELT.Controllers public class KaskoController : ControllerBase { [HttpPost("[action]")] - public ActionResult CalculateKasko([FromBody] CalculateKaskoRequest calculateKaskoRequest) + public ActionResult> CalculateKasko( + [FromBody] CalculateKaskoRequest calculateKaskoRequest) { var kaskoManager = new KaskoManager(); - var res = kaskoManager.CalculateKasko(calculateKaskoRequest); - return res; + return kaskoManager.CalculateKasko(calculateKaskoRequest); } } } \ No newline at end of file