21 lines
597 B
C#
21 lines
597 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Models;
|
|
|
|
/// <summary>
|
|
/// One entry in a customer's site (telephely) list, stored as JSON in the
|
|
/// <c>customerSites</c> generic attribute. References an existing customer
|
|
/// Address by id; extensible with per-site fields (e.g. Note) later.
|
|
/// </summary>
|
|
public class CustomerSiteEntry
|
|
{
|
|
[JsonPropertyName("addressId")]
|
|
public int AddressId { get; set; }
|
|
|
|
[JsonPropertyName("isDefault")]
|
|
public bool IsDefault { get; set; }
|
|
|
|
[JsonPropertyName("note")]
|
|
public string? Note { get; set; }
|
|
}
|