protected bool ValidateUpsAcct(UPSaccount acct)
 {
     if (acct.P == null || acct.A == null || acct.I == null || acct.N == null)
     {
         return(false);
     }
     if (acct.P == "" || acct.A == "" || acct.I == "" || acct.N == "")
     {
         return(false);
     }
     return(true);
 }
        private string GetInnerUpsAcctError(UPSaccount acct)
        {
            string ret = "";

            if (acct.P == null)
            {
                ret += "<No Password>";
            }
            if (acct.A == null)
            {
                ret += "<No Account Number>";
            }
            if (acct.I == null)
            {
                ret += "<No UserID>";
            }
            if (acct.N == null)
            {
                ret += "<No Shipper Number>";
            }
            if (acct.P == "")
            {
                ret += "<No Password>";
            }
            if (acct.A == "")
            {
                ret += "<No Account Number>";
            }
            if (acct.I == "")
            {
                ret += "<No UserID>";
            }
            if (acct.N == "")
            {
                ret += "<No Shipper Number>";
            }
            return(ret);
        }
Esempio n. 3
0
 public UPS(UPSaccount upsacct, bool testmode)
 {
     TESTMODE = testmode;
     UPSacct  = upsacct;
 }