Path: redb-route/demo/SerialNumbersDemo/SerialNumbers.Domain/Services/ProductStatuses.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/demo/SerialNumbersDemo/SerialNumbers.Domain/Services/ProductStatuses.cs
----
namespace SerialNumbers.Domain.Services;
/// Where a product is in its life.
public static class ProductStatuses
{
/// Being set up. Requests for it are put on hold, not rejected: the partner did nothing wrong.
public const string Draft = "Draft";
/// Serial numbers are issued for it.
public const string Active = "Active";
/// No longer produced. Requests for it are rejected.
public const string Obsolete = "Obsolete";
public static bool IsKnown(string? status) => status is Draft or Active or Obsolete;
}