Esempio n. 1
0
 internal CardAccount(string accountNo, Currency currency, User owner)
     : base(currency, owner, "CardAccount")
 {
     Argument.EnsureIsValid<AccountNumberValidator, string>(accountNo, "accountNo");
     AccountNo = accountNo;
     Cards = new Collection<UserCard>();
 }
Esempio n. 2
0
 internal CardPayment(
     Card card, 
     PaymentTemplate template,
     PaymentOrder order,
     JObject submittedForm,
     Account from,
     Account to,
     Currency currency)
     : base(template, submittedForm, order, currency, from, to)
 {
     Argument.NotNull(card, "card");
     Card = card;
 }
Esempio n. 3
0
 internal CardTransaction(
     string code,
     string description,
     string location,
     Account account,
     Card card, 
     Currency transactionCurrency, 
     decimal transactionAmount,
     decimal accountAmount)
     : base(account, transactionCurrency, transactionAmount, accountAmount, code, description, location)
 {
     Argument.NotNull(card, "card");
     Card = card;
 }
Esempio n. 4
0
        internal Payment(
            PaymentTemplate template,
            JObject submittedForm,
            PaymentOrder order,
            Currency currency,
            Account from, 
            Account to)
            : base(template, from, to, currency, order.Amount)
        {
            Argument.NotNull(submittedForm, "submittedForm");
            Argument.NotNull(template, "template");
            Argument.NotNull(order, "order");

            Order = order;
            Form = submittedForm.ToString();
        }
Esempio n. 5
0
 protected UserAccount(Currency currency, User owner, string type)
     : base(currency, type ?? "CustomerAccount")
 {
     Argument.NotNull(owner, "user");
     Owner = owner;
 }
Esempio n. 6
0
 internal CorrespondentAccount(Currency currency, Bank bank)
     : base(currency, "CorrespondentAccount")
 {
     Argument.NotNull(bank, "bank");
     Bank = bank;
 }