File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Source/FikaAmazonAPI/Parameter/ListingsItems Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- using FikaAmazonAPI . Search ;
1
+ using FikaAmazonAPI . Search ;
2
2
using FikaAmazonAPI . Utils ;
3
+ using Newtonsoft . Json ;
4
+ using Newtonsoft . Json . Converters ;
3
5
using System ;
4
6
using System . Collections . Generic ;
5
7
using System . IO ;
@@ -29,11 +31,11 @@ public bool Check()
29
31
{
30
32
throw new InvalidDataException ( "ListingsItemPutRequest is a required property for ParameterPutListingItem and cannot be null" ) ;
31
33
}
32
- if ( string . IsNullOrWhiteSpace ( this . listingsItemPutRequest . ProductType ) )
34
+ if ( string . IsNullOrWhiteSpace ( this . listingsItemPutRequest . productType ) )
33
35
{
34
36
throw new InvalidDataException ( "ProductType is a required property for ListingsItemPutRequest and cannot be null" ) ;
35
37
}
36
- if ( this . listingsItemPutRequest . Attributes == null )
38
+ if ( this . listingsItemPutRequest . attributes == null )
37
39
{
38
40
throw new InvalidDataException ( "Attributes is a required property for ListingsItemPutRequest and cannot be null" ) ;
39
41
}
@@ -53,13 +55,14 @@ public bool Check()
53
55
54
56
public class ListingsItemPutRequest
55
57
{
56
- public string ProductType { get ; set ; }
58
+ public string productType { get ; set ; }
57
59
58
- public Requirements Requirements { get ; set ; }
60
+ public Requirements requirements { get ; set ; }
59
61
60
- public Object Attributes { get ; set ; }
62
+ public Object attributes { get ; set ; }
61
63
}
62
64
65
+ [ JsonConverter ( typeof ( StringEnumConverter ) ) ]
63
66
public enum Requirements
64
67
{
65
68
LISTING ,
You can’t perform that action at this time.
0 commit comments