Skip to content

Commit

Permalink
Update generated SDKs (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Oct 14, 2021
1 parent 60bacf9 commit 3b62284
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Api.Models.Errors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Errors
{
public partial class BadGatewayError : IBadGatewayError
{
public string Code { get; set; }

public string Message { get; set; }
public BadGatewayError()
{
this.Code = "BadGateway";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using commercetools.Api.Models.Errors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using commercetools.Base.CustomAttributes;


namespace commercetools.Api.Models.Errors
{
[DeserializeAs(typeof(commercetools.Api.Models.Errors.BadGatewayError))]
public partial interface IBadGatewayError : IErrorObject
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace commercetools.Api.Models.Errors
[SubTypeDiscriminator("AttributeDefinitionAlreadyExists", typeof(commercetools.Api.Models.Errors.AttributeDefinitionAlreadyExistsError))]
[SubTypeDiscriminator("AttributeDefinitionTypeConflict", typeof(commercetools.Api.Models.Errors.AttributeDefinitionTypeConflictError))]
[SubTypeDiscriminator("AttributeNameDoesNotExist", typeof(commercetools.Api.Models.Errors.AttributeNameDoesNotExistError))]
[SubTypeDiscriminator("BadGateway", typeof(commercetools.Api.Models.Errors.BadGatewayError))]
[SubTypeDiscriminator("ConcurrentModification", typeof(commercetools.Api.Models.Errors.ConcurrentModificationError))]
[SubTypeDiscriminator("DiscountCodeNonApplicable", typeof(commercetools.Api.Models.Errors.DiscountCodeNonApplicableError))]
[SubTypeDiscriminator("DuplicateAttributeValue", typeof(commercetools.Api.Models.Errors.DuplicateAttributeValueError))]
Expand Down

0 comments on commit 3b62284

Please sign in to comment.