Skip to content

Commit 2330cc4

Browse files
committed
Fixed ListingItemPutRequest serilization
Propertie are case sensitive and enum needs to be converted to string
1 parent 9d43687 commit 2330cc4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Source/FikaAmazonAPI/Parameter/ListingsItems/ParameterPutListingItem.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
using FikaAmazonAPI.Search;
1+
using FikaAmazonAPI.Search;
22
using FikaAmazonAPI.Utils;
3+
using Newtonsoft.Json;
4+
using Newtonsoft.Json.Converters;
35
using System;
46
using System.Collections.Generic;
57
using System.IO;
@@ -53,13 +55,14 @@ public bool Check()
5355

5456
public class ListingsItemPutRequest
5557
{
56-
public string ProductType { get; set; }
58+
public string productType { get; set; }
5759

58-
public Requirements Requirements { get; set; }
60+
public Requirements requirements { get; set; }
5961

60-
public Object Attributes { get; set; }
62+
public Object attributes { get; set; }
6163
}
6264

65+
[JsonConverter(typeof(StringEnumConverter))]
6366
public enum Requirements
6467
{
6568
LISTING,

0 commit comments

Comments
 (0)