Skip to content

Commit a09435f

Browse files
committed
added warehouse quantity action enum
1 parent 0df5b19 commit a09435f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

NetoDotNET/Entities/Product/Item.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using NetoDotNET.Extensions;
22
using Newtonsoft.Json;
3+
using Newtonsoft.Json.Converters;
34
using System;
45
using System.Collections.Generic;
6+
using System.Runtime.Serialization;
57
using System.Text;
68

79
namespace NetoDotNET.Entities
@@ -466,9 +468,20 @@ public class Item
466468
public class WarehouseQuantity
467469
{
468470
public string WarehouseID { get; set; }
471+
public WarehouseQuantityAction Action { get; set; }
469472
public string Quantity { get; set; }
470473
}
471474

475+
[JsonConverter(typeof(StringEnumConverter))]
476+
public enum WarehouseQuantityAction
477+
{
478+
[EnumMember(Value = "increment")]
479+
Increment,
480+
[EnumMember(Value = "decrement")]
481+
Decrement,
482+
[EnumMember(Value = "set")]
483+
Set
484+
}
472485
public class SalesChannels
473486
{
474487
public SalesChannel[] SalesChannel { get; set; }

0 commit comments

Comments
 (0)