diff --git a/changes.md b/changes.md index 2341b39fdaf..642ba7cedaf 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,7 @@
Required Property(s) +- changed property `priceMode` of type `CustomLineItemDraft` to be optional - changed property `oldShipmentState` of type `OrderShipmentStateChangedMessage` to be optional - changed property `oldOrderState` of type `OrderStateChangedMessage` to be optional - changed property `oldShipmentState` of type `OrderShipmentStateChangedMessagePayload` to be optional diff --git a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/Customers/CustomersIntegrationTests.cs b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/Customers/CustomersIntegrationTests.cs index aa0d394a423..aacc84a656b 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/Customers/CustomersIntegrationTests.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/Customers/CustomersIntegrationTests.cs @@ -108,7 +108,7 @@ await WithUpdateableCustomer( } ); } - + [Fact] public async Task LoginFails() { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Extensions/ApiHttpExceptionExtensions.cs b/commercetools.Sdk/commercetools.Sdk.Api/Extensions/ApiHttpExceptionExtensions.cs index d26e7046139..2fd9b530bb7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Extensions/ApiHttpExceptionExtensions.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Extensions/ApiHttpExceptionExtensions.cs @@ -10,8 +10,9 @@ public static IErrorResponse AsErrorResponse(this ApiHttpException exception) { return exception.ResponseBody as IErrorResponse; } - - public static bool HasErrorCode(this IErrorResponse errorResponse, string errorCode) { + + public static bool HasErrorCode(this IErrorResponse errorResponse, string errorCode) + { return errorResponse.Errors.Any(o => o.Code.Equals(errorCode)); } } diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Extensions/ApiHttpExceptionExtensions.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Extensions/ApiHttpExceptionExtensions.cs index a7cc4c6e431..24700d55da3 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Extensions/ApiHttpExceptionExtensions.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Extensions/ApiHttpExceptionExtensions.cs @@ -10,8 +10,9 @@ public static IErrorResponse AsErrorResponse(this ApiHttpException exception) { return exception.ResponseBody as IErrorResponse; } - - public static bool HasErrorCode(this IErrorResponse errorResponse, string errorCode) { + + public static bool HasErrorCode(this IErrorResponse errorResponse, string errorCode) + { return errorResponse.Errors.Any(o => o.Code.Equals(errorCode)); } } diff --git a/references.txt b/references.txt index 86436be9edf..26c275b4a2c 100644 --- a/references.txt +++ b/references.txt @@ -221,3 +221,4 @@ be578831c2178be70f96067afc7f51dc08a513e3 3ac46e79b1cfbcb5f09ff4306b26075dd60d14e0 ffed231e91d01608e1bb08ecc1883cf00d9d9293 2645451ae6aef245e333b2f30cf5cb3627f71403 +65619eef7e065950cbb92467d72eaacc68004a14