Ejemplo n.º 1
0
 public PreauthResponse(Message m)
 {
     PreauthId = m.GetDataStringValue("preauth_id");
     Details   = new PurchaseResponse(m);
     PosRefId  = Details.PosRefId;
     _m        = m;
 }
Ejemplo n.º 2
0
        public BillPayment(Message m)
        {
            _incomingAdvice = m;
            BillId          = _incomingAdvice.GetDataStringValue("bill_id");
            TableId         = _incomingAdvice.GetDataStringValue("table_id");
            OperatorId      = _incomingAdvice.GetDataStringValue("operator_id");

            Enum.TryParse(_incomingAdvice.GetDataStringValue("payment_type"), true, out PaymentType pt);
            PaymentType = pt;

            // this is when we ply the sub object "payment_details" into a purchase response for convenience.
            var purchaseMsg = new Message(m.Id, "payment_details", (JObject)m.Data.GetValue("payment_details"), false);

            PurchaseResponse = new PurchaseResponse(purchaseMsg);

            PurchaseAmount = PurchaseResponse.GetPurchaseAmount();
            TipAmount      = PurchaseResponse.GetTipAmount();
        }
Ejemplo n.º 3
0
 public MotoPurchaseResponse(Message m)
 {
     PurchaseResponse = new PurchaseResponse(m);
     PosRefId         = PurchaseResponse.PosRefId;
 }
Ejemplo n.º 4
0
 public AccountVerifyResponse(Message m)
 {
     Details  = new PurchaseResponse(m);
     PosRefId = Details.PosRefId;
     _m       = m;
 }