Ejemplo n.º 1
0
        public override object Clone()
        {
            var clone = new AntiFraudPaymentResponseTxn();

            CopyTo(clone);
            return(clone);
        }
Ejemplo n.º 2
0
 private void CopyTo(AntiFraudPaymentResponseTxn clone)
 {
     base.CopyTo(clone);
     clone.PurchaseId            = PurchaseId;
     clone.AntiFraudResponseCode = AntiFraudResponseCode;
     clone.AntiFraudResponseText = AntiFraudResponseText;
     clone.FraudGuard            = (FraudGuard)FraudGuard.Clone();
 }
Ejemplo n.º 3
0
        private static void Deserialize(XmlNode xmlTxn, AntiFraudPaymentResponseTxn txn)
        {
            GetElementValue(xmlTxn, "antiFraudResponseCode", v => txn.antiFraudResponseCode = v);
            GetElementValue(xmlTxn, "antiFraudResponseText", v => txn.antiFraudResponseText = v);

            var xmlFraudGuard = xmlTxn.SelectSingleNode("FraudGuard");

            if (xmlFraudGuard != null)
            {
                txn.FraudGuard = new FraudGuard();
                Deserialize(xmlFraudGuard, txn.FraudGuard);
            }
        }