using System;
namespace NPetshop.Domain.Billing
{
///
/// Business entity used to model credit card information.
///
[Serializable]
public class CreditCard{
#region Private Fields
private string _cardType;
private string _cardNumber;
private string _cardExpiration;
#endregion
#region Properties
///
/// Default constructor
///
public CreditCard()
{
}
///
/// Constructor with specified initial values
///
/// Card type, e.g. Visa, Master Card, American Express
/// Number on the card
/// Expiry Date, form MM/YY
public CreditCard(string cardType, string cardNumber, string cardExpiration){
this._cardType = cardType;
this._cardNumber = cardNumber;
this._cardExpiration = cardExpiration;
}
// Properties
public string CardType {
get { return _cardType; }
set { _cardType = value; }
}
public string CardNumber {
get { return _cardNumber; }
set { _cardNumber = value; }
}
public string CardExpiration {
get { return _cardExpiration; }
set { _cardExpiration = value; }
}
#endregion
}
}