21 lines
657 B
C#
21 lines
657 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Models;
|
|
|
|
/// <summary>
|
|
/// One selectable license plate (rendszám) in a customer's plate list, stored as JSON
|
|
/// in the <c>customerLicensePlates</c> generic attribute. Extensible with per-plate
|
|
/// fields (e.g. Note) later. One entry may be the default, auto-assigned to new orders.
|
|
/// </summary>
|
|
public class CustomerLicensePlateEntry
|
|
{
|
|
[JsonPropertyName("plate")]
|
|
public string Plate { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("isDefault")]
|
|
public bool IsDefault { get; set; }
|
|
|
|
[JsonPropertyName("note")]
|
|
public string? Note { get; set; }
|
|
}
|