diff --git a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/AggregationFilter.cs b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/AggregationFilter.cs index 1d05a794..68420607 100644 --- a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/AggregationFilter.cs +++ b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/AggregationFilter.cs @@ -14,7 +14,7 @@ public class AggregationFilter /// Gets or Sets AggregationSettings /// [DataMember(Name = "aggregationSettings", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "aggregationSettings")] + [JsonProperty(PropertyName = "aggregationSettings", NullValueHandling = NullValueHandling.Ignore)] public AggregationSettings AggregationSettings { get; set; } diff --git a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/EventFilter.cs b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/EventFilter.cs index 8b083174..77f033ea 100644 --- a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/EventFilter.cs +++ b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/EventFilter.cs @@ -15,7 +15,7 @@ public class EventFilter : AggregationFilter /// Gets or Sets MarketplaceIds /// [DataMember(Name = "marketplaceIds", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "marketplaceIds")] + [JsonProperty(PropertyName = "marketplaceIds", NullValueHandling = NullValueHandling.Ignore)] public IList MarketplaceIds { get; set; } /// @@ -23,14 +23,14 @@ public class EventFilter : AggregationFilter /// /// An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. [DataMember(Name = "eventFilterType", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "eventFilterType")] + [JsonProperty(PropertyName = "eventFilterType", NullValueHandling = NullValueHandling.Ignore)] public string EventFilterType { get; set; } /// /// Gets or Sets OrderChangeTypes /// [DataMember(Name = "orderChangeTypes", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "orderChangeTypes")] + [JsonProperty(PropertyName = "orderChangeTypes", NullValueHandling = NullValueHandling.Ignore)] public IList OrderChangeTypes { get; set; }