2 Commits

Author SHA1 Message Date
Shakun Shrestha 02372ca657 add OriginCountryCode gcc 4 months ago
Shakun Shrestha d3de7e1178 promotional rate 4 months ago
  1. 1
      Common/Models/ExchangeRate/ExRateResponse.cs
  2. 1
      Repository/DAO/ThirdParty/ThirdPartyRepo.cs
  3. 224
      TPServices/Connected Services/GCCReference/Reference.cs
  4. 14
      TPServices/Connected Services/GCCReference/SendAPI1.wsdl
  5. 2
      TPServices/GCC/Services/GCCAPI.cs
  6. 2
      ThirdPartyAPIs/ApiControllers/ThirdPartyAPIController.cs

1
Common/Models/ExchangeRate/ExRateResponse.cs

@ -50,5 +50,6 @@
public string isPromoCode { get; set; }
public string promoRowId { get; set; }
public string promoCode { get; set; }
public string promotionalRate { get; set; }
}
}

1
Repository/DAO/ThirdParty/ThirdPartyRepo.cs

@ -677,6 +677,7 @@ namespace Repository.DAO.ThirdParty
exRateResponse.isPromoCode = Convert.ToString(dt.Rows[0]["isPromoCode"]);
exRateResponse.promoRowId = Convert.ToString(dt.Rows[0]["promoRowId"]);
exRateResponse.promoCode = Convert.ToString(dt.Rows[0]["promoCode"]);
exRateResponse.promotionalRate = Convert.ToString(dt.Rows[0]["promotionalRate"]);
exRateResponse.isSCExcluded = false;
var countriesList = model.SCExcludedCountries.Split(',');

224
TPServices/Connected Services/GCCReference/Reference.cs

@ -2068,6 +2068,12 @@ namespace TPApiServices.GCCReference {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string CostRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string IncomeSourceCodeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string OriginCountryCodeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string PasswordField;
@ -2191,6 +2197,21 @@ namespace TPApiServices.GCCReference {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UniqueIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value1Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value2Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value3Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value4Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value5Field;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
@ -2331,6 +2352,32 @@ namespace TPApiServices.GCCReference {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string IncomeSourceCode {
get {
return this.IncomeSourceCodeField;
}
set {
if ((object.ReferenceEquals(this.IncomeSourceCodeField, value) != true)) {
this.IncomeSourceCodeField = value;
this.RaisePropertyChanged("IncomeSourceCode");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string OriginCountryCode {
get {
return this.OriginCountryCodeField;
}
set {
if ((object.ReferenceEquals(this.OriginCountryCodeField, value) != true)) {
this.OriginCountryCodeField = value;
this.RaisePropertyChanged("OriginCountryCode");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Password {
get {
@ -2864,6 +2911,71 @@ namespace TPApiServices.GCCReference {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value1 {
get {
return this.Value1Field;
}
set {
if ((object.ReferenceEquals(this.Value1Field, value) != true)) {
this.Value1Field = value;
this.RaisePropertyChanged("Value1");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value2 {
get {
return this.Value2Field;
}
set {
if ((object.ReferenceEquals(this.Value2Field, value) != true)) {
this.Value2Field = value;
this.RaisePropertyChanged("Value2");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value3 {
get {
return this.Value3Field;
}
set {
if ((object.ReferenceEquals(this.Value3Field, value) != true)) {
this.Value3Field = value;
this.RaisePropertyChanged("Value3");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value4 {
get {
return this.Value4Field;
}
set {
if ((object.ReferenceEquals(this.Value4Field, value) != true)) {
this.Value4Field = value;
this.RaisePropertyChanged("Value4");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value5 {
get {
return this.Value5Field;
}
set {
if ((object.ReferenceEquals(this.Value5Field, value) != true)) {
this.Value5Field = value;
this.RaisePropertyChanged("Value5");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
@ -3304,6 +3416,12 @@ namespace TPApiServices.GCCReference {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string CostRateField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string IncomeSourceCodeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string OriginCountryCodeField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string PasswordField;
@ -3412,6 +3530,21 @@ namespace TPApiServices.GCCReference {
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string UniqueIDField;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value1Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value2Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value3Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value4Field;
[System.Runtime.Serialization.OptionalFieldAttribute()]
private string Value5Field;
[global::System.ComponentModel.BrowsableAttribute(false)]
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
get {
@ -3539,6 +3672,32 @@ namespace TPApiServices.GCCReference {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string IncomeSourceCode {
get {
return this.IncomeSourceCodeField;
}
set {
if ((object.ReferenceEquals(this.IncomeSourceCodeField, value) != true)) {
this.IncomeSourceCodeField = value;
this.RaisePropertyChanged("IncomeSourceCode");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string OriginCountryCode {
get {
return this.OriginCountryCodeField;
}
set {
if ((object.ReferenceEquals(this.OriginCountryCodeField, value) != true)) {
this.OriginCountryCodeField = value;
this.RaisePropertyChanged("OriginCountryCode");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Password {
get {
@ -4007,6 +4166,71 @@ namespace TPApiServices.GCCReference {
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value1 {
get {
return this.Value1Field;
}
set {
if ((object.ReferenceEquals(this.Value1Field, value) != true)) {
this.Value1Field = value;
this.RaisePropertyChanged("Value1");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value2 {
get {
return this.Value2Field;
}
set {
if ((object.ReferenceEquals(this.Value2Field, value) != true)) {
this.Value2Field = value;
this.RaisePropertyChanged("Value2");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value3 {
get {
return this.Value3Field;
}
set {
if ((object.ReferenceEquals(this.Value3Field, value) != true)) {
this.Value3Field = value;
this.RaisePropertyChanged("Value3");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value4 {
get {
return this.Value4Field;
}
set {
if ((object.ReferenceEquals(this.Value4Field, value) != true)) {
this.Value4Field = value;
this.RaisePropertyChanged("Value4");
}
}
}
[System.Runtime.Serialization.DataMemberAttribute()]
public string Value5 {
get {
return this.Value5Field;
}
set {
if ((object.ReferenceEquals(this.Value5Field, value) != true)) {
this.Value5Field = value;
this.RaisePropertyChanged("Value5");
}
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {

14
TPServices/Connected Services/GCCReference/SendAPI1.wsdl

@ -753,6 +753,8 @@
<xs:element minOccurs="0" name="BankState" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="BankZipCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CostRate" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="IncomeSourceCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="OriginCountryCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PayinAmount" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PayoutAmount" nillable="true" type="xs:string" />
@ -794,6 +796,11 @@
<xs:element minOccurs="0" name="SenderZipCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TransactionNo" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="UniqueID" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value1" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value2" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value3" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value4" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value5" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="SendTransferRequest" nillable="true" type="tns:SendTransferRequest" />
@ -839,6 +846,8 @@
<xs:element minOccurs="0" name="AuxStartMonth" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="AuxStartYear" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CostRate" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="IncomeSourceCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="OriginCountryCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PayinAmount" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="PayoutAmount" nillable="true" type="xs:string" />
@ -875,6 +884,11 @@
<xs:element minOccurs="0" name="SenderZipCode" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TransactionNo" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="UniqueID" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value1" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value2" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value3" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value4" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Value5" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="SendAuxiliaryPaymentRequest" nillable="true" type="tns:SendAuxiliaryPaymentRequest" />

2
TPServices/GCC/Services/GCCAPI.cs

@ -315,7 +315,9 @@ namespace TPService.GCC.Services
//SenderEmail = sT.Sender.SEmail,
SenderZipCode = "", //sT.Sender.SZipCode,
SenderAddress = sT.Sender.SAddress,
IncomeSourceCode = sT.Sender.SourceOfFund,
TransactionNo = "",//sT.TranId.ToString(),
OriginCountryCode = "GB"
};
}

2
ThirdPartyAPIs/ApiControllers/ThirdPartyAPIController.cs

@ -15,11 +15,11 @@ using Common.Models.Status;
using Common.Models.TxnAmendModel;
using Common.Models.TxnModel;
using log4net;
using Newtonsoft.Json;
using System;
using System.Web.Http;
using Common.Utility;
using Common.Models.DigitalSignature;
using Newtonsoft.Json;
namespace ThirdPartyAPIs.ApiControllers
{

Loading…
Cancel
Save