/// <summary> /// Set Value for UntokenizeFO /// </summary> /// <param name="useri">User</param> /// <param name="FOPanInfoResult">FOPanInfoResult</param> public void SetValues(UserInfo useri, FOPanInfoResult res) { SetUser(useri); this.PAN = res.GetPAN(); this.TruncatedPAN = res.GetTruncatedPAN(); this.CardType = res.GetCardType(); this.ShortCardType = res.GetShortCardType(); this.ExpirationDate = Util.ConvertDateToString(res.GetExpirationDate(), Const.DateFormat_yyyyMMddXSD); }
// Result from Navision WS //private Nav_PaymentMeans pm; public BookingFormOfPaymentResponse(string pos, string comcode, string costCenter, string percode, string service, string argCorporation, string argToken) { // initialisation this.StartDate = DateTime.Now; this.argPos = String.IsNullOrEmpty(pos) ? pos : ((String.Compare(pos, "null", true) == 0) ? String.Empty : pos); this.argCostCenter = String.IsNullOrEmpty(costCenter) ? costCenter : ((String.Compare(costCenter, "null", true) == 0) ? String.Empty : costCenter); this.argComcode = String.IsNullOrEmpty(comcode) ? comcode : ((String.Compare(comcode, "null", true) == 0) ? String.Empty : comcode); this.argPercode = String.IsNullOrEmpty(percode) ? percode : ((String.Compare(percode, "null", true) == 0) ? String.Empty : percode); this.argService = String.IsNullOrEmpty(service) ? argService : ((String.Compare(service, "null", true) == 0) ? String.Empty : service); this.argCorporation = argCorporation; this.argToken = argToken; this.extendedPanInfos = null; this.fOPanInfos = null; }
public void SetValues(UserInfo useri, FOPanInfoResult res) { SetUser(useri); this.BackToken = Util.ConvertTokenToString(res.GetBOToken()); this.TruncatedPAN = res.GetTruncatedPAN(); this.CardType = res.GetCardType(); this.ShortCardType = res.GetShortCardType(); // We need to return date in format dd/MM/yyyy HH:mm:ss (for example : 31/12/2015 00:00:00) this.ExpirationDate = Util.ConvertDateToString(res.GetExpirationDate(), Const.DateFormat_ddMMyyyyHHmmss); this.NavisionCardLabel = res.GetNavisionCardLabel(); this.NavisionCardType = res.GetNavisionCardType().ToString(); this.NavisionPaymentAirplus = res.GetNavisionPaymentAirPlus().ToString(); this.NavisionPaymentBTA = res.GetNavisionPaymentBTA().ToString(); this.NavisionPaymentDiners = res.GetNavisionLodgedCard().ToString(); }
/// <summary> /// Affectation des informations sur la carte /// </summary> /// <param name="user">Informations sur le client</param> /// <param name="service">Service</param> /// <param name="info">Informations retournées depuis le FrontOffice</param> public void SetValues(UserInfo user, string service, FOPanInfoResult info) { SetUser(user); CardInfos ci = Services.CheckCreditCard(GetUser(), info.GetPAN()); this.CardTokenType = ArgsChecker.TOKEN_TYPE_FO; this.Service = service; this.CardType = info.GetCardType(); this.CardType2 = info.GetShortCardType(); this.MII = Util.ConvertTokenToString(ci.GetMII()); this.MIIIssuerCategory = ci.GetMIIIssuerCategory(); this.CardToken = info.GetBOToken(); this.CardNumber = info.GetPAN(); this.TruncatedCardNumber = info.GetTruncatedPAN(); this.StartDate = null; this.ExpiryDate = Util.ConvertExpirationDateToString(info.GetExpirationDate()); this.ShortExpirationDate = info.GetShortExpirationDate(); this.CVV2 = null; this.Origin = "traveller"; this.FinancialFlow = null; SetFormOfPayment(); }
public void SetFOPanInfos(FOPanInfoResult value) { this.fOPanInfos = value; }