diff --git a/Swift.API/Common/SyncModel/Town/Address.cs b/Swift.API/Common/SyncModel/Town/Address.cs new file mode 100644 index 0000000..2835c66 --- /dev/null +++ b/Swift.API/Common/SyncModel/Town/Address.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Swift.API.Common.SyncModel.Town +{ + public class AddressResponse + { + public string Id { get; set; } + + public string Type { get; set; } + + public object Address1 { get; set; } + + public string City { get; set; } + + public object Address2 { get; set; } + } + public class AddressDTO + { + public List Addresses { get; set; } + } +} diff --git a/Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs b/Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs index d41da56..33558d1 100644 --- a/Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs +++ b/Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs @@ -35,10 +35,15 @@ namespace Swift.API.ThirdPartyApiServices if (model.MethodType.ToLower() == "state") { a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject>(jsonResponse.Data.ToString()) : null); - }else if (model.MethodType.ToLower() == "city") + } + else if (model.MethodType.ToLower() == "city") { a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject>(jsonResponse.Data.ToString()) : null); } + else if (model.MethodType.ToLower() == "loqate") + { + a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject(jsonResponse.Data.ToString()) : null); + } else { a = (jsonResponse.Data != null ? JsonConvert.DeserializeObject>(jsonResponse.Data.ToString()) : null); diff --git a/Swift.web/AgentNew/SendTxn/SendV2.aspx b/Swift.web/AgentNew/SendTxn/SendV2.aspx index a4d68ca..50024e7 100644 --- a/Swift.web/AgentNew/SendTxn/SendV2.aspx +++ b/Swift.web/AgentNew/SendTxn/SendV2.aspx @@ -373,7 +373,7 @@
- +
JAPAN
@@ -1847,7 +1847,7 @@ $("#ContentPlaceHolder1_occupation").prop("disabled", true); //$("#ContentPlaceHolder1_ddlOccupation").prop("disabled", true); $('#ContentPlaceHolder1_txtRecIdNo').attr('readonly', true); - $("#ContentPlaceHolder1_introducerTxt_aText").prop('required', true); + //$("#ContentPlaceHolder1_introducerTxt_aText").prop('required', true); $("#ContentPlaceHolder1_branch").change(function () { var choosePayer = $("#" + mId + "hddChoosePayer").val(); if (choosePayer === 'true') { @@ -2041,7 +2041,7 @@ document.getElementById(mId + "NewCust").focus(); $('#subLocation').hide(); - $(mId + "introducerTxt_aText").attr("placeholder", "Referral (If any)"); + //$(mId + "introducerTxt_aText").attr("placeholder", "Referral (If any)"); $('#divHideShow').show(); $('.displayPayerInfo').hide(); var customerIdFromMapping = '<%=GetCustomerId()%>';