/// <summary> /// Removes the pre authentication. /// </summary> /// <param name="payment">The payment.</param> public void RemovePreAuth(POSPayment payment) { if (PreAuths.Remove(payment)) { OnPreAuthChanged(payment, PreAuthAction.REMOVED); } }
/// <summary> /// Called when [pre authentication changed]. /// </summary> /// <param name="payment">The payment.</param> /// <param name="action">The action.</param> protected void OnPreAuthChanged(POSPayment payment, PreAuthAction action) { if (PreAuthListChange != null) { PreAuthListChange(payment, action); } }
/// <summary> /// Adds the payment. /// </summary> /// <param name="payment">The payment.</param> public void AddPayment(POSPayment payment) { Payments.Add(payment); onOrderChange(this, OrderChangeTarget.PAYMENT); }
/// <summary> /// Adds the pre authentication. /// </summary> /// <param name="payment">The payment.</param> public void AddPreAuth(POSPayment payment) { PreAuths.Add(payment); OnPreAuthChanged(payment, PreAuthAction.ADDED); }