Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Oct 22, 2024
1 parent cf18dc3 commit 21ce4a1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@
- added method `apiRoot.withProjectKey().productTailoring().head()`
</details>

**Import changes**

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

- added type `NewMasterVariantAdditionNotAllowedError`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace commercetools.Sdk.ImportApi.Models.Errors
[SubTypeDiscriminator("InvalidJsonInput", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidJsonInput))]
[SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidOperation))]
[SubTypeDiscriminator("InvalidTransition", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError))]
[SubTypeDiscriminator("NewMasterVariantAdditionNotAllowed", typeof(commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError))]
[SubTypeDiscriminator("ReferencedResourceNotFound", typeof(commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound))]
[SubTypeDiscriminator("RequiredField", typeof(commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError))]
[SubTypeDiscriminator("ResourceCreation", typeof(commercetools.Sdk.ImportApi.Models.Errors.ResourceCreationError))]
Expand Down Expand Up @@ -143,6 +144,12 @@ static commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError Inv
init?.Invoke(t);
return t;
}
static commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError NewMasterVariantAdditionNotAllowed(Action<commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError> init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound ReferencedResourceNotFound(Action<commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound> init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.ImportApi.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError))]
public partial interface INewMasterVariantAdditionNotAllowedError : IErrorObject
{
new string Message { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@


namespace commercetools.Sdk.ImportApi.Models.Errors
{

public partial class NewMasterVariantAdditionNotAllowedError : INewMasterVariantAdditionNotAllowedError
{
public string Code { get; set; }

public string Message { get; set; }
public NewMasterVariantAdditionNotAllowedError()
{
this.Code = "NewMasterVariantAdditionNotAllowed";
}
}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,4 @@ c77ec902f368c2c31505fcb65a835ce148350077
e985f4b7aa55610705ee49bd3eb645c2fd03eb6c
7b61d389a7b8bd5dac2d780c6b6fbea0b881400c
c27603f949e869148570ebb8bd3ec6db34a985b7
82bca33a98d14907ea79e2cca281625dd82cdf0d

0 comments on commit 21ce4a1

Please sign in to comment.