示例#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>();
 }
示例#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;
 }
示例#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;
 }
示例#4
0
文件: Payment.cs 项目: al-main/vabank
        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();
        }
示例#5
0
 protected UserAccount(Currency currency, User owner, string type)
     : base(currency, type ?? "CustomerAccount")
 {
     Argument.NotNull(owner, "user");
     Owner = owner;
 }
示例#6
0
 internal CorrespondentAccount(Currency currency, Bank bank)
     : base(currency, "CorrespondentAccount")
 {
     Argument.NotNull(bank, "bank");
     Bank = bank;
 }