Browse Source

changes for #17034

Mobile-pdf
shakun 1 year ago
parent
commit
475d168a34
  1. 110
      Business/Addressy/LocateBusiness.cs
  2. 41
      Business/Addressy/ServiceApi.cs
  3. 32
      Business/Business.csproj
  4. 10
      Business/Connected Services/api.addressy/Business.api.addressy.Capture_Interactive_Find_v1_10Response.datasource
  5. 10
      Business/Connected Services/api.addressy/Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults.datasource
  6. 288
      Business/Connected Services/api.addressy/Reference.cs
  7. 31
      Business/Connected Services/api.addressy/Reference.svcmap
  8. 10
      Business/Connected Services/api.addressy/configuration.svcinfo
  9. 201
      Business/Connected Services/api.addressy/configuration91.svcinfo
  10. 74
      Business/Connected Services/api.addressy/wsdlnew.wsdl
  11. 2
      Business/Mobile/IMobileServices.cs
  12. 233
      Business/Mobile/MobileServices.cs
  13. 13
      Business/app.config
  14. 6
      Checklist.txt
  15. 2
      Common/Common.csproj
  16. 23
      Common/Helper/Utilities.cs
  17. 25
      Common/Model/Addressy/Address.cs
  18. 23
      Common/Model/Addressy/QueryAddressDto.cs
  19. 4
      Common/Model/CustomerRegister/CustomerKYCModel.cs
  20. 22
      Common/Model/CustomerRegister/NewUserRegisterModel.cs
  21. 2
      Common/Model/KycStaticData.cs
  22. 22
      Common/Model/RewardFee.cs
  23. 10
      Common/Model/StaticData.cs
  24. 4
      Common/app.config
  25. 1
      JsonRx/Api/MobileController.cs
  26. 23
      JsonRx/ApiV3/CustomerV2Controller.cs
  27. 40
      JsonRx/Config/KycConfig.json
  28. 27
      JsonRx/Config/Payment.json
  29. 4
      JsonRx/Config/ResponseMsg.json
  30. 3
      JsonRx/JsonRx.csproj
  31. 51
      JsonRx/Web.config
  32. 2
      Repository/Mobile/IMobileServicesRepo.cs
  33. 35
      Repository/Mobile/MobileServicesRepo.cs

110
Business/Addressy/LocateBusiness.cs

@ -0,0 +1,110 @@
using Business.api.addressy;
using Common;
using Common.Model;
using Common.Model.Addressy;
using log4net;
using Repository;
using Repository.Mobile;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business.Addressy
{
public class LocateBusiness
{
private static readonly ILog Log = LogManager.GetLogger(typeof(LocateBusiness));
ServiceApi serviceApi { get; set; }
public LocateBusiness()
{
serviceApi = new ServiceApi();
}
public JsonRxResponse QueryAddress(string postCode)
{
JsonRxResponse rxResponse = new JsonRxResponse() { ErrorCode = "1", Msg = "No Data found" };
var results = serviceApi.Find_v1_10(postCode);
Log.Debug(Newtonsoft.Json.JsonConvert.SerializeObject(results));
if (results != null && results.Any())
{
var single = results.FirstOrDefault();
if (single != null && single.Type.Equals("Postcode"))
{
rxResponse.ErrorCode = "0";
rxResponse.Msg = "Post code found";
var result2 = serviceApi.Find_v1_10(postCode, single.Id);
QueryResponse queryResponsse = new QueryResponse();
queryResponsse.Addresses = new List<Address>();
foreach (Capture_Interactive_Find_v1_10_Results item in result2)
{
queryResponsse.Addresses.Add(new Address()
{
Id = item.Id,
Type = item.Type,
Address1 = item.Text,
City = item.Description.Substring(0, item.Description.LastIndexOf(","))
});
}
rxResponse.Data = queryResponsse;
}
}
else
{
rxResponse.Msg = "No result!";
}
return rxResponse;
}
public QueryResponse LoadKycStaticData()
{
QueryResponse queryResponse = new QueryResponse();
var sql = "EXEC proc_mobile_StaticData @flag='Query-Address'";
Dao _dao = new Dao();
var ds = _dao.ExecuteDataset(sql);
if (ds.Tables.Count == 2)
{
var nativeCountry = ds.Tables[0];
var ncr = from nc in nativeCountry.AsEnumerable()
select new NativeCountry
{
id = nc.Field<int>("id").ToString(),
text = nc.Field<string>("text"),
code = nc.Field<string>("Code")
};
queryResponse.NativeCountry = ncr.ToList();
var gender = ds.Tables[1];
var g = from gd in gender.AsEnumerable()
select new Gender
{
id = gd.Field<int>("id").ToString(),
text = gd.Field<string>("text"),
};
queryResponse.Gender = g.ToList();
}
return queryResponse;
}
}
}

41
Business/Addressy/ServiceApi.cs

@ -0,0 +1,41 @@
using Business.api.addressy;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business.Addressy
{
public class ServiceApi
{
public string _key { get; set; }
api.addressy.PostcodeAnywhere_SoapClient _SoapClient { get; set; }
public ServiceApi()
{
_key = ConfigurationManager.AppSettings["loqatekey"].ToString();
_SoapClient = new api.addressy.PostcodeAnywhere_SoapClient();
}
public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search)
{
return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, null, null, "GB", 20, "en-gb", false, "", "");
}
public Capture_Interactive_Find_v1_10_ArrayOfResults Find_v1_10(string search, string container)
{
return _SoapClient.Capture_Interactive_Find_v1_10(_key, search, true, container, "", "GB", 20, "en-gb", false, "", "");
}
}
}

32
Business/Business.csproj

@ -61,6 +61,8 @@
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll</HintPath> <HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll</HintPath>
</Reference> </Reference>
<Reference Include="System.Net.Http.WebRequest" /> <Reference Include="System.Net.Http.WebRequest" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
@ -73,12 +75,19 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Addressy\LocateBusiness.cs" />
<Compile Include="Addressy\ServiceApi.cs" />
<Compile Include="Authentication\AuthenticationBusiness.cs" /> <Compile Include="Authentication\AuthenticationBusiness.cs" />
<Compile Include="Authentication\IAuthenticationBusiness.cs" /> <Compile Include="Authentication\IAuthenticationBusiness.cs" />
<Compile Include="AutoRefund\AutoRefundBusiness.cs" /> <Compile Include="AutoRefund\AutoRefundBusiness.cs" />
<Compile Include="AutoRefund\IAutoRefundBusiness.cs" /> <Compile Include="AutoRefund\IAutoRefundBusiness.cs" />
<Compile Include="BalanceTransfer\BalanceTransferBusiness.cs" /> <Compile Include="BalanceTransfer\BalanceTransferBusiness.cs" />
<Compile Include="BalanceTransfer\IBalanceTransferBusiness.cs" /> <Compile Include="BalanceTransfer\IBalanceTransferBusiness.cs" />
<Compile Include="Connected Services\api.addressy\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="Inbound\InboundBusiness.cs" /> <Compile Include="Inbound\InboundBusiness.cs" />
<Compile Include="Inbound\InboundPennyTestBusiness.cs" /> <Compile Include="Inbound\InboundPennyTestBusiness.cs" />
<Compile Include="KFTCBusiness\IKftcProcessBusiness.cs" /> <Compile Include="KFTCBusiness\IKftcProcessBusiness.cs" />
@ -135,6 +144,13 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config" />
<None Include="Connected Services\api.addressy\Business.api.addressy.Capture_Interactive_Find_v1_10Response.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\api.addressy\Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\api.addressy\wsdlnew.wsdl" />
<None Include="packages.config"> <None Include="packages.config">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</None> </None>
@ -142,7 +158,21 @@
<ItemGroup> <ItemGroup>
<WCFMetadata Include="Connected Services\" /> <WCFMetadata Include="Connected Services\" />
</ItemGroup> </ItemGroup>
<ItemGroup />
<ItemGroup>
<WCFMetadataStorage Include="Connected Services\api.addressy\" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\api.addressy\configuration91.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\api.addressy\configuration.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\api.addressy\Reference.svcmap">
<Generator>WCF Proxy Generator</Generator>
<LastGenOutput>Reference.cs</LastGenOutput>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" /> <Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''"> <Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">

10
Business/Connected Services/api.addressy/Business.api.addressy.Capture_Interactive_Find_v1_10Response.datasource

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="Capture_Interactive_Find_v1_10Response" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>Business.api.addressy.Capture_Interactive_Find_v1_10Response, Connected Services.api.addressy.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

10
Business/Connected Services/api.addressy/Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults.datasource

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="Capture_Interactive_Find_v1_10_ArrayOfResults" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults, Connected Services.api.addressy.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

288
Business/Connected Services/api.addressy/Reference.cs

@ -0,0 +1,288 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Business.api.addressy {
using System.Runtime.Serialization;
using System;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="Capture_Interactive_Find_v1_10_ArrayOfResults", Namespace="http://services.postcodeanywhere.co.uk/", ItemName="Capture_Interactive_Find_v1_10_Results")]
[System.SerializableAttribute()]
public class Capture_Interactive_Find_v1_10_ArrayOfResults : System.Collections.Generic.List<Business.api.addressy.Capture_Interactive_Find_v1_10_Results> {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="Capture_Interactive_Find_v1_10_Results", Namespace="http://services.postcodeanywhere.co.uk/")]
[System.SerializableAttribute()]
public partial class Capture_Interactive_Find_v1_10_Results : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
[System.NonSerializedAttribute()]
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string IdField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TypeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string TextField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string HighlightField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string DescriptionField;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
return this.extensionDataField;
}
set {
this.extensionDataField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
public string Id {
get {
return this.IdField;
}
set {
if ((object.ReferenceEquals(this.IdField, value) != true)) {
this.IdField = value;
this.RaisePropertyChanged("Id");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
public string Type {
get {
return this.TypeField;
}
set {
if ((object.ReferenceEquals(this.TypeField, value) != true)) {
this.TypeField = value;
this.RaisePropertyChanged("Type");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
public string Text {
get {
return this.TextField;
}
set {
if ((object.ReferenceEquals(this.TextField, value) != true)) {
this.TextField = value;
this.RaisePropertyChanged("Text");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
public string Highlight {
get {
return this.HighlightField;
}
set {
if ((object.ReferenceEquals(this.HighlightField, value) != true)) {
this.HighlightField = value;
this.RaisePropertyChanged("Highlight");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)]
public string Description {
get {
return this.DescriptionField;
}
set {
if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
this.DescriptionField = value;
this.RaisePropertyChanged("Description");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="http://services.postcodeanywhere.co.uk/", ConfigurationName="api.addressy.PostcodeAnywhere_Soap")]
public interface PostcodeAnywhere_Soap {
// CODEGEN: Generating message contract since the wrapper name (Capture_Interactive_Find_v1_10_Response) of message Capture_Interactive_Find_v1_10Response does not match the default value (Capture_Interactive_Find_v1_10)
[System.ServiceModel.OperationContractAttribute(Action="http://services.postcodeanywhere.co.uk/Capture_Interactive_Find_v1_10", ReplyAction="*")]
Business.api.addressy.Capture_Interactive_Find_v1_10Response Capture_Interactive_Find_v1_10(Business.api.addressy.Capture_Interactive_Find_v1_10Request request);
[System.ServiceModel.OperationContractAttribute(Action="http://services.postcodeanywhere.co.uk/Capture_Interactive_Find_v1_10", ReplyAction="*")]
System.Threading.Tasks.Task<Business.api.addressy.Capture_Interactive_Find_v1_10Response> Capture_Interactive_Find_v1_10Async(Business.api.addressy.Capture_Interactive_Find_v1_10Request request);
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="Capture_Interactive_Find_v1_10", WrapperNamespace="http://services.postcodeanywhere.co.uk/", IsWrapped=true)]
public partial class Capture_Interactive_Find_v1_10Request {
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=0)]
public string Key;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=1)]
public string Text;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=2)]
public bool IsMiddleware;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=3)]
public string Container;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=4)]
public string Origin;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=5)]
public string Countries;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=6)]
public int Limit;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=7)]
public string Language;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=8)]
public bool Bias;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=9)]
public string Filters;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=10)]
public string GeoFence;
public Capture_Interactive_Find_v1_10Request() {
}
public Capture_Interactive_Find_v1_10Request(string Key, string Text, bool IsMiddleware, string Container, string Origin, string Countries, int Limit, string Language, bool Bias, string Filters, string GeoFence) {
this.Key = Key;
this.Text = Text;
this.IsMiddleware = IsMiddleware;
this.Container = Container;
this.Origin = Origin;
this.Countries = Countries;
this.Limit = Limit;
this.Language = Language;
this.Bias = Bias;
this.Filters = Filters;
this.GeoFence = GeoFence;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="Capture_Interactive_Find_v1_10_Response", WrapperNamespace="http://services.postcodeanywhere.co.uk/", IsWrapped=true)]
public partial class Capture_Interactive_Find_v1_10Response {
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://services.postcodeanywhere.co.uk/", Order=0)]
public Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults Capture_Interactive_Find_v1_10_Result;
public Capture_Interactive_Find_v1_10Response() {
}
public Capture_Interactive_Find_v1_10Response(Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults Capture_Interactive_Find_v1_10_Result) {
this.Capture_Interactive_Find_v1_10_Result = Capture_Interactive_Find_v1_10_Result;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface PostcodeAnywhere_SoapChannel : Business.api.addressy.PostcodeAnywhere_Soap, System.ServiceModel.IClientChannel {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class PostcodeAnywhere_SoapClient : System.ServiceModel.ClientBase<Business.api.addressy.PostcodeAnywhere_Soap>, Business.api.addressy.PostcodeAnywhere_Soap {
public PostcodeAnywhere_SoapClient() {
}
public PostcodeAnywhere_SoapClient(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public PostcodeAnywhere_SoapClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public PostcodeAnywhere_SoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public PostcodeAnywhere_SoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Business.api.addressy.Capture_Interactive_Find_v1_10Response Business.api.addressy.PostcodeAnywhere_Soap.Capture_Interactive_Find_v1_10(Business.api.addressy.Capture_Interactive_Find_v1_10Request request) {
return base.Channel.Capture_Interactive_Find_v1_10(request);
}
public Business.api.addressy.Capture_Interactive_Find_v1_10_ArrayOfResults Capture_Interactive_Find_v1_10(string Key, string Text, bool IsMiddleware, string Container, string Origin, string Countries, int Limit, string Language, bool Bias, string Filters, string GeoFence) {
Business.api.addressy.Capture_Interactive_Find_v1_10Request inValue = new Business.api.addressy.Capture_Interactive_Find_v1_10Request();
inValue.Key = Key;
inValue.Text = Text;
inValue.IsMiddleware = IsMiddleware;
inValue.Container = Container;
inValue.Origin = Origin;
inValue.Countries = Countries;
inValue.Limit = Limit;
inValue.Language = Language;
inValue.Bias = Bias;
inValue.Filters = Filters;
inValue.GeoFence = GeoFence;
Business.api.addressy.Capture_Interactive_Find_v1_10Response retVal = ((Business.api.addressy.PostcodeAnywhere_Soap)(this)).Capture_Interactive_Find_v1_10(inValue);
return retVal.Capture_Interactive_Find_v1_10_Result;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task<Business.api.addressy.Capture_Interactive_Find_v1_10Response> Business.api.addressy.PostcodeAnywhere_Soap.Capture_Interactive_Find_v1_10Async(Business.api.addressy.Capture_Interactive_Find_v1_10Request request) {
return base.Channel.Capture_Interactive_Find_v1_10Async(request);
}
public System.Threading.Tasks.Task<Business.api.addressy.Capture_Interactive_Find_v1_10Response> Capture_Interactive_Find_v1_10Async(string Key, string Text, bool IsMiddleware, string Container, string Origin, string Countries, int Limit, string Language, bool Bias, string Filters, string GeoFence) {
Business.api.addressy.Capture_Interactive_Find_v1_10Request inValue = new Business.api.addressy.Capture_Interactive_Find_v1_10Request();
inValue.Key = Key;
inValue.Text = Text;
inValue.IsMiddleware = IsMiddleware;
inValue.Container = Container;
inValue.Origin = Origin;
inValue.Countries = Countries;
inValue.Limit = Limit;
inValue.Language = Language;
inValue.Bias = Bias;
inValue.Filters = Filters;
inValue.GeoFence = GeoFence;
return ((Business.api.addressy.PostcodeAnywhere_Soap)(this)).Capture_Interactive_Find_v1_10Async(inValue);
}
}
}

31
Business/Connected Services/api.addressy/Reference.svcmap

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="781e5d4b-7ceb-46d7-9f81-191604c9114d" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
<ClientOptions>
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
<GenerateTaskBasedAsynchronousMethod>true</GenerateTaskBasedAsynchronousMethod>
<EnableDataBinding>true</EnableDataBinding>
<ExcludedTypes />
<ImportXmlTypes>false</ImportXmlTypes>
<GenerateInternalTypes>false</GenerateInternalTypes>
<GenerateMessageContracts>false</GenerateMessageContracts>
<NamespaceMappings />
<CollectionMappings />
<GenerateSerializableTypes>true</GenerateSerializableTypes>
<Serializer>Auto</Serializer>
<UseSerializerForFaults>true</UseSerializerForFaults>
<ReferenceAllAssemblies>true</ReferenceAllAssemblies>
<ReferencedAssemblies />
<ReferencedDataContractTypes />
<ServiceContractMappings />
</ClientOptions>
<MetadataSources>
<MetadataSource Address="https://api.addressy.com/Capture/Interactive/Find/v1.1/wsdlnew.ws" Protocol="http" SourceId="1" />
</MetadataSources>
<Metadata>
<MetadataFile FileName="wsdlnew.wsdl" MetadataType="Wsdl" ID="23633b6a-8052-4941-8292-f4a6b30fc610" SourceId="1" SourceUrl="https://api.addressy.com/Capture/Interactive/Find/v1.1/wsdlnew.ws" />
</Metadata>
<Extensions>
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
<ExtensionFile FileName="configuration.svcinfo" Name="configuration.svcinfo" />
</Extensions>
</ReferenceGroup>

10
Business/Connected Services/api.addressy/configuration.svcinfo

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configurationSnapshot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
<behaviors />
<bindings>
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data name=&quot;PostcodeAnywhere_Soap&quot; /&gt;" bindingType="basicHttpBinding" name="PostcodeAnywhere_Soap" />
</bindings>
<endpoints>
<endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;PostcodeAnywhere_Soap&quot; contract=&quot;api.addressy.PostcodeAnywhere_Soap&quot; name=&quot;PostcodeAnywhere_Soap&quot; /&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws&quot; binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;PostcodeAnywhere_Soap&quot; contract=&quot;api.addressy.PostcodeAnywhere_Soap&quot; name=&quot;PostcodeAnywhere_Soap&quot; /&gt;" contractName="api.addressy.PostcodeAnywhere_Soap" name="PostcodeAnywhere_Soap" />
</endpoints>
</configurationSnapshot>

201
Business/Connected Services/api.addressy/configuration91.svcinfo

@ -0,0 +1,201 @@
<?xml version="1.0" encoding="utf-8"?>
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="4grVPisl3+BLIh7zSnXXcVUTDSB+T2IWIMnb3YeAoNs=">
<bindingConfigurations>
<bindingConfiguration bindingType="basicHttpBinding" name="PostcodeAnywhere_Soap">
<properties>
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>PostcodeAnywhere_Soap</serializedValue>
</property>
<property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/openTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/receiveTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/sendTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/allowCookies" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/bypassProxyOnLocal" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/hostNameComparisonMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HostNameComparisonMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>StrongWildcard</serializedValue>
</property>
<property path="/maxBufferPoolSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/maxBufferSize" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>65536</serializedValue>
</property>
<property path="/maxReceivedMessageSize" isComplexType="false" isExplicitlyDefined="true" clrType="System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/proxyAddress" isComplexType="false" isExplicitlyDefined="false" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/readerQuotas" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement</serializedValue>
</property>
<property path="/readerQuotas/maxDepth" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>0</serializedValue>
</property>
<property path="/readerQuotas/maxStringContentLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>0</serializedValue>
</property>
<property path="/readerQuotas/maxArrayLength" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>0</serializedValue>
</property>
<property path="/readerQuotas/maxBytesPerRead" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>0</serializedValue>
</property>
<property path="/readerQuotas/maxNameTableCharCount" isComplexType="false" isExplicitlyDefined="false" clrType="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>0</serializedValue>
</property>
<property path="/textEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.Text.Encoding, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.Text.UTF8Encoding</serializedValue>
</property>
<property path="/transferMode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.TransferMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>Buffered</serializedValue>
</property>
<property path="/useDefaultWebProxy" isComplexType="false" isExplicitlyDefined="true" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/messageEncoding" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.WSMessageEncoding, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>Text</serializedValue>
</property>
<property path="/security" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.BasicHttpSecurityElement</serializedValue>
</property>
<property path="/security/mode" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpSecurityMode, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>None</serializedValue>
</property>
<property path="/security/transport" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.HttpTransportSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.HttpTransportSecurityElement</serializedValue>
</property>
<property path="/security/transport/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpClientCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>None</serializedValue>
</property>
<property path="/security/transport/proxyCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.HttpProxyCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>None</serializedValue>
</property>
<property path="/security/transport/extendedProtectionPolicy" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement</serializedValue>
</property>
<property path="/security/transport/extendedProtectionPolicy/policyEnforcement" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.PolicyEnforcement, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>Never</serializedValue>
</property>
<property path="/security/transport/extendedProtectionPolicy/protectionScenario" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.ProtectionScenario, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>TransportSelected</serializedValue>
</property>
<property path="/security/transport/extendedProtectionPolicy/customServiceNames" isComplexType="true" isExplicitlyDefined="false" clrType="System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElementCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>(Collection)</serializedValue>
</property>
<property path="/security/transport/realm" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/security/message" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.BasicHttpMessageSecurityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.BasicHttpMessageSecurityElement</serializedValue>
</property>
<property path="/security/message/clientCredentialType" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.BasicHttpMessageCredentialType, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>UserName</serializedValue>
</property>
<property path="/security/message/algorithmSuite" isComplexType="false" isExplicitlyDefined="false" clrType="System.ServiceModel.Security.SecurityAlgorithmSuite, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>Default</serializedValue>
</property>
</properties>
</bindingConfiguration>
</bindingConfigurations>
<endpoints>
<endpoint name="PostcodeAnywhere_Soap" contract="api.addressy.PostcodeAnywhere_Soap" bindingType="basicHttpBinding" address="http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws" bindingConfiguration="PostcodeAnywhere_Soap">
<properties>
<property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws</serializedValue>
</property>
<property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/binding" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>basicHttpBinding</serializedValue>
</property>
<property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>PostcodeAnywhere_Soap</serializedValue>
</property>
<property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>api.addressy.PostcodeAnywhere_Soap</serializedValue>
</property>
<property path="/headers" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.AddressHeaderCollectionElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.AddressHeaderCollectionElement</serializedValue>
</property>
<property path="/headers/headers" isComplexType="false" isExplicitlyDefined="true" clrType="System.ServiceModel.Channels.AddressHeaderCollection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>&lt;Header /&gt;</serializedValue>
</property>
<property path="/identity" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.IdentityElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.IdentityElement</serializedValue>
</property>
<property path="/identity/userPrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.UserPrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.UserPrincipalNameElement</serializedValue>
</property>
<property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.ServicePrincipalNameElement</serializedValue>
</property>
<property path="/identity/servicePrincipalName/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/dns" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.DnsElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.DnsElement</serializedValue>
</property>
<property path="/identity/dns/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/rsa" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.RsaElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.RsaElement</serializedValue>
</property>
<property path="/identity/rsa/value" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/certificate" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.CertificateElement</serializedValue>
</property>
<property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>System.ServiceModel.Configuration.CertificateReferenceElement</serializedValue>
</property>
<property path="/identity/certificateReference/storeName" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreName, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>My</serializedValue>
</property>
<property path="/identity/certificateReference/storeLocation" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.StoreLocation, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>LocalMachine</serializedValue>
</property>
<property path="/identity/certificateReference/x509FindType" isComplexType="false" isExplicitlyDefined="false" clrType="System.Security.Cryptography.X509Certificates.X509FindType, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>FindBySubjectDistinguishedName</serializedValue>
</property>
<property path="/identity/certificateReference/findValue" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/identity/certificateReference/isChainIncluded" isComplexType="false" isExplicitlyDefined="false" clrType="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>False</serializedValue>
</property>
<property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue>PostcodeAnywhere_Soap</serializedValue>
</property>
<property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
<property path="/endpointConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<serializedValue />
</property>
</properties>
</endpoint>
</endpoints>
</SavedWcfConfigurationInformation>

74
Business/Connected Services/api.addressy/wsdlnew.wsdl

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://services.postcodeanywhere.co.uk/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://services.postcodeanywhere.co.uk/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://services.postcodeanywhere.co.uk/">
<s:element name="Capture_Interactive_Find_v1_10">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Key" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Text" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="IsMiddleware" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="Container" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Origin" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Countries" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Limit" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="Language" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Bias" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="Filters" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="GeoFence" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Capture_Interactive_Find_v1_10_Response">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Capture_Interactive_Find_v1_10_Result" type="tns:Capture_Interactive_Find_v1_10_ArrayOfResults" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Capture_Interactive_Find_v1_10_ArrayOfResults">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Capture_Interactive_Find_v1_10_Results" type="tns:Capture_Interactive_Find_v1_10_Results" />
</s:sequence>
</s:complexType>
<s:complexType name="Capture_Interactive_Find_v1_10_Results">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Id" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Type" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Text" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Highlight" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="Capture_Interactive_Find_v1_10_SoapIn">
<wsdl:part name="parameters" element="tns:Capture_Interactive_Find_v1_10" />
</wsdl:message>
<wsdl:message name="Capture_Interactive_Find_v1_10_SoapOut">
<wsdl:part name="parameters" element="tns:Capture_Interactive_Find_v1_10_Response" />
</wsdl:message>
<wsdl:portType name="PostcodeAnywhere_Soap">
<wsdl:operation name="Capture_Interactive_Find_v1_10">
<wsdl:input message="tns:Capture_Interactive_Find_v1_10_SoapIn" />
<wsdl:output message="tns:Capture_Interactive_Find_v1_10_SoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PostcodeAnywhere_Soap" type="tns:PostcodeAnywhere_Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Capture_Interactive_Find_v1_10">
<soap:operation soapAction="http://services.postcodeanywhere.co.uk/Capture_Interactive_Find_v1_10" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PostcodeAnywhere">
<wsdl:port name="PostcodeAnywhere_Soap" binding="tns:PostcodeAnywhere_Soap">
<soap:address location="http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

2
Business/Mobile/IMobileServices.cs

@ -95,5 +95,7 @@ namespace Business.Mobile
JsonRxResponse GetFieldsByProduct(MappingType type, string customer); JsonRxResponse GetFieldsByProduct(MappingType type, string customer);
JsonRxResponse ValidateReferralCode(string referralCode); JsonRxResponse ValidateReferralCode(string referralCode);
//JsonRxResponse QueryAddress(string postCode);
} }
} }

233
Business/Mobile/MobileServices.cs

@ -31,6 +31,7 @@ using System.Collections;
using Repository; using Repository;
using System.Configuration; using System.Configuration;
using Business.TrustDoc; using Business.TrustDoc;
using Business.Addressy;
namespace Business.Mobile namespace Business.Mobile
{ {
@ -308,37 +309,13 @@ namespace Business.Mobile
var lang = Convert.ToString(CallContext.GetData(Constants.Language)); var lang = Convert.ToString(CallContext.GetData(Constants.Language));
string enumString = string.Empty; string enumString = string.Empty;
if (response.ErrorCode.Equals("3"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_3.ToString();
}
else if (response.ErrorCode.Equals("4"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_4.ToString();
}
else if (response.ErrorCode.Equals("6"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_6.ToString();
}
else if (response.ErrorCode.Equals("7"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_7.ToString();
}
else if (response.ErrorCode.Equals("8"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_7.ToString();
}
else if (response.ErrorCode.Equals("9"))
{
enumString = RESPONSE_MSG.CALCULATE_AMOUNT_FAIL_7.ToString();
}
var map = Utilities.GetLanguageMapping(enumString, lang);
response.FootNoteMessage = response.ErrorCode.Equals("0") ? Utilities.GetLanguageMapping(ConfigurationManager.AppSettings["footNote_calculateDashboard"].ToString(), lang).Message : ""; response.FootNoteMessage = response.ErrorCode.Equals("0") ? Utilities.GetLanguageMapping(ConfigurationManager.AppSettings["footNote_calculateDashboard"].ToString(), lang).Message : "";
return new JsonRxResponse { ErrorCode = response.ErrorCode.Equals("0") ? "0" : "1", Msg = map.Message, Id = response.Id, Extra = response.Extra, Data = response.Data, Extra2 = response.Extra2, FootNoteMessage = response.FootNoteMessage };
// return response;
//return new JsonRxResponse { ErrorCode = response.ErrorCode.Equals("0") ? "0" : "1", Msg = map.Message, Id = response.Id, Extra = response.Extra, Data = response.Data, Extra2 = response.Extra2, FootNoteMessage = response.FootNoteMessage };
return response;
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -528,6 +505,14 @@ namespace Business.Mobile
try try
{ {
var httpRequest = HttpContext.Current.Request; var httpRequest = HttpContext.Current.Request;
var idFrontUrl = httpRequest.Files["idFront"];
var idBackUrl = httpRequest.Files["idBack"];
var idSideUrl = httpRequest.Files["idSide"];
var additionalIdUrl = httpRequest.Files["additionalId"];
var additionalIdBackUrl = httpRequest.Files["additionalIdBack"];
var facePictureUrl = httpRequest.Files["faceImageFile"];
var custKyc = new CustomerKYCModel() var custKyc = new CustomerKYCModel()
{ {
userId = httpRequest["userId"], userId = httpRequest["userId"],
@ -546,6 +531,11 @@ namespace Business.Mobile
RegistrationType = httpRequest["RegistrationType"] != null ? httpRequest["RegistrationType"] : "", RegistrationType = httpRequest["RegistrationType"] != null ? httpRequest["RegistrationType"] : "",
TrustDocId = httpRequest["TrustDocId"] != null ? httpRequest["TrustDocId"] : "", TrustDocId = httpRequest["TrustDocId"] != null ? httpRequest["TrustDocId"] : "",
customerType = httpRequest["customerType"], customerType = httpRequest["customerType"],
idFront = idFrontUrl != null ? idFrontUrl.FileName : "",
idBack = idBackUrl != null ? idBackUrl.FileName : "",
additionalId = additionalIdUrl != null ? additionalIdUrl.FileName : "",
additionalIdBack = additionalIdBackUrl != null ? additionalIdBackUrl.FileName : "",
}; };
if (deviceType.ToLower().Equals("ios") & !string.IsNullOrEmpty(custKyc.customerType)) if (deviceType.ToLower().Equals("ios") & !string.IsNullOrEmpty(custKyc.customerType))
@ -557,12 +547,7 @@ namespace Business.Mobile
custKyc.idType = custKyc.customerType; custKyc.idType = custKyc.customerType;
} }
var idFrontUrl = httpRequest.Files["idFront"];
var idBackUrl = httpRequest.Files["idBack"];
var idSideUrl = httpRequest.Files["idSide"];
var additionalIdUrl = httpRequest.Files["additionalId"];
var additionalIdBackUrl = httpRequest.Files["additionalIdBack"];
var facePictureUrl = httpRequest.Files["faceImageFile"];
if (!string.IsNullOrEmpty(custKyc.RegistrationType) && custKyc.RegistrationType.Equals("EKYC")) if (!string.IsNullOrEmpty(custKyc.RegistrationType) && custKyc.RegistrationType.Equals("EKYC"))
@ -571,15 +556,15 @@ namespace Business.Mobile
} }
var isBackRequired = "0"; var isBackRequired = "0";
if (httpRequest.Files.Count > 0 && Utilities.IsCheckAdditionalId())
{
var id = _requestServices.checkAdditionalId(custKyc.additionalIdType);
if (id != null)
{
isBackRequired = id["isBackRequired"].ToString();
}
}
Log.Debug($"RegisterKYC | REQUEST : { JsonConvert.SerializeObject(custKyc)} | isBackRequired : {isBackRequired} | Files: { httpRequest.Files.Count}");
//if (httpRequest.Files.Count > 0 && Utilities.IsCheckAdditionalId())
//{
// var id = _requestServices.checkAdditionalId(custKyc.additionalIdType);
// if (id != null)
// {
// isBackRequired = id["isBackRequired"].ToString();
// }
//}
Log.Debug($"RegisterKYC | REQUEST : { JsonConvert.SerializeObject(custKyc)} | Files: { httpRequest.Files.Count}");
//if (httpRequest.Files.Count <= 1) //documents //if (httpRequest.Files.Count <= 1) //documents
@ -882,83 +867,83 @@ namespace Business.Mobile
Log.Debug("IsValidatedForm | Requested parameters : " + JsonConvert.SerializeObject(kyc)); Log.Debug("IsValidatedForm | Requested parameters : " + JsonConvert.SerializeObject(kyc));
//NULL validation //NULL validation
var jsonRxMobile = ValidateMobile(kyc.mobile);
if (!jsonRxMobile.ErrorCode.Equals("0"))
{
Log.Debug($"RegisterKYC | Mobile : {kyc.mobile} | ValidateMobile failed : { JsonConvert.SerializeObject(jsonRxMobile)}");
jsonRx.SetResponse("1", jsonRxMobile.Msg);
return jsonRx;
}
else
{
Log.Debug($"RegisterKYC | ValidateMobile Response : { JsonConvert.SerializeObject(jsonRxMobile)}");
kyc.mobile = jsonRxMobile.Extra;
}
//var jsonRxMobile = ValidateMobile(kyc.mobile);
//if (!jsonRxMobile.ErrorCode.Equals("0"))
//{
// Log.Debug($"RegisterKYC | Mobile : {kyc.mobile} | ValidateMobile failed : { JsonConvert.SerializeObject(jsonRxMobile)}");
// jsonRx.SetResponse("1", jsonRxMobile.Msg);
// return jsonRx;
//}
//else
//{
// Log.Debug($"RegisterKYC | ValidateMobile Response : { JsonConvert.SerializeObject(jsonRxMobile)}");
// kyc.mobile = jsonRxMobile.Extra;
//}
if (string.IsNullOrEmpty(kyc.otherOccupation) && string.IsNullOrEmpty(kyc.occupation))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_2.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
else if (string.IsNullOrEmpty(kyc.occupation))
{
if (string.IsNullOrEmpty(kyc.otherOccupation))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_9.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
//if (string.IsNullOrEmpty(kyc.otherOccupation) && string.IsNullOrEmpty(kyc.occupation))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_2.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
}
// return jsonRx;
//}
//else if (string.IsNullOrEmpty(kyc.occupation))
//{
// if (string.IsNullOrEmpty(kyc.otherOccupation))
// {
// enumString = RESPONSE_MSG.VALIDATE_FORM_9.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
// }
//}
if (string.IsNullOrEmpty(kyc.monthlyIncome))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_3.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.additionalAddress))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_4.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
if (kyc.additionalAddress.Length > 50)
{
enumString = RESPONSE_MSG.VALIDATE_FORM_11.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.businessType))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_5.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.mobile))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_6.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
if (string.IsNullOrEmpty(kyc.purposeOfRegistration))
{
enumString = RESPONSE_MSG.VALIDATE_FORM_7.ToString();
var map = Utilities.GetLanguageMapping(enumString, lang);
jsonRx.SetResponse("1", map.Message);
return jsonRx;
}
//if (string.IsNullOrEmpty(kyc.monthlyIncome))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_3.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.additionalAddress))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_4.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
//if (kyc.additionalAddress.Length > 50)
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_11.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.businessType))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_5.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.mobile))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_6.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
//if (string.IsNullOrEmpty(kyc.purposeOfRegistration))
//{
// enumString = RESPONSE_MSG.VALIDATE_FORM_7.ToString();
// var map = Utilities.GetLanguageMapping(enumString, lang);
// jsonRx.SetResponse("1", map.Message);
// return jsonRx;
//}
if (!isEkyc && string.IsNullOrEmpty(kyc.idType)) if (!isEkyc && string.IsNullOrEmpty(kyc.idType))
{ {
@ -1211,6 +1196,24 @@ namespace Business.Mobile
jsonRx.SetResponse("1", "Error occured", null); jsonRx.SetResponse("1", "Error occured", null);
return jsonRx; return jsonRx;
} }
else if (type.ToLower().Equals("login-kyc"))
{
LocateBusiness locateBusiness = new LocateBusiness();
var r = locateBusiness.LoadKycStaticData();
if (r != null)
{
jsonRx.ErrorCode = "0";
jsonRx.Msg = "success";
jsonRx.Data = r;
Log.Debug("LoadFormStaticData-login-kyc | DB RESPONSE : " + JsonConvert.SerializeObject(jsonRx));
return jsonRx;
}
Log.Debug("LoadFormStaticData | Returning null while calling DB");
jsonRx.SetResponse("1", "Error occured", null);
return jsonRx;
}
Log.Debug("LoadFormStaticData | Error occurred while specifying the type, Type mismatch error."); Log.Debug("LoadFormStaticData | Error occurred while specifying the type, Type mismatch error.");
return jsonRx; return jsonRx;
} }
@ -2751,6 +2754,8 @@ namespace Business.Mobile
else if (type == Common.Model.Config.MappingType.REWARD_POINT) else if (type == Common.Model.Config.MappingType.REWARD_POINT)
{ {
var response1 = _requestServices.GetRewardFee(customerId); var response1 = _requestServices.GetRewardFee(customerId);
response1.PaymentOptions = new PaymentOptions() { Options = Utilities.GetPaymetMethods(), HeaderText="How do like to pay?" };
if (response1 != null) if (response1 != null)
{ {
Log.Debug("GetFieldsByProduct | DB RESPONSE SUCCESS!"); Log.Debug("GetFieldsByProduct | DB RESPONSE SUCCESS!");

13
Business/app.config

@ -8,4 +8,17 @@
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="PostcodeAnywhere_Soap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws"
binding="basicHttpBinding" bindingConfiguration="PostcodeAnywhere_Soap"
contract="api.addressy.PostcodeAnywhere_Soap" name="PostcodeAnywhere_Soap" />
</client>
</system.serviceModel>
</configuration> </configuration>

6
Checklist.txt

@ -0,0 +1,6 @@
EXEC mobile_proc_GetCalculation @flag='get-exRateDetails'
check sagentid
change
<add key="ServiceType_Resource" >

2
Common/Common.csproj

@ -73,6 +73,8 @@
<Compile Include="LoggerProperty.cs" /> <Compile Include="LoggerProperty.cs" />
<Compile Include="Model\AccountValidationModel.cs" /> <Compile Include="Model\AccountValidationModel.cs" />
<Compile Include="Model\AccountValidationRequest.cs" /> <Compile Include="Model\AccountValidationRequest.cs" />
<Compile Include="Model\Addressy\Address.cs" />
<Compile Include="Model\Addressy\QueryAddressDto.cs" />
<Compile Include="Model\AutoRefund\AmountTransferToBank.cs" /> <Compile Include="Model\AutoRefund\AmountTransferToBank.cs" />
<Compile Include="Model\AutoRefund\AutoDebitRefund.cs" /> <Compile Include="Model\AutoRefund\AutoDebitRefund.cs" />
<Compile Include="Model\AutoRefund\AutoRefundRequestModel.cs" /> <Compile Include="Model\AutoRefund\AutoRefundRequestModel.cs" />

23
Common/Helper/Utilities.cs

@ -795,19 +795,24 @@ namespace Common.Helper
dt.Config = referenceMaps.Config.Where(x => x.DeviceType.ToLower().Equals(obj.DeviceType.ToLower())).SingleOrDefault(); dt.Config = referenceMaps.Config.Where(x => x.DeviceType.ToLower().Equals(obj.DeviceType.ToLower())).SingleOrDefault();
} }
if (!string.IsNullOrEmpty(obj.CustomerType))
{
if (obj.CustomerType.Equals("RESIDENCE"))
obj.CustomerType = "RESIDENT";
dt.Options = referenceMaps.Options.Where(x => x.CustomerType.ToLower().Equals(obj.CustomerType.ToLower())).ToList();
}
else
{
dt.Options = referenceMaps.Options;
return dt;
}
public static List<Option> GetPaymetMethods()
{
List<Option> options = new List<Option>();
string mappingPath = mappingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ConfigurationManager.AppSettings["PaymentConfigFilePath"].ToString());
using (StreamReader reader = File.OpenText(mappingPath))
{
var jsonS = reader.ReadToEnd();
options = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Option>>(jsonS);
} }
return dt;
return options;
} }
public static List<ReferenceMap> GetReferenceMaps() public static List<ReferenceMap> GetReferenceMaps()

25
Common/Model/Addressy/Address.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Common.Model.Addressy
{
public class Address
{
public string Id { get; set; }
public string Type { get; set; }
public object Address1 { get; set; }
public string City { get; set; }
}
}

23
Common/Model/Addressy/QueryAddressDto.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Model.Addressy
{
public class QueryAddressDto
{
public string UserId { get; set; }
public string PostalCode { get; set; }
}
public class QueryResponse
{
public List<Address> Addresses { get; set; }
public List<NativeCountry> NativeCountry { get; set; }
public List<Gender> Gender { get; set; }
}
}

4
Common/Model/CustomerRegister/CustomerKYCModel.cs

@ -29,5 +29,9 @@
public string RegistrationType { get; set; } public string RegistrationType { get; set; }
public string TrustDocId { get; set; } public string TrustDocId { get; set; }
public string customerType { get; set; } public string customerType { get; set; }
public string idIssuingCountry { get; set; }
public string idStartDate { get; set; }
public string idExpiryDate { get; set; }
} }
} }

22
Common/Model/CustomerRegister/NewUserRegisterModel.cs

@ -1,11 +1,15 @@
namespace Common.Model.CustomerRegister
using System.ComponentModel.DataAnnotations;
namespace Common.Model.CustomerRegister
{ {
public class NewUserRegisterModel public class NewUserRegisterModel
{ {
public string ResidenceCardNumber { get; set; } public string ResidenceCardNumber { get; set; }
public string UserId { get; set; } public string UserId { get; set; }
public string NativeCountry { get; set; } public string NativeCountry { get; set; }
[Required]
public string Password { get; set; } public string Password { get; set; }
[Required]
public string ConfirmPassword { get; set; } public string ConfirmPassword { get; set; }
public string ReferralCode { get; set; } public string ReferralCode { get; set; }
public string ClientId { get; set; } public string ClientId { get; set; }
@ -15,7 +19,23 @@
public string phoneOs { get; set; } public string phoneOs { get; set; }
public string fcmId { get; set; } public string fcmId { get; set; }
public string osVersion { get; set; } public string osVersion { get; set; }
[Required(ErrorMessage ="Full Name is required.")]
public string FullName { get; set; } public string FullName { get; set; }
[Required]
public string DOB { get; set; } public string DOB { get; set; }
[Required]
public string MobileNumber { get; set; }
[Required]
public string PostalCode { get; set; }
[Required]
public string City { get; set; }
[Required]
public string Address1 { get; set; }
public string Address2 { get; set; }
[Required]
public string Nationality { get; set; }
[Required]
public string Gender { get; set; }
} }
} }

2
Common/Model/KycStaticData.cs

@ -24,6 +24,8 @@ namespace Common.Model
public List<OccupationList> OccupationList { get; set; } public List<OccupationList> OccupationList { get; set; }
public PersonalInformation PersonalInformation { get; set; } public PersonalInformation PersonalInformation { get; set; }
public Pictures Pictures { get; set; } public Pictures Pictures { get; set; }
public List<NativeCountry> IdIssueCountry { get; set; }
} }
public class VisaStatus public class VisaStatus

22
Common/Model/RewardFee.cs

@ -6,12 +6,32 @@ using System.Threading.Tasks;
namespace Common.Model namespace Common.Model
{ {
public class RewardFee
public class RewardFee
{ {
public string ShowRewardPoint { get; set; } public string ShowRewardPoint { get; set; }
public string Point { get; set; } public string Point { get; set; }
public string RewardMessage { get; set; } public string RewardMessage { get; set; }
public string ShowValidationAlert { get; set; } public string ShowValidationAlert { get; set; }
public string ValidationMsg { get; set; } public string ValidationMsg { get; set; }
public PaymentOptions PaymentOptions { get; set; }
}
public class PaymentOptions
{
public string HeaderText { get; set; }
public List<Option> Options { get; set; }
}
public class Option
{
public string Code { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Value { get; set; }
public string Icon { get; set; }
} }
} }

10
Common/Model/StaticData.cs

@ -108,6 +108,10 @@ namespace Common.Model
public string businessType { get; set; } public string businessType { get; set; }
public string occupation { get; set; } public string occupation { get; set; }
public string purposeOfRegistration { get; set; } public string purposeOfRegistration { get; set; }
public string idIssuingCountry { get; set; }
public string idStartDate { get; set; }
public string idExpiryDate { get; set; }
} }
public class PrimaryInformation public class PrimaryInformation
@ -141,4 +145,10 @@ namespace Common.Model
public string Key { get; set; } public string Key { get; set; }
public string Value { get; set; } public string Value { get; set; }
} }
public class Gender
{
public string id { get; set; }
public string text { get; set; }
}
} }

4
Common/app.config

@ -1,3 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
</configuration> </configuration>

1
JsonRx/Api/MobileController.cs

@ -210,6 +210,7 @@ namespace JsonRx.Api
[Route("mobile/calculateDefExRate")] [Route("mobile/calculateDefExRate")]
public IHttpActionResult CalculateDefExRate(ExRateCalculateRequest model) public IHttpActionResult CalculateDefExRate(ExRateCalculateRequest model)
{ {
model.sCurrency = "GBP";
var pId = Guid.NewGuid(); var pId = Guid.NewGuid();
model.processId = pId.ToString(); model.processId = pId.ToString();
LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = pId; LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = pId;

23
JsonRx/ApiV3/CustomerV2Controller.cs

@ -1,7 +1,9 @@
using Business.Authentication;
using Business.Addressy;
using Business.Authentication;
using Business.Mobile; using Business.Mobile;
using Common; using Common;
using Common.Model; using Common.Model;
using Common.Model.Addressy;
using Common.Model.Customer; using Common.Model.Customer;
using JsonRx.AuthFilter; using JsonRx.AuthFilter;
using JsonRx.Helper; using JsonRx.Helper;
@ -113,7 +115,7 @@ namespace JsonRx.Api
// return Ok(res); // return Ok(res);
//} //}
var dbres = _requestServices.AddReceiver(customerId, receiver); var dbres = _requestServices.AddReceiver(customerId, receiver);
Log.Debug("AddReceiver| RESPONSE " + JsonConvert.SerializeObject(dbres)); Log.Debug("AddReceiver| RESPONSE " + JsonConvert.SerializeObject(dbres));
return Ok(dbres); return Ok(dbres);
@ -195,5 +197,22 @@ namespace JsonRx.Api
// return Ok(custRegisterResponse); // return Ok(custRegisterResponse);
//} //}
[HttpPost]
//[TokenAuthentication]
[Route("mobile/AddressLookup")]
public IHttpActionResult AddressLookup(QueryAddressDto dto)
{
LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid();
LogicalThreadContext.Properties[LoggerProperty.CREATEDBY] = dto.UserId;
LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "AddressLookup";
Log.Debug("AddressLookup | REQUEST : " + JsonConvert.SerializeObject(dto));
LocateBusiness locateBusiness = new LocateBusiness();
var dbres = locateBusiness.QueryAddress(dto.PostalCode);
return Ok(dbres);
}
} }
} }

40
JsonRx/Config/KycConfig.json

@ -23,45 +23,25 @@
], ],
"Options": [ "Options": [
{ {
"Code": "EKYC_RESIDENCE_CARD_NON_NFC",
"Name": "RESIDENCE CARD WITHOUT NFC",
"Description": "Act on Prevention of Transfer of Criminal Proceeds: E (residence card)",
"PlanId": "9390019a-d41f-42a8-b044-0f41a9825847",
"Code": "KYC_NOW",
"Name": "KYC NOW",
"Description": "If the customer selects Fill Now than he will be redirected to KYC Process.",
"PlanId": "",
"SelfieRequired": "Y", "SelfieRequired": "Y",
"Selfie_PlanId": "ee46f7fd-3988-49cd-a972-1056e498302f",
"Type": "EKYC",
"CustomerType": "FOREIGN"
},
{
"Code": "EKYC_RESIDENCE_CARD_NFC",
"Name": "RESIDENCE CARD (NFC)",
"Description": "Act on Prevention of Transfer of Criminal Proceeds: He_SDK (residence card)",
"PlanId": "b1da18ee-fabe-42f0-b7f6-0d375e1f505d",
"SelfieRequired": "N",
"Selfie_PlanId": "", "Selfie_PlanId": "",
"Type": "EKYC",
"Type": "NOW",
"CustomerType": "FOREIGN" "CustomerType": "FOREIGN"
}, },
{ {
"Code": "MANUAL_KYC",
"Name": "MANUAL VERIFICATION",
"Description": "User need to picture manually along with addition ids",
"Code": "KYC_LATER",
"Name": "KYC LATER",
"Description": "Customer will be redirected to Dashboard and can Send txn.",
"PlanId": "", "PlanId": "",
"SelfieRequired": "N", "SelfieRequired": "N",
"Selfie_PlanId": "", "Selfie_PlanId": "",
"Type": "MKYC",
"Type": "LATER",
"CustomerType": "FOREIGN" "CustomerType": "FOREIGN"
},
{
"Code": "MANUAL_KYC",
"Name": "MANUAL VERIFICATION",
"Description": "User need to picture manually along with addition ids",
"PlanId": "",
"SelfieRequired": "N",
"Selfie_PlanId": "",
"Type": "MKYC",
"CustomerType": "RESIDENT"
} }
] ]
} }

27
JsonRx/Config/Payment.json

@ -0,0 +1,27 @@
[
{
"Code": "ONLINE",
"Name": "Online Banking(Best Rate)",
"Description": "If the customer selects Fill Now than he will be redirected to KYC Process.",
"Value": "0",
"Icon": "online.Png"
},
{
"Code": "EBANKING",
"Name": "E-Banking/ (Good rate)",
"Description": "If the customer selects Fill Now than he will be redirected to KYC Process.",
"Value": "0",
"Icon": "ebanking.Png"
},
{
"Code": "DEBIT_CARD",
"Name": "DEBIT CARD",
"Description": "If the customer selects Fill Now than he will be redirected to KYC Process.",
"Value": "0.15",
"Icon": "debit.Png"
}
]

4
JsonRx/Config/ResponseMsg.json

@ -611,7 +611,7 @@
}, },
{ {
"Key": "OLD_USER_REGISTER_SUCCESS", "Key": "OLD_USER_REGISTER_SUCCESS",
"Message": "Your login with JME is activated, you are now able to send money using JME Mobile Application. Thank You.",
"Message": "Your login with IME-London is activated, you are now able to send money using Mobile Application. Thank You.",
"Lang": "en" "Lang": "en"
}, },
{ {
@ -731,7 +731,7 @@
}, },
{ {
"Key": "NEW_USER_REGISTER_SUCCESS", "Key": "NEW_USER_REGISTER_SUCCESS",
"Message": "Your login with JME is activated, you are now able to send money using JME Mobile Application. Thank You.",
"Message": "Your login with IME-London is activated, you are now able to send money using Mobile Application. Thank You.",
"Lang": "en" "Lang": "en"
}, },
{ {

3
JsonRx/JsonRx.csproj

@ -219,6 +219,9 @@
<Content Include="Config\KycConfig.json"> <Content Include="Config\KycConfig.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Config\Payment.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="packages.config"> <None Include="packages.config">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</None> </None>

51
JsonRx/Web.config

@ -11,15 +11,15 @@
</configSections> </configSections>
<connectionStrings> <connectionStrings>
<!--<add name="LogDB" connectionString="server=localhost;Database=LogDb; Trusted_Connection = true" providerName="system.data.sqlclient" /> --> <!--<add name="LogDB" connectionString="server=localhost;Database=LogDb; Trusted_Connection = true" providerName="system.data.sqlclient" /> -->
<add name="LogDB" connectionString="server=192.168.53.21\MSSQLSERVER01,9097;Database=LogDb;uid=user_stag;pwd=P@ssw0rd;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=192.168.53.21\MSSQLSERVER01,9097;Database=FastMoneyPro_Remit;uid=user_stag;pwd=P@ssw0rd; Max Pool Size=1000;;" providerName="system.data.sqlclient" />
<add name="LogDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=LogDb;uid=sa;pwd=DbAmin123;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=FastMoneyPro_Remit;uid=sa;pwd=DbAmin123; Max Pool Size=1000;" providerName="system.data.sqlclient" />
<!--<add name="LogDB" connectionString="server=34.92.161.102;Database=logdb;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" /> <!--<add name="LogDB" connectionString="server=34.92.161.102;Database=logdb;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" />
<add name="RemittanceDB" connectionString="server=34.92.161.102;Database=FastMoneyPro_Remit;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" />--> <add name="RemittanceDB" connectionString="server=34.92.161.102;Database=FastMoneyPro_Remit;uid=remituserjme;pwd=r3M!tU5Er@jM3r3Mit#?; Max Pool Size=1000;" providerName="system.data.sqlclient" />-->
</connectionStrings> </connectionStrings>
<appSettings> <appSettings>
<!--Third Party Details --> <!--Third Party Details -->
<add key="ThirdParty_Base_Url" value="http://localhost:65345/api/v1/" />
<add key="ThirdParty_Base_Url" value="http://77.68.15.91:1083/api/v1/" />
<add key="apiAccessKey" value="KPb1ttRs3CJnORpVU8SmAKUs7a42vtvjzQ47gU0b4u0vxAEI0PgZref6puzkVhLTX2PRNMGCbnb2TglupsjV5AGhYvw8a8POTcUcFSrEdHmTkhkIGNvUvxSpKjUOXGFQWaGU1bxoqqUSaFOmNE5zGojVmwPoMy38CNLwnpQKjdsIuxCKGCApa2gWHJl9gebmIpUODv9jAZgmMEaXqyR4CLg4iSksfTyYNjdqxEE88P5THYt5GuNk8Ti6K2RxIKfPWY49hBOpiYnXcApgSDiKFYqQG9WuZ7cvDGJIWg5WgWKjGle8Y3OydhONXVkN5OMPXDA4VZkK4c5nM363Zkg4w4qdzWuwhsEoAwU4rej6sMRZue3L0BowBJja1OK0iPoTX70EexX8rviMLOZPUDwhxzkL3eODS69VEEbjHb8WSjhho5h3KnCE4tcqCWihwSZ8Yuyhw1rzIMNw2C8pN1GEJyXc6goIFkf7dmK9ynJSxu52D9GjOkKqoD7dFNFulOFVfgeCuhPDYG2A2c2RSvGHv24VDXvmGVaAMLiPtsTz5oD8f0na7fX1xGg0Qveh0KgQL5THnrMK6gm5Ky7O8nbecIxY" /> <add key="apiAccessKey" value="KPb1ttRs3CJnORpVU8SmAKUs7a42vtvjzQ47gU0b4u0vxAEI0PgZref6puzkVhLTX2PRNMGCbnb2TglupsjV5AGhYvw8a8POTcUcFSrEdHmTkhkIGNvUvxSpKjUOXGFQWaGU1bxoqqUSaFOmNE5zGojVmwPoMy38CNLwnpQKjdsIuxCKGCApa2gWHJl9gebmIpUODv9jAZgmMEaXqyR4CLg4iSksfTyYNjdqxEE88P5THYt5GuNk8Ti6K2RxIKfPWY49hBOpiYnXcApgSDiKFYqQG9WuZ7cvDGJIWg5WgWKjGle8Y3OydhONXVkN5OMPXDA4VZkK4c5nM363Zkg4w4qdzWuwhsEoAwU4rej6sMRZue3L0BowBJja1OK0iPoTX70EexX8rviMLOZPUDwhxzkL3eODS69VEEbjHb8WSjhho5h3KnCE4tcqCWihwSZ8Yuyhw1rzIMNw2C8pN1GEJyXc6goIFkf7dmK9ynJSxu52D9GjOkKqoD7dFNFulOFVfgeCuhPDYG2A2c2RSvGHv24VDXvmGVaAMLiPtsTz5oD8f0na7fX1xGg0Qveh0KgQL5THnrMK6gm5Ky7O8nbecIxY" />
<add key="sSuperAgent" value="393877" /> <add key="sSuperAgent" value="393877" />
<add key="sBranch" value="394395" /> <add key="sBranch" value="394395" />
@ -79,6 +79,8 @@
<add key="LangFilePath" value="config//ResponseMsg.json" /> <add key="LangFilePath" value="config//ResponseMsg.json" />
<add key="KycConfigFilePath" value="config//KycConfig.json" /> <add key="KycConfigFilePath" value="config//KycConfig.json" />
<add key="PaymentConfigFilePath" value="config//Payment.json" />
<add key="DEFAULTPAYER_BD_CASH" value="TRANSFAST CASH PICKUP ANYWHERE|BA99" /> <add key="DEFAULTPAYER_BD_CASH" value="TRANSFAST CASH PICKUP ANYWHERE|BA99" />
<add key="regexMobile" value="^[+]?[0-9]{6,14}$"/> <add key="regexMobile" value="^[+]?[0-9]{6,14}$"/>
@ -90,34 +92,10 @@
<add key="ShowShareBtn" value="Y"/> <add key="ShowShareBtn" value="Y"/>
<!--TRUST API URL-->
<add key="TrustDocURL" value="https://api.test.trustdock.io/v2/" />
<add key="TrustToken" value="cvjbrsQGUgr6zTEskEAm8faL" />
<add key="TrustCertKey" value="CEHsZF0K" />
<!--postcodeanywhere-->
<add key="loqatekey" value="CB93-HB26-JC73-WH89" />
</appSettings> </appSettings>
<!--<kftcSetting>
<add key="section_kftc_host_name" value="https://openapi.open-platform.or.kr/" />
<add key="section_kftc_client_id" value="l7xx9a67eaeb6a684f15b441769931d582b3" />
<add key="section_ktft_client_info_salt" value="5683sauydg" />
<add key="section_kftc_callback_url" value="https://online.gmeremit.com/Dashboard/AutoDebit" />
<add key="section_kftc_bank_status" value="bank/status" />
<add key="section_kftc_inquiry_realname" value="v2.0/inquiry/real_name" />
<add key="section_kftc_transfer_withdraw" value="v2.0/transfer/withdraw/fin_num" />
<add key="section_gme_tran_code" value="F010556999" />
<add key="section_USER_TOKEN_GRANT_TYPE" value="authorization_code" />
<add key="section_CNTR_ACCOUNT_TYPE" value="N" />
<add key="section_GME_DEPOSIT_ACCNO" value="1107020574382" />
<add key="section_GME_WITHDRAW_ACCNO" value="1107020574382" />
<add key="section_WITHDRAW_TRANSFER_PURPOSE" value="TR" />
</kftcSetting>
<kjSetting>
<add key="section_kj_url" value="https://gmeremitkjapi.gmeremit.com:6001" />
<add key="section_kj_headerToken" value="l7xx21a9f93ea1274baebf8c62f07d9cdb24" />
<add key="section_kj_authorization" value="2a672e00e8904dd5b28f7f36a83153e9" />
<add key="section_kj_timeout" value="120" />
</kjSetting>-->
<!-- <!--
web.config 변경 내용에 대한 설명은 http://go.microsoft.com/fwlink/?LinkId=235367을 참고하십시오. web.config 변경 내용에 대한 설명은 http://go.microsoft.com/fwlink/?LinkId=235367을 참고하십시오.
@ -270,5 +248,18 @@
<appender-ref ref="ApplicationAppender" /> <appender-ref ref="ApplicationAppender" />
</root> </root>
</log4net> </log4net>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="PostcodeAnywhere_Soap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.10/soapnew.ws"
binding="basicHttpBinding" bindingConfiguration="PostcodeAnywhere_Soap"
contract="api.addressy.PostcodeAnywhere_Soap" name="PostcodeAnywhere_Soap" />
</client>
</system.serviceModel>
</configuration> </configuration>
<!--ProjectGuid: 1E023F4D-5F8F-4F75-8250-A4F7C9CAE473--> <!--ProjectGuid: 1E023F4D-5F8F-4F75-8250-A4F7C9CAE473-->

2
Repository/Mobile/IMobileServicesRepo.cs

@ -100,5 +100,7 @@ namespace Repository.Mobile
RewardFee GetRewardFee(string customerId); RewardFee GetRewardFee(string customerId);
LoyaltyPoint GetLoyaltyPoint(string customerId); LoyaltyPoint GetLoyaltyPoint(string customerId);
JsonRxResponse ValidateReferralCode(string referralCode); JsonRxResponse ValidateReferralCode(string referralCode);
//ataSet StaticQueryAddress();
} }
} }

35
Repository/Mobile/MobileServicesRepo.cs

@ -414,6 +414,16 @@ namespace Repository.Mobile
return _dao.ExecuteDataRow(sql); return _dao.ExecuteDataRow(sql);
} }
//public DataSet StaticQueryAddress()
//{
// var sql = "EXEC proc_mobile_StaticData @flag='Query-Address'";
// return _dao.ExecuteDataset(sql);
//}
public JsonRxResponse RegisterKYC(CustomerKYCModel kyc) public JsonRxResponse RegisterKYC(CustomerKYCModel kyc)
{ {
//KycResponse kycResponse = null; //KycResponse kycResponse = null;
@ -1297,7 +1307,7 @@ namespace Repository.Mobile
var sql = "EXEC JsonRx_Proc_UserRegistration_V2 @flag='sign-up-v2-new-cust' "; var sql = "EXEC JsonRx_Proc_UserRegistration_V2 @flag='sign-up-v2-new-cust' ";
sql += ", @idNumber = " + _dao.FilterString(newUserRegister.ResidenceCardNumber); sql += ", @idNumber = " + _dao.FilterString(newUserRegister.ResidenceCardNumber);
sql += ", @nativeCountry = " + _dao.FilterString(newUserRegister.NativeCountry);
sql += ", @nativeCountry = " + _dao.FilterString(newUserRegister.Nationality);
sql += ", @referralCode = " + _dao.FilterString(newUserRegister.ReferralCode); sql += ", @referralCode = " + _dao.FilterString(newUserRegister.ReferralCode);
sql += ", @username = " + _dao.FilterString(newUserRegister.UserId); sql += ", @username = " + _dao.FilterString(newUserRegister.UserId);
sql += ", @password = " + _dao.FilterString(newUserRegister.Password); sql += ", @password = " + _dao.FilterString(newUserRegister.Password);
@ -1310,7 +1320,11 @@ namespace Repository.Mobile
sql += ", @osVersion = " + _dao.FilterString(newUserRegister.osVersion); sql += ", @osVersion = " + _dao.FilterString(newUserRegister.osVersion);
sql += ", @fullName = " + _dao.FilterString(newUserRegister.FullName); sql += ", @fullName = " + _dao.FilterString(newUserRegister.FullName);
sql += ", @dob = " + _dao.FilterString(newUserRegister.DOB); sql += ", @dob = " + _dao.FilterString(newUserRegister.DOB);
sql += ", @mobile = " + _dao.FilterString(newUserRegister.MobileNumber);
sql += ", @postalCode = " + _dao.FilterString(newUserRegister.PostalCode);
sql += ", @address1 = " + _dao.FilterString(newUserRegister.Address1);
sql += ", @city = " + _dao.FilterString(newUserRegister.City);
sql += ", @gender = " + _dao.FilterString(newUserRegister.Gender);
if (!string.IsNullOrEmpty(newUserRegister.FullName)) if (!string.IsNullOrEmpty(newUserRegister.FullName))
{ {
@ -2785,7 +2799,7 @@ namespace Repository.Mobile
{ {
return null; return null;
} }
if (ds.Tables.Count == 10)
if (ds.Tables.Count >= 10)
{ {
var montly = ds.Tables[0]; var montly = ds.Tables[0];
var monthlyIncomes = from pr in montly.AsEnumerable() var monthlyIncomes = from pr in montly.AsEnumerable()
@ -2855,7 +2869,10 @@ namespace Repository.Mobile
idType = Convert.ToString(dt["idType"]), idType = Convert.ToString(dt["idType"]),
occupation = Convert.ToString(dt["occupation"]), occupation = Convert.ToString(dt["occupation"]),
businessType = Convert.ToString(dt["businessType"]), businessType = Convert.ToString(dt["businessType"]),
purposeOfRegistration = Convert.ToString(dt["purposeOfRegistration"])
purposeOfRegistration = Convert.ToString(dt["purposeOfRegistration"]),
idIssuingCountry = Convert.ToString(dt["idIssueCountry"]),
idStartDate = Convert.ToString(dt["passportIssueDate"]),
idExpiryDate = Convert.ToString(dt["passportExpiryDate"]),
}; };
if (type.ToLower().Equals("kycv3-existing")) if (type.ToLower().Equals("kycv3-existing"))
@ -2956,6 +2973,16 @@ namespace Repository.Mobile
}; };
kycData.purposeOfRegistration = purposeOfRegistrations.ToList(); kycData.purposeOfRegistration = purposeOfRegistrations.ToList();
var idIssueCountry = ds.Tables[10];
var idIssueCountries = from idc in idIssueCountry.AsEnumerable()
select new NativeCountry
{
id = idc.Field<int>("id").ToString(),
text = idc.Field<string>("text"),
code = idc.Field<string>("code"),
};
kycData.IdIssueCountry = idIssueCountries.ToList();
return kycData; return kycData;
} }
return null; return null;

Loading…
Cancel
Save