21 lines
788 B
C#
21 lines
788 B
C#
namespace AVSCartonShipmentVerifier.DTOs;
|
|
|
|
public sealed class VerificationResultDto
|
|
{
|
|
public string ModelNumber { get; init; } = string.Empty;
|
|
public string UniqueNumber { get; init; } = string.Empty;
|
|
public string RawQrValue { get; init; } = string.Empty;
|
|
public bool ExistsInSystem { get; init; }
|
|
public bool ShipmentMarked { get; init; }
|
|
public DateTime? MovedToWarehouseAtUtc { get; init; }
|
|
public bool IsSuccessful => ExistsInSystem && ShipmentMarked;
|
|
public string Message { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// When the scan is rejected, matches <see cref="VerificationRejectionReasons"/> where applicable.
|
|
/// </summary>
|
|
public string? RejectionReason { get; init; }
|
|
|
|
public DateTime ProcessedAtUtc { get; init; }
|
|
}
|