From 068978cbb0bb455050dfc466c03986c7a71749cd Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 10:57:43 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 82 +++++ ...nStoreKeyByStoreKeyProductTailoringTest.cs | 133 +++++++ ...ProductsByProductIDProductTailoringTest.cs | 113 ++++++ ...oreKeyByStoreKeyProductsByProductIDTest.cs | 17 + ...uctsKeyByProductKeyProductTailoringTest.cs | 113 ++++++ ...eyByStoreKeyProductsKeyByProductKeyTest.cs | 17 + ...jectKeyInStoreKeyByStoreKeyProductsTest.cs | 17 + .../ByProjectKeyProductTailoringByIDTest.cs | 99 +++++ ...yProjectKeyProductTailoringKeyByKeyTest.cs | 99 +++++ .../ByProjectKeyProductTailoringTest.cs | 123 +++++++ ...InStoreKeyByStoreKeyProductTailoringGet.cs | 128 +++++++ ...nStoreKeyByStoreKeyProductTailoringPost.cs | 93 +++++ ...yStoreKeyProductTailoringRequestBuilder.cs | 38 ++ ...oductsByProductIDProductTailoringDelete.cs | 87 +++++ ...yProductsByProductIDProductTailoringGet.cs | 76 ++++ ...ProductsByProductIDProductTailoringPost.cs | 96 +++++ ...ProductIDProductTailoringRequestBuilder.cs | 46 +++ ...oreKeyProductsByProductIDRequestBuilder.cs | 37 ++ ...tsKeyByProductKeyProductTailoringDelete.cs | 87 +++++ ...ductsKeyByProductKeyProductTailoringGet.cs | 76 ++++ ...uctsKeyByProductKeyProductTailoringPost.cs | 96 +++++ ...roductKeyProductTailoringRequestBuilder.cs | 46 +++ ...eyProductsKeyByProductKeyRequestBuilder.cs | 37 ++ ...toreKeyByStoreKeyProductsRequestBuilder.cs | 39 ++ ...ctKeyInStoreKeyByStoreKeyRequestBuilder.cs | 10 + .../ByProjectKeyProductTailoringByIDDelete.cs | 84 +++++ .../ByProjectKeyProductTailoringByIDGet.cs | 73 ++++ .../ByProjectKeyProductTailoringByIDPost.cs | 93 +++++ ...ctKeyProductTailoringByIDRequestBuilder.cs | 43 +++ .../ByProjectKeyProductTailoringGet.cs | 125 +++++++ ...rojectKeyProductTailoringKeyByKeyDelete.cs | 84 +++++ ...ByProjectKeyProductTailoringKeyByKeyGet.cs | 73 ++++ ...yProjectKeyProductTailoringKeyByKeyPost.cs | 93 +++++ ...yProductTailoringKeyByKeyRequestBuilder.cs | 43 +++ .../ByProjectKeyProductTailoringPost.cs | 90 +++++ ...rojectKeyProductTailoringRequestBuilder.cs | 45 +++ .../Projects/ByProjectKeyRequestBuilder.cs | 6 + .../Models/Carts/IProductTailoringUpdate.cs | 19 + .../Models/Carts/ProductTailoringUpdate.cs | 17 + .../Generated/Models/Common/IReference.cs | 7 + .../Models/Common/IResourceIdentifier.cs | 7 + .../Models/Common/ReferenceTypeId.cs | 7 + .../Generated/Models/Messages/IMessage.cs | 49 +++ .../Models/Messages/IMessagePayload.cs | 49 +++ .../IProductTailoringCreatedMessage.cs | 29 ++ .../IProductTailoringCreatedMessagePayload.cs | 29 ++ .../IProductTailoringDeletedMessage.cs | 18 + .../IProductTailoringDeletedMessagePayload.cs | 18 + .../IProductTailoringDescriptionSetMessage.cs | 23 ++ ...ctTailoringDescriptionSetMessagePayload.cs | 23 ++ .../IProductTailoringNameSetMessage.cs | 23 ++ .../IProductTailoringNameSetMessagePayload.cs | 23 ++ .../IProductTailoringPublishedMessage.cs | 18 + ...ProductTailoringPublishedMessagePayload.cs | 18 + .../IProductTailoringSlugSetMessage.cs | 23 ++ .../IProductTailoringSlugSetMessagePayload.cs | 23 ++ .../IProductTailoringUnpublishedMessage.cs | 18 + ...oductTailoringUnpublishedMessagePayload.cs | 18 + .../ProductTailoringCreatedMessage.cs | 54 +++ .../ProductTailoringCreatedMessagePayload.cs | 33 ++ .../ProductTailoringDeletedMessage.cs | 44 +++ .../ProductTailoringDeletedMessagePayload.cs | 22 ++ .../ProductTailoringDescriptionSetMessage.cs | 48 +++ ...ctTailoringDescriptionSetMessagePayload.cs | 27 ++ .../ProductTailoringNameSetMessage.cs | 48 +++ .../ProductTailoringNameSetMessagePayload.cs | 27 ++ .../ProductTailoringPublishedMessage.cs | 44 +++ ...ProductTailoringPublishedMessagePayload.cs | 22 ++ .../ProductTailoringSlugSetMessage.cs | 48 +++ .../ProductTailoringSlugSetMessagePayload.cs | 27 ++ .../ProductTailoringUnpublishedMessage.cs | 44 +++ ...oductTailoringUnpublishedMessagePayload.cs | 22 ++ .../ProductTailorings/IProductTailoring.cs | 40 +++ .../IProductTailoringData.cs | 23 ++ .../IProductTailoringDraft.cs | 33 ++ .../IProductTailoringInStoreDraft.cs | 30 ++ .../IProductTailoringPagedQueryResponse.cs | 24 ++ .../IProductTailoringPublishAction.cs | 11 + .../IProductTailoringReference.cs | 15 + .../IProductTailoringResourceIdentifier.cs | 15 + .../IProductTailoringSetDescriptionAction.cs | 15 + ...ProductTailoringSetMetaAttributesAction.cs | 19 + ...roductTailoringSetMetaDescriptionAction.cs | 15 + .../IProductTailoringSetMetaKeywordsAction.cs | 15 + .../IProductTailoringSetMetaTitleAction.cs | 15 + .../IProductTailoringSetNameAction.cs | 15 + .../IProductTailoringSetSlugAction.cs | 15 + .../IProductTailoringUnpublishAction.cs | 11 + .../IProductTailoringUpdateAction.cs | 77 ++++ .../ProductTailorings/ProductTailoring.cs | 38 ++ .../ProductTailorings/ProductTailoringData.cs | 21 ++ .../ProductTailoringDraft.cs | 31 ++ .../ProductTailoringInStoreDraft.cs | 28 ++ .../ProductTailoringPagedQueryResponse.cs | 22 ++ .../ProductTailoringPublishAction.cs | 12 + .../ProductTailoringReference.cs | 19 + .../ProductTailoringResourceIdentifier.cs | 19 + .../ProductTailoringSetDescriptionAction.cs | 19 + ...ProductTailoringSetMetaAttributesAction.cs | 23 ++ ...roductTailoringSetMetaDescriptionAction.cs | 19 + .../ProductTailoringSetMetaKeywordsAction.cs | 19 + .../ProductTailoringSetMetaTitleAction.cs | 19 + .../ProductTailoringSetNameAction.cs | 19 + .../ProductTailoringSetSlugAction.cs | 19 + .../ProductTailoringUnpublishAction.cs | 12 + .../ProductTailoringUpdateAction.cs | 8 + .../ProductTailoringUpdateQueryBuilderDsl.cs | 39 ++ .../Common/BaseResourceQueryBuilderDsl.cs | 6 + .../Common/ReferenceQueryBuilderDsl.cs | 6 + .../ResourceIdentifierQueryBuilderDsl.cs | 6 + .../Messages/MessagePayloadQueryBuilderDsl.cs | 42 +++ .../Messages/MessageQueryBuilderDsl.cs | 42 +++ ...ingCreatedMessagePayloadQueryBuilderDsl.cs | 89 +++++ ...tTailoringCreatedMessageQueryBuilderDsl.cs | 161 +++++++++ ...ingDeletedMessagePayloadQueryBuilderDsl.cs | 50 +++ ...tTailoringDeletedMessageQueryBuilderDsl.cs | 122 +++++++ ...riptionSetMessagePayloadQueryBuilderDsl.cs | 68 ++++ ...ingDescriptionSetMessageQueryBuilderDsl.cs | 140 ++++++++ ...ingNameSetMessagePayloadQueryBuilderDsl.cs | 68 ++++ ...tTailoringNameSetMessageQueryBuilderDsl.cs | 140 ++++++++ ...gPublishedMessagePayloadQueryBuilderDsl.cs | 50 +++ ...ailoringPublishedMessageQueryBuilderDsl.cs | 122 +++++++ ...ingSlugSetMessagePayloadQueryBuilderDsl.cs | 68 ++++ ...tTailoringSlugSetMessageQueryBuilderDsl.cs | 140 ++++++++ ...npublishedMessagePayloadQueryBuilderDsl.cs | 50 +++ ...loringUnpublishedMessageQueryBuilderDsl.cs | 122 +++++++ .../ProductTailoringDataQueryBuilderDsl.cs | 74 ++++ .../ProductTailoringDraftQueryBuilderDsl.cs | 104 ++++++ ...uctTailoringInStoreDraftQueryBuilderDsl.cs | 95 +++++ ...loringPagedQueryResponseQueryBuilderDsl.cs | 57 +++ ...ctTailoringPublishActionQueryBuilderDsl.cs | 24 ++ .../ProductTailoringQueryBuilderDsl.cs | 116 ++++++ ...roductTailoringReferenceQueryBuilderDsl.cs | 41 +++ ...loringResourceIdentifierQueryBuilderDsl.cs | 36 ++ ...ringSetDescriptionActionQueryBuilderDsl.cs | 41 +++ ...gSetMetaAttributesActionQueryBuilderDsl.cs | 59 +++ ...SetMetaDescriptionActionQueryBuilderDsl.cs | 41 +++ ...ingSetMetaKeywordsActionQueryBuilderDsl.cs | 41 +++ ...loringSetMetaTitleActionQueryBuilderDsl.cs | 41 +++ ...ctTailoringSetNameActionQueryBuilderDsl.cs | 41 +++ ...ctTailoringSetSlugActionQueryBuilderDsl.cs | 41 +++ ...TailoringUnpublishActionQueryBuilderDsl.cs | 24 ++ ...uctTailoringUpdateActionQueryBuilderDsl.cs | 80 +++++ .../schema.graphqls | 338 ++++++++++++++++++ references.txt | 1 + 145 files changed, 7187 insertions(+) create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDDelete.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyDelete.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IProductTailoringUpdate.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ProductTailoringUpdate.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoring.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringData.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringInStoreDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPublishAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringReference.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringResourceIdentifier.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetDescriptionAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaAttributesAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaDescriptionAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaKeywordsAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaTitleAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetNameAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetSlugAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUnpublishAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUpdateAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoring.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringData.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringInStoreDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPagedQueryResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPublishAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringReference.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringResourceIdentifier.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetDescriptionAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaAttributesAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaDescriptionAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaKeywordsAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaTitleAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetNameAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetSlugAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUnpublishAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUpdateAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/ProductTailoringUpdateQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDataQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDraftQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringInStoreDraftQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPagedQueryResponseQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPublishActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringReferenceQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringResourceIdentifierQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetDescriptionActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaAttributesActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaTitleActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetNameActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetSlugActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUnpublishActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index 786c08419cc..22274010250 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,43 @@ **Api changes** +
+Added Type(s) + +- added type `ProductTailoringCreatedMessage` +- added type `ProductTailoringDeletedMessage` +- added type `ProductTailoringDescriptionSetMessage` +- added type `ProductTailoringNameSetMessage` +- added type `ProductTailoringPublishedMessage` +- added type `ProductTailoringSlugSetMessage` +- added type `ProductTailoringUnpublishedMessage` +- added type `ProductTailoringCreatedMessagePayload` +- added type `ProductTailoringDeletedMessagePayload` +- added type `ProductTailoringDescriptionSetMessagePayload` +- added type `ProductTailoringNameSetMessagePayload` +- added type `ProductTailoringPublishedMessagePayload` +- added type `ProductTailoringSlugSetMessagePayload` +- added type `ProductTailoringUnpublishedMessagePayload` +- added type `ProductTailoring` +- added type `ProductTailoringData` +- added type `ProductTailoringDraft` +- added type `ProductTailoringInStoreDraft` +- added type `ProductTailoringPagedQueryResponse` +- added type `ProductTailoringReference` +- added type `ProductTailoringResourceIdentifier` +- added type `ProductTailoringUpdate` +- added type `ProductTailoringUpdateAction` +- added type `ProductTailoringPublishAction` +- added type `ProductTailoringSetDescriptionAction` +- added type `ProductTailoringSetMetaAttributesAction` +- added type `ProductTailoringSetMetaDescriptionAction` +- added type `ProductTailoringSetMetaKeywordsAction` +- added type `ProductTailoringSetMetaTitleAction` +- added type `ProductTailoringSetNameAction` +- added type `ProductTailoringSetSlugAction` +- added type `ProductTailoringUnpublishAction` +
+ +
Required Property(s) @@ -15,3 +53,47 @@ - added property `version` to type `ProductVariantAvailability`
+ +
+Added Method(s) + +- added method `apiRoot.withProjectKey().productTailoring().get()` +- added method `apiRoot.withProjectKey().productTailoring().post()` +- added method `apiRoot.withProjectKey().productTailoring().withKey().get()` +- added method `apiRoot.withProjectKey().productTailoring().withKey().post()` +- added method `apiRoot.withProjectKey().productTailoring().withKey().delete()` +- added method `apiRoot.withProjectKey().productTailoring().withId().get()` +- added method `apiRoot.withProjectKey().productTailoring().withId().post()` +- added method `apiRoot.withProjectKey().productTailoring().withId().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productTailoring().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productTailoring().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().delete()` +
+ + +
+Added Enum(s) + +- added enum `product-tailoring` to type `ReferenceTypeId` +
+ + +
+Added Resource(s) + +- added resource `/{projectKey}/product-tailoring` +- added resource `/{projectKey}/product-tailoring/key={key}` +- added resource `/{projectKey}/product-tailoring/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/product-tailoring` +- added resource `/{projectKey}/in-store/key={storeKey}/products` +- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}` +- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}` +- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring` +- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring` +
+ diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringTest.cs new file mode 100644 index 00000000000..fc3da103603 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringTest.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductTailoringTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithLimit(7) + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?limit=7", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithOffset(3) + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?offset=3", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithWithTotal(true) + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?withTotal=true", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithWhere("where") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?where=where", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithPredicateVar("varName", "var.varName") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?var.varName=var.varName", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .WithSort("sort") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?sort=sort", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Get() + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .ProductTailoring() + .Post(null) + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/product-tailoring", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringTest.cs new file mode 100644 index 00000000000..a0e004b3579 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringTest.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Get() + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Post(null) + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Delete() + .WithVersion(2) + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring?version=2", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Delete() + .WithExpand("expand") + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductId("test_productID") + .ProductTailoring() + .Delete() + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/test_productID/product-tailoring", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDTest.cs new file mode 100644 index 00000000000..cfaf443937a --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDTest.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDTest : RequestBuilderParentTests + { + + + public static IEnumerable GetData() + { + return new List + { + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringTest.cs new file mode 100644 index 00000000000..b230239c31a --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringTest.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Get() + .Build(), + "Get", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Post(null) + .Build(), + "Post", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Delete() + .WithVersion(2) + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring?version=2", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Delete() + .WithExpand("expand") + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .InStoreKeyWithStoreKeyValue("test_storeKey") + .Products() + .WithProductKey("test_productKey") + .ProductTailoring() + .Delete() + .Build(), + "Delete", + "/test_projectKey/in-store/key=test_storeKey/products/key=test_productKey/product-tailoring", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyTest.cs new file mode 100644 index 00000000000..8019ed2400c --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyTest.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyTest : RequestBuilderParentTests + { + + + public static IEnumerable GetData() + { + return new List + { + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsTest.cs new file mode 100644 index 00000000000..7d5bf6f9d8d --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsTest.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.InStore +{ + public class ByProjectKeyInStoreKeyByStoreKeyProductsTest : RequestBuilderParentTests + { + + + public static IEnumerable GetData() + { + return new List + { + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDTest.cs new file mode 100644 index 00000000000..2fd14884a2c --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDTest.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.ProductTailoring +{ + public class ByProjectKeyProductTailoringByIDTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/product-tailoring/test_ID?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Get() + .Build(), + "Get", + "/test_projectKey/product-tailoring/test_ID", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/product-tailoring/test_ID?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Post(null) + .Build(), + "Post", + "/test_projectKey/product-tailoring/test_ID", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Delete() + .WithVersion(2) + .Build(), + "Delete", + "/test_projectKey/product-tailoring/test_ID?version=2", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Delete() + .WithExpand("expand") + .Build(), + "Delete", + "/test_projectKey/product-tailoring/test_ID?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithId("test_ID") + .Delete() + .Build(), + "Delete", + "/test_projectKey/product-tailoring/test_ID", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyTest.cs new file mode 100644 index 00000000000..fa42eb5dbd4 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyTest.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.ProductTailoring +{ + public class ByProjectKeyProductTailoringKeyByKeyTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/product-tailoring/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Get() + .Build(), + "Get", + "/test_projectKey/product-tailoring/key=test_key", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/product-tailoring/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Post(null) + .Build(), + "Post", + "/test_projectKey/product-tailoring/key=test_key", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Delete() + .WithVersion(2) + .Build(), + "Delete", + "/test_projectKey/product-tailoring/key=test_key?version=2", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Delete() + .WithExpand("expand") + .Build(), + "Delete", + "/test_projectKey/product-tailoring/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .WithKey("test_key") + .Delete() + .Build(), + "Delete", + "/test_projectKey/product-tailoring/key=test_key", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs new file mode 100644 index 00000000000..5ac577a4750 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.ProductTailoring +{ + public class ByProjectKeyProductTailoringTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithSort("sort") + .Build(), + "Get", + "/test_projectKey/product-tailoring?sort=sort", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithLimit(7) + .Build(), + "Get", + "/test_projectKey/product-tailoring?limit=7", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithOffset(3) + .Build(), + "Get", + "/test_projectKey/product-tailoring?offset=3", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithWithTotal(true) + .Build(), + "Get", + "/test_projectKey/product-tailoring?withTotal=true", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithWhere("where") + .Build(), + "Get", + "/test_projectKey/product-tailoring?where=where", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .WithPredicateVar("varName", "var.varName") + .Build(), + "Get", + "/test_projectKey/product-tailoring?var.varName=var.varName", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Get() + .Build(), + "Get", + "/test_projectKey/product-tailoring", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/product-tailoring?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Post(null) + .Build(), + "Post", + "/test_projectKey/product-tailoring", + } + }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet.cs new file mode 100644 index 00000000000..8eecfaedbe4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet.cs @@ -0,0 +1,128 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet(IClient apiHttpClient, string projectKey, string storeKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/product-tailoring"; + } + + public List GetLimit() + { + return this.GetQueryParam("limit"); + } + + public List GetOffset() + { + return this.GetQueryParam("offset"); + } + + public List GetWithTotal() + { + return this.GetQueryParam("withTotal"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public List GetWhere() + { + return this.GetQueryParam("where"); + } + + public List GetSort() + { + return this.GetQueryParam("sort"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithLimit(long limit) + { + return this.AddQueryParam("limit", limit.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithOffset(long offset) + { + return this.AddQueryParam("offset", offset.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithWithTotal(bool withTotal) + { + return this.AddQueryParam("withTotal", withTotal.ToString()); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithWhere(string where) + { + return this.AddQueryParam("where", where); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithSort(string sort) + { + return this.AddQueryParam("sort", sort); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet WithPredicateVar(string varName, string predicateVar) + { + return this.AddQueryParam($"var.{varName}", predicateVar); + } + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost.cs new file mode 100644 index 00000000000..9f2f641b4bb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost.cs @@ -0,0 +1,93 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable201Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringInStoreDraft ProductTailoringInStoreDraft; + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringInStoreDraft productTailoringInStoreDraft) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductTailoringInStoreDraft = productTailoringInStoreDraft; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringInStoreDraft); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder.cs new file mode 100644 index 00000000000..87fbecbae72 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder.cs @@ -0,0 +1,38 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet Get() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet(ApiHttpClient, ProjectKey, StoreKey); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost Post(commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringInStoreDraft productTailoringInStoreDraft) + { + return new ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost(ApiHttpClient, SerializerService, ProjectKey, StoreKey, productTailoringInStoreDraft); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete.cs new file mode 100644 index 00000000000..1b3a61db448 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete.cs @@ -0,0 +1,87 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Delete; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductID { get; } + + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete(IClient apiHttpClient, string projectKey, string storeKey, string productId) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductID = productId; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/{ProductID}/product-tailoring"; + } + + public List GetVersion() + { + return this.GetQueryParam("version"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete WithVersion(long version) + { + return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet.cs new file mode 100644 index 00000000000..317060faaf9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet.cs @@ -0,0 +1,76 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductID { get; } + + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet(IClient apiHttpClient, string projectKey, string storeKey, string productId) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductID = productId; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/{ProductID}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost.cs new file mode 100644 index 00000000000..40299fdd659 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost.cs @@ -0,0 +1,96 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductID { get; } + + private commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate ProductTailoringUpdate; + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productId, commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductID = productId; + this.ProductTailoringUpdate = productTailoringUpdate; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/{ProductID}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringUpdate); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder.cs new file mode 100644 index 00000000000..ef9288260fd --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder.cs @@ -0,0 +1,46 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductID { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productId) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductID = productId; + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet Get() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringGet(ApiHttpClient, ProjectKey, StoreKey, ProductID); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost Post(commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringPost(ApiHttpClient, SerializerService, ProjectKey, StoreKey, ProductID, productTailoringUpdate); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete Delete() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringDelete(ApiHttpClient, ProjectKey, StoreKey, ProductID); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder.cs new file mode 100644 index 00000000000..7ba3641ffe4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder.cs @@ -0,0 +1,37 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductID { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productId) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductID = productId; + } + + + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder ProductTailoring() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey, ProductID); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete.cs new file mode 100644 index 00000000000..345a8209c32 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete.cs @@ -0,0 +1,87 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Delete; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductKey { get; } + + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete(IClient apiHttpClient, string projectKey, string storeKey, string productKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductKey = productKey; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/key={ProductKey}/product-tailoring"; + } + + public List GetVersion() + { + return this.GetQueryParam("version"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete WithVersion(long version) + { + return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet.cs new file mode 100644 index 00000000000..18f7cac078c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet.cs @@ -0,0 +1,76 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductKey { get; } + + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet(IClient apiHttpClient, string projectKey, string storeKey, string productKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductKey = productKey; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/key={ProductKey}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost.cs new file mode 100644 index 00000000000..8922b08a70e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost.cs @@ -0,0 +1,96 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductKey { get; } + + private commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate ProductTailoringUpdate; + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productKey, commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductKey = productKey; + this.ProductTailoringUpdate = productTailoringUpdate; + this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/products/key={ProductKey}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringUpdate); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder.cs new file mode 100644 index 00000000000..24b0c1987bd --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder.cs @@ -0,0 +1,46 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductKey { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductKey = productKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet Get() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringGet(ApiHttpClient, ProjectKey, StoreKey, ProductKey); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost Post(commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringPost(ApiHttpClient, SerializerService, ProjectKey, StoreKey, ProductKey, productTailoringUpdate); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete Delete() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringDelete(ApiHttpClient, ProjectKey, StoreKey, ProductKey); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder.cs new file mode 100644 index 00000000000..54ae494467c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder.cs @@ -0,0 +1,37 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + private string ProductKey { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey, string productKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + this.ProductKey = productKey; + } + + + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder ProductTailoring() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey, ProductKey); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder.cs new file mode 100644 index 00000000000..a24afaff11f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder.cs @@ -0,0 +1,39 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.InStore +{ + + public partial class ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string StoreKey { get; } + + public ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string storeKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.StoreKey = storeKey; + } + + + + public ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder WithProductId(string productID) + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey, productID); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder WithProductKey(string productKey) + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey, productKey); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.cs index 2de328d2b40..37542a71a7a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.cs @@ -75,5 +75,15 @@ public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder CartDiscounts { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey); } + + public ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder ProductTailoring() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey); + } + + public ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder Products() + { + return new ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, StoreKey); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDDelete.cs new file mode 100644 index 00000000000..df7084feccb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDDelete.cs @@ -0,0 +1,84 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringByIDDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Delete; + + private string ProjectKey { get; } + + private string ID { get; } + + + public ByProjectKeyProductTailoringByIDDelete(IClient apiHttpClient, string projectKey, string id) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.ID = id; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/{ID}"; + } + + public List GetVersion() + { + return this.GetQueryParam("version"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringByIDDelete WithVersion(long version) + { + return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyProductTailoringByIDDelete WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDGet.cs new file mode 100644 index 00000000000..23f06897606 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDGet.cs @@ -0,0 +1,73 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringByIDGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + private string ID { get; } + + + public ByProjectKeyProductTailoringByIDGet(IClient apiHttpClient, string projectKey, string id) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.ID = id; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/{ID}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringByIDGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDPost.cs new file mode 100644 index 00000000000..d8c725f3fe0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDPost.cs @@ -0,0 +1,93 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringByIDPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private string ID { get; } + + private commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate ProductTailoringUpdate; + + public ByProjectKeyProductTailoringByIDPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string id, commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.ID = id; + this.ProductTailoringUpdate = productTailoringUpdate; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/{ID}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringByIDPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringUpdate); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDRequestBuilder.cs new file mode 100644 index 00000000000..45ec9993f44 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringByIDRequestBuilder.cs @@ -0,0 +1,43 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringByIDRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string ID { get; } + + public ByProjectKeyProductTailoringByIDRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string id) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.ID = id; + } + + public ByProjectKeyProductTailoringByIDGet Get() + { + return new ByProjectKeyProductTailoringByIDGet(ApiHttpClient, ProjectKey, ID); + } + + public ByProjectKeyProductTailoringByIDPost Post(commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + return new ByProjectKeyProductTailoringByIDPost(ApiHttpClient, SerializerService, ProjectKey, ID, productTailoringUpdate); + } + + public ByProjectKeyProductTailoringByIDDelete Delete() + { + return new ByProjectKeyProductTailoringByIDDelete(ApiHttpClient, ProjectKey, ID); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringGet.cs new file mode 100644 index 00000000000..aabe594fa15 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringGet.cs @@ -0,0 +1,125 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.ISortableTrait, commercetools.Sdk.Api.Client.IPagingTrait, commercetools.Sdk.Api.Client.IQueryTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + + public ByProjectKeyProductTailoringGet(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public List GetSort() + { + return this.GetQueryParam("sort"); + } + + public List GetLimit() + { + return this.GetQueryParam("limit"); + } + + public List GetOffset() + { + return this.GetQueryParam("offset"); + } + + public List GetWithTotal() + { + return this.GetQueryParam("withTotal"); + } + + public List GetWhere() + { + return this.GetQueryParam("where"); + } + + public ByProjectKeyProductTailoringGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + public ByProjectKeyProductTailoringGet WithSort(string sort) + { + return this.AddQueryParam("sort", sort); + } + + public ByProjectKeyProductTailoringGet WithLimit(long limit) + { + return this.AddQueryParam("limit", limit.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyProductTailoringGet WithOffset(long offset) + { + return this.AddQueryParam("offset", offset.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyProductTailoringGet WithWithTotal(bool withTotal) + { + return this.AddQueryParam("withTotal", withTotal.ToString()); + } + + public ByProjectKeyProductTailoringGet WithWhere(string where) + { + return this.AddQueryParam("where", where); + } + + public ByProjectKeyProductTailoringGet WithPredicateVar(string varName, string predicateVar) + { + return this.AddQueryParam($"var.{varName}", predicateVar); + } + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyDelete.cs new file mode 100644 index 00000000000..8a9b7d5a170 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyDelete.cs @@ -0,0 +1,84 @@ +using System.Globalization; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringKeyByKeyDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Delete; + + private string ProjectKey { get; } + + private string Key { get; } + + + public ByProjectKeyProductTailoringKeyByKeyDelete(IClient apiHttpClient, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.Key = key; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/key={Key}"; + } + + public List GetVersion() + { + return this.GetQueryParam("version"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringKeyByKeyDelete WithVersion(long version) + { + return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyProductTailoringKeyByKeyDelete WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyGet.cs new file mode 100644 index 00000000000..043bc1d343d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyGet.cs @@ -0,0 +1,73 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringKeyByKeyGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + private string Key { get; } + + + public ByProjectKeyProductTailoringKeyByKeyGet(IClient apiHttpClient, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.Key = key; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/key={Key}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringKeyByKeyGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyPost.cs new file mode 100644 index 00000000000..ee2377b59ff --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyPost.cs @@ -0,0 +1,93 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringKeyByKeyPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private string Key { get; } + + private commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate ProductTailoringUpdate; + + public ByProjectKeyProductTailoringKeyByKeyPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key, commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.Key = key; + this.ProductTailoringUpdate = productTailoringUpdate; + this.RequestUrl = $"/{ProjectKey}/product-tailoring/key={Key}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringKeyByKeyPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringUpdate); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyRequestBuilder.cs new file mode 100644 index 00000000000..65ec085c311 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringKeyByKeyRequestBuilder.cs @@ -0,0 +1,43 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringKeyByKeyRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string Key { get; } + + public ByProjectKeyProductTailoringKeyByKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.Key = key; + } + + public ByProjectKeyProductTailoringKeyByKeyGet Get() + { + return new ByProjectKeyProductTailoringKeyByKeyGet(ApiHttpClient, ProjectKey, Key); + } + + public ByProjectKeyProductTailoringKeyByKeyPost Post(commercetools.Sdk.Api.Models.Carts.IProductTailoringUpdate productTailoringUpdate) + { + return new ByProjectKeyProductTailoringKeyByKeyPost(ApiHttpClient, SerializerService, ProjectKey, Key, productTailoringUpdate); + } + + public ByProjectKeyProductTailoringKeyByKeyDelete Delete() + { + return new ByProjectKeyProductTailoringKeyByKeyDelete(ApiHttpClient, ProjectKey, Key); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringPost.cs new file mode 100644 index 00000000000..febba07f395 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringPost.cs @@ -0,0 +1,90 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; +using commercetools.Base.Serialization; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable201Trait, commercetools.Sdk.Api.Client.IErrorableTrait + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringDraft ProductTailoringDraft; + + public ByProjectKeyProductTailoringPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringDraft productTailoringDraft) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.ProductTailoringDraft = productTailoringDraft; + this.RequestUrl = $"/{ProjectKey}/product-tailoring"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyProductTailoringPost WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + var requestMessage = Build(); + return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); + + } + + public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); + } + public override HttpRequestMessage Build() + { + var request = base.Build(); + if (SerializerService != null) + { + var body = this.SerializerService.Serialize(ProductTailoringDraft); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs new file mode 100644 index 00000000000..38f25893891 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs @@ -0,0 +1,45 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyProductTailoringRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyProductTailoringGet Get() + { + return new ByProjectKeyProductTailoringGet(ApiHttpClient, ProjectKey); + } + + public ByProjectKeyProductTailoringPost Post(commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringDraft productTailoringDraft) + { + return new ByProjectKeyProductTailoringPost(ApiHttpClient, SerializerService, ProjectKey, productTailoringDraft); + } + + + public ByProjectKeyProductTailoringKeyByKeyRequestBuilder WithKey(string key) + { + return new ByProjectKeyProductTailoringKeyByKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, key); + } + + public ByProjectKeyProductTailoringByIDRequestBuilder WithId(string ID) + { + return new ByProjectKeyProductTailoringByIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ID); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs index 0609e28d3bf..8d5be4b3b39 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs @@ -21,6 +21,7 @@ using commercetools.Sdk.Api.Client.RequestBuilders.ProductDiscounts; using commercetools.Sdk.Api.Client.RequestBuilders.ProductProjections; using commercetools.Sdk.Api.Client.RequestBuilders.ProductSelections; +using commercetools.Sdk.Api.Client.RequestBuilders.ProductTailoring; using commercetools.Sdk.Api.Client.RequestBuilders.ProductTypes; using commercetools.Sdk.Api.Client.RequestBuilders.Quotes; using commercetools.Sdk.Api.Client.RequestBuilders.QuoteRequests; @@ -183,6 +184,11 @@ public ByProjectKeyProductSelectionsRequestBuilder ProductSelections() return new ByProjectKeyProductSelectionsRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); } + public ByProjectKeyProductTailoringRequestBuilder ProductTailoring() + { + return new ByProjectKeyProductTailoringRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } + public ByProjectKeyProductTypesRequestBuilder ProductTypes() { return new ByProjectKeyProductTypesRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IProductTailoringUpdate.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IProductTailoringUpdate.cs new file mode 100644 index 00000000000..117519a157d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IProductTailoringUpdate.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.ProductTailorings; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Carts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.ProductTailoringUpdate))] + public partial interface IProductTailoringUpdate + { + long Version { get; set; } + + IList Actions { get; set; } + IEnumerable ActionsEnumerable { set => Actions = value.ToList(); } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ProductTailoringUpdate.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ProductTailoringUpdate.cs new file mode 100644 index 00000000000..920740cf72f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ProductTailoringUpdate.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.ProductTailorings; +using System.Collections.Generic; +using System.Linq; + + +namespace commercetools.Sdk.Api.Models.Carts +{ + + public partial class ProductTailoringUpdate : IProductTailoringUpdate + { + public long Version { get; set; } + + public IList Actions { get; set; } + public IEnumerable ActionsEnumerable { set => Actions = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IReference.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IReference.cs index 3cc75728433..f3cb1993a8e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IReference.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IReference.cs @@ -27,6 +27,7 @@ namespace commercetools.Sdk.Api.Models.Common [SubTypeDiscriminator("product", typeof(commercetools.Sdk.Api.Models.Products.ProductReference))] [SubTypeDiscriminator("product-discount", typeof(commercetools.Sdk.Api.Models.ProductDiscounts.ProductDiscountReference))] [SubTypeDiscriminator("product-selection", typeof(commercetools.Sdk.Api.Models.ProductSelections.ProductSelectionReference))] + [SubTypeDiscriminator("product-tailoring", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringReference))] [SubTypeDiscriminator("product-type", typeof(commercetools.Sdk.Api.Models.ProductTypes.ProductTypeReference))] [SubTypeDiscriminator("quote", typeof(commercetools.Sdk.Api.Models.Quotes.QuoteReference))] [SubTypeDiscriminator("quote-request", typeof(commercetools.Sdk.Api.Models.QuoteRequests.QuoteRequestReference))] @@ -172,6 +173,12 @@ static commercetools.Sdk.Api.Models.ProductSelections.ProductSelectionReference init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringReference ProductTailoring(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringReference(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.ProductTypes.ProductTypeReference ProductType(Action init = null) { var t = new commercetools.Sdk.Api.Models.ProductTypes.ProductTypeReference(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IResourceIdentifier.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IResourceIdentifier.cs index aeb4561105a..e571ae9c942 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IResourceIdentifier.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/IResourceIdentifier.cs @@ -22,6 +22,7 @@ namespace commercetools.Sdk.Api.Models.Common [SubTypeDiscriminator("product", typeof(commercetools.Sdk.Api.Models.Products.ProductResourceIdentifier))] [SubTypeDiscriminator("product-discount", typeof(commercetools.Sdk.Api.Models.ProductDiscounts.ProductDiscountResourceIdentifier))] [SubTypeDiscriminator("product-selection", typeof(commercetools.Sdk.Api.Models.ProductSelections.ProductSelectionResourceIdentifier))] + [SubTypeDiscriminator("product-tailoring", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringResourceIdentifier))] [SubTypeDiscriminator("product-type", typeof(commercetools.Sdk.Api.Models.ProductTypes.ProductTypeResourceIdentifier))] [SubTypeDiscriminator("quote", typeof(commercetools.Sdk.Api.Models.Quotes.QuoteResourceIdentifier))] [SubTypeDiscriminator("quote-request", typeof(commercetools.Sdk.Api.Models.QuoteRequests.QuoteRequestResourceIdentifier))] @@ -139,6 +140,12 @@ static commercetools.Sdk.Api.Models.ProductSelections.ProductSelectionResourceId init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringResourceIdentifier ProductTailoring(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringResourceIdentifier(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.ProductTypes.ProductTypeResourceIdentifier ProductType(Action init = null) { var t = new commercetools.Sdk.Api.Models.ProductTypes.ProductTypeResourceIdentifier(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/ReferenceTypeId.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/ReferenceTypeId.cs index f4dadd170c0..046a1c55658 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/ReferenceTypeId.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Common/ReferenceTypeId.cs @@ -85,6 +85,9 @@ public enum ReferenceTypeId [Description("product-selection")] ProductSelection, + [Description("product-tailoring")] + ProductTailoring, + [Description("product-type")] ProductType, @@ -226,6 +229,9 @@ public interface IReferenceTypeId : IJsonName, IEnumerable public static IReferenceTypeId ProductSelection = new ReferenceTypeIdWrapper { Value = ReferenceTypeId.ProductSelection, JsonName = "product-selection" }; + public static IReferenceTypeId ProductTailoring = new ReferenceTypeIdWrapper + { Value = ReferenceTypeId.ProductTailoring, JsonName = "product-tailoring" }; + public static IReferenceTypeId ProductType = new ReferenceTypeIdWrapper { Value = ReferenceTypeId.ProductType, JsonName = "product-type" }; @@ -299,6 +305,7 @@ static IReferenceTypeId[] Values() ProductDiscount , ProductPrice , ProductSelection , + ProductTailoring , ProductType , Quote , QuoteRequest , diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs index b852a4b2ad0..d4acf1c7c14 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs @@ -180,6 +180,13 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ProductSelectionVariantSelectionChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductSelectionVariantSelectionChangedMessage))] [SubTypeDiscriminator("ProductSlugChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductSlugChangedMessage))] [SubTypeDiscriminator("ProductStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.ProductStateTransitionMessage))] + [SubTypeDiscriminator("ProductTailoringCreated", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessage))] + [SubTypeDiscriminator("ProductTailoringDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessage))] + [SubTypeDiscriminator("ProductTailoringDescriptionSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessage))] + [SubTypeDiscriminator("ProductTailoringNameSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessage))] + [SubTypeDiscriminator("ProductTailoringPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessage))] + [SubTypeDiscriminator("ProductTailoringSlugSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessage))] + [SubTypeDiscriminator("ProductTailoringUnpublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessage))] [SubTypeDiscriminator("ProductUnpublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessage))] [SubTypeDiscriminator("ProductVariantAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductVariantAddedMessage))] [SubTypeDiscriminator("ProductVariantDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductVariantDeletedMessage))] @@ -1290,6 +1297,48 @@ static commercetools.Sdk.Api.Models.Messages.ProductStateTransitionMessage Produ init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessage ProductTailoringCreated(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessage ProductTailoringDeleted(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessage ProductTailoringDescriptionSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessage ProductTailoringNameSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessage ProductTailoringPublished(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessage ProductTailoringSlugSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessage ProductTailoringUnpublished(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessage ProductUnpublished(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessage(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs index 150d2318326..ae1012254d1 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs @@ -179,6 +179,13 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ProductSelectionVariantSelectionChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductSelectionVariantSelectionChangedMessagePayload))] [SubTypeDiscriminator("ProductSlugChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductSlugChangedMessagePayload))] [SubTypeDiscriminator("ProductStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.ProductStateTransitionMessagePayload))] + [SubTypeDiscriminator("ProductTailoringCreated", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessagePayload))] + [SubTypeDiscriminator("ProductTailoringDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessagePayload))] + [SubTypeDiscriminator("ProductTailoringDescriptionSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessagePayload))] + [SubTypeDiscriminator("ProductTailoringNameSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessagePayload))] + [SubTypeDiscriminator("ProductTailoringPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessagePayload))] + [SubTypeDiscriminator("ProductTailoringSlugSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessagePayload))] + [SubTypeDiscriminator("ProductTailoringUnpublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessagePayload))] [SubTypeDiscriminator("ProductUnpublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessagePayload))] [SubTypeDiscriminator("ProductVariantAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductVariantAddedMessagePayload))] [SubTypeDiscriminator("ProductVariantDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductVariantDeletedMessagePayload))] @@ -1270,6 +1277,48 @@ static commercetools.Sdk.Api.Models.Messages.ProductStateTransitionMessagePayloa init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessagePayload ProductTailoringCreated(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessagePayload ProductTailoringDeleted(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessagePayload ProductTailoringDescriptionSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessagePayload ProductTailoringNameSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessagePayload ProductTailoringPublished(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessagePayload ProductTailoringSlugSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessagePayload ProductTailoringUnpublished(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessagePayload ProductUnpublished(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.ProductUnpublishedMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessage.cs new file mode 100644 index 00000000000..e25483cffce --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessage.cs @@ -0,0 +1,29 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessage))] + public partial interface IProductTailoringCreatedMessage : IMessage + { + string Key { get; set; } + + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString Slug { get; set; } + + bool Published { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessagePayload.cs new file mode 100644 index 00000000000..1ccd8c2009d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringCreatedMessagePayload.cs @@ -0,0 +1,29 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringCreatedMessagePayload))] + public partial interface IProductTailoringCreatedMessagePayload : IMessagePayload + { + string Key { get; set; } + + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString Slug { get; set; } + + bool Published { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessage.cs new file mode 100644 index 00000000000..54d7df89f0b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessage.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessage))] + public partial interface IProductTailoringDeletedMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessagePayload.cs new file mode 100644 index 00000000000..55f1104302a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDeletedMessagePayload.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDeletedMessagePayload))] + public partial interface IProductTailoringDeletedMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessage.cs new file mode 100644 index 00000000000..61d1530136b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessage.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessage))] + public partial interface IProductTailoringDescriptionSetMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString OldDescription { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessagePayload.cs new file mode 100644 index 00000000000..138ee170915 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringDescriptionSetMessagePayload.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringDescriptionSetMessagePayload))] + public partial interface IProductTailoringDescriptionSetMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString OldDescription { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessage.cs new file mode 100644 index 00000000000..dd8428a7b18 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessage.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessage))] + public partial interface IProductTailoringNameSetMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString OldName { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessagePayload.cs new file mode 100644 index 00000000000..d317aa78d07 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringNameSetMessagePayload.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringNameSetMessagePayload))] + public partial interface IProductTailoringNameSetMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString OldName { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessage.cs new file mode 100644 index 00000000000..2949084b90c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessage.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessage))] + public partial interface IProductTailoringPublishedMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessagePayload.cs new file mode 100644 index 00000000000..ae8cf57c71d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringPublishedMessagePayload.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringPublishedMessagePayload))] + public partial interface IProductTailoringPublishedMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessage.cs new file mode 100644 index 00000000000..9a4c970450b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessage.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessage))] + public partial interface IProductTailoringSlugSetMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Slug { get; set; } + + ILocalizedString OldSlug { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessagePayload.cs new file mode 100644 index 00000000000..02a10cacee6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringSlugSetMessagePayload.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringSlugSetMessagePayload))] + public partial interface IProductTailoringSlugSetMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + ILocalizedString Slug { get; set; } + + ILocalizedString OldSlug { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessage.cs new file mode 100644 index 00000000000..28dc12f6057 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessage.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessage))] + public partial interface IProductTailoringUnpublishedMessage : IMessage + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessagePayload.cs new file mode 100644 index 00000000000..f18da35e141 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductTailoringUnpublishedMessagePayload.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductTailoringUnpublishedMessagePayload))] + public partial interface IProductTailoringUnpublishedMessagePayload : IMessagePayload + { + IStoreKeyReference Store { get; set; } + + string ProductKey { get; set; } + + IProductReference Product { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessage.cs new file mode 100644 index 00000000000..d998382d3b8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessage.cs @@ -0,0 +1,54 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringCreatedMessage : IProductTailoringCreatedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public string Key { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString Slug { get; set; } + + public bool Published { get; set; } + public ProductTailoringCreatedMessage() + { + this.Type = "ProductTailoringCreated"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessagePayload.cs new file mode 100644 index 00000000000..b6454761d1a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringCreatedMessagePayload.cs @@ -0,0 +1,33 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringCreatedMessagePayload : IProductTailoringCreatedMessagePayload + { + public string Type { get; set; } + + public string Key { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString Slug { get; set; } + + public bool Published { get; set; } + public ProductTailoringCreatedMessagePayload() + { + this.Type = "ProductTailoringCreated"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessage.cs new file mode 100644 index 00000000000..2eece880b0c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessage.cs @@ -0,0 +1,44 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringDeletedMessage : IProductTailoringDeletedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringDeletedMessage() + { + this.Type = "ProductTailoringDeleted"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessagePayload.cs new file mode 100644 index 00000000000..4d83bd5904d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDeletedMessagePayload.cs @@ -0,0 +1,22 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringDeletedMessagePayload : IProductTailoringDeletedMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringDeletedMessagePayload() + { + this.Type = "ProductTailoringDeleted"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessage.cs new file mode 100644 index 00000000000..a14085d5ea9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessage.cs @@ -0,0 +1,48 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringDescriptionSetMessage : IProductTailoringDescriptionSetMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString OldDescription { get; set; } + public ProductTailoringDescriptionSetMessage() + { + this.Type = "ProductTailoringDescriptionSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessagePayload.cs new file mode 100644 index 00000000000..058f6ae0d4c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringDescriptionSetMessagePayload.cs @@ -0,0 +1,27 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringDescriptionSetMessagePayload : IProductTailoringDescriptionSetMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString OldDescription { get; set; } + public ProductTailoringDescriptionSetMessagePayload() + { + this.Type = "ProductTailoringDescriptionSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessage.cs new file mode 100644 index 00000000000..2e825871aef --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessage.cs @@ -0,0 +1,48 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringNameSetMessage : IProductTailoringNameSetMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString OldName { get; set; } + public ProductTailoringNameSetMessage() + { + this.Type = "ProductTailoringNameSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessagePayload.cs new file mode 100644 index 00000000000..2df689bb656 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringNameSetMessagePayload.cs @@ -0,0 +1,27 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringNameSetMessagePayload : IProductTailoringNameSetMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString OldName { get; set; } + public ProductTailoringNameSetMessagePayload() + { + this.Type = "ProductTailoringNameSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessage.cs new file mode 100644 index 00000000000..0fb07cc5951 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessage.cs @@ -0,0 +1,44 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringPublishedMessage : IProductTailoringPublishedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringPublishedMessage() + { + this.Type = "ProductTailoringPublished"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessagePayload.cs new file mode 100644 index 00000000000..8eaff36239c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringPublishedMessagePayload.cs @@ -0,0 +1,22 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringPublishedMessagePayload : IProductTailoringPublishedMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringPublishedMessagePayload() + { + this.Type = "ProductTailoringPublished"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessage.cs new file mode 100644 index 00000000000..e900ef6ed8b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessage.cs @@ -0,0 +1,48 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringSlugSetMessage : IProductTailoringSlugSetMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Slug { get; set; } + + public ILocalizedString OldSlug { get; set; } + public ProductTailoringSlugSetMessage() + { + this.Type = "ProductTailoringSlugSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessagePayload.cs new file mode 100644 index 00000000000..93d8918d549 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringSlugSetMessagePayload.cs @@ -0,0 +1,27 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringSlugSetMessagePayload : IProductTailoringSlugSetMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + + public ILocalizedString Slug { get; set; } + + public ILocalizedString OldSlug { get; set; } + public ProductTailoringSlugSetMessagePayload() + { + this.Type = "ProductTailoringSlugSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessage.cs new file mode 100644 index 00000000000..44b0daa1dc3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessage.cs @@ -0,0 +1,44 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringUnpublishedMessage : IProductTailoringUnpublishedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringUnpublishedMessage() + { + this.Type = "ProductTailoringUnpublished"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessagePayload.cs new file mode 100644 index 00000000000..b904db1fdb6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductTailoringUnpublishedMessagePayload.cs @@ -0,0 +1,22 @@ +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductTailoringUnpublishedMessagePayload : IProductTailoringUnpublishedMessagePayload + { + public string Type { get; set; } + + public IStoreKeyReference Store { get; set; } + + public string ProductKey { get; set; } + + public IProductReference Product { get; set; } + public ProductTailoringUnpublishedMessagePayload() + { + this.Type = "ProductTailoringUnpublished"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoring.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoring.cs new file mode 100644 index 00000000000..f443db4eb3f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoring.cs @@ -0,0 +1,40 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoring))] + public partial interface IProductTailoring : IBaseResource + { + new string Id { get; set; } + + new long Version { get; set; } + + new DateTime CreatedAt { get; set; } + + new DateTime LastModifiedAt { get; set; } + + ILastModifiedBy LastModifiedBy { get; set; } + + ICreatedBy CreatedBy { get; set; } + + string Key { get; set; } + + IStoreKeyReference Store { get; set; } + + IProductReference Product { get; set; } + + bool Published { get; set; } + + IProductTailoringData Current { get; set; } + + IProductTailoringData Staged { get; set; } + + bool HasStagedChanges { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringData.cs new file mode 100644 index 00000000000..a38d74c4199 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringData.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringData))] + public partial interface IProductTailoringData + { + ILocalizedString Name { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString MetaTitle { get; set; } + + ILocalizedString MetaDescription { get; set; } + + ILocalizedString MetaKeywords { get; set; } + + ILocalizedString Slug { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringDraft.cs new file mode 100644 index 00000000000..0319da2c9a6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringDraft.cs @@ -0,0 +1,33 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringDraft))] + public partial interface IProductTailoringDraft + { + string Key { get; set; } + + IStoreResourceIdentifier Store { get; set; } + + IProductResourceIdentifier Product { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString MetaTitle { get; set; } + + ILocalizedString MetaDescription { get; set; } + + ILocalizedString MetaKeywords { get; set; } + + ILocalizedString Slug { get; set; } + + bool? Publish { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringInStoreDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringInStoreDraft.cs new file mode 100644 index 00000000000..ed850bb7085 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringInStoreDraft.cs @@ -0,0 +1,30 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringInStoreDraft))] + public partial interface IProductTailoringInStoreDraft + { + string Key { get; set; } + + IProductResourceIdentifier Product { get; set; } + + ILocalizedString Name { get; set; } + + ILocalizedString Description { get; set; } + + ILocalizedString MetaTitle { get; set; } + + ILocalizedString MetaDescription { get; set; } + + ILocalizedString MetaKeywords { get; set; } + + ILocalizedString Slug { get; set; } + + bool? Publish { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPagedQueryResponse.cs new file mode 100644 index 00000000000..deb551206f8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPagedQueryResponse.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringPagedQueryResponse))] + public partial interface IProductTailoringPagedQueryResponse + { + long Limit { get; set; } + + long Offset { get; set; } + + long Count { get; set; } + + long? Total { get; set; } + + IList Results { get; set; } + IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPublishAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPublishAction.cs new file mode 100644 index 00000000000..c2a710b053f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringPublishAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringPublishAction))] + public partial interface IProductTailoringPublishAction : IProductTailoringUpdateAction + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringReference.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringReference.cs new file mode 100644 index 00000000000..bd6f525410b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringReference.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringReference))] + public partial interface IProductTailoringReference : IReference + { + new string Id { get; set; } + + IProductTailoring Obj { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringResourceIdentifier.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringResourceIdentifier.cs new file mode 100644 index 00000000000..e1d9777e0e9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringResourceIdentifier.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringResourceIdentifier))] + public partial interface IProductTailoringResourceIdentifier : IResourceIdentifier + { + new string Id { get; set; } + + new string Key { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetDescriptionAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetDescriptionAction.cs new file mode 100644 index 00000000000..2f4876df75f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetDescriptionAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction))] + public partial interface IProductTailoringSetDescriptionAction : IProductTailoringUpdateAction + { + ILocalizedString Description { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaAttributesAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaAttributesAction.cs new file mode 100644 index 00000000000..b90f1b467aa --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaAttributesAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaAttributesAction))] + public partial interface IProductTailoringSetMetaAttributesAction : IProductTailoringUpdateAction + { + ILocalizedString MetaTitle { get; set; } + + ILocalizedString MetaDescription { get; set; } + + ILocalizedString MetaKeywords { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaDescriptionAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaDescriptionAction.cs new file mode 100644 index 00000000000..1d609a72368 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaDescriptionAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaDescriptionAction))] + public partial interface IProductTailoringSetMetaDescriptionAction : IProductTailoringUpdateAction + { + ILocalizedString MetaDescription { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaKeywordsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaKeywordsAction.cs new file mode 100644 index 00000000000..942708f94b0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaKeywordsAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaKeywordsAction))] + public partial interface IProductTailoringSetMetaKeywordsAction : IProductTailoringUpdateAction + { + ILocalizedString MetaKeywords { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaTitleAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaTitleAction.cs new file mode 100644 index 00000000000..605e999ed03 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetMetaTitleAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaTitleAction))] + public partial interface IProductTailoringSetMetaTitleAction : IProductTailoringUpdateAction + { + ILocalizedString MetaTitle { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetNameAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetNameAction.cs new file mode 100644 index 00000000000..852d2437beb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetNameAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetNameAction))] + public partial interface IProductTailoringSetNameAction : IProductTailoringUpdateAction + { + ILocalizedString Name { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetSlugAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetSlugAction.cs new file mode 100644 index 00000000000..a3a4c648f74 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringSetSlugAction.cs @@ -0,0 +1,15 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetSlugAction))] + public partial interface IProductTailoringSetSlugAction : IProductTailoringUpdateAction + { + ILocalizedString Slug { get; set; } + + bool? Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUnpublishAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUnpublishAction.cs new file mode 100644 index 00000000000..836e82e8e9e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUnpublishAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringUnpublishAction))] + public partial interface IProductTailoringUnpublishAction : IProductTailoringUpdateAction + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUpdateAction.cs new file mode 100644 index 00000000000..33b4145294d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/IProductTailoringUpdateAction.cs @@ -0,0 +1,77 @@ +using System; +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + [TypeDiscriminator(nameof(Action))] + [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringUpdateAction))] + [SubTypeDiscriminator("publish", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringPublishAction))] + [SubTypeDiscriminator("setDescription", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetDescriptionAction))] + [SubTypeDiscriminator("setMetaAttributes", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaAttributesAction))] + [SubTypeDiscriminator("setMetaDescription", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaDescriptionAction))] + [SubTypeDiscriminator("setMetaKeywords", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaKeywordsAction))] + [SubTypeDiscriminator("setMetaTitle", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaTitleAction))] + [SubTypeDiscriminator("setName", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetNameAction))] + [SubTypeDiscriminator("setSlug", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetSlugAction))] + [SubTypeDiscriminator("unpublish", typeof(commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringUnpublishAction))] + public partial interface IProductTailoringUpdateAction + { + string Action { get; set; } + + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringPublishAction Publish(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringPublishAction(); + 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(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaAttributesAction SetMetaAttributes(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaAttributesAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaDescriptionAction SetMetaDescription(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaDescriptionAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaKeywordsAction SetMetaKeywords(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaKeywordsAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaTitleAction SetMetaTitle(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetMetaTitleAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetNameAction SetName(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetNameAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetSlugAction SetSlug(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringSetSlugAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringUnpublishAction Unpublish(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ProductTailorings.ProductTailoringUnpublishAction(); + init?.Invoke(t); + return t; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoring.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoring.cs new file mode 100644 index 00000000000..0e2388e23d1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoring.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; +using System; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoring : IProductTailoring + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public string Key { get; set; } + + public IStoreKeyReference Store { get; set; } + + public IProductReference Product { get; set; } + + public bool Published { get; set; } + + public IProductTailoringData Current { get; set; } + + public IProductTailoringData Staged { get; set; } + + public bool HasStagedChanges { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringData.cs new file mode 100644 index 00000000000..739bf679930 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringData.cs @@ -0,0 +1,21 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringData : IProductTailoringData + { + public ILocalizedString Name { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString MetaTitle { get; set; } + + public ILocalizedString MetaDescription { get; set; } + + public ILocalizedString MetaKeywords { get; set; } + + public ILocalizedString Slug { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringDraft.cs new file mode 100644 index 00000000000..618b841dbb5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringDraft.cs @@ -0,0 +1,31 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Sdk.Api.Models.Stores; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringDraft : IProductTailoringDraft + { + public string Key { get; set; } + + public IStoreResourceIdentifier Store { get; set; } + + public IProductResourceIdentifier Product { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString MetaTitle { get; set; } + + public ILocalizedString MetaDescription { get; set; } + + public ILocalizedString MetaKeywords { get; set; } + + public ILocalizedString Slug { get; set; } + + public bool? Publish { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringInStoreDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringInStoreDraft.cs new file mode 100644 index 00000000000..cc81073781b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringInStoreDraft.cs @@ -0,0 +1,28 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Products; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringInStoreDraft : IProductTailoringInStoreDraft + { + public string Key { get; set; } + + public IProductResourceIdentifier Product { get; set; } + + public ILocalizedString Name { get; set; } + + public ILocalizedString Description { get; set; } + + public ILocalizedString MetaTitle { get; set; } + + public ILocalizedString MetaDescription { get; set; } + + public ILocalizedString MetaKeywords { get; set; } + + public ILocalizedString Slug { get; set; } + + public bool? Publish { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPagedQueryResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPagedQueryResponse.cs new file mode 100644 index 00000000000..972ba2afdea --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPagedQueryResponse.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using System.Linq; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringPagedQueryResponse : IProductTailoringPagedQueryResponse + { + public long Limit { get; set; } + + public long Offset { get; set; } + + public long Count { get; set; } + + public long? Total { get; set; } + + public IList Results { get; set; } + public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPublishAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPublishAction.cs new file mode 100644 index 00000000000..396543998ab --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringPublishAction.cs @@ -0,0 +1,12 @@ +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringPublishAction : IProductTailoringPublishAction + { + public string Action { get; set; } + public ProductTailoringPublishAction() + { + this.Action = "publish"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringReference.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringReference.cs new file mode 100644 index 00000000000..7c8e084ebc2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringReference.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringReference : IProductTailoringReference + { + public IReferenceTypeId TypeId { get; set; } + + public string Id { get; set; } + + public IProductTailoring Obj { get; set; } + public ProductTailoringReference() + { + this.TypeId = IReferenceTypeId.FindEnum("product-tailoring"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringResourceIdentifier.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringResourceIdentifier.cs new file mode 100644 index 00000000000..ffaa2e2a734 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringResourceIdentifier.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringResourceIdentifier : IProductTailoringResourceIdentifier + { + public IReferenceTypeId TypeId { get; set; } + + public string Id { get; set; } + + public string Key { get; set; } + public ProductTailoringResourceIdentifier() + { + this.TypeId = IReferenceTypeId.FindEnum("product-tailoring"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetDescriptionAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetDescriptionAction.cs new file mode 100644 index 00000000000..f99a3538594 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetDescriptionAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetDescriptionAction : IProductTailoringSetDescriptionAction + { + public string Action { get; set; } + + public ILocalizedString Description { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetDescriptionAction() + { + this.Action = "setDescription"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaAttributesAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaAttributesAction.cs new file mode 100644 index 00000000000..b8c804d9734 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaAttributesAction.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetMetaAttributesAction : IProductTailoringSetMetaAttributesAction + { + public string Action { get; set; } + + public ILocalizedString MetaTitle { get; set; } + + public ILocalizedString MetaDescription { get; set; } + + public ILocalizedString MetaKeywords { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetMetaAttributesAction() + { + this.Action = "setMetaAttributes"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaDescriptionAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaDescriptionAction.cs new file mode 100644 index 00000000000..28f51f23b2c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaDescriptionAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetMetaDescriptionAction : IProductTailoringSetMetaDescriptionAction + { + public string Action { get; set; } + + public ILocalizedString MetaDescription { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetMetaDescriptionAction() + { + this.Action = "setMetaDescription"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaKeywordsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaKeywordsAction.cs new file mode 100644 index 00000000000..8a036a97557 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaKeywordsAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetMetaKeywordsAction : IProductTailoringSetMetaKeywordsAction + { + public string Action { get; set; } + + public ILocalizedString MetaKeywords { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetMetaKeywordsAction() + { + this.Action = "setMetaKeywords"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaTitleAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaTitleAction.cs new file mode 100644 index 00000000000..ab19f573bdb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetMetaTitleAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetMetaTitleAction : IProductTailoringSetMetaTitleAction + { + public string Action { get; set; } + + public ILocalizedString MetaTitle { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetMetaTitleAction() + { + this.Action = "setMetaTitle"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetNameAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetNameAction.cs new file mode 100644 index 00000000000..a3e3968ecc0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetNameAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetNameAction : IProductTailoringSetNameAction + { + public string Action { get; set; } + + public ILocalizedString Name { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetNameAction() + { + this.Action = "setName"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetSlugAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetSlugAction.cs new file mode 100644 index 00000000000..01a4f847ada --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringSetSlugAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringSetSlugAction : IProductTailoringSetSlugAction + { + public string Action { get; set; } + + public ILocalizedString Slug { get; set; } + + public bool? Staged { get; set; } + public ProductTailoringSetSlugAction() + { + this.Action = "setSlug"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUnpublishAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUnpublishAction.cs new file mode 100644 index 00000000000..53481ef123a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUnpublishAction.cs @@ -0,0 +1,12 @@ +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringUnpublishAction : IProductTailoringUnpublishAction + { + public string Action { get; set; } + public ProductTailoringUnpublishAction() + { + this.Action = "unpublish"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUpdateAction.cs new file mode 100644 index 00000000000..8ef9797beb4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductTailorings/ProductTailoringUpdateAction.cs @@ -0,0 +1,8 @@ +namespace commercetools.Sdk.Api.Models.ProductTailorings +{ + + public partial class ProductTailoringUpdateAction : IProductTailoringUpdateAction + { + public string Action { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/ProductTailoringUpdateQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/ProductTailoringUpdateQueryBuilderDsl.cs new file mode 100644 index 00000000000..66419d4d6f5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/ProductTailoringUpdateQueryBuilderDsl.cs @@ -0,0 +1,39 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Carts +{ + + public partial class ProductTailoringUpdateQueryBuilderDsl + { + public ProductTailoringUpdateQueryBuilderDsl() + { + } + + public static ProductTailoringUpdateQueryBuilderDsl Of() + { + return new ProductTailoringUpdateQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringUpdateQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Actions( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("actions")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringUpdateActionQueryBuilderDsl.Of())), + ProductTailoringUpdateQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Actions() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("actions")), + p => new CombinationQueryPredicate(p, ProductTailoringUpdateQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/BaseResourceQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/BaseResourceQueryBuilderDsl.cs index 677dd724e65..a992db81aaa 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/BaseResourceQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/BaseResourceQueryBuilderDsl.cs @@ -178,6 +178,12 @@ public CombinationQueryPredicate AsProductSelection return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductSelections.ProductSelectionQueryBuilderDsl.Of()), BaseResourceQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsProductTailoring( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringQueryBuilderDsl.Of()), + BaseResourceQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsProductType( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ReferenceQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ReferenceQueryBuilderDsl.cs index 7685a90440a..fc4e865322f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ReferenceQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ReferenceQueryBuilderDsl.cs @@ -154,6 +154,12 @@ public CombinationQueryPredicate AsProductSelection( return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductSelections.ProductSelectionReferenceQueryBuilderDsl.Of()), ReferenceQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsProductTailoring( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringReferenceQueryBuilderDsl.Of()), + ReferenceQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsProductType( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ResourceIdentifierQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ResourceIdentifierQueryBuilderDsl.cs index 33259f1bcd8..e231c02dc99 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ResourceIdentifierQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Common/ResourceIdentifierQueryBuilderDsl.cs @@ -130,6 +130,12 @@ public CombinationQueryPredicate AsProductSel return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductSelections.ProductSelectionResourceIdentifierQueryBuilderDsl.Of()), ResourceIdentifierQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsProductTailoring( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringResourceIdentifierQueryBuilderDsl.Of()), + ResourceIdentifierQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsProductType( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs index f9627be40eb..ebe2cb28b37 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs @@ -796,6 +796,48 @@ public CombinationQueryPredicate AsProductStateTr return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductStateTransitionMessagePayloadQueryBuilderDsl.Of()), MessagePayloadQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsProductTailoringCreated( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringDeleted( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringDeletedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringDescriptionSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringNameSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringPublished( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringPublishedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringSlugSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringUnpublished( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsProductUnpublished( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs index 17a160dfccd..c4d8c3466c7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs @@ -868,6 +868,48 @@ public CombinationQueryPredicate AsProductStateTransitio return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductStateTransitionMessageQueryBuilderDsl.Of()), MessageQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsProductTailoringCreated( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringCreatedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringDeleted( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringDeletedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringDescriptionSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringNameSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringNameSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringPublished( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringPublishedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringSlugSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringSlugSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsProductTailoringUnpublished( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ProductTailoringUnpublishedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsProductUnpublished( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..c365e28f752 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,89 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringCreatedMessagePayloadQueryBuilderDsl + { + public ProductTailoringCreatedMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringCreatedMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringCreatedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Published() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("published")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..1f26f6124f7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringCreatedMessageQueryBuilderDsl.cs @@ -0,0 +1,161 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringCreatedMessageQueryBuilderDsl + { + public ProductTailoringCreatedMessageQueryBuilderDsl() + { + } + + public static ProductTailoringCreatedMessageQueryBuilderDsl Of() + { + return new ProductTailoringCreatedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringCreatedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Published() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("published")), + p => new CombinationQueryPredicate(p, ProductTailoringCreatedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..1d13c1f9f50 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,50 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringDeletedMessagePayloadQueryBuilderDsl + { + public ProductTailoringDeletedMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringDeletedMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringDeletedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringDeletedMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringDeletedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..264c6f40ad0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDeletedMessageQueryBuilderDsl.cs @@ -0,0 +1,122 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringDeletedMessageQueryBuilderDsl + { + public ProductTailoringDeletedMessageQueryBuilderDsl() + { + } + + public static ProductTailoringDeletedMessageQueryBuilderDsl Of() + { + return new ProductTailoringDeletedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringDeletedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringDeletedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..50877941736 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,68 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl + { + public ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..cede253c95f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringDescriptionSetMessageQueryBuilderDsl.cs @@ -0,0 +1,140 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringDescriptionSetMessageQueryBuilderDsl + { + public ProductTailoringDescriptionSetMessageQueryBuilderDsl() + { + } + + public static ProductTailoringDescriptionSetMessageQueryBuilderDsl Of() + { + return new ProductTailoringDescriptionSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDescriptionSetMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..48e984189dc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,68 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringNameSetMessagePayloadQueryBuilderDsl + { + public ProductTailoringNameSetMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringNameSetMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringNameSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldName( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldName")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringNameSetMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..f85e75cd339 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringNameSetMessageQueryBuilderDsl.cs @@ -0,0 +1,140 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringNameSetMessageQueryBuilderDsl + { + public ProductTailoringNameSetMessageQueryBuilderDsl() + { + } + + public static ProductTailoringNameSetMessageQueryBuilderDsl Of() + { + return new ProductTailoringNameSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringNameSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldName( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldName")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringNameSetMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..0b9adb582ab --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,50 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringPublishedMessagePayloadQueryBuilderDsl + { + public ProductTailoringPublishedMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringPublishedMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringPublishedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringPublishedMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringPublishedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..9aad56ce45e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringPublishedMessageQueryBuilderDsl.cs @@ -0,0 +1,122 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringPublishedMessageQueryBuilderDsl + { + public ProductTailoringPublishedMessageQueryBuilderDsl() + { + } + + public static ProductTailoringPublishedMessageQueryBuilderDsl Of() + { + return new ProductTailoringPublishedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringPublishedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..703341d16a1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,68 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringSlugSetMessagePayloadQueryBuilderDsl + { + public ProductTailoringSlugSetMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringSlugSetMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringSlugSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldSlug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldSlug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..e0c910c64af --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringSlugSetMessageQueryBuilderDsl.cs @@ -0,0 +1,140 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringSlugSetMessageQueryBuilderDsl + { + public ProductTailoringSlugSetMessageQueryBuilderDsl() + { + } + + public static ProductTailoringSlugSetMessageQueryBuilderDsl Of() + { + return new ProductTailoringSlugSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringSlugSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldSlug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldSlug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSlugSetMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..897431bf001 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,50 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl + { + public ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl() + { + } + + public static ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl Of() + { + return new ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..8700c5f5da5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ProductTailoringUnpublishedMessageQueryBuilderDsl.cs @@ -0,0 +1,122 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ProductTailoringUnpublishedMessageQueryBuilderDsl + { + public ProductTailoringUnpublishedMessageQueryBuilderDsl() + { + } + + public static ProductTailoringUnpublishedMessageQueryBuilderDsl Of() + { + return new ProductTailoringUnpublishedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ProductKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("productKey")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringUnpublishedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..df8ce40fcf3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDataQueryBuilderDsl.cs @@ -0,0 +1,74 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringDataQueryBuilderDsl + { + public ProductTailoringDataQueryBuilderDsl() + { + } + + public static ProductTailoringDataQueryBuilderDsl Of() + { + return new ProductTailoringDataQueryBuilderDsl(); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaTitle")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaKeywords")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDataQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDraftQueryBuilderDsl.cs new file mode 100644 index 00000000000..eb8ac95425d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringDraftQueryBuilderDsl.cs @@ -0,0 +1,104 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringDraftQueryBuilderDsl + { + public ProductTailoringDraftQueryBuilderDsl() + { + } + + public static ProductTailoringDraftQueryBuilderDsl Of() + { + return new ProductTailoringDraftQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreResourceIdentifierQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductResourceIdentifierQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaTitle")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaKeywords")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringDraftQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Publish() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("publish")), + p => new CombinationQueryPredicate(p, ProductTailoringDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringInStoreDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringInStoreDraftQueryBuilderDsl.cs new file mode 100644 index 00000000000..338057c001a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringInStoreDraftQueryBuilderDsl.cs @@ -0,0 +1,95 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringInStoreDraftQueryBuilderDsl + { + public ProductTailoringInStoreDraftQueryBuilderDsl() + { + } + + public static ProductTailoringInStoreDraftQueryBuilderDsl Of() + { + return new ProductTailoringInStoreDraftQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringInStoreDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductResourceIdentifierQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaTitle")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaKeywords")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringInStoreDraftQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Publish() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("publish")), + p => new CombinationQueryPredicate(p, ProductTailoringInStoreDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPagedQueryResponseQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPagedQueryResponseQueryBuilderDsl.cs new file mode 100644 index 00000000000..c50a8dab475 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPagedQueryResponseQueryBuilderDsl.cs @@ -0,0 +1,57 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringPagedQueryResponseQueryBuilderDsl + { + public ProductTailoringPagedQueryResponseQueryBuilderDsl() + { + } + + public static ProductTailoringPagedQueryResponseQueryBuilderDsl Of() + { + return new ProductTailoringPagedQueryResponseQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Limit() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("limit")), + p => new CombinationQueryPredicate(p, ProductTailoringPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Offset() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("offset")), + p => new CombinationQueryPredicate(p, ProductTailoringPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Count() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("count")), + p => new CombinationQueryPredicate(p, ProductTailoringPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Total() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("total")), + p => new CombinationQueryPredicate(p, ProductTailoringPagedQueryResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Results( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("results")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringQueryBuilderDsl.Of())), + ProductTailoringPagedQueryResponseQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Results() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("results")), + p => new CombinationQueryPredicate(p, ProductTailoringPagedQueryResponseQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPublishActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPublishActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..acb2cd16ad0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringPublishActionQueryBuilderDsl.cs @@ -0,0 +1,24 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringPublishActionQueryBuilderDsl + { + public ProductTailoringPublishActionQueryBuilderDsl() + { + } + + public static ProductTailoringPublishActionQueryBuilderDsl Of() + { + return new ProductTailoringPublishActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringPublishActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringQueryBuilderDsl.cs new file mode 100644 index 00000000000..7c229c0d3e6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringQueryBuilderDsl.cs @@ -0,0 +1,116 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringQueryBuilderDsl + { + public ProductTailoringQueryBuilderDsl() + { + } + + public static ProductTailoringQueryBuilderDsl Of() + { + return new ProductTailoringQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Store( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("store")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Stores.StoreKeyReferenceQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Product( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("product")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Products.ProductReferenceQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Published() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("published")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Current( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("current")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringDataQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Staged( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("staged")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringDataQueryBuilderDsl.Of())), + ProductTailoringQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder HasStagedChanges() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("hasStagedChanges")), + p => new CombinationQueryPredicate(p, ProductTailoringQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringReferenceQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringReferenceQueryBuilderDsl.cs new file mode 100644 index 00000000000..fcec903fc2e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringReferenceQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringReferenceQueryBuilderDsl + { + public ProductTailoringReferenceQueryBuilderDsl() + { + } + + public static ProductTailoringReferenceQueryBuilderDsl Of() + { + return new ProductTailoringReferenceQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder TypeId() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("typeId")), + p => new CombinationQueryPredicate(p, ProductTailoringReferenceQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringReferenceQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Obj( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("obj")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringQueryBuilderDsl.Of())), + ProductTailoringReferenceQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringResourceIdentifierQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringResourceIdentifierQueryBuilderDsl.cs new file mode 100644 index 00000000000..68c0c265c58 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringResourceIdentifierQueryBuilderDsl.cs @@ -0,0 +1,36 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringResourceIdentifierQueryBuilderDsl + { + public ProductTailoringResourceIdentifierQueryBuilderDsl() + { + } + + public static ProductTailoringResourceIdentifierQueryBuilderDsl Of() + { + return new ProductTailoringResourceIdentifierQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder TypeId() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("typeId")), + p => new CombinationQueryPredicate(p, ProductTailoringResourceIdentifierQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ProductTailoringResourceIdentifierQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ProductTailoringResourceIdentifierQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetDescriptionActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetDescriptionActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..e06ab7b5de3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetDescriptionActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetDescriptionActionQueryBuilderDsl + { + public ProductTailoringSetDescriptionActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetDescriptionActionQueryBuilderDsl Of() + { + return new ProductTailoringSetDescriptionActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetDescriptionActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Description( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("description")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetDescriptionActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetDescriptionActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaAttributesActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaAttributesActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..205bae87a5a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaAttributesActionQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetMetaAttributesActionQueryBuilderDsl + { + public ProductTailoringSetMetaAttributesActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetMetaAttributesActionQueryBuilderDsl Of() + { + return new ProductTailoringSetMetaAttributesActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate MetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaTitle")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate MetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaKeywords")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..6e1bf1f8e56 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetMetaDescriptionActionQueryBuilderDsl + { + public ProductTailoringSetMetaDescriptionActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetMetaDescriptionActionQueryBuilderDsl Of() + { + return new ProductTailoringSetMetaDescriptionActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate MetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaDescription")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..b202d25bbb6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetMetaKeywordsActionQueryBuilderDsl + { + public ProductTailoringSetMetaKeywordsActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetMetaKeywordsActionQueryBuilderDsl Of() + { + return new ProductTailoringSetMetaKeywordsActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate MetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaKeywords")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaTitleActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaTitleActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..9581e5c0dbe --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetMetaTitleActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetMetaTitleActionQueryBuilderDsl + { + public ProductTailoringSetMetaTitleActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetMetaTitleActionQueryBuilderDsl Of() + { + return new ProductTailoringSetMetaTitleActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaTitleActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate MetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("metaTitle")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetMetaTitleActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetMetaTitleActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetNameActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetNameActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..bca18359c92 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetNameActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetNameActionQueryBuilderDsl + { + public ProductTailoringSetNameActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetNameActionQueryBuilderDsl Of() + { + return new ProductTailoringSetNameActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetNameActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Name( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("name")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetNameActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetNameActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetSlugActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetSlugActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..6b425655afd --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringSetSlugActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringSetSlugActionQueryBuilderDsl + { + public ProductTailoringSetSlugActionQueryBuilderDsl() + { + } + + public static ProductTailoringSetSlugActionQueryBuilderDsl Of() + { + return new ProductTailoringSetSlugActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringSetSlugActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Slug( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("slug")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LocalizedStringQueryBuilderDsl.Of())), + ProductTailoringSetSlugActionQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder Staged() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("staged")), + p => new CombinationQueryPredicate(p, ProductTailoringSetSlugActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUnpublishActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUnpublishActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..ef8282d646b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUnpublishActionQueryBuilderDsl.cs @@ -0,0 +1,24 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringUnpublishActionQueryBuilderDsl + { + public ProductTailoringUnpublishActionQueryBuilderDsl() + { + } + + public static ProductTailoringUnpublishActionQueryBuilderDsl Of() + { + return new ProductTailoringUnpublishActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringUnpublishActionQueryBuilderDsl.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 new file mode 100644 index 00000000000..1d43c8d201c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ProductTailorings/ProductTailoringUpdateActionQueryBuilderDsl.cs @@ -0,0 +1,80 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ProductTailorings +{ + + public partial class ProductTailoringUpdateActionQueryBuilderDsl + { + public ProductTailoringUpdateActionQueryBuilderDsl() + { + } + + public static ProductTailoringUpdateActionQueryBuilderDsl Of() + { + return new ProductTailoringUpdateActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProductTailoringUpdateActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + public CombinationQueryPredicate AsPublish( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringPublishActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetDescription( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetDescriptionActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetMetaAttributes( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetMetaAttributesActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetMetaDescription( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetMetaDescriptionActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetMetaKeywords( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetMetaKeywordsActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetMetaTitle( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetMetaTitleActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetName( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetNameActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetSlug( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringSetSlugActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsUnpublish( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ProductTailorings.ProductTailoringUnpublishActionQueryBuilderDsl.Of()), + ProductTailoringUpdateActionQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 579acf6a69a..678822a9289 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -2978,6 +2978,19 @@ input CreateProductSelectionDraft { custom: CustomFieldsDraft } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input CreateProductTailoringDraft { + product: ResourceIdentifierInput! + name: [LocalizedStringItemInputType!] + key: String + description: [LocalizedStringItemInputType!] + slug: [LocalizedStringItemInputType!] + metaTitle: [LocalizedStringItemInputType!] + metaDescription: [LocalizedStringItemInputType!] + metaKeywords: [LocalizedStringItemInputType!] + publish: Boolean +} + input CreateStandalonePrice { key: String sku: String! @@ -4555,6 +4568,23 @@ type InStore implements CartDiscountQueryInterface & CartQueryInterface & Custom key: String): ShoppingList shoppingLists(where: String, sort: [String!], limit: Int, offset: Int): ShoppingListQueryResult! productSelectionAssignments(where: String, sort: [String!], limit: Int, offset: Int): ProductAssignmentQueryResult! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + productTailoring( + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String, + + "Queries with specified Product ID" + productId: String, + + "Queries with specified Product key" + productKey: String): ProductTailoring + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + productTailoringList(where: String, sort: [String!], limit: Int, offset: Int): ProductTailoringQueryResult! } type InStoreMe implements MeQueryInterface & CartQueryInterface & ActiveCartInterface & OrderQueryInterface & ShoppingListQueryInterface { @@ -5907,6 +5937,47 @@ type Mutation { "Queries with specified key" key: String): ProductSelection + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + createProductTailoring( + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput, draft: CreateProductTailoringDraft!): ProductTailoring + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + updateProductTailoring( + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput, + + "Queries with specified Product ID" + productId: String, + + "Queries with specified Product key" + productKey: String, + + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String, + + actions: [ProductTailoringUpdateAction!]!, version: Long!): ProductTailoring + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + deleteProductTailoring( + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput, + + "Queries with specified Product ID" + productId: String, + + "Queries with specified Product key" + productKey: String, + + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String, version: Long!): ProductTailoring updateProject(version: Long!, actions: [ProjectSettingsUpdateAction!]!): ProjectProjection createStore(draft: CreateStore!): Store updateStore(version: Long!, actions: [StoreUpdateAction!]!, @@ -8077,6 +8148,208 @@ type ProductStateTransition implements MessagePayload { type: String! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type ProductTailoring implements Versioned { + key: String + productRef: Reference! + product: Product + storeRef: KeyReference! + store: Store + current: ProductTailoringData + staged: ProductTailoringData + published: Boolean! + hasStagedChanges: Boolean! + id: String! + version: Long! + createdAt: DateTime! + lastModifiedAt: DateTime! + createdBy: Initiator + lastModifiedBy: Initiator +} + +type ProductTailoringCreated implements MessagePayload { + publish: Boolean! + storeRef: KeyReference! + productRef: Reference! + key: String + productKey: String + name( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + description( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + slug( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + nameAllLocales: [LocalizedString!] + slugAllLocales: [LocalizedString!] + descriptionAllLocales: [LocalizedString!] + type: String! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type ProductTailoringData { + name( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + nameAllLocales: [LocalizedString!] + description( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + descriptionAllLocales: [LocalizedString!] + slug( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + slugAllLocales: [LocalizedString!] + metaTitle( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaTitleAllLocales: [LocalizedString!] + metaDescription( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaDescriptionAllLocales: [LocalizedString!] + metaKeywords( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaKeywordsAllLocales: [LocalizedString!] +} + +type ProductTailoringDeleted implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + type: String! +} + +type ProductTailoringDescriptionSet implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + description( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + oldDescription( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + descriptionAllLocales: [LocalizedString!] + oldDescriptionAllLocales: [LocalizedString!] + type: String! +} + +type ProductTailoringNameSet implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + name( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + oldName( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + nameAllLocales: [LocalizedString!] + oldNameAllLocales: [LocalizedString!] + type: String! +} + +type ProductTailoringPublished implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + type: String! +} + +type ProductTailoringQueryResult { + offset: Int! + count: Int! + total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + exists: Boolean! + results: [ProductTailoring!]! +} + +type ProductTailoringSlugSet implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + slug( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + oldSlug( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + slugAllLocales: [LocalizedString!] + oldSlugAllLocales: [LocalizedString!] + type: String! +} + +type ProductTailoringUnpublished implements MessagePayload { + storeRef: KeyReference! + productRef: Reference! + productKey: String + type: 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 ProductTailoringUpdateAction { + publish: PublishTailoring + unpublish: UnpublishTailoring + setDescription: SetProductTailoringDescription + setMetaAttributes: SetProductTailoringMetaAttributes + setMetaDescription: SetProductTailoringMetaDescription + setMetaKeywords: SetProductTailoringMetaKeywords + setMetaTitle: SetProductTailoringMetaTitle + setName: SetProductTailoringName + setSlug: SetProductTailoringSlug +} + type ProductTypeDefinition implements Versioned & ReferenceExpandable { key: String name: String! @@ -8407,6 +8680,10 @@ enum PublishScope { Prices } +input PublishTailoring { + dummy: String +} + type PurchaseOrderNumberSet implements MessagePayload & OrderMessagePayload { purchaseOrderNumber: String oldPurchaseOrderNumber: String @@ -8608,6 +8885,26 @@ type Query { "Queries with specified key" key: String): ProductSelection productSelections(where: String, sort: [String!], limit: Int, offset: Int): ProductSelectionQueryResult! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + productTailoring( + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String, + + "Queries with specified Product ID" + productId: String, + + "Queries with specified Product key" + productKey: String, + + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput): ProductTailoring + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + productTailoringList(where: String, sort: [String!], limit: Int, offset: Int): ProductTailoringQueryResult! productProjectionsSuggest(searchKeywords: [SearchKeywordArgument!]!, fuzzy: Boolean, limit: Int = 10, staged: Boolean = false): SuggestResult! project: ProjectProjection! store( @@ -11166,6 +11463,43 @@ input SetProductSku { staged: Boolean = true } +input SetProductTailoringDescription { + description: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringMetaAttributes { + metaDescription: [LocalizedStringItemInputType!] + metaKeywords: [LocalizedStringItemInputType!] + metaTitle: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringMetaDescription { + metaDescription: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringMetaKeywords { + metaKeywords: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringMetaTitle { + metaTitle: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringName { + name: [LocalizedStringItemInputType!] + staged: Boolean = true +} + +input SetProductTailoringSlug { + slug: [LocalizedStringItemInputType!] + staged: Boolean = true +} + input SetProductTaxCategory { taxCategory: ResourceIdentifierInput } @@ -13849,6 +14183,10 @@ input UnpublishProduct { dummy: String } +input UnpublishTailoring { + dummy: String +} + input UpdateCartItemShippingAddress { address: AddressInput! } diff --git a/references.txt b/references.txt index 6839173a62c..56429b60a6c 100644 --- a/references.txt +++ b/references.txt @@ -225,3 +225,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293 65619eef7e065950cbb92467d72eaacc68004a14 48bbac8851ae864319c404607e9f10b874df0e3f 15f9e1d4f4595a72184d80cfb317402e5676eac9 +9426f11f6f1755829c81c7db9fce597fdda6ade6