37 lines
904 B
C#
37 lines
904 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace RanazePos.Api.Configuration;
|
|
|
|
public sealed class PosSettings
|
|
{
|
|
[JsonPropertyName("sizeOptions")]
|
|
public required IReadOnlyList<SizeOption> SizeOptions { get; init; }
|
|
|
|
[JsonPropertyName("sweetnessOptions")]
|
|
public required IReadOnlyList<string> SweetnessOptions { get; init; }
|
|
|
|
[JsonPropertyName("iceOptions")]
|
|
public required IReadOnlyList<string> IceOptions { get; init; }
|
|
|
|
[JsonPropertyName("toppings")]
|
|
public required IReadOnlyList<ToppingOption> Toppings { get; init; }
|
|
}
|
|
|
|
public sealed class SizeOption
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public required string Name { get; init; }
|
|
|
|
[JsonPropertyName("delta")]
|
|
public decimal Delta { get; init; }
|
|
}
|
|
|
|
public sealed class ToppingOption
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public required string Name { get; init; }
|
|
|
|
[JsonPropertyName("price")]
|
|
public decimal Price { get; init; }
|
|
}
|