Skip to content

Commit 8f7dc1f

Browse files
authored
Merge pull request #665 from TManITtech/main
2 parents ffa6da2 + 6333337 commit 8f7dc1f

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Exceptions/AmazonException.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ public AmazonUnauthorizedException(string msg, RestResponse response = null) : b
3838

3939
public class AmazonInvalidInputException : AmazonException
4040
{
41-
public AmazonInvalidInputException(string msg, RestResponse response = null) : base(msg, response)
42-
{
41+
public string Details { get; set; }
4342

43+
public AmazonInvalidInputException(string msg, string details = null, RestResponse response = null) : base(msg, response)
44+
{
45+
this.Details = details;
46+
//this.Data["Details"] = details;
4447
}
4548
}
49+
4650
public class AmazonQuotaExceededException : AmazonException
4751
{
4852
public AmazonQuotaExceededException(string msg, RestResponse response = null) : base(msg, response)

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/EventFilter.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ public class EventFilter : AggregationFilter
2626
[JsonProperty(PropertyName = "eventFilterType")]
2727
public string EventFilterType { get; set; }
2828

29+
/// <summary>
30+
/// Gets or Sets OrderChangeTypes
31+
/// </summary>
32+
[DataMember(Name = "orderChangeTypes", EmitDefaultValue = false)]
33+
[JsonProperty(PropertyName = "orderChangeTypes")]
34+
public IList<string> OrderChangeTypes { get; set; }
35+
2936

3037
/// <summary>
3138
/// Get the string presentation of the object
@@ -37,6 +44,7 @@ public override string ToString()
3744
sb.Append("class EventFilter {\n");
3845
sb.Append(" MarketplaceIds: ").Append(MarketplaceIds).Append("\n");
3946
sb.Append(" EventFilterType: ").Append(EventFilterType).Append("\n");
47+
sb.Append(" OrderChangeTypes: ").Append(OrderChangeTypes).Append("\n");
4048
sb.Append("}\n");
4149
return sb.ToString();
4250
}

Source/FikaAmazonAPI/Services/RequestService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected void ParseResponse(RestResponse response)
285285
case "InvalidSignature":
286286
throw new AmazonInvalidSignatureException(error.Message, response);
287287
case "InvalidInput":
288-
throw new AmazonInvalidInputException(error.Message, response);
288+
throw new AmazonInvalidInputException(error.Message, error.Details, response);
289289
case "QuotaExceeded":
290290
throw new AmazonQuotaExceededException(error.Message, response);
291291
case "InternalFailure":

0 commit comments

Comments
 (0)