autobus-api_old/AutobusApi.Application/TicketGroups/Commands/UpdateTicketGroup/UpdateTicketGroupCommand.cs

50 lines
1.2 KiB
C#

using MediatR;
namespace AutobusApi.Application.TicketGroups.Commands.UpdateTicketGroup;
public record UpdateTicketGroupCommand : IRequest
{
public int Id { get; set; }
public int? UserId { get; set; }
public string BuyerFirstName { get; set; } = null!;
public string BuyerLastName { get; set; } = null!;
public string BuyerPhoneNumber { get; set; } = null!;
public string BuyerEmail { get; set; } = null!;
public string PassengerFirstName { get; set; } = null!;
public string PassengerLastName { get; set; } = null!;
public string PassengerPatronymic { get; set; } = null!;
public string PassengerSex { get; set; } = null!;
public DateOnly PassengerBirthDate { get; set; }
public DateTime PurchaseDateTime { get; set; }
public bool IsReturned { get; set; }
public string DocumentType { get; set; } = null!;
public string DocumentInformation { get; set; } = null!;
public List<UpdateTicketCommand> Tickets { get; set; } = null!;
}
public record UpdateTicketCommand
{
public int? Id { get; set; }
public int VehicleEnrollmentId { get; set; }
public int DepartureAddressId { get; set; }
public int ArrivalAddressId { get; set; }
}