Skip to content

Commit

Permalink
Merge pull request #362 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Oct 7, 2024
2 parents ec88f07 + db0919f commit a82d998
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@
- added enum `product-tailoring` to type `ResourceTypeId`
</details>

**Import changes**

<details>
<summary>Added Type(s)</summary>

- added type `InvalidFieldsUpdateError`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace commercetools.Sdk.ImportApi.Models.Errors
[SubTypeDiscriminator("invalid_token", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidTokenError))]
[SubTypeDiscriminator("InvalidCredentials", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidCredentialsError))]
[SubTypeDiscriminator("InvalidField", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldError))]
[SubTypeDiscriminator("InvalidFieldUpdate", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldsUpdateError))]
[SubTypeDiscriminator("InvalidInput", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidInput))]
[SubTypeDiscriminator("InvalidJsonInput", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidJsonInput))]
[SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidOperation))]
Expand Down Expand Up @@ -112,6 +113,12 @@ static commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldError InvalidField(
init?.Invoke(t);
return t;
}
static commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldsUpdateError InvalidFieldUpdate(Action<commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldsUpdateError> init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldsUpdateError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.ImportApi.Models.Errors.InvalidInput InvalidInput(Action<commercetools.Sdk.ImportApi.Models.Errors.InvalidInput> init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.InvalidInput();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections.Generic;
using System.Linq;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.ImportApi.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidFieldsUpdateError))]
public partial interface IInvalidFieldsUpdateError : IErrorObject
{
new string Message { get; set; }

IList<string> Fields { get; set; }

IEnumerable<string> FieldsEnumerable { set => Fields = value.ToList(); }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.Linq;

namespace commercetools.Sdk.ImportApi.Models.Errors
{

public partial class InvalidFieldsUpdateError : IInvalidFieldsUpdateError
{
public string Code { get; set; }

public string Message { get; set; }

public IList<string> Fields { get; set; }

public IEnumerable<string> FieldsEnumerable { set => Fields = value.ToList(); }
public InvalidFieldsUpdateError()
{
this.Code = "InvalidFieldUpdate";
}
}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,4 @@ efc70952597a3160e6bb47891894b109bd82b7c3
4ee8b39787eb0f0b2d025520acdaa022122bd617
c77ec902f368c2c31505fcb65a835ce148350077
903922e6a2dc0ff9283757645395f5119f61be0e
e985f4b7aa55610705ee49bd3eb645c2fd03eb6c

0 comments on commit a82d998

Please sign in to comment.