using Newtonsoft.Json; namespace Nop.Plugin.Misc.Zettle.Domain.Api.Inventory; /// /// Represents inventory balance update details /// public class InventoryBalanceUpdate : ApiResponse { /// /// Gets or sets the unique identifier as UUID version 1 /// [JsonProperty(PropertyName = "externalUuid")] public string ExternalUuid { get; set; } /// /// Gets or sets the inventory balance before update /// [JsonProperty(PropertyName = "balanceBefore")] public List BalanceBefore { get; set; } /// /// Gets or sets the inventory balance after update /// [JsonProperty(PropertyName = "balanceAfter")] public List BalanceAfter { get; set; } /// /// Gets or sets the update details /// [JsonProperty(PropertyName = "updated")] public InventoryBalanceUpdateDetails UpdateDetails { get; set; } #region Nested classes /// /// Represents inventory balance change details /// public class InventoryBalanceChange { /// /// Gets or sets the unique identifier as UUID version 1 /// [JsonProperty(PropertyName = "locationUuid")] public string LocationUuid { get; set; } /// /// Gets or sets the unique identifier as UUID version 1 /// [JsonProperty(PropertyName = "productUuid")] public string ProductUuid { get; set; } /// /// Gets or sets the unique identifier as UUID version 1 /// [JsonProperty(PropertyName = "variantUuid")] public string VariantUuid { get; set; } /// /// Gets or sets the inventory balance /// [JsonProperty(PropertyName = "balance")] public int? Balance { get; set; } /// /// Gets or sets the created date /// [JsonProperty(PropertyName = "created")] public DateTime? Created { get; set; } } /// /// Represents inventory balance update details /// public class InventoryBalanceUpdateDetails { /// /// Gets or sets the updated timestamp /// [JsonProperty(PropertyName = "timestamp")] public DateTime? Timestamp { get; set; } } #endregion }