Beispiel #1
0
 public bool PayWtihBC(
     string BCId,
     string BCDateExpiration,
     string BCCryptogram
     )
 {
     // TODO BC payement check with banks
     Bracket.AddTransaction(TransactionType.BC, GetRemainsDependent());
     return(true);
 }
Beispiel #2
0
        public void PayWithCash(double amount)
        {
            var remainAmount = GetRemainsDependent();

            Bracket.AddTransaction(TransactionType.Cash, amount);

            if (amount == remainAmount)
            {
                Bracket.AddTransaction(TransactionType.CashChange, 0);
            }
        }
Beispiel #3
0
 public void PayWithCheck(double amount)
 {
     Bracket.AddTransaction(TransactionType.Check, amount);
 }
Beispiel #4
0
 public void PayWithBC(double amount)
 {
     Bracket.AddTransaction(TransactionType.BC, amount);
 }
Beispiel #5
0
 public void GiveBackChange(double amount)
 {
     Bracket.AddTransaction(TransactionType.CashChange, amount);
 }