48 lines
2.3 KiB
C#
48 lines
2.3 KiB
C#
//using AyCode.Core.Consts;
|
|
//using Mango.Nop.Core;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin
|
|
{
|
|
//public class FruitBankConst : NopCommonConst
|
|
//{
|
|
// public static string ProjectIdString = "f9f9383f-c459-4b9f-b0b5-201bd4a9c21b";
|
|
// public const string RequiresMeasurementAttr = "PriceByMeasurement.RequiresMeasurement";
|
|
|
|
// static FruitBankConst()
|
|
// {
|
|
// ProjectId = Guid.Parse(ProjectIdString);
|
|
// ProjectSalt = GenerateProjectSalt(ProjectId.ToString("N"));
|
|
// }
|
|
//}
|
|
|
|
public static class FruitBankPluginConst
|
|
{
|
|
/// <summary>
|
|
/// PreOrders whose DateOfReceipt is further than this many days in the future
|
|
/// are NOT converted at the current conversion run.
|
|
/// Based on the bi-weekly truck cycle (~3-4 days between arrivals):
|
|
/// if delivery is more than 4 days away, the next truck will arrive before
|
|
/// that delivery date, and its document processing will be the correct trigger.
|
|
/// </summary>
|
|
public const int PreOrderConversionWindowDays = 4;
|
|
|
|
// ── Customer generic-attribute keys (store-agnostic, StoreId 0) ──────────
|
|
/// <summary>Bool flag: the customer is subject to EKÁER reporting.</summary>
|
|
public const string IsEkaerAttribute = "isEkaer";
|
|
|
|
/// <summary>JSON list of the customer's site (telephely) addresses — see CustomerSiteEntry.</summary>
|
|
public const string CustomerSitesAttribute = "customerSites";
|
|
|
|
/// <summary>JSON list of the customer's selectable license plates — see CustomerLicensePlateEntry.</summary>
|
|
public const string CustomerLicensePlatesAttribute = "customerLicensePlates";
|
|
|
|
// ── Order generic-attribute keys (KeyGroup "Order", StoreId 0) ───────────
|
|
// MUST match the IOrderDto/OrderDto property names (the DTO reads them by nameof).
|
|
/// <summary>JSON snapshot of the order's site (telephely) — see FruitBank.Common OrderSiteSnapshot.</summary>
|
|
public const string OrderSiteAttribute = "Site";
|
|
|
|
/// <summary>License plate (rendszám) of the vehicle picking up the order. Raw; the NAV mapper normalizes.</summary>
|
|
public const string OrderLicensePlateAttribute = "LicensePlate";
|
|
}
|
|
}
|