Skip to content

Commit f7228b1

Browse files
author
Florian Weihmann
committed
+ Fixed confusing exception message for ParameterPatchListingItem
1 parent f384d69 commit f7228b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/FikaAmazonAPI/Parameter/ListingsItems/ParameterPatchListingItem.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ public bool Check()
2626
}
2727
if (this.listingsItemPatchRequest == null)
2828
{
29-
throw new InvalidDataException("ListingsItemPutRequest is a required property for ParameterPatchListingItem and cannot be null");
29+
throw new InvalidDataException("ListingsItemPatchRequest is a required property for ParameterPatchListingItem and cannot be null");
3030
}
31-
if (string.IsNullOrWhiteSpace(this.listingsItemPatchRequest.productType))
31+
if (string.IsNullOrWhiteSpace(this.listingsItemPatchRequest.productType))
3232
{
33-
throw new InvalidDataException("ListingsItemPutRequest is a required property for ParameterPatchListingItem and cannot be null");
33+
throw new InvalidDataException("ListingsItemPatchRequest.productType is a required property for ParameterPatchListingItem and cannot be null");
3434
}
35-
if (this.listingsItemPatchRequest.patches==null|| !this.listingsItemPatchRequest.patches.Any())
35+
if (this.listingsItemPatchRequest.patches == null || !this.listingsItemPatchRequest.patches.Any())
3636
{
3737
throw new InvalidDataException("Patches is a required property for ParameterPatchListingItem and cannot be null");
3838
}
39-
return true;
39+
return true;
4040
}
4141

4242
public string sellerId { get; set; }
@@ -47,7 +47,7 @@ public bool Check()
4747

4848
public string issueLocale { get; set; }
4949

50-
public ListingsItemPatchRequest listingsItemPatchRequest { get; set; }
50+
public ListingsItemPatchRequest listingsItemPatchRequest { get; set; }
5151

5252
}
5353

0 commit comments

Comments
 (0)