File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
NetoDotNET/Entities/Product Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
using NetoDotNET . Extensions ;
2
2
using Newtonsoft . Json ;
3
+ using Newtonsoft . Json . Converters ;
3
4
using System ;
4
5
using System . Collections . Generic ;
6
+ using System . Runtime . Serialization ;
5
7
using System . Text ;
6
8
7
9
namespace NetoDotNET . Entities
@@ -466,9 +468,20 @@ public class Item
466
468
public class WarehouseQuantity
467
469
{
468
470
public string WarehouseID { get ; set ; }
471
+ public WarehouseQuantityAction Action { get ; set ; }
469
472
public string Quantity { get ; set ; }
470
473
}
471
474
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
+ }
472
485
public class SalesChannels
473
486
{
474
487
public SalesChannel [ ] SalesChannel { get ; set ; }
You can’t perform that action at this time.
0 commit comments