44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using Core.DomainObjects.PageSections;
|
|
using WeatherForecast.Models.Abstractions;
|
|
|
|
namespace WeatherForecast.Models.PageSections {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class PaymentSectionModel : PageSectionModelBase<PaymentSection> {
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public FormItemModel NameOnCard { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public FormItemModel CardNumber { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public FormItemModel Expiration { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public FormItemModel Cvv { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="paymentSection"></param>
|
|
public PaymentSectionModel(PaymentSection paymentSection) : base(paymentSection) {
|
|
NameOnCard = new FormItemModel(paymentSection.NameOnCard);
|
|
CardNumber = new FormItemModel(paymentSection.CardNumber);
|
|
Expiration = new FormItemModel(paymentSection.Expiration);
|
|
Cvv = new FormItemModel(paymentSection.Cvv);
|
|
}
|
|
|
|
}
|
|
}
|