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 Sep 26, 2024
1 parent eb2fe7b commit eade463
Show file tree
Hide file tree
Showing 35 changed files with 510 additions and 0 deletions.
16 changes: 16 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,30 @@
- added property `staged` to type `ProductVariantDeletedMessage`
- added property `staged` to type `ProductVariantDeletedMessagePayload`
- added property `warnings` to type `ProductTailoring`
- added property `attributes` to type `ProductVariantTailoring`
- added property `attributes` to type `ProductVariantTailoringDraft`
- added property `attributes` to type `ProductTailoringAddVariantAction`
- added property `warnings` to type `Product`
</details>


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

- added type `SearchNotReadyError`
- added type `GraphQLSearchNotReadyError`
- added type `ProductTailoringAttribute`
- added type `ProductTailoringSetAttributeAction`
- added type `ProductTailoringSetAttributeInAllVariantsAction`
- added type `ImageProcessingOngoingWarning`
- added type `WarningObject`
</details>


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

- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId`
- added enum `product-tailoring` to type `ResourceTypeId`
</details>

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace commercetools.Sdk.Api.Models.Errors
{

public partial class GraphQLSearchNotReadyError : IGraphQLSearchNotReadyError
{
public string Code { get; set; }
public GraphQLSearchNotReadyError()
{
this.Code = "SearchNotReady";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("SearchExecutionFailure", typeof(commercetools.Sdk.Api.Models.Errors.SearchExecutionFailureError))]
[SubTypeDiscriminator("SearchFacetPathNotFound", typeof(commercetools.Sdk.Api.Models.Errors.SearchFacetPathNotFoundError))]
[SubTypeDiscriminator("SearchIndexingInProgress", typeof(commercetools.Sdk.Api.Models.Errors.SearchIndexingInProgressError))]
[SubTypeDiscriminator("SearchNotReady", typeof(commercetools.Sdk.Api.Models.Errors.SearchNotReadyError))]
[SubTypeDiscriminator("SemanticError", typeof(commercetools.Sdk.Api.Models.Errors.SemanticErrorError))]
[SubTypeDiscriminator("ShippingMethodDoesNotMatchCart", typeof(commercetools.Sdk.Api.Models.Errors.ShippingMethodDoesNotMatchCartError))]
[SubTypeDiscriminator("StoreCartDiscountsLimitReached", typeof(commercetools.Sdk.Api.Models.Errors.StoreCartDiscountsLimitReachedError))]
Expand Down Expand Up @@ -519,6 +520,12 @@ static commercetools.Sdk.Api.Models.Errors.SearchIndexingInProgressError SearchI
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.SearchNotReadyError SearchNotReady(Action<commercetools.Sdk.Api.Models.Errors.SearchNotReadyError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.SearchNotReadyError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.SemanticErrorError SemanticError(Action<commercetools.Sdk.Api.Models.Errors.SemanticErrorError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.SemanticErrorError();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("SearchExecutionFailure", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSearchExecutionFailureError))]
[SubTypeDiscriminator("SearchFacetPathNotFound", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSearchFacetPathNotFoundError))]
[SubTypeDiscriminator("SearchIndexingInProgress", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSearchIndexingInProgressError))]
[SubTypeDiscriminator("SearchNotReady", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSearchNotReadyError))]
[SubTypeDiscriminator("SemanticError", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSemanticErrorError))]
[SubTypeDiscriminator("ShippingMethodDoesNotMatchCart", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLShippingMethodDoesNotMatchCartError))]
[SubTypeDiscriminator("StoreCartDiscountsLimitReached", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLStoreCartDiscountsLimitReachedError))]
Expand Down Expand Up @@ -517,6 +518,12 @@ static commercetools.Sdk.Api.Models.Errors.GraphQLSearchIndexingInProgressError
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLSearchNotReadyError SearchNotReady(Action<commercetools.Sdk.Api.Models.Errors.GraphQLSearchNotReadyError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLSearchNotReadyError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLSemanticErrorError SemanticError(Action<commercetools.Sdk.Api.Models.Errors.GraphQLSemanticErrorError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLSemanticErrorError();
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.Api.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Errors.GraphQLSearchNotReadyError))]
public partial interface IGraphQLSearchNotReadyError : IGraphQLErrorObject
{
new string Code { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Errors.SearchNotReadyError))]
public partial interface ISearchNotReadyError : IErrorObject
{
new string Code { get; set; }

new string Message { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace commercetools.Sdk.Api.Models.Errors
{

public partial class SearchNotReadyError : ISearchNotReadyError
{
public string Code { get; set; }

public string Message { get; set; }
public SearchNotReadyError()
{
this.Code = "SearchNotReady";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public partial interface IProductTailoringAddVariantAction : IProductTailoringUp

IEnumerable<IAssetDraft> AssetsEnumerable { set => Assets = value.ToList(); }

IList<IProductTailoringAttribute> Attributes { get; set; }

IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }

bool? Staged { get; set; }

}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.ProductTailorings
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringAttribute))]
public partial interface IProductTailoringAttribute
{
string Name { get; set; }

Object Value { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.ProductTailorings
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeAction))]
public partial interface IProductTailoringSetAttributeAction : IProductTailoringUpdateAction
{
long? VariantId { get; set; }

string Sku { get; set; }

string Name { get; set; }

Object Value { get; set; }

bool? Staged { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.ProductTailorings
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeInAllVariantsAction))]
public partial interface IProductTailoringSetAttributeInAllVariantsAction : IProductTailoringUpdateAction
{
string Name { get; set; }

Object Value { get; set; }

bool? Staged { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ namespace commercetools.Sdk.Api.Models.ProductTailorings
[SubTypeDiscriminator("setAssetKey", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAssetKeyAction))]
[SubTypeDiscriminator("setAssetSources", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAssetSourcesAction))]
[SubTypeDiscriminator("setAssetTags", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAssetTagsAction))]
[SubTypeDiscriminator("setAttribute", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeAction))]
[SubTypeDiscriminator("setAttributeInAllVariants", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeInAllVariantsAction))]
[SubTypeDiscriminator("setDescription", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction))]
[SubTypeDiscriminator("setImageLabel", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetImageLabelAction))]
[SubTypeDiscriminator("setImages", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetExternalImagesAction))]
Expand Down Expand Up @@ -131,6 +133,18 @@ static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAssetTa
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeAction SetAttribute(Action<commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeAction> init = null)
{
var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeAction();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeInAllVariantsAction SetAttributeInAllVariants(Action<commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeInAllVariantsAction> init = null)
{
var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetAttributeInAllVariantsAction();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction SetDescription(Action<commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction> init = null)
{
var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ public partial interface IProductVariantTailoring

IEnumerable<IAsset> AssetsEnumerable { set => Assets = value.ToList(); }

IList<IProductTailoringAttribute> Attributes { get; set; }

IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ public partial interface IProductVariantTailoringDraft

IEnumerable<IAsset> AssetsEnumerable { set => Assets = value.ToList(); }

IList<IProductTailoringAttribute> Attributes { get; set; }

IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public partial class ProductTailoringAddVariantAction : IProductTailoringAddVari

public IEnumerable<IAssetDraft> AssetsEnumerable { set => Assets = value.ToList(); }

public IList<IProductTailoringAttribute> Attributes { get; set; }

public IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }

public bool? Staged { get; set; }
public ProductTailoringAddVariantAction()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace commercetools.Sdk.Api.Models.ProductTailorings
{

public partial class ProductTailoringAttribute : IProductTailoringAttribute
{
public string Name { get; set; }

public Object Value { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;

namespace commercetools.Sdk.Api.Models.ProductTailorings
{

public partial class ProductTailoringSetAttributeAction : IProductTailoringSetAttributeAction
{
public string Action { get; set; }

public long? VariantId { get; set; }

public string Sku { get; set; }

public string Name { get; set; }

public Object Value { get; set; }

public bool? Staged { get; set; }
public ProductTailoringSetAttributeAction()
{
this.Action = "setAttribute";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;

namespace commercetools.Sdk.Api.Models.ProductTailorings
{

public partial class ProductTailoringSetAttributeInAllVariantsAction : IProductTailoringSetAttributeInAllVariantsAction
{
public string Action { get; set; }

public string Name { get; set; }

public Object Value { get; set; }

public bool? Staged { get; set; }
public ProductTailoringSetAttributeInAllVariantsAction()
{
this.Action = "setAttributeInAllVariants";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ public partial class ProductVariantTailoring : IProductVariantTailoring
public IList<IAsset> Assets { get; set; }

public IEnumerable<IAsset> AssetsEnumerable { set => Assets = value.ToList(); }

public IList<IProductTailoringAttribute> Attributes { get; set; }

public IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ public partial class ProductVariantTailoringDraft : IProductVariantTailoringDraf
public IList<IAsset> Assets { get; set; }

public IEnumerable<IAsset> AssetsEnumerable { set => Assets = value.ToList(); }

public IList<IProductTailoringAttribute> Attributes { get; set; }

public IEnumerable<IProductTailoringAttribute> AttributesEnumerable { set => Attributes = value.ToList(); }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public enum MessageSubscriptionResourceTypeId
[Description("product-selection")]
ProductSelection,

[Description("product-tailoring")]
ProductTailoring,

[Description("quote")]
Quote,

Expand Down Expand Up @@ -136,6 +139,9 @@ public interface IMessageSubscriptionResourceTypeId : IJsonName, IEnumerable<cha
public static IMessageSubscriptionResourceTypeId ProductSelection = new MessageSubscriptionResourceTypeIdWrapper
{ Value = MessageSubscriptionResourceTypeId.ProductSelection, JsonName = "product-selection" };

public static IMessageSubscriptionResourceTypeId ProductTailoring = new MessageSubscriptionResourceTypeIdWrapper
{ Value = MessageSubscriptionResourceTypeId.ProductTailoring, JsonName = "product-tailoring" };

public static IMessageSubscriptionResourceTypeId Quote = new MessageSubscriptionResourceTypeIdWrapper
{ Value = MessageSubscriptionResourceTypeId.Quote, JsonName = "quote" };

Expand Down Expand Up @@ -174,6 +180,7 @@ static IMessageSubscriptionResourceTypeId[] Values()
Payment ,
Product ,
ProductSelection ,
ProductTailoring ,
Quote ,
QuoteRequest ,
Review ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public enum ResourceTypeId
[Description("product-selection")]
ProductSelection,

[Description("product-tailoring")]
ProductTailoring,

[Description("quote")]
Quote,

Expand Down Expand Up @@ -199,6 +202,9 @@ public interface IResourceTypeId : IJsonName, IEnumerable<char>
public static IResourceTypeId ProductSelection = new ResourceTypeIdWrapper
{ Value = ResourceTypeId.ProductSelection, JsonName = "product-selection" };

public static IResourceTypeId ProductTailoring = new ResourceTypeIdWrapper
{ Value = ResourceTypeId.ProductTailoring, JsonName = "product-tailoring" };

public static IResourceTypeId Quote = new ResourceTypeIdWrapper
{ Value = ResourceTypeId.Quote, JsonName = "quote" };

Expand Down Expand Up @@ -255,6 +261,7 @@ static IResourceTypeId[] Values()
PaymentInterfaceInteraction ,
ProductPrice ,
ProductSelection ,
ProductTailoring ,
Quote ,
Review ,
Shipping ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsSearchIndexingInP
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.SearchIndexingInProgressErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsSearchNotReady(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.SearchNotReadyErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.SearchNotReadyErrorQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.SearchNotReadyErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsSemanticError(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.SemanticErrorErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.SemanticErrorErrorQueryBuilderDsl>> fn)
{
Expand Down
Loading

0 comments on commit eade463

Please sign in to comment.