Esempio n. 1
0
        public static DebitCardObject CreateDebit(
            string id, string amount, string currency, string memo,
            string payer, string payerAccountNumber,
            string cardAssociationName, string cardNumber,
            string dailyWithDrawalLimit, string payee, string payeeAccountNumber,
            DateTime?validFrom = null, DateTime?validTo = null)
        {
            var r = new DebitCardDbRecord {
                ID                   = id,
                Amount               = amount,
                Currency             = currency,
                Memo                 = memo,
                Payee                = payee,
                PayeeAccountNumber   = payeeAccountNumber,
                Payer                = payer,
                PayerAccountNumber   = payerAccountNumber,
                CardAssociationName  = cardAssociationName,
                CardNumber           = cardNumber,
                DailyWithDrawalLimit = dailyWithDrawalLimit,
                ValidFrom            = validFrom ?? DateTime.MinValue,
                ValidTo              = validTo ?? DateTime.MaxValue
            };

            return(new DebitCardObject(r));
        }
Esempio n. 2
0
 private static DebitCardObject create(DebitCardDbRecord dbRecord)
 {
     return(new DebitCardObject(dbRecord));
 }