From eade463e5ad49d3a9fefa10d2ae4f533c47478da Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:26:31 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 16 ++++++ .../Errors/GraphQLSearchNotReadyError.cs | 12 +++++ .../Models/Errors/IErrorObject.cs | 7 +++ .../Models/Errors/IGraphQLErrorObject.cs | 7 +++ .../Errors/IGraphQLSearchNotReadyError.cs | 11 ++++ .../Models/Errors/ISearchNotReadyError.cs | 13 +++++ .../Models/Errors/SearchNotReadyError.cs | 14 +++++ .../IProductTailoringAddVariantAction.cs | 4 ++ .../IProductTailoringAttribute.cs | 14 +++++ .../IProductTailoringSetAttributeAction.cs | 20 +++++++ ...ailoringSetAttributeInAllVariantsAction.cs | 16 ++++++ .../IProductTailoringUpdateAction.cs | 14 +++++ .../IProductVariantTailoring.cs | 4 ++ .../IProductVariantTailoringDraft.cs | 4 ++ .../ProductTailoringAddVariantAction.cs | 4 ++ .../ProductTailoringAttribute.cs | 12 +++++ .../ProductTailoringSetAttributeAction.cs | 24 +++++++++ ...ailoringSetAttributeInAllVariantsAction.cs | 20 +++++++ .../ProductVariantTailoring.cs | 4 ++ .../ProductVariantTailoringDraft.cs | 4 ++ .../MessageSubscriptionResourceTypeId.cs | 7 +++ .../Models/Types/ResourceTypeId.cs | 7 +++ .../Errors/ErrorObjectQueryBuilderDsl.cs | 6 +++ .../GraphQLErrorObjectQueryBuilderDsl.cs | 6 +++ ...aphQLSearchNotReadyErrorQueryBuilderDsl.cs | 24 +++++++++ .../SearchNotReadyErrorQueryBuilderDsl.cs | 30 +++++++++++ ...ailoringAddVariantActionQueryBuilderDsl.cs | 13 +++++ ...roductTailoringAttributeQueryBuilderDsl.cs | 30 +++++++++++ ...loringSetAttributeActionQueryBuilderDsl.cs | 54 +++++++++++++++++++ ...ibuteInAllVariantsActionQueryBuilderDsl.cs | 42 +++++++++++++++ ...uctTailoringUpdateActionQueryBuilderDsl.cs | 12 +++++ ...uctVariantTailoringDraftQueryBuilderDsl.cs | 13 +++++ .../ProductVariantTailoringQueryBuilderDsl.cs | 13 +++++ .../schema.graphqls | 28 ++++++++++ references.txt | 1 + 35 files changed, 510 insertions(+) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/GraphQLSearchNotReadyError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLSearchNotReadyError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/ISearchNotReadyError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/SearchNotReadyError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAttribute.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeInAllVariantsAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAttribute.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeInAllVariantsAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLSearchNotReadyErrorQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/SearchNotReadyErrorQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAttributeQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index bcabc9d92f4..f8305c9efcb 100644 --- a/changes.md +++ b/changes.md @@ -6,6 +6,9 @@ - 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` @@ -13,7 +16,20 @@
Added Type(s) +- added type `SearchNotReadyError` +- added type `GraphQLSearchNotReadyError` +- added type `ProductTailoringAttribute` +- added type `ProductTailoringSetAttributeAction` +- added type `ProductTailoringSetAttributeInAllVariantsAction` - added type `ImageProcessingOngoingWarning` - added type `WarningObject`
+ +
+Added Enum(s) + +- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId` +- added enum `product-tailoring` to type `ResourceTypeId` +
+ diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/GraphQLSearchNotReadyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/GraphQLSearchNotReadyError.cs new file mode 100644 index 00000000000..69f3d5af8f6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/GraphQLSearchNotReadyError.cs @@ -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"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IErrorObject.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IErrorObject.cs index f48bb312a80..2ab7a88cb91 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IErrorObject.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IErrorObject.cs @@ -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))] @@ -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 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 init = null) { var t = new commercetools.Sdk.Api.Models.Errors.SemanticErrorError(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLErrorObject.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLErrorObject.cs index c4f97a31102..e5836304c8c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLErrorObject.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLErrorObject.cs @@ -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))] @@ -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 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 init = null) { var t = new commercetools.Sdk.Api.Models.Errors.GraphQLSemanticErrorError(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLSearchNotReadyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLSearchNotReadyError.cs new file mode 100644 index 00000000000..c72d309ed1c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/IGraphQLSearchNotReadyError.cs @@ -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; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/ISearchNotReadyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/ISearchNotReadyError.cs new file mode 100644 index 00000000000..42e4aea4d10 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/ISearchNotReadyError.cs @@ -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; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/SearchNotReadyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/SearchNotReadyError.cs new file mode 100644 index 00000000000..e4548162aac --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Errors/SearchNotReadyError.cs @@ -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"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAddVariantAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAddVariantAction.cs index af9c89330e0..61e611908a6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAddVariantAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAddVariantAction.cs @@ -20,6 +20,10 @@ public partial interface IProductTailoringAddVariantAction : IProductTailoringUp IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + IList Attributes { get; set; } + + IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } + bool? Staged { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAttribute.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAttribute.cs new file mode 100644 index 00000000000..3ce58113b6b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringAttribute.cs @@ -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; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeAction.cs new file mode 100644 index 00000000000..59e8118ba8a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeAction.cs @@ -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; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeInAllVariantsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeInAllVariantsAction.cs new file mode 100644 index 00000000000..885c79fcf0a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringSetAttributeInAllVariantsAction.cs @@ -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; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringUpdateAction.cs index 0f4febb0cea..26cca19b97d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductTailoringUpdateAction.cs @@ -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))] @@ -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 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 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 init = null) { var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoring.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoring.cs index 479a8ff38ae..7c3094bd15a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoring.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoring.cs @@ -18,5 +18,9 @@ public partial interface IProductVariantTailoring IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + IList Attributes { get; set; } + + IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoringDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoringDraft.cs index 300ada81471..92aebbb8b6d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoringDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/IProductVariantTailoringDraft.cs @@ -20,5 +20,9 @@ public partial interface IProductVariantTailoringDraft IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + IList Attributes { get; set; } + + IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAddVariantAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAddVariantAction.cs index c041c722047..57a6adda0e6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAddVariantAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAddVariantAction.cs @@ -21,6 +21,10 @@ public partial class ProductTailoringAddVariantAction : IProductTailoringAddVari public IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + public IList Attributes { get; set; } + + public IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } + public bool? Staged { get; set; } public ProductTailoringAddVariantAction() { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAttribute.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAttribute.cs new file mode 100644 index 00000000000..b7a203f9e34 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringAttribute.cs @@ -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; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeAction.cs new file mode 100644 index 00000000000..3e906804ab7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeAction.cs @@ -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"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeInAllVariantsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeInAllVariantsAction.cs new file mode 100644 index 00000000000..06b7b4d9ff4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductTailoringSetAttributeInAllVariantsAction.cs @@ -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"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoring.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoring.cs index 086eb1a2f47..d5b3c0d7e0c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoring.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoring.cs @@ -16,5 +16,9 @@ public partial class ProductVariantTailoring : IProductVariantTailoring public IList Assets { get; set; } public IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + + public IList Attributes { get; set; } + + public IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoringDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoringDraft.cs index 9921e4dc781..51bf873d638 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoringDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ProductTailorings/ProductVariantTailoringDraft.cs @@ -18,5 +18,9 @@ public partial class ProductVariantTailoringDraft : IProductVariantTailoringDraf public IList Assets { get; set; } public IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + + public IList Attributes { get; set; } + + public IEnumerable AttributesEnumerable { set => Attributes = value.ToList(); } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs index 4c6d0cc785d..46674b0ea7d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs @@ -52,6 +52,9 @@ public enum MessageSubscriptionResourceTypeId [Description("product-selection")] ProductSelection, + [Description("product-tailoring")] + ProductTailoring, + [Description("quote")] Quote, @@ -136,6 +139,9 @@ public interface IMessageSubscriptionResourceTypeId : IJsonName, IEnumerable 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" }; @@ -255,6 +261,7 @@ static IResourceTypeId[] Values() PaymentInterfaceInteraction , ProductPrice , ProductSelection , + ProductTailoring , Quote , Review , Shipping , diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/ErrorObjectQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/ErrorObjectQueryBuilderDsl.cs index d9c554281ab..6b3e46a9978 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/ErrorObjectQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/ErrorObjectQueryBuilderDsl.cs @@ -460,6 +460,12 @@ public CombinationQueryPredicate AsSearchIndexingInP return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.SearchIndexingInProgressErrorQueryBuilderDsl.Of()), ErrorObjectQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSearchNotReady( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.SearchNotReadyErrorQueryBuilderDsl.Of()), + ErrorObjectQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSemanticError( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLErrorObjectQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLErrorObjectQueryBuilderDsl.cs index 9c18dc400af..05bcc6c08de 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLErrorObjectQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLErrorObjectQueryBuilderDsl.cs @@ -454,6 +454,12 @@ public CombinationQueryPredicate AsSearchInde return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLSearchIndexingInProgressErrorQueryBuilderDsl.Of()), GraphQLErrorObjectQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSearchNotReady( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLSearchNotReadyErrorQueryBuilderDsl.Of()), + GraphQLErrorObjectQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSemanticError( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLSearchNotReadyErrorQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLSearchNotReadyErrorQueryBuilderDsl.cs new file mode 100644 index 00000000000..47855fed63b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/GraphQLSearchNotReadyErrorQueryBuilderDsl.cs @@ -0,0 +1,24 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Errors +{ + + public partial class GraphQLSearchNotReadyErrorQueryBuilderDsl + { + public GraphQLSearchNotReadyErrorQueryBuilderDsl() + { + } + + public static GraphQLSearchNotReadyErrorQueryBuilderDsl Of() + { + return new GraphQLSearchNotReadyErrorQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Code() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("code")), + p => new CombinationQueryPredicate(p, GraphQLSearchNotReadyErrorQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/SearchNotReadyErrorQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/SearchNotReadyErrorQueryBuilderDsl.cs new file mode 100644 index 00000000000..543672ac8e9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Errors/SearchNotReadyErrorQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Errors +{ + + public partial class SearchNotReadyErrorQueryBuilderDsl + { + public SearchNotReadyErrorQueryBuilderDsl() + { + } + + public static SearchNotReadyErrorQueryBuilderDsl Of() + { + return new SearchNotReadyErrorQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Code() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("code")), + p => new CombinationQueryPredicate(p, SearchNotReadyErrorQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Message() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("message")), + p => new CombinationQueryPredicate(p, SearchNotReadyErrorQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAddVariantActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAddVariantActionQueryBuilderDsl.cs index a85e582ba23..ce8e71f37a2 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAddVariantActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAddVariantActionQueryBuilderDsl.cs @@ -59,6 +59,19 @@ public ICollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("assets")), p => new CombinationQueryPredicate(p, ProductTailoringAddVariantActionQueryBuilderDsl.Of)); } + public CombinationQueryPredicate Attributes( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("attributes")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringAttributeQueryBuilderDsl.Of())), + ProductTailoringAddVariantActionQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Attributes() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("attributes")), + p => new CombinationQueryPredicate(p, ProductTailoringAddVariantActionQueryBuilderDsl.Of)); + } public IComparisonPredicateBuilder Staged() { return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAttributeQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAttributeQueryBuilderDsl.cs new file mode 100644 index 00000000000..967dd7fecc7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringAttributeQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringAttributeQueryBuilderDsl + { + public ProductTailoringAttributeQueryBuilderDsl() + { + } + + public static ProductTailoringAttributeQueryBuilderDsl Of() + { + return new ProductTailoringAttributeQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Name() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("name")), + p => new CombinationQueryPredicate(p, ProductTailoringAttributeQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Value() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("value")), + p => new CombinationQueryPredicate(p, ProductTailoringAttributeQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..45ce2fe1325 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeActionQueryBuilderDsl.cs @@ -0,0 +1,54 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetAttributeActionQueryBuilderDsl + { + public ProductTailoringSetAttributeActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetAttributeActionQueryBuilderDsl Of() + { + return new ProductTailoringSetAttributeActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder VariantId() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("variantId")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Sku() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sku")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Name() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("name")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Value() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("value")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..aa03c95daf0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.cs @@ -0,0 +1,42 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl + { + public ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl Of() + { + return new ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Name() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("name")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Value() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("value")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs index 63d51cc6124..efc74bddc37 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs @@ -118,6 +118,18 @@ public CombinationQueryPredicate As return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetAssetTagsActionQueryBuilderDsl.Of()), ProductTailoringUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSetAttribute( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetAttributeActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetAttributeInAllVariants( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetAttributeInAllVariantsActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSetDescription( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringDraftQueryBuilderDsl.cs index 6266b62031d..ce9e6b51287 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringDraftQueryBuilderDsl.cs @@ -53,6 +53,19 @@ public ICollectionPredicateBuilder return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("assets")), p => new CombinationQueryPredicate(p, ProductVariantTailoringDraftQueryBuilderDsl.Of)); } + public CombinationQueryPredicate Attributes( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("attributes")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringAttributeQueryBuilderDsl.Of())), + ProductVariantTailoringDraftQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Attributes() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("attributes")), + p => new CombinationQueryPredicate(p, ProductVariantTailoringDraftQueryBuilderDsl.Of)); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringQueryBuilderDsl.cs index 2c4fb56cf50..544496324c4 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductVariantTailoringQueryBuilderDsl.cs @@ -47,6 +47,19 @@ public ICollectionPredicateBuilder Asset return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("assets")), p => new CombinationQueryPredicate(p, ProductVariantTailoringQueryBuilderDsl.Of)); } + public CombinationQueryPredicate Attributes( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("attributes")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringAttributeQueryBuilderDsl.Of())), + ProductVariantTailoringQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Attributes() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("attributes")), + p => new CombinationQueryPredicate(p, ProductVariantTailoringQueryBuilderDsl.Of)); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 408cd6cb897..1c3aaa0c904 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -352,6 +352,8 @@ input AddProductVariantTailoring { id: Int sku: String images: [ImageInput!] = [] + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + attributes: [ProductAttributeInput!] = [] assets: [AssetDraftInput!] = [] staged: Boolean = true } @@ -8638,6 +8640,11 @@ input ProductTailoringUpdateAction { setAssetTags: SetProductTailoringAssetTags setImages: SetProductTailoringImages setDescription: SetProductTailoringDescription + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setAttribute: SetProductTailoringAttribute + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants setImageLabel: SetProductTailoringImageLabel setMetaAttributes: SetProductTailoringMetaAttributes setMetaDescription: SetProductTailoringMetaDescription @@ -8908,6 +8915,8 @@ type ProductVariantTailoring { id: Int! images: [Image!]! assets: [Asset!]! + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + attributesRaw: [RawProductAttribute!]! } type ProductVariantTailoringAdded implements MessagePayload { @@ -8922,7 +8931,10 @@ type ProductVariantTailoringAdded implements MessagePayload { input ProductVariantTailoringInput { id: Int sku: String + attributes: [ProductAttributeInput!] = [] images: [ImageInput!] = [] + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + attributes: [ProductAttributeInput!] = [] assets: [AssetDraftInput!] = [] } @@ -11859,6 +11871,22 @@ input SetProductTailoringAssetTags { assetId: String } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input SetProductTailoringAttribute { + variantId: Int + sku: String + name: String! + value: String + staged: Boolean = true +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input SetProductTailoringAttributeInAllVariants { + name: String! + value: String + staged: Boolean = true +} + input SetProductTailoringDescription { description: [LocalizedStringItemInputType!] staged: Boolean = true diff --git a/references.txt b/references.txt index 98efa26565c..d16f6fa7bd5 100644 --- a/references.txt +++ b/references.txt @@ -280,3 +280,4 @@ dd82e076236554dd808fb9309d53cb2a207cb296 dc09dbc8bb089b789be7b711ebeb272f820ed184 ce56ab7c65a688f75d5cd4095378d6647c6bd9ae d947f454821e0834a2c8a8605d4a0f3347c11d4e +58b253e878bca9833c1735913f764f4f479c1c9a