From dd0f186ffbf8fbd154097a86a0cbeaf9ed66a882 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:27:26 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 103 ++++++++++++ ...eyBusinessUnitsSearchIndexingStatusTest.cs | 35 ++++ .../ByProjectKeyBusinessUnitsSearchTest.cs | 45 +++++ .../ByProjectKeyChannelsKeyByKeyTest.cs | 109 +++++++++++++ .../Graphql/ByProjectKeyGraphqlTest.cs | 34 ++++ ...ByProjectKeyBusinessUnitsRequestBuilder.cs | 10 ++ .../ByProjectKeyBusinessUnitsSearchHead.cs | 59 +++++++ ...KeyBusinessUnitsSearchIndexingStatusGet.cs | 61 +++++++ ...UnitsSearchIndexingStatusRequestBuilder.cs | 30 ++++ .../ByProjectKeyBusinessUnitsSearchPost.cs | 81 +++++++++ ...ectKeyBusinessUnitsSearchRequestBuilder.cs | 35 ++++ .../ByProjectKeyChannelsKeyByKeyDelete.cs | 84 ++++++++++ .../ByProjectKeyChannelsKeyByKeyGet.cs | 73 +++++++++ .../ByProjectKeyChannelsKeyByKeyHead.cs | 62 +++++++ .../ByProjectKeyChannelsKeyByKeyPost.cs | 93 +++++++++++ ...rojectKeyChannelsKeyByKeyRequestBuilder.cs | 48 ++++++ .../ByProjectKeyChannelsRequestBuilder.cs | 5 + .../BusinessUnitIndexingProgress.cs | 14 ++ .../BusinessUnitPagedSearchResponse.cs | 19 +++ ...usinessUnitSearchIndexingStatusResponse.cs | 19 +++ .../BusinessUnitSearchRequest.cs | 20 +++ .../BusinessUnitSearchResult.cs | 12 ++ .../IBusinessUnitIndexingProgress.cs | 15 ++ .../IBusinessUnitPagedSearchResponse.cs | 21 +++ ...usinessUnitSearchIndexingStatusResponse.cs | 21 +++ .../IBusinessUnitSearchRequest.cs | 22 +++ .../IBusinessUnitSearchResult.cs | 13 ++ .../CartDiscountPatternTarget.cs | 27 +++ .../CartDiscounts/CartDiscountValueFixed.cs | 2 + .../CartDiscountValueFixedDraft.cs | 2 + .../CountOnCustomLineItemUnits.cs | 22 +++ .../CartDiscounts/CountOnLineItemUnits.cs | 22 +++ .../ICartDiscountPatternTarget.cs | 23 +++ .../CartDiscounts/ICartDiscountTarget.cs | 7 + .../CartDiscounts/ICartDiscountValueFixed.cs | 2 + .../ICartDiscountValueFixedDraft.cs | 2 + .../ICountOnCustomLineItemUnits.cs | 17 ++ .../CartDiscounts/ICountOnLineItemUnits.cs | 17 ++ .../Models/CartDiscounts/IPatternComponent.cs | 27 +++ .../Models/CartDiscounts/PatternComponent.cs | 8 + .../CartSetCustomShippingMethodAction.cs | 3 + .../ICartSetCustomShippingMethodAction.cs | 3 + .../Models/Messages/IMessage.cs | 14 ++ .../Models/Messages/IMessagePayload.cs | 14 ++ .../IShoppingListLineItemAddedMessage.cs | 12 ++ ...ShoppingListLineItemAddedMessagePayload.cs | 12 ++ .../IShoppingListLineItemRemovedMessage.cs | 12 ++ ...oppingListLineItemRemovedMessagePayload.cs | 12 ++ .../Models/Messages/IShoppingListMessage.cs | 10 ++ .../Messages/IShoppingListMessagePayload.cs | 10 ++ .../ShoppingListLineItemAddedMessage.cs | 38 +++++ ...ShoppingListLineItemAddedMessagePayload.cs | 17 ++ .../ShoppingListLineItemRemovedMessage.cs | 38 +++++ ...oppingListLineItemRemovedMessagePayload.cs | 17 ++ .../Models/Messages/ShoppingListMessage.cs | 31 ++++ .../Messages/ShoppingListMessagePayload.cs | 10 ++ ...tagedOrderSetCustomShippingMethodAction.cs | 3 + ...ingAddressAndCustomShippingMethodAction.cs | 3 + ...tagedOrderSetCustomShippingMethodAction.cs | 3 + ...ingAddressAndCustomShippingMethodAction.cs | 3 + .../Models/Orders/ShipmentState.cs | 11 +- .../Projects/BusinessUnitIndexingStatus.cs | 78 +++++++++ .../Projects/BusinessUnitSearchStatus.cs | 64 ++++++++ ...ectChangeBusinessUnitSearchStatusAction.cs | 11 ++ .../Models/Projects/IProjectUpdateAction.cs | 7 + .../Projects/ISearchIndexingConfiguration.cs | 2 + ...ectChangeBusinessUnitSearchStatusAction.cs | 16 ++ .../Projects/SearchIndexingConfiguration.cs | 2 + .../Models/Searches/ISearchExactExpression.cs | 2 +- .../Models/Searches/ISearchExactValue.cs | 22 +++ .../Models/Searches/SearchExactExpression.cs | 2 +- .../Models/Searches/SearchExactValue.cs | 26 +++ .../MessageSubscriptionResourceTypeId.cs | 7 + ...nessUnitIndexingProgressQueryBuilderDsl.cs | 36 ++++ ...sUnitPagedSearchResponseQueryBuilderDsl.cs | 51 ++++++ ...chIndexingStatusResponseQueryBuilderDsl.cs | 53 ++++++ ...usinessUnitSearchRequestQueryBuilderDsl.cs | 54 ++++++ ...BusinessUnitSearchResultQueryBuilderDsl.cs | 30 ++++ ...artDiscountPatternTargetQueryBuilderDsl.cs | 64 ++++++++ .../CartDiscountTargetQueryBuilderDsl.cs | 6 + ...tDiscountValueFixedDraftQueryBuilderDsl.cs | 6 + .../CartDiscountValueFixedQueryBuilderDsl.cs | 6 + ...untOnCustomLineItemUnitsQueryBuilderDsl.cs | 48 ++++++ .../CountOnLineItemUnitsQueryBuilderDsl.cs | 48 ++++++ .../PatternComponentQueryBuilderDsl.cs | 38 +++++ ...stomShippingMethodActionQueryBuilderDsl.cs | 9 + .../Messages/MessagePayloadQueryBuilderDsl.cs | 6 + .../Messages/MessageQueryBuilderDsl.cs | 6 + ...eItemAddedMessagePayloadQueryBuilderDsl.cs | 35 ++++ ...ListLineItemAddedMessageQueryBuilderDsl.cs | 107 ++++++++++++ ...temRemovedMessagePayloadQueryBuilderDsl.cs | 35 ++++ ...stLineItemRemovedMessageQueryBuilderDsl.cs | 107 ++++++++++++ ...oppingListMessagePayloadQueryBuilderDsl.cs | 38 +++++ .../ShoppingListMessageQueryBuilderDsl.cs | 110 +++++++++++++ ...stomShippingMethodActionQueryBuilderDsl.cs | 9 + ...stomShippingMethodActionQueryBuilderDsl.cs | 9 + ...ssUnitSearchStatusActionQueryBuilderDsl.cs | 30 ++++ .../ProjectUpdateActionQueryBuilderDsl.cs | 6 + ...rchIndexingConfigurationQueryBuilderDsl.cs | 9 + .../SearchExactExpressionQueryBuilderDsl.cs | 4 +- .../SearchExactValueQueryBuilderDsl.cs | 60 +++++++ ...archQueryExpressionValueQueryBuilderDsl.cs | 6 + .../schema.graphqls | 154 ++++++++++++++++-- .../Graphql/ByProjectKeyGraphqlPost.cs | 81 +++++++++ .../ByProjectKeyGraphqlRequestBuilder.cs | 30 ++++ .../Projects/ByProjectKeyRequestBuilder.cs | 6 + .../Models/CartDiscounts/IPatternComponent.cs | 11 ++ .../Models/CartDiscounts/PatternComponent.cs | 10 ++ .../ChangeTargetPatternChangeValue.cs | 29 ++++ .../ChangeValues/IChangeTargetChangeValue.cs | 7 + .../IChangeTargetPatternChangeValue.cs | 27 +++ .../Models/GraphQl/GraphQLError.cs | 22 +++ .../Models/GraphQl/GraphQLErrorLocation.cs | 12 ++ .../Models/GraphQl/GraphQLRequest.cs | 14 ++ .../Models/GraphQl/GraphQLResponse.cs | 16 ++ .../Models/GraphQl/GraphQLVariablesMap.cs | 11 ++ .../Models/GraphQl/IGraphQLError.cs | 24 +++ .../Models/GraphQl/IGraphQLErrorLocation.cs | 13 ++ .../Models/GraphQl/IGraphQLRequest.cs | 15 ++ .../Models/GraphQl/IGraphQLResponse.cs | 18 ++ .../Models/GraphQl/IGraphQLVariablesMap.cs | 11 ++ references.txt | 1 + 122 files changed, 3358 insertions(+), 16 deletions(-) create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlTest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchHead.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyDelete.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyGet.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyHead.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitIndexingProgress.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitPagedSearchResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchResult.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitIndexingProgress.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitPagedSearchResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchIndexingStatusResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchResult.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountPatternTarget.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnCustomLineItemUnits.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnLineItemUnits.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountPatternTarget.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnCustomLineItemUnits.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnLineItemUnits.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/IPatternComponent.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/PatternComponent.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitIndexingStatus.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitSearchStatus.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectChangeBusinessUnitSearchStatusAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ProjectChangeBusinessUnitSearchStatusAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactValue.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactValue.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitIndexingProgressQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitPagedSearchResponseQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchRequestQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchResultQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountPatternTargetQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnCustomLineItemUnitsQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnLineItemUnitsQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/PatternComponentQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessageQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactValueQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlPost.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlRequestBuilder.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/IPatternComponent.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/PatternComponent.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/ChangeTargetPatternChangeValue.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetPatternChangeValue.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLErrorLocation.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLVariablesMap.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLErrorLocation.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLRequest.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLResponse.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLVariablesMap.cs diff --git a/changes.md b/changes.md index 53dc55e046b..c774a989f62 100644 --- a/changes.md +++ b/changes.md @@ -1,3 +1,78 @@ +**Api changes** + +
+Changed Property(s) + +- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue` +
+ + +
+Added Property(s) + +- added property `applicationMode` to type `CartDiscountValueFixed` +- added property `applicationMode` to type `CartDiscountValueFixedDraft` +- added property `custom` to type `CartSetCustomShippingMethodAction` +- added property `custom` to type `StagedOrderSetCustomShippingMethodAction` +- added property `custom` to type `StagedOrderSetShippingAddressAndCustomShippingMethodAction` +- added property `businessUnits` to type `SearchIndexingConfiguration` +
+ + +
+Added Resource(s) + +- added resource `/{projectKey}/business-units/search` +- added resource `/{projectKey}/business-units/search/indexing-status` +- added resource `/{projectKey}/channels/key={key}` +
+ + +
+Added Method(s) + +- added method `apiRoot.withProjectKey().businessUnits().search().post()` +- added method `apiRoot.withProjectKey().businessUnits().search().head()` +- added method `apiRoot.withProjectKey().businessUnits().searchIndexingStatus().get()` +- added method `apiRoot.withProjectKey().channels().withKey().get()` +- added method `apiRoot.withProjectKey().channels().withKey().head()` +- added method `apiRoot.withProjectKey().channels().withKey().post()` +- added method `apiRoot.withProjectKey().channels().withKey().delete()` +
+ + +
+Added Type(s) + +- added type `BusinessUnitIndexingProgress` +- added type `BusinessUnitIndexingStatus` +- added type `BusinessUnitPagedSearchResponse` +- added type `BusinessUnitSearchIndexingStatusResponse` +- added type `BusinessUnitSearchRequest` +- added type `BusinessUnitSearchResult` +- added type `CartDiscountPatternTarget` +- added type `CountOnCustomLineItemUnits` +- added type `CountOnLineItemUnits` +- added type `PatternComponent` +- added type `ShoppingListLineItemAddedMessage` +- added type `ShoppingListLineItemRemovedMessage` +- added type `ShoppingListMessage` +- added type `ShoppingListLineItemAddedMessagePayload` +- added type `ShoppingListLineItemRemovedMessagePayload` +- added type `ShoppingListMessagePayload` +- added type `BusinessUnitSearchStatus` +- added type `ProjectChangeBusinessUnitSearchStatusAction` +- added type `SearchExactValue` +
+ + +
+Added Enum(s) + +- added enum `Canceled` to type `ShipmentState` +- added enum `shopping-list` to type `MessageSubscriptionResourceTypeId` +
+ **Import changes**
@@ -6,3 +81,31 @@ - :warning: removed type `ReferencedResourceNotFound`
+**History changes** + +
+Added Resource(s) + +- added resource `/{projectKey}/graphql` +
+ + +
+Added Method(s) + +- added method `apiRoot.withProjectKeyValue().graphql().post()` +
+ + +
+Added Type(s) + +- added type `GraphQLRequest` +- added type `GraphQLResponse` +- added type `GraphQLError` +- added type `GraphQLErrorLocation` +- added type `GraphQLVariablesMap` +- added type `ChangeTargetPatternChangeValue` +- added type `PatternComponent` +
+ diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.cs new file mode 100644 index 00000000000..90ee0e5232c --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.BusinessUnits +{ + public class ByProjectKeyBusinessUnitsSearchIndexingStatusTest : 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") + .BusinessUnits() + .SearchIndexingStatus() + .Get() + .Build(), + "Get", + "/test_projectKey/business-units/search/indexing-status", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchTest.cs new file mode 100644 index 00000000000..a2892e6f557 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchTest.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.BusinessUnits +{ + public class ByProjectKeyBusinessUnitsSearchTest : 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") + .BusinessUnits() + .Search() + .Post(null) + .Build(), + "Post", + "/test_projectKey/business-units/search", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .BusinessUnits() + .Search() + .Head() + .Build(), + "Head", + "/test_projectKey/business-units/search", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyTest.cs new file mode 100644 index 00000000000..79cb7a8fb6f --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyTest.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.Channels +{ + public class ByProjectKeyChannelsKeyByKeyTest : 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") + .Channels() + .WithKey("test_key") + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/channels/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Get() + .Build(), + "Get", + "/test_projectKey/channels/key=test_key", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Head() + .Build(), + "Head", + "/test_projectKey/channels/key=test_key", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Post(null) + .WithExpand("expand") + .Build(), + "Post", + "/test_projectKey/channels/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Post(null) + .Build(), + "Post", + "/test_projectKey/channels/key=test_key", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Delete() + .WithVersion(2) + .Build(), + "Delete", + "/test_projectKey/channels/key=test_key?version=2", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Delete() + .WithExpand("expand") + .Build(), + "Delete", + "/test_projectKey/channels/key=test_key?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .Channels() + .WithKey("test_key") + .Delete() + .Build(), + "Delete", + "/test_projectKey/channels/key=test_key", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlTest.cs new file mode 100644 index 00000000000..0ca98c7a108 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlTest.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Tests.Client.RequestBuilders.Graphql +{ + public class ByProjectKeyGraphqlTest : 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 + .WithProjectKeyValue("test_projectKey") + .Graphql() + .Post(null) + .Build(), + "Post", + "/test_projectKey/graphql", + } + }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsRequestBuilder.cs index 9d278282c4a..9d6cb362d98 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsRequestBuilder.cs @@ -46,5 +46,15 @@ public ByProjectKeyBusinessUnitsByIDRequestBuilder WithId(string ID) { return new ByProjectKeyBusinessUnitsByIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ID); } + + public ByProjectKeyBusinessUnitsSearchRequestBuilder Search() + { + return new ByProjectKeyBusinessUnitsSearchRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder SearchIndexingStatus() + { + return new ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchHead.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchHead.cs new file mode 100644 index 00000000000..94c6e2ae5b1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchHead.cs @@ -0,0 +1,59 @@ +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits +{ + + public partial class ByProjectKeyBusinessUnitsSearchHead : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Head; + + private string ProjectKey { get; } + + + public ByProjectKeyBusinessUnitsSearchHead(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/business-units/search"; + } + + + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + return await ExecuteAsJsonAsync(cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + return await SendAsJsonAsync(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/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.cs new file mode 100644 index 00000000000..acdc4c81eac --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusGet.cs @@ -0,0 +1,61 @@ +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits +{ + + public partial class ByProjectKeyBusinessUnitsSearchIndexingStatusGet : ApiMethod, IApiMethod, 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 ByProjectKeyBusinessUnitsSearchIndexingStatusGet(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/business-units/search/indexing-status"; + } + + + + + 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/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.cs new file mode 100644 index 00000000000..784856d08f0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder.cs @@ -0,0 +1,30 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits +{ + + public partial class ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchIndexingStatusGet Get() + { + return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(ApiHttpClient, ProjectKey); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchPost.cs new file mode 100644 index 00000000000..a0dccd84a05 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchPost.cs @@ -0,0 +1,81 @@ +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.BusinessUnits +{ + + public partial class ByProjectKeyBusinessUnitsSearchPost : ApiMethod, IApiMethod, 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.BusinessUnitSearches.IBusinessUnitSearchRequest BusinessUnitSearchRequest; + + public ByProjectKeyBusinessUnitsSearchPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.Api.Models.BusinessUnitSearches.IBusinessUnitSearchRequest businessUnitSearchRequest) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.BusinessUnitSearchRequest = businessUnitSearchRequest; + this.RequestUrl = $"/{ProjectKey}/business-units/search"; + } + + + + + 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(BusinessUnitSearchRequest); + 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/BusinessUnits/ByProjectKeyBusinessUnitsSearchRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchRequestBuilder.cs new file mode 100644 index 00000000000..a0a49b3b9d0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchRequestBuilder.cs @@ -0,0 +1,35 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits +{ + + public partial class ByProjectKeyBusinessUnitsSearchRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyBusinessUnitsSearchRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsSearchPost Post(commercetools.Sdk.Api.Models.BusinessUnitSearches.IBusinessUnitSearchRequest businessUnitSearchRequest) + { + return new ByProjectKeyBusinessUnitsSearchPost(ApiHttpClient, SerializerService, ProjectKey, businessUnitSearchRequest); + } + + public ByProjectKeyBusinessUnitsSearchHead Head() + { + return new ByProjectKeyBusinessUnitsSearchHead(ApiHttpClient, ProjectKey); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyDelete.cs new file mode 100644 index 00000000000..388b33637ce --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyDelete.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.Channels +{ + + public partial class ByProjectKeyChannelsKeyByKeyDelete : 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 ByProjectKeyChannelsKeyByKeyDelete(IClient apiHttpClient, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.Key = key; + this.RequestUrl = $"/{ProjectKey}/channels/key={Key}"; + } + + public List GetVersion() + { + return this.GetQueryParam("version"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyChannelsKeyByKeyDelete WithVersion(long version) + { + return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); + } + + public ByProjectKeyChannelsKeyByKeyDelete 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/Channels/ByProjectKeyChannelsKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyGet.cs new file mode 100644 index 00000000000..255640d6ec0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyGet.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.Channels +{ + + public partial class ByProjectKeyChannelsKeyByKeyGet : 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 ByProjectKeyChannelsKeyByKeyGet(IClient apiHttpClient, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.Key = key; + this.RequestUrl = $"/{ProjectKey}/channels/key={Key}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyChannelsKeyByKeyGet 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/Channels/ByProjectKeyChannelsKeyByKeyHead.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyHead.cs new file mode 100644 index 00000000000..c99fb7f85a7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyHead.cs @@ -0,0 +1,62 @@ +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.Channels +{ + + public partial class ByProjectKeyChannelsKeyByKeyHead : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Head; + + private string ProjectKey { get; } + + private string Key { get; } + + + public ByProjectKeyChannelsKeyByKeyHead(IClient apiHttpClient, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.Key = key; + this.RequestUrl = $"/{ProjectKey}/channels/key={Key}"; + } + + + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + + return await ExecuteAsJsonAsync(cancellationToken); + + } + + public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); + } + + public async Task> SendAsync(CancellationToken cancellationToken = default) + { + + return await SendAsJsonAsync(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/Channels/ByProjectKeyChannelsKeyByKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyPost.cs new file mode 100644 index 00000000000..3647258a3b1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyPost.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.Channels +{ + + public partial class ByProjectKeyChannelsKeyByKeyPost : 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.Channels.IChannelUpdate ChannelUpdate; + + public ByProjectKeyChannelsKeyByKeyPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key, commercetools.Sdk.Api.Models.Channels.IChannelUpdate channelUpdate) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.Key = key; + this.ChannelUpdate = channelUpdate; + this.RequestUrl = $"/{ProjectKey}/channels/key={Key}"; + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyChannelsKeyByKeyPost 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(ChannelUpdate); + 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/Channels/ByProjectKeyChannelsKeyByKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyRequestBuilder.cs new file mode 100644 index 00000000000..324c7dac208 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyRequestBuilder.cs @@ -0,0 +1,48 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Client.RequestBuilders.Channels +{ + + public partial class ByProjectKeyChannelsKeyByKeyRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + private string Key { get; } + + public ByProjectKeyChannelsKeyByKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.Key = key; + } + + public ByProjectKeyChannelsKeyByKeyGet Get() + { + return new ByProjectKeyChannelsKeyByKeyGet(ApiHttpClient, ProjectKey, Key); + } + + public ByProjectKeyChannelsKeyByKeyHead Head() + { + return new ByProjectKeyChannelsKeyByKeyHead(ApiHttpClient, ProjectKey, Key); + } + + public ByProjectKeyChannelsKeyByKeyPost Post(commercetools.Sdk.Api.Models.Channels.IChannelUpdate channelUpdate) + { + return new ByProjectKeyChannelsKeyByKeyPost(ApiHttpClient, SerializerService, ProjectKey, Key, channelUpdate); + } + + public ByProjectKeyChannelsKeyByKeyDelete Delete() + { + return new ByProjectKeyChannelsKeyByKeyDelete(ApiHttpClient, ProjectKey, Key); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsRequestBuilder.cs index 239a60bd1d9..66298558939 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsRequestBuilder.cs @@ -41,5 +41,10 @@ public ByProjectKeyChannelsByIDRequestBuilder WithId(string ID) { return new ByProjectKeyChannelsByIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ID); } + + public ByProjectKeyChannelsKeyByKeyRequestBuilder WithKey(string key) + { + return new ByProjectKeyChannelsKeyByKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, key); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitIndexingProgress.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitIndexingProgress.cs new file mode 100644 index 00000000000..6d125046179 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitIndexingProgress.cs @@ -0,0 +1,14 @@ + + +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + + public partial class BusinessUnitIndexingProgress : IBusinessUnitIndexingProgress + { + public int Indexed { get; set; } + + public int Failed { get; set; } + + public int EstimatedTotal { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitPagedSearchResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitPagedSearchResponse.cs new file mode 100644 index 00000000000..873e03ae7e2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitPagedSearchResponse.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + + public partial class BusinessUnitPagedSearchResponse : IBusinessUnitPagedSearchResponse + { + public long Total { get; set; } + + public int Limit { get; set; } + + public int Offset { get; set; } + + public IList Results { get; set; } + + public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponse.cs new file mode 100644 index 00000000000..2b33c3f7b26 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponse.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Projects; +using System; + +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchIndexingStatusResponse : IBusinessUnitSearchIndexingStatusResponse + { + public IBusinessUnitIndexingStatus Status { get; set; } + + public IBusinessUnitIndexingProgress States { get; set; } + + public DateTime? StartedAt { get; set; } + + public DateTime? LastModifiedAt { get; set; } + + public int? RetryCount { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchRequest.cs new file mode 100644 index 00000000000..63910a79700 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchRequest.cs @@ -0,0 +1,20 @@ +using commercetools.Sdk.Api.Models.Searches; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchRequest : IBusinessUnitSearchRequest + { + public ISearchQuery Query { get; set; } + + public IList Sort { get; set; } + + public IEnumerable SortEnumerable { set => Sort = value.ToList(); } + + public int? Limit { get; set; } + + public int? Offset { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchResult.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchResult.cs new file mode 100644 index 00000000000..87aaae72c72 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/BusinessUnitSearchResult.cs @@ -0,0 +1,12 @@ + + +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchResult : IBusinessUnitSearchResult + { + public string Id { get; set; } + + public decimal Relevance { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitIndexingProgress.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitIndexingProgress.cs new file mode 100644 index 00000000000..448e7508b91 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitIndexingProgress.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnitSearches.BusinessUnitIndexingProgress))] + public partial interface IBusinessUnitIndexingProgress + { + int Indexed { get; set; } + + int Failed { get; set; } + + int EstimatedTotal { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitPagedSearchResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitPagedSearchResponse.cs new file mode 100644 index 00000000000..b5502da3b6b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitPagedSearchResponse.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnitSearches.BusinessUnitPagedSearchResponse))] + public partial interface IBusinessUnitPagedSearchResponse + { + long Total { get; set; } + + int Limit { get; set; } + + int Offset { get; set; } + + IList Results { get; set; } + + IEnumerable ResultsEnumerable { set => Results = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchIndexingStatusResponse.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchIndexingStatusResponse.cs new file mode 100644 index 00000000000..b179edf9014 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchIndexingStatusResponse.cs @@ -0,0 +1,21 @@ +using commercetools.Sdk.Api.Models.Projects; +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnitSearches.BusinessUnitSearchIndexingStatusResponse))] + public partial interface IBusinessUnitSearchIndexingStatusResponse + { + IBusinessUnitIndexingStatus Status { get; set; } + + IBusinessUnitIndexingProgress States { get; set; } + + DateTime? StartedAt { get; set; } + + DateTime? LastModifiedAt { get; set; } + + int? RetryCount { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchRequest.cs new file mode 100644 index 00000000000..9c19e763d90 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchRequest.cs @@ -0,0 +1,22 @@ +using commercetools.Sdk.Api.Models.Searches; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnitSearches.BusinessUnitSearchRequest))] + public partial interface IBusinessUnitSearchRequest + { + ISearchQuery Query { get; set; } + + IList Sort { get; set; } + + IEnumerable SortEnumerable { set => Sort = value.ToList(); } + + int? Limit { get; set; } + + int? Offset { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchResult.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchResult.cs new file mode 100644 index 00000000000..68e9e857b04 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnitSearches/IBusinessUnitSearchResult.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnitSearches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnitSearches.BusinessUnitSearchResult))] + public partial interface IBusinessUnitSearchResult + { + string Id { get; set; } + + decimal Relevance { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountPatternTarget.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountPatternTarget.cs new file mode 100644 index 00000000000..1a8481821ac --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountPatternTarget.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + + public partial class CartDiscountPatternTarget : ICartDiscountPatternTarget + { + public string Type { get; set; } + + public IList TriggerPattern { get; set; } + + public IEnumerable TriggerPatternEnumerable { set => TriggerPattern = value.ToList(); } + + public IList TargetPattern { get; set; } + + public IEnumerable TargetPatternEnumerable { set => TargetPattern = value.ToList(); } + + public int? MaxOccurrence { get; set; } + + public ISelectionMode SelectionMode { get; set; } + public CartDiscountPatternTarget() + { + this.Type = "pattern"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixed.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixed.cs index c4174cfcb7c..d492b107780 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixed.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixed.cs @@ -12,6 +12,8 @@ public partial class CartDiscountValueFixed : ICartDiscountValueFixed public IList Money { get; set; } public IEnumerable MoneyEnumerable { set => Money = value.ToList(); } + + public IDiscountApplicationMode ApplicationMode { get; set; } public CartDiscountValueFixed() { this.Type = "fixed"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixedDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixedDraft.cs index 85332bdcace..9e5de25ce4f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixedDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountValueFixedDraft.cs @@ -12,6 +12,8 @@ public partial class CartDiscountValueFixedDraft : ICartDiscountValueFixedDraft public IList Money { get; set; } public IEnumerable MoneyEnumerable { set => Money = value.ToList(); } + + public IDiscountApplicationMode ApplicationMode { get; set; } public CartDiscountValueFixedDraft() { this.Type = "fixed"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnCustomLineItemUnits.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnCustomLineItemUnits.cs new file mode 100644 index 00000000000..a1d4af341f5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnCustomLineItemUnits.cs @@ -0,0 +1,22 @@ + + +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + + public partial class CountOnCustomLineItemUnits : ICountOnCustomLineItemUnits + { + public string Type { get; set; } + + public string Predicate { get; set; } + + public int? MinCount { get; set; } + + public int? MaxCount { get; set; } + + public int? ExcludeCount { get; set; } + public CountOnCustomLineItemUnits() + { + this.Type = "CountOnCustomLineItemUnits"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnLineItemUnits.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnLineItemUnits.cs new file mode 100644 index 00000000000..8ad5676f249 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CountOnLineItemUnits.cs @@ -0,0 +1,22 @@ + + +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + + public partial class CountOnLineItemUnits : ICountOnLineItemUnits + { + public string Type { get; set; } + + public string Predicate { get; set; } + + public int? MinCount { get; set; } + + public int? MaxCount { get; set; } + + public int? ExcludeCount { get; set; } + public CountOnLineItemUnits() + { + this.Type = "CountOnLineItemUnits"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountPatternTarget.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountPatternTarget.cs new file mode 100644 index 00000000000..b3fd6399a75 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountPatternTarget.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountPatternTarget))] + public partial interface ICartDiscountPatternTarget : ICartDiscountTarget + { + IList TriggerPattern { get; set; } + + IEnumerable TriggerPatternEnumerable { set => TriggerPattern = value.ToList(); } + + IList TargetPattern { get; set; } + + IEnumerable TargetPatternEnumerable { set => TargetPattern = value.ToList(); } + + int? MaxOccurrence { get; set; } + + ISelectionMode SelectionMode { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountTarget.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountTarget.cs index e98a48bc69f..91be606185b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountTarget.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountTarget.cs @@ -9,6 +9,7 @@ namespace commercetools.Sdk.Api.Models.CartDiscounts [SubTypeDiscriminator("lineItems", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountLineItemsTarget))] [SubTypeDiscriminator("multiBuyCustomLineItems", typeof(commercetools.Sdk.Api.Models.CartDiscounts.MultiBuyCustomLineItemsTarget))] [SubTypeDiscriminator("multiBuyLineItems", typeof(commercetools.Sdk.Api.Models.CartDiscounts.MultiBuyLineItemsTarget))] + [SubTypeDiscriminator("pattern", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountPatternTarget))] [SubTypeDiscriminator("shipping", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountShippingCostTarget))] [SubTypeDiscriminator("totalPrice", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountTotalPriceTarget))] public partial interface ICartDiscountTarget @@ -39,6 +40,12 @@ static commercetools.Sdk.Api.Models.CartDiscounts.MultiBuyLineItemsTarget MultiB init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountPatternTarget Pattern(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountPatternTarget(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountShippingCostTarget Shipping(Action init = null) { var t = new commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountShippingCostTarget(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixed.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixed.cs index 7fc9a87593f..2e9e901d8ff 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixed.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixed.cs @@ -12,5 +12,7 @@ public partial interface ICartDiscountValueFixed : ICartDiscountValue IEnumerable MoneyEnumerable { set => Money = value.ToList(); } + IDiscountApplicationMode ApplicationMode { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixedDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixedDraft.cs index 8f0edae28e6..ecae0c2af1f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixedDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountValueFixedDraft.cs @@ -12,5 +12,7 @@ public partial interface ICartDiscountValueFixedDraft : ICartDiscountValueDraft IEnumerable MoneyEnumerable { set => Money = value.ToList(); } + IDiscountApplicationMode ApplicationMode { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnCustomLineItemUnits.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnCustomLineItemUnits.cs new file mode 100644 index 00000000000..8d6827581b2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnCustomLineItemUnits.cs @@ -0,0 +1,17 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.CartDiscounts.CountOnCustomLineItemUnits))] + public partial interface ICountOnCustomLineItemUnits : IPatternComponent + { + string Predicate { get; set; } + + int? MinCount { get; set; } + + int? MaxCount { get; set; } + + int? ExcludeCount { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnLineItemUnits.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnLineItemUnits.cs new file mode 100644 index 00000000000..f10f8e8959c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICountOnLineItemUnits.cs @@ -0,0 +1,17 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.CartDiscounts.CountOnLineItemUnits))] + public partial interface ICountOnLineItemUnits : IPatternComponent + { + string Predicate { get; set; } + + int? MinCount { get; set; } + + int? MaxCount { get; set; } + + int? ExcludeCount { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/IPatternComponent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/IPatternComponent.cs new file mode 100644 index 00000000000..dec9d8808e6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/IPatternComponent.cs @@ -0,0 +1,27 @@ +using commercetools.Base.CustomAttributes; +using System; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + [TypeDiscriminator(nameof(Type))] + [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.CartDiscounts.PatternComponent))] + [SubTypeDiscriminator("CountOnCustomLineItemUnits", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CountOnCustomLineItemUnits))] + [SubTypeDiscriminator("CountOnLineItemUnits", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CountOnLineItemUnits))] + public partial interface IPatternComponent + { + string Type { get; set; } + + static commercetools.Sdk.Api.Models.CartDiscounts.CountOnCustomLineItemUnits CountOnCustomLineItemUnits(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.CartDiscounts.CountOnCustomLineItemUnits(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.CartDiscounts.CountOnLineItemUnits CountOnLineItemUnits(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.CartDiscounts.CountOnLineItemUnits(); + init?.Invoke(t); + return t; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/PatternComponent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/PatternComponent.cs new file mode 100644 index 00000000000..1c8b652cf5d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/PatternComponent.cs @@ -0,0 +1,8 @@ +namespace commercetools.Sdk.Api.Models.CartDiscounts +{ + + public partial class PatternComponent : IPatternComponent + { + public string Type { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/CartSetCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/CartSetCustomShippingMethodAction.cs index f12e9292861..31a019871b5 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/CartSetCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/CartSetCustomShippingMethodAction.cs @@ -1,5 +1,6 @@ using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; namespace commercetools.Sdk.Api.Models.Carts @@ -16,6 +17,8 @@ public partial class CartSetCustomShippingMethodAction : ICartSetCustomShippingM public ITaxCategoryResourceIdentifier TaxCategory { get; set; } public IExternalTaxRateDraft ExternalTaxRate { get; set; } + + public ICustomFieldsDraft Custom { get; set; } public CartSetCustomShippingMethodAction() { this.Action = "setCustomShippingMethod"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/ICartSetCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/ICartSetCustomShippingMethodAction.cs index 37ed5172e7e..5f090d3c7ca 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/ICartSetCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/ICartSetCustomShippingMethodAction.cs @@ -1,5 +1,6 @@ using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; using commercetools.Base.CustomAttributes; // ReSharper disable CheckNamespace namespace commercetools.Sdk.Api.Models.Carts @@ -15,5 +16,7 @@ public partial interface ICartSetCustomShippingMethodAction : ICartUpdateAction IExternalTaxRateDraft ExternalTaxRate { get; set; } + ICustomFieldsDraft Custom { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs index a1891f40fde..edfc1495136 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs @@ -220,6 +220,8 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ReviewCreated", typeof(commercetools.Sdk.Api.Models.Messages.ReviewCreatedMessage))] [SubTypeDiscriminator("ReviewRatingSet", typeof(commercetools.Sdk.Api.Models.Messages.ReviewRatingSetMessage))] [SubTypeDiscriminator("ReviewStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.ReviewStateTransitionMessage))] + [SubTypeDiscriminator("ShoppingListLineItemAdded", typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessage))] + [SubTypeDiscriminator("ShoppingListLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessage))] [SubTypeDiscriminator("StagedQuoteCreated", typeof(commercetools.Sdk.Api.Models.Messages.StagedQuoteCreatedMessage))] [SubTypeDiscriminator("StagedQuoteDeleted", typeof(commercetools.Sdk.Api.Models.Messages.StagedQuoteDeletedMessage))] [SubTypeDiscriminator("StagedQuoteSellerCommentSet", typeof(commercetools.Sdk.Api.Models.Messages.StagedQuoteSellerCommentSetMessage))] @@ -1557,6 +1559,18 @@ static commercetools.Sdk.Api.Models.Messages.ReviewStateTransitionMessage Review init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessage ShoppingListLineItemAdded(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessage ShoppingListLineItemRemoved(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.StagedQuoteCreatedMessage StagedQuoteCreated(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.StagedQuoteCreatedMessage(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs index 803f7bca6cf..4063400b199 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs @@ -219,6 +219,8 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ReviewCreated", typeof(commercetools.Sdk.Api.Models.Messages.ReviewCreatedMessagePayload))] [SubTypeDiscriminator("ReviewRatingSet", typeof(commercetools.Sdk.Api.Models.Messages.ReviewRatingSetMessagePayload))] [SubTypeDiscriminator("ReviewStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.ReviewStateTransitionMessagePayload))] + [SubTypeDiscriminator("ShoppingListLineItemAdded", typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessagePayload))] + [SubTypeDiscriminator("ShoppingListLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessagePayload))] [SubTypeDiscriminator("ShoppingListStoreSet", typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListStoreSetMessagePayload))] [SubTypeDiscriminator("StagedQuoteCreated", typeof(commercetools.Sdk.Api.Models.Messages.StagedQuoteCreatedMessagePayload))] [SubTypeDiscriminator("StagedQuoteDeleted", typeof(commercetools.Sdk.Api.Models.Messages.StagedQuoteDeletedMessagePayload))] @@ -1537,6 +1539,18 @@ static commercetools.Sdk.Api.Models.Messages.ReviewStateTransitionMessagePayload init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessagePayload ShoppingListLineItemAdded(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessagePayload ShoppingListLineItemRemoved(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.ShoppingListStoreSetMessagePayload ShoppingListStoreSet(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.ShoppingListStoreSetMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessage.cs new file mode 100644 index 00000000000..13a6aa0b670 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessage.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessage))] + public partial interface IShoppingListLineItemAddedMessage : IShoppingListMessage + { + IShoppingListLineItem LineItem { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessagePayload.cs new file mode 100644 index 00000000000..c9f7310e516 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemAddedMessagePayload.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemAddedMessagePayload))] + public partial interface IShoppingListLineItemAddedMessagePayload : IShoppingListMessagePayload + { + IShoppingListLineItem LineItem { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessage.cs new file mode 100644 index 00000000000..36d9a708b06 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessage.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessage))] + public partial interface IShoppingListLineItemRemovedMessage : IShoppingListMessage + { + IShoppingListLineItem LineItem { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessagePayload.cs new file mode 100644 index 00000000000..606af716a6c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListLineItemRemovedMessagePayload.cs @@ -0,0 +1,12 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListLineItemRemovedMessagePayload))] + public partial interface IShoppingListLineItemRemovedMessagePayload : IShoppingListMessagePayload + { + IShoppingListLineItem LineItem { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessage.cs new file mode 100644 index 00000000000..fa25efe5166 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessage.cs @@ -0,0 +1,10 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListMessage))] + public partial interface IShoppingListMessage : IMessage + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessagePayload.cs new file mode 100644 index 00000000000..0b5688e1d13 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IShoppingListMessagePayload.cs @@ -0,0 +1,10 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ShoppingListMessagePayload))] + public partial interface IShoppingListMessagePayload : IMessagePayload + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessage.cs new file mode 100644 index 00000000000..0f312c750ef --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessage.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.ShoppingLists; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListLineItemAddedMessage : IShoppingListLineItemAddedMessage + { + 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 IShoppingListLineItem LineItem { get; set; } + public ShoppingListLineItemAddedMessage() + { + this.Type = "ShoppingListLineItemAdded"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessagePayload.cs new file mode 100644 index 00000000000..bffad8a9957 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemAddedMessagePayload.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListLineItemAddedMessagePayload : IShoppingListLineItemAddedMessagePayload + { + public string Type { get; set; } + + public IShoppingListLineItem LineItem { get; set; } + public ShoppingListLineItemAddedMessagePayload() + { + this.Type = "ShoppingListLineItemAdded"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessage.cs new file mode 100644 index 00000000000..11d7b8ab30d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessage.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.ShoppingLists; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListLineItemRemovedMessage : IShoppingListLineItemRemovedMessage + { + 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 IShoppingListLineItem LineItem { get; set; } + public ShoppingListLineItemRemovedMessage() + { + this.Type = "ShoppingListLineItemRemoved"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessagePayload.cs new file mode 100644 index 00000000000..2d4c29d94c9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListLineItemRemovedMessagePayload.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.ShoppingLists; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListLineItemRemovedMessagePayload : IShoppingListLineItemRemovedMessagePayload + { + public string Type { get; set; } + + public IShoppingListLineItem LineItem { get; set; } + public ShoppingListLineItemRemovedMessagePayload() + { + this.Type = "ShoppingListLineItemRemoved"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessage.cs new file mode 100644 index 00000000000..4f6ec04e27e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessage.cs @@ -0,0 +1,31 @@ +using commercetools.Sdk.Api.Models.Common; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListMessage : IShoppingListMessage + { + 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; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessagePayload.cs new file mode 100644 index 00000000000..29ac1f208f9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/ShoppingListMessagePayload.cs @@ -0,0 +1,10 @@ + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ShoppingListMessagePayload : IShoppingListMessagePayload + { + public string Type { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetCustomShippingMethodAction.cs index 8ea6e0081d1..e863c5eb2a0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetCustomShippingMethodAction.cs @@ -2,6 +2,7 @@ using commercetools.Sdk.Api.Models.Orders; using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; using commercetools.Base.CustomAttributes; // ReSharper disable CheckNamespace namespace commercetools.Sdk.Api.Models.OrderEdits @@ -17,5 +18,7 @@ public partial interface IStagedOrderSetCustomShippingMethodAction : IStagedOrde IExternalTaxRateDraft ExternalTaxRate { get; set; } + ICustomFieldsDraft Custom { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetShippingAddressAndCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetShippingAddressAndCustomShippingMethodAction.cs index 19e5e6debd0..438c44d2c80 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetShippingAddressAndCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/IStagedOrderSetShippingAddressAndCustomShippingMethodAction.cs @@ -3,6 +3,7 @@ using commercetools.Sdk.Api.Models.Orders; using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; using commercetools.Base.CustomAttributes; // ReSharper disable CheckNamespace namespace commercetools.Sdk.Api.Models.OrderEdits @@ -20,5 +21,7 @@ public partial interface IStagedOrderSetShippingAddressAndCustomShippingMethodAc IExternalTaxRateDraft ExternalTaxRate { get; set; } + ICustomFieldsDraft Custom { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetCustomShippingMethodAction.cs index c38b2996aad..23309a76bea 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetCustomShippingMethodAction.cs @@ -1,6 +1,7 @@ using commercetools.Sdk.Api.Models.Carts; using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; namespace commercetools.Sdk.Api.Models.OrderEdits @@ -17,6 +18,8 @@ public partial class StagedOrderSetCustomShippingMethodAction : IStagedOrderSetC public ITaxCategoryResourceIdentifier TaxCategory { get; set; } public IExternalTaxRateDraft ExternalTaxRate { get; set; } + + public ICustomFieldsDraft Custom { get; set; } public StagedOrderSetCustomShippingMethodAction() { this.Action = "setCustomShippingMethod"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodAction.cs index 6fe58bd8e35..4c9a38bcc15 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodAction.cs @@ -2,6 +2,7 @@ using commercetools.Sdk.Api.Models.Common; using commercetools.Sdk.Api.Models.ShippingMethods; using commercetools.Sdk.Api.Models.TaxCategories; +using commercetools.Sdk.Api.Models.Types; namespace commercetools.Sdk.Api.Models.OrderEdits @@ -20,6 +21,8 @@ public partial class StagedOrderSetShippingAddressAndCustomShippingMethodAction public ITaxCategoryResourceIdentifier TaxCategory { get; set; } public IExternalTaxRateDraft ExternalTaxRate { get; set; } + + public ICustomFieldsDraft Custom { get; set; } public StagedOrderSetShippingAddressAndCustomShippingMethodAction() { this.Action = "setShippingAddressAndCustomShippingMethod"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/ShipmentState.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/ShipmentState.cs index 4fb3a38f37c..7c5ffc76bcd 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/ShipmentState.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/ShipmentState.cs @@ -29,7 +29,10 @@ public enum ShipmentState Partial, [Description("Backorder")] - Backorder + Backorder, + + [Description("Canceled")] + Canceled } public class ShipmentStateWrapper : IShipmentState @@ -76,6 +79,9 @@ public interface IShipmentState : IJsonName, IEnumerable public static IShipmentState Backorder = new ShipmentStateWrapper { Value = ShipmentState.Backorder, JsonName = "Backorder" }; + public static IShipmentState Canceled = new ShipmentStateWrapper + { Value = ShipmentState.Canceled, JsonName = "Canceled" }; + ShipmentState? Value { get; } static IShipmentState[] Values() @@ -88,7 +94,8 @@ static IShipmentState[] Values() Pending , Delayed , Partial , - Backorder + Backorder , + Canceled }; } static IShipmentState FindEnum(string value) diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitIndexingStatus.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitIndexingStatus.cs new file mode 100644 index 00000000000..3f6e2b2eba3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitIndexingStatus.cs @@ -0,0 +1,78 @@ +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using commercetools.Base.CustomAttributes; +using commercetools.Base.Models; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Projects +{ + public enum BusinessUnitIndexingStatus + { + [Description("Scheduled")] + Scheduled, + + [Description("Indexing")] + Indexing, + + [Description("Ready")] + Ready, + + [Description("Failed")] + Failed + } + + public class BusinessUnitIndexingStatusWrapper : IBusinessUnitIndexingStatus + { + public string JsonName { get; internal set; } + public BusinessUnitIndexingStatus? Value { get; internal set; } + public override string ToString() + { + return JsonName; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public new IEnumerator GetEnumerator() + { + return JsonName.GetEnumerator(); + } + } + + [EnumInterfaceCreator(typeof(IBusinessUnitIndexingStatus), "FindEnum")] + public interface IBusinessUnitIndexingStatus : IJsonName, IEnumerable + { + public static IBusinessUnitIndexingStatus Scheduled = new BusinessUnitIndexingStatusWrapper + { Value = BusinessUnitIndexingStatus.Scheduled, JsonName = "Scheduled" }; + + public static IBusinessUnitIndexingStatus Indexing = new BusinessUnitIndexingStatusWrapper + { Value = BusinessUnitIndexingStatus.Indexing, JsonName = "Indexing" }; + + public static IBusinessUnitIndexingStatus Ready = new BusinessUnitIndexingStatusWrapper + { Value = BusinessUnitIndexingStatus.Ready, JsonName = "Ready" }; + + public static IBusinessUnitIndexingStatus Failed = new BusinessUnitIndexingStatusWrapper + { Value = BusinessUnitIndexingStatus.Failed, JsonName = "Failed" }; + + BusinessUnitIndexingStatus? Value { get; } + + static IBusinessUnitIndexingStatus[] Values() + { + return new[] + { + Scheduled , + Indexing , + Ready , + Failed + }; + } + static IBusinessUnitIndexingStatus FindEnum(string value) + { + return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new BusinessUnitIndexingStatusWrapper() { JsonName = value }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitSearchStatus.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitSearchStatus.cs new file mode 100644 index 00000000000..78cd6624bc5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/BusinessUnitSearchStatus.cs @@ -0,0 +1,64 @@ +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using commercetools.Base.CustomAttributes; +using commercetools.Base.Models; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Projects +{ + public enum BusinessUnitSearchStatus + { + [Description("Activated")] + Activated, + + [Description("Deactivated")] + Deactivated + } + + public class BusinessUnitSearchStatusWrapper : IBusinessUnitSearchStatus + { + public string JsonName { get; internal set; } + public BusinessUnitSearchStatus? Value { get; internal set; } + public override string ToString() + { + return JsonName; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public new IEnumerator GetEnumerator() + { + return JsonName.GetEnumerator(); + } + } + + [EnumInterfaceCreator(typeof(IBusinessUnitSearchStatus), "FindEnum")] + public interface IBusinessUnitSearchStatus : IJsonName, IEnumerable + { + public static IBusinessUnitSearchStatus Activated = new BusinessUnitSearchStatusWrapper + { Value = BusinessUnitSearchStatus.Activated, JsonName = "Activated" }; + + public static IBusinessUnitSearchStatus Deactivated = new BusinessUnitSearchStatusWrapper + { Value = BusinessUnitSearchStatus.Deactivated, JsonName = "Deactivated" }; + + BusinessUnitSearchStatus? Value { get; } + + static IBusinessUnitSearchStatus[] Values() + { + return new[] + { + Activated , + Deactivated + }; + } + static IBusinessUnitSearchStatus FindEnum(string value) + { + return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new BusinessUnitSearchStatusWrapper() { JsonName = value }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectChangeBusinessUnitSearchStatusAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectChangeBusinessUnitSearchStatusAction.cs new file mode 100644 index 00000000000..e25f5840834 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectChangeBusinessUnitSearchStatusAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Projects +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Projects.ProjectChangeBusinessUnitSearchStatusAction))] + public partial interface IProjectChangeBusinessUnitSearchStatusAction : IProjectUpdateAction + { + IBusinessUnitSearchStatus Status { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectUpdateAction.cs index 1be6c5e4753..f11da5503dc 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/IProjectUpdateAction.cs @@ -5,6 +5,7 @@ namespace commercetools.Sdk.Api.Models.Projects { [TypeDiscriminator(nameof(Action))] [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Projects.ProjectUpdateAction))] + [SubTypeDiscriminator("changeBusinessUnitSearchStatus", typeof(commercetools.Sdk.Api.Models.Projects.ProjectChangeBusinessUnitSearchStatusAction))] [SubTypeDiscriminator("changeCartsConfiguration", typeof(commercetools.Sdk.Api.Models.Projects.ProjectChangeCartsConfigurationAction))] [SubTypeDiscriminator("changeCountries", typeof(commercetools.Sdk.Api.Models.Projects.ProjectChangeCountriesAction))] [SubTypeDiscriminator("changeCountryTaxRateFallbackEnabled", typeof(commercetools.Sdk.Api.Models.Projects.ProjectChangeCountryTaxRateFallbackEnabledAction))] @@ -24,6 +25,12 @@ public partial interface IProjectUpdateAction { string Action { get; set; } + static commercetools.Sdk.Api.Models.Projects.ProjectChangeBusinessUnitSearchStatusAction ChangeBusinessUnitSearchStatus(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Projects.ProjectChangeBusinessUnitSearchStatusAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Projects.ProjectChangeCartsConfigurationAction ChangeCartsConfiguration(Action init = null) { var t = new commercetools.Sdk.Api.Models.Projects.ProjectChangeCartsConfigurationAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ISearchIndexingConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ISearchIndexingConfiguration.cs index 228d7a061af..769f6f95840 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ISearchIndexingConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ISearchIndexingConfiguration.cs @@ -13,5 +13,7 @@ public partial interface ISearchIndexingConfiguration ISearchIndexingConfigurationValues Customers { get; set; } + ISearchIndexingConfigurationValues BusinessUnits { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ProjectChangeBusinessUnitSearchStatusAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ProjectChangeBusinessUnitSearchStatusAction.cs new file mode 100644 index 00000000000..f72396d226f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/ProjectChangeBusinessUnitSearchStatusAction.cs @@ -0,0 +1,16 @@ + + +namespace commercetools.Sdk.Api.Models.Projects +{ + + public partial class ProjectChangeBusinessUnitSearchStatusAction : IProjectChangeBusinessUnitSearchStatusAction + { + public string Action { get; set; } + + public IBusinessUnitSearchStatus Status { get; set; } + public ProjectChangeBusinessUnitSearchStatusAction() + { + this.Action = "changeBusinessUnitSearchStatus"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/SearchIndexingConfiguration.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/SearchIndexingConfiguration.cs index 9f894e07917..ff603bd71d9 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/SearchIndexingConfiguration.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Projects/SearchIndexingConfiguration.cs @@ -12,5 +12,7 @@ public partial class SearchIndexingConfiguration : ISearchIndexingConfiguration public ISearchIndexingConfigurationValues Orders { get; set; } public ISearchIndexingConfigurationValues Customers { get; set; } + + public ISearchIndexingConfigurationValues BusinessUnits { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactExpression.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactExpression.cs index a7452333091..69eecd1ce80 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactExpression.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactExpression.cs @@ -5,7 +5,7 @@ namespace commercetools.Sdk.Api.Models.Searches [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Searches.SearchExactExpression))] public partial interface ISearchExactExpression : ISearchQueryExpression { - ISearchAnyValue Exact { get; set; } + ISearchExactValue Exact { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactValue.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactValue.cs new file mode 100644 index 00000000000..42bed6dadac --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/ISearchExactValue.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Searches +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Searches.SearchExactValue))] + public partial interface ISearchExactValue : ISearchQueryExpressionValue + { + Object Value { get; set; } + + IList Values { get; set; } + + IEnumerable ValuesEnumerable { set => Values = value.ToList(); } + + string Language { get; set; } + + bool? CaseInsensitive { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactExpression.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactExpression.cs index 5840784571f..e491b19264b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactExpression.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactExpression.cs @@ -5,6 +5,6 @@ namespace commercetools.Sdk.Api.Models.Searches public partial class SearchExactExpression : ISearchExactExpression { - public ISearchAnyValue Exact { get; set; } + public ISearchExactValue Exact { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactValue.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactValue.cs new file mode 100644 index 00000000000..109e871bbae --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Searches/SearchExactValue.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Searches +{ + + public partial class SearchExactValue : ISearchExactValue + { + public string Field { get; set; } + + public decimal? Boost { get; set; } + + public ISearchFieldType FieldType { get; set; } + + public Object Value { get; set; } + + public IList Values { get; set; } + + public IEnumerable ValuesEnumerable { set => Values = value.ToList(); } + + public string Language { get; set; } + + public bool? CaseInsensitive { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs index 46674b0ea7d..4346b077d6b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageSubscriptionResourceTypeId.cs @@ -64,6 +64,9 @@ public enum MessageSubscriptionResourceTypeId [Description("review")] Review, + [Description("shopping-list")] + ShoppingList, + [Description("staged-quote")] StagedQuote, @@ -151,6 +154,9 @@ public interface IMessageSubscriptionResourceTypeId : IJsonName, IEnumerable Indexed() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("indexed")), + p => new CombinationQueryPredicate(p, BusinessUnitIndexingProgressQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Failed() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("failed")), + p => new CombinationQueryPredicate(p, BusinessUnitIndexingProgressQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder EstimatedTotal() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("estimatedTotal")), + p => new CombinationQueryPredicate(p, BusinessUnitIndexingProgressQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitPagedSearchResponseQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitPagedSearchResponseQueryBuilderDsl.cs new file mode 100644 index 00000000000..43d5a324286 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitPagedSearchResponseQueryBuilderDsl.cs @@ -0,0 +1,51 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.BusinessUnitSearches +{ + + public partial class BusinessUnitPagedSearchResponseQueryBuilderDsl + { + public BusinessUnitPagedSearchResponseQueryBuilderDsl() + { + } + + public static BusinessUnitPagedSearchResponseQueryBuilderDsl Of() + { + return new BusinessUnitPagedSearchResponseQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Total() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("total")), + p => new CombinationQueryPredicate(p, BusinessUnitPagedSearchResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Limit() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("limit")), + p => new CombinationQueryPredicate(p, BusinessUnitPagedSearchResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Offset() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("offset")), + p => new CombinationQueryPredicate(p, BusinessUnitPagedSearchResponseQueryBuilderDsl.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.BusinessUnitSearches.BusinessUnitSearchResultQueryBuilderDsl.Of())), + BusinessUnitPagedSearchResponseQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Results() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("results")), + p => new CombinationQueryPredicate(p, BusinessUnitPagedSearchResponseQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.cs new file mode 100644 index 00000000000..d8b1bfa8d19 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.cs @@ -0,0 +1,53 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl + { + public BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl() + { + } + + public static BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl Of() + { + return new BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Status() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("status")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate States( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("states")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnitSearches.BusinessUnitIndexingProgressQueryBuilderDsl.Of())), + BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder StartedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("startedAt")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder RetryCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("retryCount")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchIndexingStatusResponseQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchRequestQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchRequestQueryBuilderDsl.cs new file mode 100644 index 00000000000..8f6d1a268ed --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchRequestQueryBuilderDsl.cs @@ -0,0 +1,54 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchRequestQueryBuilderDsl + { + public BusinessUnitSearchRequestQueryBuilderDsl() + { + } + + public static BusinessUnitSearchRequestQueryBuilderDsl Of() + { + return new BusinessUnitSearchRequestQueryBuilderDsl(); + } + + public CombinationQueryPredicate Query( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("query")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchQueryQueryBuilderDsl.Of())), + BusinessUnitSearchRequestQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Sort( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("sort")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchSortingQueryBuilderDsl.Of())), + BusinessUnitSearchRequestQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Sort() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sort")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchRequestQueryBuilderDsl.Of)); + } + public IComparisonPredicateBuilder Limit() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("limit")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchRequestQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Offset() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("offset")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchRequestQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchResultQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchResultQueryBuilderDsl.cs new file mode 100644 index 00000000000..8b219174a86 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnitSearches/BusinessUnitSearchResultQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.BusinessUnitSearches +{ + + public partial class BusinessUnitSearchResultQueryBuilderDsl + { + public BusinessUnitSearchResultQueryBuilderDsl() + { + } + + public static BusinessUnitSearchResultQueryBuilderDsl Of() + { + return new BusinessUnitSearchResultQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchResultQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Relevance() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("relevance")), + p => new CombinationQueryPredicate(p, BusinessUnitSearchResultQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountPatternTargetQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountPatternTargetQueryBuilderDsl.cs new file mode 100644 index 00000000000..55fd18ea045 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountPatternTargetQueryBuilderDsl.cs @@ -0,0 +1,64 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.CartDiscounts +{ + + public partial class CartDiscountPatternTargetQueryBuilderDsl + { + public CartDiscountPatternTargetQueryBuilderDsl() + { + } + + public static CartDiscountPatternTargetQueryBuilderDsl Of() + { + return new CartDiscountPatternTargetQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CartDiscountPatternTargetQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate TriggerPattern( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("triggerPattern")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.PatternComponentQueryBuilderDsl.Of())), + CartDiscountPatternTargetQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder TriggerPattern() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("triggerPattern")), + p => new CombinationQueryPredicate(p, CartDiscountPatternTargetQueryBuilderDsl.Of)); + } + public CombinationQueryPredicate TargetPattern( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("targetPattern")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.PatternComponentQueryBuilderDsl.Of())), + CartDiscountPatternTargetQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder TargetPattern() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("targetPattern")), + p => new CombinationQueryPredicate(p, CartDiscountPatternTargetQueryBuilderDsl.Of)); + } + public IComparisonPredicateBuilder MaxOccurrence() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("maxOccurrence")), + p => new CombinationQueryPredicate(p, CartDiscountPatternTargetQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder SelectionMode() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("selectionMode")), + p => new CombinationQueryPredicate(p, CartDiscountPatternTargetQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountTargetQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountTargetQueryBuilderDsl.cs index 656269c0dc8..737406ffcf7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountTargetQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountTargetQueryBuilderDsl.cs @@ -34,6 +34,12 @@ public CombinationQueryPredicate AsLineItems( return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CartDiscountLineItemsTargetQueryBuilderDsl.Of()), CartDiscountTargetQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsPattern( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CartDiscountPatternTargetQueryBuilderDsl.Of()), + CartDiscountTargetQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsShipping( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedDraftQueryBuilderDsl.cs index c19fc748132..3786b7ce666 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedDraftQueryBuilderDsl.cs @@ -34,6 +34,12 @@ public ICollectionPredicateBuilder M return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("money")), p => new CombinationQueryPredicate(p, CartDiscountValueFixedDraftQueryBuilderDsl.Of)); } + public IComparisonPredicateBuilder ApplicationMode() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("applicationMode")), + p => new CombinationQueryPredicate(p, CartDiscountValueFixedDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedQueryBuilderDsl.cs index 724e883d411..420f01162d0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CartDiscountValueFixedQueryBuilderDsl.cs @@ -34,6 +34,12 @@ public ICollectionPredicateBuilder Money( return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("money")), p => new CombinationQueryPredicate(p, CartDiscountValueFixedQueryBuilderDsl.Of)); } + public IComparisonPredicateBuilder ApplicationMode() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("applicationMode")), + p => new CombinationQueryPredicate(p, CartDiscountValueFixedQueryBuilderDsl.Of), + PredicateFormatter.Format); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnCustomLineItemUnitsQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnCustomLineItemUnitsQueryBuilderDsl.cs new file mode 100644 index 00000000000..76c66eb9df9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnCustomLineItemUnitsQueryBuilderDsl.cs @@ -0,0 +1,48 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.CartDiscounts +{ + + public partial class CountOnCustomLineItemUnitsQueryBuilderDsl + { + public CountOnCustomLineItemUnitsQueryBuilderDsl() + { + } + + public static CountOnCustomLineItemUnitsQueryBuilderDsl Of() + { + return new CountOnCustomLineItemUnitsQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CountOnCustomLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Predicate() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("predicate")), + p => new CombinationQueryPredicate(p, CountOnCustomLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder MinCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("minCount")), + p => new CombinationQueryPredicate(p, CountOnCustomLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder MaxCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("maxCount")), + p => new CombinationQueryPredicate(p, CountOnCustomLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ExcludeCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("excludeCount")), + p => new CombinationQueryPredicate(p, CountOnCustomLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnLineItemUnitsQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnLineItemUnitsQueryBuilderDsl.cs new file mode 100644 index 00000000000..43bd0a3f091 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/CountOnLineItemUnitsQueryBuilderDsl.cs @@ -0,0 +1,48 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.CartDiscounts +{ + + public partial class CountOnLineItemUnitsQueryBuilderDsl + { + public CountOnLineItemUnitsQueryBuilderDsl() + { + } + + public static CountOnLineItemUnitsQueryBuilderDsl Of() + { + return new CountOnLineItemUnitsQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, CountOnLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Predicate() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("predicate")), + p => new CombinationQueryPredicate(p, CountOnLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder MinCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("minCount")), + p => new CombinationQueryPredicate(p, CountOnLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder MaxCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("maxCount")), + p => new CombinationQueryPredicate(p, CountOnLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ExcludeCount() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("excludeCount")), + p => new CombinationQueryPredicate(p, CountOnLineItemUnitsQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/PatternComponentQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/PatternComponentQueryBuilderDsl.cs new file mode 100644 index 00000000000..fe1a26ed8d3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/CartDiscounts/PatternComponentQueryBuilderDsl.cs @@ -0,0 +1,38 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.CartDiscounts +{ + + public partial class PatternComponentQueryBuilderDsl + { + public PatternComponentQueryBuilderDsl() + { + } + + public static PatternComponentQueryBuilderDsl Of() + { + return new PatternComponentQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, PatternComponentQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + public CombinationQueryPredicate AsCountOnCustomLineItemUnits( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CountOnCustomLineItemUnitsQueryBuilderDsl.Of()), + PatternComponentQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsCountOnLineItemUnits( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.CartDiscounts.CountOnLineItemUnitsQueryBuilderDsl.Of()), + PatternComponentQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/CartSetCustomShippingMethodActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/CartSetCustomShippingMethodActionQueryBuilderDsl.cs index 4d9a05b0205..f2bb38a1c61 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/CartSetCustomShippingMethodActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/CartSetCustomShippingMethodActionQueryBuilderDsl.cs @@ -54,6 +54,15 @@ public CombinationQueryPredicate Custom( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("custom")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.CustomFieldsDraftQueryBuilderDsl.Of())), + CartSetCustomShippingMethodActionQueryBuilderDsl.Of); + } + } } 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 df68708b47d..fe42810ec34 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 @@ -1000,6 +1000,12 @@ public CombinationQueryPredicate AsReviewStateTra return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ReviewStateTransitionMessagePayloadQueryBuilderDsl.Of()), MessagePayloadQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsShoppingListMessagePayload( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsShoppingListStoreSet( 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 0d03f358359..51d66626fcf 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 @@ -1072,6 +1072,12 @@ public CombinationQueryPredicate AsReviewStateTransition return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ReviewStateTransitionMessageQueryBuilderDsl.Of()), MessageQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsShoppingListMessage( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsStagedQuoteCreated( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..7a32b3634d2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl + { + public ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl() + { + } + + public static ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl Of() + { + return new ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LineItem( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lineItem")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ShoppingLists.ShoppingListLineItemQueryBuilderDsl.Of())), + ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..eb3498c153a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemAddedMessageQueryBuilderDsl.cs @@ -0,0 +1,107 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListLineItemAddedMessageQueryBuilderDsl + { + public ShoppingListLineItemAddedMessageQueryBuilderDsl() + { + } + + public static ShoppingListLineItemAddedMessageQueryBuilderDsl Of() + { + return new ShoppingListLineItemAddedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.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())), + ShoppingListLineItemAddedMessageQueryBuilderDsl.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())), + ShoppingListLineItemAddedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.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())), + ShoppingListLineItemAddedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemAddedMessageQueryBuilderDsl.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())), + ShoppingListLineItemAddedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate LineItem( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lineItem")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ShoppingLists.ShoppingListLineItemQueryBuilderDsl.Of())), + ShoppingListLineItemAddedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..898fa778a67 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl + { + public ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl() + { + } + + public static ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl Of() + { + return new ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LineItem( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lineItem")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ShoppingLists.ShoppingListLineItemQueryBuilderDsl.Of())), + ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..2931df65f85 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListLineItemRemovedMessageQueryBuilderDsl.cs @@ -0,0 +1,107 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListLineItemRemovedMessageQueryBuilderDsl + { + public ShoppingListLineItemRemovedMessageQueryBuilderDsl() + { + } + + public static ShoppingListLineItemRemovedMessageQueryBuilderDsl Of() + { + return new ShoppingListLineItemRemovedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.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())), + ShoppingListLineItemRemovedMessageQueryBuilderDsl.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())), + ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.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())), + ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListLineItemRemovedMessageQueryBuilderDsl.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())), + ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate LineItem( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lineItem")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ShoppingLists.ShoppingListLineItemQueryBuilderDsl.Of())), + ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..7cfdf7d2153 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,38 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListMessagePayloadQueryBuilderDsl + { + public ShoppingListMessagePayloadQueryBuilderDsl() + { + } + + public static ShoppingListMessagePayloadQueryBuilderDsl Of() + { + return new ShoppingListMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + public CombinationQueryPredicate AsShoppingListLineItemAdded( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListLineItemAddedMessagePayloadQueryBuilderDsl.Of()), + ShoppingListMessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsShoppingListLineItemRemoved( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListLineItemRemovedMessagePayloadQueryBuilderDsl.Of()), + ShoppingListMessagePayloadQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..77ed9be1e19 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/ShoppingListMessageQueryBuilderDsl.cs @@ -0,0 +1,110 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class ShoppingListMessageQueryBuilderDsl + { + public ShoppingListMessageQueryBuilderDsl() + { + } + + public static ShoppingListMessageQueryBuilderDsl Of() + { + return new ShoppingListMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.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())), + ShoppingListMessageQueryBuilderDsl.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())), + ShoppingListMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.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())), + ShoppingListMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ShoppingListMessageQueryBuilderDsl.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())), + ShoppingListMessageQueryBuilderDsl.Of); + } + + + public CombinationQueryPredicate AsShoppingListLineItemAdded( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListLineItemAddedMessageQueryBuilderDsl.Of()), + ShoppingListMessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsShoppingListLineItemRemoved( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.ShoppingListLineItemRemovedMessageQueryBuilderDsl.Of()), + ShoppingListMessageQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetCustomShippingMethodActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetCustomShippingMethodActionQueryBuilderDsl.cs index 715756447b2..80dce5c18e7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetCustomShippingMethodActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetCustomShippingMethodActionQueryBuilderDsl.cs @@ -54,6 +54,15 @@ public CombinationQueryPredicate Custom( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("custom")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.CustomFieldsDraftQueryBuilderDsl.Of())), + StagedOrderSetCustomShippingMethodActionQueryBuilderDsl.Of); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodActionQueryBuilderDsl.cs index 39715bff101..efee26e7d23 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderSetShippingAddressAndCustomShippingMethodActionQueryBuilderDsl.cs @@ -63,6 +63,15 @@ public CombinationQueryPredicate Custom( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("custom")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.CustomFieldsDraftQueryBuilderDsl.Of())), + StagedOrderSetShippingAddressAndCustomShippingMethodActionQueryBuilderDsl.Of); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..89ea9ff5a21 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Projects +{ + + public partial class ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl + { + public ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl() + { + } + + public static ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl Of() + { + return new ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Status() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("status")), + p => new CombinationQueryPredicate(p, ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectUpdateActionQueryBuilderDsl.cs index 9f61a9447c9..f9177f3c131 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/ProjectUpdateActionQueryBuilderDsl.cs @@ -22,6 +22,12 @@ public IComparisonPredicateBuilder A PredicateFormatter.Format); } + public CombinationQueryPredicate AsChangeBusinessUnitSearchStatus( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Projects.ProjectChangeBusinessUnitSearchStatusActionQueryBuilderDsl.Of()), + ProjectUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsChangeMyBusinessUnitStatusOnCreation( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/SearchIndexingConfigurationQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/SearchIndexingConfigurationQueryBuilderDsl.cs index 8206f2914f0..a93bc1df317 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/SearchIndexingConfigurationQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Projects/SearchIndexingConfigurationQueryBuilderDsl.cs @@ -51,6 +51,15 @@ public CombinationQueryPredicate Cus SearchIndexingConfigurationQueryBuilderDsl.Of); } + public CombinationQueryPredicate BusinessUnits( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("businessUnits")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Projects.SearchIndexingConfigurationValuesQueryBuilderDsl.Of())), + SearchIndexingConfigurationQueryBuilderDsl.Of); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactExpressionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactExpressionQueryBuilderDsl.cs index 222a80e1670..15dac25cf3a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactExpressionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactExpressionQueryBuilderDsl.cs @@ -16,11 +16,11 @@ public static SearchExactExpressionQueryBuilderDsl Of() } public CombinationQueryPredicate Exact( - Func> fn) + Func> fn) { return new CombinationQueryPredicate(ContainerQueryPredicate.Of() .Parent(ConstantQueryPredicate.Of().Constant("exact")) - .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchAnyValueQueryBuilderDsl.Of())), + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchExactValueQueryBuilderDsl.Of())), SearchExactExpressionQueryBuilderDsl.Of); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactValueQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactValueQueryBuilderDsl.cs new file mode 100644 index 00000000000..b0c5c38305f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchExactValueQueryBuilderDsl.cs @@ -0,0 +1,60 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Searches +{ + + public partial class SearchExactValueQueryBuilderDsl + { + public SearchExactValueQueryBuilderDsl() + { + } + + public static SearchExactValueQueryBuilderDsl Of() + { + return new SearchExactValueQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Field() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("field")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Boost() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("boost")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder FieldType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("fieldType")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Value() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("value")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Values() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("values")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Language() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("language")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CaseInsensitive() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("caseInsensitive")), + p => new CombinationQueryPredicate(p, SearchExactValueQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchQueryExpressionValueQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchQueryExpressionValueQueryBuilderDsl.cs index 5fcb4b1b68f..e7066253db4 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchQueryExpressionValueQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Searches/SearchQueryExpressionValueQueryBuilderDsl.cs @@ -52,6 +52,12 @@ public CombinationQueryPredicate AsSe return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchDateTimeRangeValueQueryBuilderDsl.Of()), SearchQueryExpressionValueQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSearchExactValue( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Searches.SearchExactValueQueryBuilderDsl.Of()), + SearchQueryExpressionValueQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSearchExistsValue( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 6aabc49e4aa..c3d0bff6ac2 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -352,7 +352,6 @@ input AddProductVariantTailoring { id: Int sku: String images: [ImageInput!] = [] - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributes: [ProductAttributeInput!] = [] assets: [AssetDraftInput!] = [] staged: Boolean = true @@ -1597,6 +1596,19 @@ type BusinessUnitQueryResult { results: [BusinessUnit!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitSearchConfiguration { + status: BusinessUnitSearchStatus! + lastModifiedAt: DateTime! + lastModifiedBy: Initiator +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +enum BusinessUnitSearchStatus { + Activated + Deactivated +} + type BusinessUnitShippingAddressAdded implements MessagePayload { address: Address! type: String! @@ -1827,6 +1839,23 @@ type CartDiscountLimitsProjection { totalActiveWithoutDiscountCodes: CartDiscountLimitWithCurrent! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CartDiscountPatternTarget implements CartDiscountTarget { + triggerPattern: [PatternComponent!]! + targetPattern: [PatternComponent!]! + maxOccurrence: Int + selectionMode: SelectionMode! + 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 CartDiscountPatternTargetInput { + triggerPattern: [PatternComponentInput!]! + targetPattern: [PatternComponentInput!]! + maxOccurrence: Int + selectionMode: SelectionMode +} + "Fields to access cartDiscounts. Includes direct access to a single cartDiscount and searching for cartDiscounts." interface CartDiscountQueryInterface { cartDiscount( @@ -1875,6 +1904,9 @@ input CartDiscountTargetInput { multiBuyLineItems: MultiBuyLineItemsTargetInput multiBuyCustomLineItems: MultiBuyCustomLineItemsTargetInput totalPrice: CartDiscountTotalPriceTargetInput + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + pattern: CartDiscountPatternTargetInput } type CartDiscountTotalPriceTarget implements CartDiscountTarget { @@ -1921,11 +1953,13 @@ input CartDiscountValueBaseMoneyInput { centAmount: Long } + input CartDiscountValueInput { relative: RelativeDiscountValueInput absolute: AbsoluteDiscountValueInput absoluteCart: AbsoluteCartDiscountValueInput fixed: FixedPriceDiscountValueInput + fixedCart: FixedPriceCartDiscountValueInput giftLineItem: GiftLineItemValueInput } @@ -2605,6 +2639,11 @@ input ChangeProductTailoringAssetOrder { assetOrder: [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 ChangeProjectSettingsBusinessUnitSearchStatus { + status: BusinessUnitSearchStatus! +} + input ChangeProjectSettingsCartsConfiguration { cartsConfiguration: CartsConfigurationInput! } @@ -3063,6 +3102,41 @@ input ConfluentCloudDestinationInput { key: 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 CountOnCustomLineItemUnits implements PatternComponent { + predicate: String! + minCount: Int + maxCount: Int + excludeCount: Int + 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 CountOnCustomLineItemUnitsInput { + predicate: String! + minCount: Int = 1 + maxCount: Int + excludeCount: Int +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type CountOnLineItemUnits implements PatternComponent { + predicate: String! + minCount: Int + maxCount: Int + excludeCount: Int + 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 CountOnLineItemUnitsInput { + predicate: String! + minCount: Int = 1 + maxCount: Int + excludeCount: Int +} + "[ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code." scalar Country @@ -4447,6 +4521,17 @@ input FieldTypeSetTypeDraft { elementType: FieldTypeSetElementTypeDraft! } +type FixedPriceCartDiscountValue implements CartDiscountValue { + type: String! + money: [BaseMoney!]! + applicationMode: DiscountApplicationMode! +} + +input FixedPriceCartDiscountValueInput { + money: [CartDiscountValueBaseMoneyInput!]! + applicationMode: DiscountApplicationMode! +} + type FixedPriceDiscountValue implements CartDiscountValue { type: String! money: [BaseMoney!]! @@ -5571,8 +5656,20 @@ type Mutation { "Queries with specified key" key: String): Category createChannel(draft: ChannelDraft!): Channel - updateChannel(id: String!, version: Long!, actions: [ChannelUpdateAction!]!): Channel - deleteChannel(id: String!, version: Long!): Channel + updateChannel(version: Long!, actions: [ChannelUpdateAction!]!, + + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String): Channel + deleteChannel(version: Long!, + + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String): Channel createOrUpdateCustomObject(draft: CustomObjectDraft!): CustomObject deleteCustomObject(version: Long, @@ -7089,6 +7186,12 @@ type OrderShippingRateInputSet implements MessagePayload & OrderMessagePayload { type: String! } +type OrderShippingUpdated implements MessagePayload & OrderMessagePayload { + current: Shipping! + updated: Shipping! + type: String! +} + enum OrderState { Cancelled Complete @@ -7271,6 +7374,17 @@ type ParcelTrackingDataUpdated implements MessagePayload & OrderMessagePayload { 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" +interface PatternComponent { + 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 PatternComponentInput { + CountOnLineItemUnits: CountOnLineItemUnitsInput + CountOnCustomLineItemUnits: CountOnCustomLineItemUnitsInput +} + """ Payments hold information about the current state of receiving and/or refunding money. [documentation](https://docs.commercetools.com/api/projects/payments) @@ -7686,6 +7800,8 @@ type ProductData { If the list is not provided then noChannel is checked for `isOnStock` """ stockChannelIds: [String!], hasImages: Boolean): [ProductVariant!]! + + "Fetch all variants, including the master variant in first position." allVariants( "Queries for products with specified SKUs" skus: [String!], isOnStock: Boolean, @@ -8069,6 +8185,9 @@ type ProductProjection { published: Boolean! masterVariant: ProductSearchVariant! variants: [ProductSearchVariant!]! + + "Fetch all variants, including the master variant in first position." + allVariants: [ProductSearchVariant!]! taxCategoryRef: Reference taxCategory: TaxCategory stateRef: Reference @@ -8658,10 +8777,7 @@ input ProductTailoringUpdateAction { setAssetTags: SetProductTailoringAssetTags setImages: SetProductTailoringImages setDescription: SetProductTailoringDescription - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setAttribute: SetProductTailoringAttribute - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants setImageLabel: SetProductTailoringImageLabel setMetaAttributes: SetProductTailoringMetaAttributes @@ -8933,7 +9049,6 @@ type ProductVariantTailoring { id: Int! images: [Image!]! assets: [Asset!]! - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributesRaw: [RawProductAttribute!]! } @@ -8950,7 +9065,6 @@ input ProductVariantTailoringInput { id: Int sku: String images: [ImageInput!] = [] - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributes: [ProductAttributeInput!] = [] assets: [AssetDraftInput!] = [] } @@ -9024,6 +9138,9 @@ input ProjectSettingsUpdateAction { "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setMyBusinessUnitAssociateRoleOnCreation: SetProjectSettingsMyBusinessUnitAssociateRoleOnCreation + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + changeBusinessUnitSearchStatus: ChangeProjectSettingsBusinessUnitSearchStatus changeProductSearchIndexingEnabled: ChangeProjectSettingsProductSearchIndexingEnabled } @@ -10417,6 +10534,9 @@ type SearchIndexingConfiguration { products: SearchIndexingConfigurationValues orders: OrderSearchConfiguration customers: CustomerSearchConfiguration + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + businessUnits: BusinessUnitSearchConfiguration } type SearchIndexingConfigurationValues { @@ -10713,6 +10833,7 @@ input SetCartCustomShippingMethod { shippingRate: ShippingRateDraft! taxCategory: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft + custom: CustomFieldsDraft } input SetCartCustomType { @@ -11902,7 +12023,6 @@ input SetProductTailoringAssetTags { assetId: String } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input SetProductTailoringAttribute { variantId: Int sku: String @@ -11911,7 +12031,6 @@ input SetProductTailoringAttribute { staged: Boolean = true } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input SetProductTailoringAttributeInAllVariants { name: String! value: String @@ -12308,6 +12427,7 @@ input SetStagedOrderCustomShippingMethod { shippingRate: ShippingRateDraft! taxCategory: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft + custom: CustomFieldsDraft } type SetStagedOrderCustomShippingMethodOutput implements StagedOrderUpdateActionOutput { @@ -12316,6 +12436,7 @@ type SetStagedOrderCustomShippingMethodOutput implements StagedOrderUpdateAction shippingRate: ShippingRate! taxCategoryResId: ResourceIdentifier externalTaxRate: ExternalTaxRateDraftOutput + custom: CustomFieldsCommand } input SetStagedOrderCustomType { @@ -12778,6 +12899,7 @@ input SetStagedOrderShippingAddressAndCustomShippingMethod { shippingRate: ShippingRateDraft! taxCategory: ResourceIdentifierInput externalTaxRate: ExternalTaxRateDraft + custom: CustomFieldsDraft } type SetStagedOrderShippingAddressAndCustomShippingMethodOutput implements StagedOrderUpdateActionOutput { @@ -12787,6 +12909,7 @@ type SetStagedOrderShippingAddressAndCustomShippingMethodOutput implements Stage shippingRate: ShippingRate! taxCategoryResId: ResourceIdentifier externalTaxRate: ExternalTaxRateDraftOutput + custom: CustomFieldsCommand } input SetStagedOrderShippingAddressAndShippingMethod { @@ -13045,6 +13168,7 @@ input SetZoneKey { enum ShipmentState { Backorder + Canceled Delayed Delivered Partial @@ -13412,6 +13536,11 @@ type ShoppingListLineItem { variant: ProductVariant } +type ShoppingListLineItemAdded implements MessagePayload { + lineItem: ShoppingListLineItem! + type: String! +} + input ShoppingListLineItemDraft { productId: String key: String @@ -13422,6 +13551,11 @@ input ShoppingListLineItemDraft { addedAt: DateTime } +type ShoppingListLineItemRemoved implements MessagePayload { + lineItem: ShoppingListLineItem! + type: String! +} + "Fields to access shopping lists. Includes direct access to a single list and searching for shopping lists." interface ShoppingListQueryInterface { shoppingList( diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlPost.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlPost.cs new file mode 100644 index 00000000000..48da557ffd9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlPost.cs @@ -0,0 +1,81 @@ +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.HistoryApi.Client.RequestBuilders.Graphql +{ + + public partial class ByProjectKeyGraphqlPost : ApiMethod, IApiMethod + { + + + private ISerializerService SerializerService { get; } + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Post; + + private string ProjectKey { get; } + + private commercetools.Sdk.HistoryApi.Models.GraphQl.IGraphQLRequest GraphQLRequest; + + public ByProjectKeyGraphqlPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.HistoryApi.Models.GraphQl.IGraphQLRequest graphQLRequest) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + this.GraphQLRequest = graphQLRequest; + this.RequestUrl = $"/{ProjectKey}/graphql"; + } + + + + + 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(GraphQLRequest); + if (!string.IsNullOrEmpty(body)) + { + request.Content = new StringContent(body, Encoding.UTF8, "application/json"); + } + } + return request; + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlRequestBuilder.cs new file mode 100644 index 00000000000..48420e8fffc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlRequestBuilder.cs @@ -0,0 +1,30 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Client.RequestBuilders.Graphql +{ + + public partial class ByProjectKeyGraphqlRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyGraphqlRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyGraphqlPost Post(commercetools.Sdk.HistoryApi.Models.GraphQl.IGraphQLRequest graphQLRequest) + { + return new ByProjectKeyGraphqlPost(ApiHttpClient, SerializerService, ProjectKey, graphQLRequest); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs index f5e3dd1d75c..b1b0844a4f3 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs @@ -1,5 +1,6 @@ using commercetools.Base.Client; using commercetools.Base.Serialization; +using commercetools.Sdk.HistoryApi.Client.RequestBuilders.Graphql; using commercetools.Sdk.HistoryApi.Client.RequestBuilders.ResourceType; // ReSharper disable CheckNamespace @@ -28,6 +29,11 @@ public ByProjectKeyGet Get() } + public ByProjectKeyGraphqlRequestBuilder Graphql() + { + return new ByProjectKeyGraphqlRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } + public ByProjectKeyByResourceTypeRequestBuilder WithResourceTypeValue(string resourceType) { return new ByProjectKeyByResourceTypeRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, resourceType); diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/IPatternComponent.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/IPatternComponent.cs new file mode 100644 index 00000000000..5d28c9fa0b6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/IPatternComponent.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.CartDiscounts +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.CartDiscounts.PatternComponent))] + public partial interface IPatternComponent + { + string Type { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/PatternComponent.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/PatternComponent.cs new file mode 100644 index 00000000000..61726f7a791 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/CartDiscounts/PatternComponent.cs @@ -0,0 +1,10 @@ + + +namespace commercetools.Sdk.HistoryApi.Models.CartDiscounts +{ + + public partial class PatternComponent : IPatternComponent + { + public string Type { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/ChangeTargetPatternChangeValue.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/ChangeTargetPatternChangeValue.cs new file mode 100644 index 00000000000..197d9565b66 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/ChangeTargetPatternChangeValue.cs @@ -0,0 +1,29 @@ +using commercetools.Sdk.HistoryApi.Models.CartDiscounts; +using commercetools.Sdk.HistoryApi.Models.Common; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.HistoryApi.Models.ChangeValues +{ + + public partial class ChangeTargetPatternChangeValue : IChangeTargetPatternChangeValue + { + public string Type { get; set; } + + public IList TriggerPattern { get; set; } + + public IEnumerable TriggerPatternEnumerable { set => TriggerPattern = value.ToList(); } + + public IList TargetPattern { get; set; } + + public IEnumerable TargetPatternEnumerable { set => TargetPattern = value.ToList(); } + + public int? MaxOccurrence { get; set; } + + public ISelectionMode SelectionMode { get; set; } + public ChangeTargetPatternChangeValue() + { + this.Type = "pattern"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetChangeValue.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetChangeValue.cs index 01cecde2eaa..5fedbbe4550 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetChangeValue.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetChangeValue.cs @@ -9,6 +9,7 @@ namespace commercetools.Sdk.HistoryApi.Models.ChangeValues [SubTypeDiscriminator("lineItems", typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetLineItemsChangeValue))] [SubTypeDiscriminator("multiBuyCustomLineItems", typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetMultiBuyCustomLineItemsChangeValue))] [SubTypeDiscriminator("multiBuyLineItems", typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetMultiBuyLineItemsChangeValue))] + [SubTypeDiscriminator("pattern", typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetPatternChangeValue))] [SubTypeDiscriminator("shipping", typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetShippingChangeValue))] public partial interface IChangeTargetChangeValue { @@ -38,6 +39,12 @@ static commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetMultiBuyLine init?.Invoke(t); return t; } + static commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetPatternChangeValue Pattern(Action init = null) + { + var t = new commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetPatternChangeValue(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetShippingChangeValue Shipping(Action init = null) { var t = new commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetShippingChangeValue(); diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetPatternChangeValue.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetPatternChangeValue.cs new file mode 100644 index 00000000000..55034cea4f4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeValues/IChangeTargetPatternChangeValue.cs @@ -0,0 +1,27 @@ +using commercetools.Sdk.HistoryApi.Models.CartDiscounts; +using commercetools.Sdk.HistoryApi.Models.Common; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.ChangeValues +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.ChangeValues.ChangeTargetPatternChangeValue))] + public partial interface IChangeTargetPatternChangeValue : IChangeTargetChangeValue + { + new string Type { get; set; } + + IList TriggerPattern { get; set; } + + IEnumerable TriggerPatternEnumerable { set => TriggerPattern = value.ToList(); } + + IList TargetPattern { get; set; } + + IEnumerable TargetPatternEnumerable { set => TargetPattern = value.ToList(); } + + int? MaxOccurrence { get; set; } + + ISelectionMode SelectionMode { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLError.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLError.cs new file mode 100644 index 00000000000..7cc0b2a3d3c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLError.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + + public partial class GraphQLError : IGraphQLError + { + public string Message { get; set; } + + public IList Locations { get; set; } + + public IEnumerable LocationsEnumerable { set => Locations = value.ToList(); } + + public IList Path { get; set; } + + public IEnumerable PathEnumerable { set => Path = value.ToList(); } + + public Object Extensions { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLErrorLocation.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLErrorLocation.cs new file mode 100644 index 00000000000..465a88b2a41 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLErrorLocation.cs @@ -0,0 +1,12 @@ + + +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + + public partial class GraphQLErrorLocation : IGraphQLErrorLocation + { + public long Line { get; set; } + + public long Column { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLRequest.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLRequest.cs new file mode 100644 index 00000000000..d11d2bdaf5f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLRequest.cs @@ -0,0 +1,14 @@ + + +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + + public partial class GraphQLRequest : IGraphQLRequest + { + public string Query { get; set; } + + public string OperationName { get; set; } + + public IGraphQLVariablesMap Variables { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLResponse.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLResponse.cs new file mode 100644 index 00000000000..2306a412d11 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLResponse.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + + public partial class GraphQLResponse : IGraphQLResponse + { + public Object Data { get; set; } + + public IList Errors { get; set; } + + public IEnumerable ErrorsEnumerable { set => Errors = value.ToList(); } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLVariablesMap.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLVariablesMap.cs new file mode 100644 index 00000000000..c5403ff84da --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/GraphQLVariablesMap.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + + public partial class GraphQLVariablesMap : Dictionary, IGraphQLVariablesMap + { + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLError.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLError.cs new file mode 100644 index 00000000000..40c6b42d3ea --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLError.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.GraphQl.GraphQLError))] + public partial interface IGraphQLError + { + string Message { get; set; } + + IList Locations { get; set; } + + IEnumerable LocationsEnumerable { set => Locations = value.ToList(); } + + IList Path { get; set; } + + IEnumerable PathEnumerable { set => Path = value.ToList(); } + + Object Extensions { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLErrorLocation.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLErrorLocation.cs new file mode 100644 index 00000000000..c5dd72eb644 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLErrorLocation.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.GraphQl.GraphQLErrorLocation))] + public partial interface IGraphQLErrorLocation + { + long Line { get; set; } + + long Column { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLRequest.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLRequest.cs new file mode 100644 index 00000000000..6242bdd8a34 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLRequest.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.GraphQl.GraphQLRequest))] + public partial interface IGraphQLRequest + { + string Query { get; set; } + + string OperationName { get; set; } + + IGraphQLVariablesMap Variables { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLResponse.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLResponse.cs new file mode 100644 index 00000000000..7b21223811a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLResponse.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.GraphQl.GraphQLResponse))] + public partial interface IGraphQLResponse + { + Object Data { get; set; } + + IList Errors { get; set; } + + IEnumerable ErrorsEnumerable { set => Errors = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLVariablesMap.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLVariablesMap.cs new file mode 100644 index 00000000000..124347ae41a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/GraphQl/IGraphQLVariablesMap.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using commercetools.Base.CustomAttributes; + +namespace commercetools.Sdk.HistoryApi.Models.GraphQl +{ + [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.GraphQl.GraphQLVariablesMap))] + public interface IGraphQLVariablesMap : IDictionary + { + } +} diff --git a/references.txt b/references.txt index 9880f5767f9..b76b6b67496 100644 --- a/references.txt +++ b/references.txt @@ -301,3 +301,4 @@ b747e1fa4f246b748a89bccbfd8a43f5b6f51175 f4cb4be0d9a27d8799b209eeb70db38bd80d5f57 7375cdc26481ba55e756479a87270432635bfcf7 df53588d26d7953dfdf44166866ca03045f0a70b +1a494a1204ce8069f991872b32865f399160051b