public void SetValues(UserInfo useri, ExtendedPanInfoResult res) { SetUser(useri); this.PAN = res.GetPan(); this.TruncatedPAN = res.GetTruncatedPan(); this.CardType = res.GetCardType(); this.ShortCardType = res.GetShortCardType(); //>>EGE-65504 //this.ExpirationDate = res.GetExpirationDate(); this.ExpirationDate = Util.ConvertDateToString(Util.ConvertStringToDate(res.GetExpirationDate(), Const.DateFormat_ddMMyyyyHHmmss), Const.DateFormat_yyyyMMddXSD); //<<EGE-65504 }
/// <summary> /// Affectation des informations sur la carte /// </summary> /// <param name="user">Informations sur le client</param> /// <param name="service">Service</param> /// <param name="pi">Informations carte depuis Navision</param> public void SetValues(UserInfo user, string service, ExtendedPanInfoResult pi) { SetUser(user); this.Service = service; this.CardType = pi.GetCardType(); this.CardType2 = pi.GetShortCardType(); this.MII = Util.ConvertTokenToString(pi.GetMII()); this.MIIIssuerCategory = pi.GetMIIIssuerCategory(); this.CardToken = pi.GetToken(); this.CardNumber = pi.GetPan(); this.TruncatedCardNumber = pi.GetTruncatedPan(); this.StartDate = null; this.ExpiryDate = pi.GetExpirationDate(); this.ShortExpirationDate = pi.GetShortExpirationDate(); this.CVV2 = null; this.Origin = "traveller"; this.FinancialFlow = pi.GetMerchantFlow(); SetFormOfPayment(); }