Converting server to dotnet
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user