Exemplo n.º 1
0
 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
 }
        // 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;
        }
 /// <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();
 }
 public void SetExtendedPanInfos(ExtendedPanInfoResult value)
 {
     this.extendedPanInfos = value;
 }