public PreauthResponse(Message m) { PreauthId = m.GetDataStringValue("preauth_id"); Details = new PurchaseResponse(m); PosRefId = Details.PosRefId; _m = m; }
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(); }
public MotoPurchaseResponse(Message m) { PurchaseResponse = new PurchaseResponse(m); PosRefId = PurchaseResponse.PosRefId; }
public AccountVerifyResponse(Message m) { Details = new PurchaseResponse(m); PosRefId = Details.PosRefId; _m = m; }